Yohanes Stefanus
05/29/2024, 7:33 PMMitch Bailey
05/30/2024, 1:58 AM.subckt icell1scs_lay2
to a schematic with ports
.subckt icell1scs iout avdd pbias ioutn sw pcbias idir_sel ncbias nbias avss
2. LVS results are much easier to analyze if the layout and schematic have the same names. I suggest dropping the _lay*
suffices from the layout cells so that they match the schematic.
3. Along with the lvs results that you’ve shared, it is helpful if you share the actual command that you used to run netgen.
4. The schematic netlist references the standard cells, but they are not defined. You could include $PDK_ROOT/$PDK/libs.ref/sky130_fd_sc_hvl/spice/sky130_fd_sc_hvl.spice
in the spice file, but I prefer to do it when I run netgen. I use a script (let’s call it lvs.script
) like this
set layout [readnet spice icell1scs_lay2.spice]
set source [readnet spice $::env(PDK_ROOT)/$::env(PDK)/libs.ref/sky130_fd_sc_hvl/spice/sky130_fd_sc_hvl.spice]
readnet spice icell1scs_sch.spice $source
lvs "$layout icell1scs" "$source icell1scs" $::env(PDK_ROOT)/$::env(PDK)/libs.tech/netgen/$::env(PDK)_setup.tcl
and then run netgen with
netgen -batch source lvs.script
Yohanes Stefanus
05/30/2024, 6:49 AMnetgen lvs "icell1scs_lay2.spice icell1scs_lay2" "icell1scs_sch.spice icell1scs"
command to run the lvs. I run netgen in tckon panel from the magic. And I use extract all
,ext2spice lvs
,ext2spice
to get spice file from the layout.
I've tried your script too, and I got this message
yohanes@yohanes-HP-Laptop-14s-fq1xxx:~/gits/dsrt_2024/sky130_its_ip__idac3v_12bit/magic$ netgen -batch source lvs.script
Netgen 1.5.272 compiled on Jum 29 Mar 2024 12:02:55 WIB
Warning: netgen command 'format' use fully-qualified name '::netgen::format'
Warning: netgen command 'global' use fully-qualified name '::netgen::global'
Call to undefined subcircuit sky130_fd_pr__nfet_g5v0d10v5
Creating placeholder cell definition.
Call to undefined subcircuit sky130_fd_pr__pfet_g5v0d10v5
Creating placeholder cell definition.
no such variable
(read trace on "::env(PDK_ROOT)")
invoked from within
"readnet spice $::env(PDK_ROOT)/$::env(PDK)/libs.ref/sky130_fd_sc_hvl/spice/sky130_fd_sc_hvl.spice"
(file "lvs.script" line 2)
invoked from within
"source lvs.script"
("eval" body line 1)
invoked from within
"eval $argv"
Mitch Bailey
05/30/2024, 11:20 AMenv | grep PDK
If not, try setting them first.Yohanes Stefanus
08/12/2024, 2:05 PMMitch Bailey
08/12/2024, 3:58 PM