The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Apr 20th, 2024, 1:11am
Pages: 1
Send Topic Print
Passing 'errpreset' paramter in MDL (Read 6474 times)
topquark
Community Member
***
Offline



Posts: 61
Thames Valley, UK
Passing 'errpreset' paramter in MDL
Jan 03rd, 2007, 1:26am
 
Hi folks!

I wrote a simple MDL script for a tran analysis, but was unable to pass the accuracy parameter 'errpreset'.
The log shows that it always takes the default (=moderate)
I want it to be changed to 'conservative' during run.
The analysis line-
run tran(stop=15us,  maxstep=1ns)

doesn't seem to accept errpreset as an argument and errors out.

The help documentation doesn't show how to do this, it just shows how to pass other numeric parameters like
transtop, step etc..

Anybody got an idea?
Thanks
Gau

Back to top
 
 
View Profile   IP Logged
ACWWong
Community Fellow
*****
Offline



Posts: 539
Oxford, UK
Re: Passing 'errpreset' paramter in MDL
Reply #1 - Jan 3rd, 2007, 5:43am
 
The way round this would be to use the run command to call a named rather than primitive (tran, ac, dc etc.) analyses. That way you can add the errpresent setting in the netlist.

Back to top
 
 
View Profile   IP Logged
John O Donovan
Junior Member
**
Offline



Posts: 29
San Jose, CA
Re: Passing 'errpreset' paramter in MDL
Reply #2 - Jan 3rd, 2007, 9:16am
 
Hi,

The following should work

Code:
    run tran(stop=15us, errpreset='conservative, maxstep=1ns) 



I would remove the maxstep paramter though. It generally has no impact on simulation results in Spectre other than slow down simulation, if given a very small value. If you are using threshold type functions (cross, deltax, risetime, ... ), Spectre will place timepoints automatically at the crossing points. If you require fixed timesteps for FFT's then use a z domain controlled source, or strobing parameters.

Regards,
 John
Back to top
 
 
View Profile   IP Logged
topquark
Community Member
***
Offline



Posts: 61
Thames Valley, UK
Re: Passing 'errpreset' paramter in MDL
Reply #3 - Jan 4th, 2007, 12:27am
 
Hi John!

Thanks for supplying that essential apostrophe " ' "
I've got my code working right away..
I was wondering if maxstep affects the 'errpreset' or the latter overrides the former?  ::)
Ref: www.designers-guide.org/Forum/YaBB.pl?num=1162459212

Regards,
Gau
Back to top
 
 
View Profile   IP Logged
Ken Kundert
Global Moderator
*****
Offline



Posts: 2384
Silicon Valley
Re: Passing 'errpreset' paramter in MDL
Reply #4 - Jan 4th, 2007, 8:46am
 
The 'preset' in errpreset is meant to imply that it takes effect before processing the remaining parameters. In otherwords, errpreset effectively adjusts the defaults of the other parameters according to the mood of the user. As such, any values that you specify for parameters affected by errpreset will take precedence.

-Ken
Back to top
 
 
View Profile WWW   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.