Zorro
|
Hi All,
for those who are interested I found a method to switch between the models. maybe the code is not the most elegant but it fulfills the desired objective. as a point of reference here is the code:
;;;;;;;;;;;;;;;;;;;;;;;;; Part1
comment the following lines:
;modelFile( ; '("$PDK_DIR/at77000/analog_artist/models/spectre/model_corners/MOS_bcs_RES_high_ CAP_low.scs" "") ;)
use instead:
model_path="/design/libs/at77000/v0.7/at77000/analog_artist/models/spectre/model _corners" list1 = strcat(model_path "/MOS_bcs_RES_high_CAP_high.scs ") list2 = strcat(model_path "/MOS_bcs_RES_high_CAP_low.scs ") list3 = strcat(model_path "/MOS_bcs_RES_low_CAP_high.scs ") list4 = strcat(model_path "/MOS_bcs_RES_low_CAP_low.scs ") ... etc etc etc, define here all the different models
;;;;;;;;;;;;;;;;;;;;;;;;; Part2
then define a list where you can select which models will be used in the loop, for example
corner_list = list(list1 list2 list4 )
;;;;;;;;;;;;;;;;;;;;;;;;; Part3
then use a loop:
foreach( corner corner_list modelFile( corner) run()
... ... ... )
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
and that's it.
Best Regards and hope it is helpful for someone!
|