|
发表于 2012-5-7 13:18:20
|
显示全部楼层
如何提取CDL时让电阻例化?一般为了layout的方便,电路中会标出电阻的W/L,所以提取的电阻CDL会这样:RGPS_ ...
wapoca 发表于 2012-5-3 15:47
Step 1: check (and try) if you get to generate correct netlsit from hspiceD views. -> You already mentioned your library did not have hspiceD views.
Alternative: use a (sed/awk/perl) script to post-process the CDL netlist.
RGPS_1 net1 net2 $[RGPNC] $W=1u $L=10u
In your specific case, since you only need to post-process the resistor netlist format, it can be done by a fairly simple "sed" script.
Contents of the sed script (for instance, let me call it raw.sed) is as follows:
s/\$\[//
s/\]//
s/\$//g
Excecute the following command under Linux:
sed -f raw.sed YourNetlistFileName > raw.out
, where YourNetlistFileName is the name of original netlist file.
Check and see if the processed netlist in raw.out has the format you need.
Good luck! |
|