HSPICE Netlist 轉換成 Spectre .scs格式
首先要確認有安裝Cadence IC5.x 軟體
軟體內有spp ,我們是使用spp來做轉檔的


 
 
 
 
舉例來說:
把一個Inverter Netlist 轉換成 Spectre .scs格式
所以原本的HSPICe netlist 如下
 
.SUBCKT INV A Y
M0 Y A GND GND n_3p3 l=0.28u w=1.2u
M1 Y A VDD VDD p_3p3 l=0.28u w=1.73u
.ENDS INV
 
使用轉換指令
spp -convert INV.scs
檢查一下INV.scs
 
// .SUBCKT INV A Y
simulator lang=spectre insensitive=yes
global 0 gnd
m0 ( y a gnd gnd ) n_3p3 l=0.28u w=1.2u
m1 ( y a vdd vdd ) p_3p3 l=0.28u w=1.73u
ends inv
 
如果使用的是新版的MMsim7.2以後的版本,其實就不需要轉netlist了
新版 mmsim已經有支援 HSPICE
模擬指令如下
spectre +hspice INV.sp

 
 
 
 
最後來看看spp 的指令語法如下
spp -h
//–INFORMATION–// SPICE Reader : MDL @version 1.2.2 01/31/2003
//–INFORMATION–// SPICE Reader :
Usage:
spp [options] [ < [inputfile]] [ > [outputfile] ]

“input file" is mandatory.
“output file" is optional. Default is “stdout"

Options:
-h Prints this help message
 
-v Prints the version number of the SPP program
and exits.
 
-w Outputs the build info of the SPP program and exits.
 
-file [filename] Sets the top-level netlist filename
The %C macro will be expanded to this name
 
-lib [LibName] Causes the translation of the appropriate library
part identified by [LibName].
[ Requires simultaneous use of -section. ]
[ Expects a library file as stdin. ]
 
-section [SectionName] Causes the translation of the appropriate library
section identified by [SectionName].
[ Expects a library file as stdin. ]
 
-log [logfile] Redirects error/warning/info messages from stderr
to [logfile]
 
-convert Converts a netlist or library to Spectre format.
Include and library statements will be translated
but not processed.
The output will lack CPP comments.
[ Requires simultaneous use of -file if SPP must
identify files with an scs extension. ]
 
-q4term SPP will treat all bjt devices as four terminal
devices.
 
-m5term SPP will treat all mosfet devices as five terminal
devices.
 
-m6term SPP will treat all mosfet devices as six terminal
devices.
 
-m7term SPP will treat all mosfet devices as seven terminal
devices.
 
-warning [value] Causes the Spp to display only the [value] number
of warning statements.
Without [value], Spp will turn off all the
warning statements.
 
+% [expression value] Enables replacement of the literal expression %x
with the expression value wherever %x is found in
the input stream.
 
-hspcompatible Pass the level information along with the model
translation.
 
-% Replaces the literal expression %x with null
wherever %x is found in a quoted string of the
input stream
26260030

Tags: , , , ,