Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to measure power consumption with Hspice using BSIM-CMG model

Status
Not open for further replies.

devang259

Newbie level 1
Joined
Dec 3, 2013
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
10
I would like to measure the power consumption of a circuit, such as an inverter.
The version of Hspice I used is 2012.06-SP2 64-BIT.
The version of BSIM-CMG I used is BSIMCMG106.0.0.
The Hspice file is as follows :
Code:
-------------------------------------
*Sample netlist for BSIM-CMG 
*Inverter Transient

.option abstol=1e-6 reltol=1e-6 post ingold

.hdl "bsimcmg.va"
.include "modelcard.nmos"
.include "modelcard.pmos"

* --- Voltage Sources ---
vdd   supply  0 dc=1.0
vsig  vi  0 dc=0.5 sin (0.5 0.5 1MEG)


* --- Inverter Subcircuit ---
.subckt mg_inv vin vout vdd gnd
    Xp1 vout vin vdd gnd pmos1 TFIN=15n L=30n NFIN=10 ASEO=1.5e-14 ADEO=1.5e-14 NRS=1 NRD=1
    Xn1 vout vin gnd gnd nmos1 TFIN=15n L=30n NFIN=10 ASEO=1.5e-14 ADEO=1.5e-14 NRS=1 NRD=1
.ends

* --- Inverter ---
Xinv1  vi 1 supply 0 mg_inv
Xinv2  1 2 supply 0 mg_inv
Xinv3  2 3 supply 0 mg_inv
Xinv4  3 4 supply 0 mg_inv
Xinv5  4 vo supply 0 mg_inv

* --- Transient Analysis ---
.tran 10n 5u
.meas tran average_power avg power from 10ns to 5us
.print tran v(vi) v(vo)
.save all
.op
.end
-------------------------------------
The output file inverter.mt0 is as follows : 
-------------------------------------
$DATA1 SOURCE='HSPICE' VERSION='G-2012.06-SP2 64-BIT'
.TITLE '*sample netlist for bsim-cmg'
 average_power    avgi1            temper           alter#            
    0.            -4.012e-06         25.0000        1     
-------------------------------------
The power consumption reported by Hspice is 0.
Obviously, the power consumption reported by Hspice is wrong.
Does anyone know the correct way to measure the power consumption of a circuit with Hspice using BSIM-CMG ?
 

You can see power consumption in the Avanwaves also. It'll show you properly I guess.
I am simulating the same in HSPICE 2008. but I'm not getting the results properly. Do you know Any way?
 

The Input given is Sine Wave which is causing issues and giving power zero.
 

You need to include in which voltage you want to measure the power. Right now you are not specifying anything.
Something like this:
Code:
.meas tran average_power avg p(vdd) from 10ns to 5us
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top