sgherbst / sky130-hello-world

Minimal SKY130 example with self-checking LVS, DRC, and PEX
Apache License 2.0
23 stars 9 forks source link

The given scripts contain errors #4

Open armleo opened 3 years ago

armleo commented 3 years ago

DRC script does not output anything. I used following instead

set design_name my_nand
set cell_name my_nand

gds read $design_name.GDS
load $design_name
select top cell 
drc euclidean on
drc style drc(full)
drc catchup
magic::drc_save_report $cell_name $design_name.drc.rpt

For LVS I used (note: subcircuit was replaced with subcircuits):

set design_name my_nand
set cell_name my_nand

gds read $design_name.GDS
load $design_name
select top cell
extract all
ext2spice lvs
ext2spice subcircuit off
ext2spice -o $design_name.lvs.spice

However last step causes this error: Error: Ran out of space for device types!

For PEX I used:

ext2spice lvs
ext2spice cthresh 0
ext2spice rthresh 0
ext2spice subcircuit on
ext2spice -f ngspice -o $design_name.pex.spice

The thresh is supposed to be integers, so I set it to zero Also the last step was changed because when using command from readme.md it just compained that ngspice.GDS and pex_output_file.GDS do not exist. Instead I used refmanual to just write one.