• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Logic Design
  3. Hspice Monte Carlo .measure statement use.

Stats

  • Locked Locked
  • Replies 0
  • Subscribers 62
  • Views 15970
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Hspice Monte Carlo .measure statement use.

pjparekh
pjparekh over 16 years ago

HI,

I am trying to use Monte Carlo simulation togauge the effect of variation in the channel length of the nmos and pmos gates on the average power and clock to q delay of the circuit.

First, without any variation in gate length, the discription of the nodes and .measure statement are like this.

 

 m2 Q 10 vdd vdd pmos w=270nm l=65nm 

.param l=0.65u

.tran 10p 20000p
.measure power AVG POWER FROM=600p TO=1801p
.measure tran TIME trig=v(clock) val='(0.9*pvdd)' fall=1 targ=v(Q) val='(0.9*pvdd)' rise=1

 

With monte carlo variation, I am writing the commands like this.

 m2 Q 10 vdd vdd pmos w=270nm l=LEFF

.param l=0.65u
.param LEFF= GAUSS (l, 0.05, 3)

 .tran 10p 20000p SWEEP MONTE=5000
.measure power AVG POWER FROM=600p TO=1801p
.measure tran TIME trig=v(clock) val='(0.9*pvdd)' fall=1 targ=v(Q) val='(0.9*pvdd)' rise=1

 

These are only changes I am making. The change in the node description is applied to all the nodes.

 

My Problems and Questions: --->

(1) When using the monte carlo, the .mt0 file shows the POWER value but shows "error" for the TIME value. This is a flip flop cell. Looking at the waveform it seems that the flip flop does not operate correctly and the output Q is not a desired waveform. If I don't use monte carlo and separately check for the maximum and minimum gate lengths this mone carlo will take, then circuit works fine and I get corrrect value in .mt0 file.

(1) Here, the two .measure statements will give me different values for POWER and TIME for all sweeps in the .mt0 file which I can export to xls; but I am more interested in a mathematical description of POWER and TIME in the form of value, mean and sigma if it gaussian or something similar so I can multiply the POWER and TIME and get ENERGY. That will be much easier than performing multiplication of hundreds of cells in the xls sheet and then finding the right values.

 

I would really appreciate any help. This may sound like a trivial problem to experienced users but any suggestion will be very critical to my work at this point. 

  • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information