The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 17th, 2024, 6:18am
Pages: 1
Send Topic Print
question about .meas in hspice (Read 5439 times)
daisy
Junior Member
**
Offline



Posts: 17

question about .meas in hspice
Jul 23rd, 2008, 7:22pm
 
Hi!
I'm simulating a low pass filter and I want to see the frequency point when the output value decreases 3dB.I wrote the statement like this:

.meas ac gainmax max vdb(vout)
.meas ac band find f when vdb(vout)='gainmax-3'

however,there is a warning in the .lis file,saying that the band is not defined.So how should I describe the statement?
Thanks a lot!

daisy
Back to top
 
 
View Profile daisy   IP Logged
ywguo
Community Fellow
*****
Offline



Posts: 943
Shanghai, PRC
Re: question about .meas in hspice
Reply #1 - Jul 24th, 2008, 1:07am
 
Hi Daisy,

It seems that the simulator does not identify what f is. When I try your .measure card. It report the following warning message in the listing file.

**warning** could not identify variable type f

I simulate successfully with the following cards.

Code:
.meas ac gainmax max vdb(vout)
.meas ac f3db when vdb(vout)='gainmax-3' 



Please note that time or frequency are independent variables in a HSPICE simulator. However, we have never quote a variable like frequency or time in SPICE.

The .measure syntax is
.measure <DC|TRAN|AC> result when out_var=val
where result is time for TRAN and frequency for AC. They are independent variables.

Best regards,
Yawei
Back to top
 
 
View Profile   IP Logged
daisy
Junior Member
**
Offline



Posts: 17

Re: question about .meas in hspice
Reply #2 - Jul 24th, 2008, 3:11am
 
Hi! I have simulated successfully with your cards.
Thank you for your help!

daisy

ywguo wrote on Jul 24th, 2008, 1:07am:
Hi Daisy,

It seems that the simulator does not identify what f is. When I try your .measure card. It report the following warning message in the listing file.

**warning** could not identify variable type f

I simulate successfully with the following cards.

Code:
.meas ac gainmax max vdb(vout)
.meas ac f3db when vdb(vout)='gainmax-3' 



Please note that time or frequency are independent variables in a HSPICE simulator. However, we have never quote a variable like frequency or time in SPICE.

The .measure syntax is
.measure <DC|TRAN|AC> result when out_var=val
where result is time for TRAN and frequency for AC. They are independent variables.

Best regards,
Yawei

Back to top
 
 
View Profile daisy   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.