c***@gmail.com
2013-02-07 03:52:03 UTC
I want to create a subckt HSPICE model for a cell that I have. I have been able to get most of the way to what I want by simply using the following SKILL code:
simulator('hspiceD)
design("MyLib" "MyCell" "av_extracted")
createNetlist(?recreateAll t ?display nil)
(and then I copy the netlist from the string returned by createNetlist into another file of my choosing).
The only trouble with the procedure is that I end up with some just at the top along the lines of:
** Generated for: hspiceD
** Generated on: ...
** Design library name: MyLib
** Design cell name: MyCell
** Design view name: av_extracted
.GLOBAL vdd!
.PARAM p5vonly=0 phires=0
.TEMP 25
.OPTION
+ ARTIST=2
+ INGOLD=2
+ PARHIER=LOCAL
+ PSF=2
And then it finally goes into more or less the hspice that I want. It also has an unwanted .END at the bottom of the circuit. This all could be fairly easily handled with a simple script to strip off the top and the bottom. However, it does not create the view as a subckt, it creates the view in the local "space".
I would like something that I could essentially stuff into an Hspice text view and use instead of netlisting from scratch each time. I also want to use this with Hspice outside of cadence (direct from the command line). I know I can probably get this behavior by creating another cellview with just an instance of this circuit inside it, but I would prefer not to have to create a new cellview for each circuit just to create these netlists.
simulator('hspiceD)
design("MyLib" "MyCell" "av_extracted")
createNetlist(?recreateAll t ?display nil)
(and then I copy the netlist from the string returned by createNetlist into another file of my choosing).
The only trouble with the procedure is that I end up with some just at the top along the lines of:
** Generated for: hspiceD
** Generated on: ...
** Design library name: MyLib
** Design cell name: MyCell
** Design view name: av_extracted
.GLOBAL vdd!
.PARAM p5vonly=0 phires=0
.TEMP 25
.OPTION
+ ARTIST=2
+ INGOLD=2
+ PARHIER=LOCAL
+ PSF=2
And then it finally goes into more or less the hspice that I want. It also has an unwanted .END at the bottom of the circuit. This all could be fairly easily handled with a simple script to strip off the top and the bottom. However, it does not create the view as a subckt, it creates the view in the local "space".
I would like something that I could essentially stuff into an Hspice text view and use instead of netlisting from scratch each time. I also want to use this with Hspice outside of cadence (direct from the command line). I know I can probably get this behavior by creating another cellview with just an instance of this circuit inside it, but I would prefer not to have to create a new cellview for each circuit just to create these netlists.