The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Simulators >> Circuit Simulators >> How to use .ALTER statement for models
https://designers-guide.org/forum/YaBB.pl?num=1199105066

Message started by kiran123 on Dec 31st, 2007, 4:44am

Title: How to use .ALTER statement for models
Post by kiran123 on Dec 31st, 2007, 4:44am

Hi


 In Hspice how to use .ALTER and .INCLUDE statements to change the model files of slow, fast and normal corners


i know that if i use .LIB  statement to include the model file
it can be changed by first using .DEL like below and .DEL with proper one


.LIB  "file1" TT
.....
...

.ALTER
.DEL LIB "file1" TT
.LIB  "file1"  SS
....
...
.END

so similarly how to deal if i am using .INCLUDE statement for Models

Thanks
Kiran
       

Title: Re: How to use .ALTER statement for models
Post by ywguo on Jan 3rd, 2008, 11:56pm

Hi Kiran,

The .alter block can contain .INCLUDE and .MODEL statements. The .MODEL statement in .alter block replaces the original statement if their model names are identical. Please refer to HSPICE manual for any further details.


Yawei

Title: Re: How to use .ALTER statement for models
Post by kiran123 on Jan 4th, 2008, 4:07am


ywguo wrote on Jan 3rd, 2008, 11:56pm:
Hi Kiran,

The .alter block can contain .INCLUDE and .MODEL statements. The .MODEL statement in .alter block replaces the original statement if their model names are identical. Please refer to HSPICE manual for any further details.


Yawei


Yawei ,
   are you suggesting me to use .MODEL statment instead of .INC? can you explain me little bit
the main aim is to do fast slow and nom corner simulation using single deck with single run

so earlier when i tried  with below statements  it did not print the "slow" corner relsults where as  "fast" corner results are written to output

/*************

.INCLUDE "../Models_fast.sp"
........
.............
......

.PRINT TRAN V(DATA)

.ALTER
.INCLUDE "../Models_slow.sp"


.END
/***************************


thanks for the help on this

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.