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 :
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 ?
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
-------------------------------------
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 ?