#59 generic resistors don't match in LVS Issue ope...
# open_pdks
g
#59 generic resistors don't match in LVS Issue opened by d-m-bailey The
open_pdks/sky130/magic/sky130.tech
file extracts generic resistors as R-devices. Generic resistors
Copy code
sky130_fd_pr__res_generic_l1
sky130_fd_pr__res_generic_m1
sky130_fd_pr__res_generic_m2
sky130_fd_pr__res_generic_m3
sky130_fd_pr__res_generic_m4
sky130_fd_pr__res_generic_m5
sky130_fd_pr__res_generic_nd
sky130_fd_pr__res_generic_nd__hv
sky130_fd_pr__res_generic_pd
sky130_fd_pr__res_generic_pd__hv
sky130_fd_pr__res_generic_po
Sample extraction (2 terminal resistor):
Copy code
.subckt sky130_fd_sc_hd__conb_1 VGND VNB VPB VPWR HI LO
R0 HI VPWR sky130_fd_pr__res_generic_po w=480000u l=45000u
R1 VGND LO sky130_fd_pr__res_generic_po w=480000u l=45000u
.ends
The spice library has the 3 terminal X-resistor definitions.
Copy code
.subckt sky130_fd_sc_hd__conb_1 VGND VNB VPB VPWR HI LO
X0 VGND LO VNB short w=480000u l=45000u
X1 HI VPWR VNB short w=480000u l=45000u
.ends
Maybe change the extraction to
rsubcircuits
and change the spice library to 2 terminal
sky130_fd_pr__res_generic_po
devices. Also the variant(orig) sytle has a spelling error.
Copy code
device rsubcircuit sky130_fd_pr_res_generic_nd     ndiffres \
        *ndiff pwell,space/w  error l=l w=w
 device rsubcircuit sky130_fd_pr_res_generic_pd     pdiffres \
        *pdiff nwell    error l=l w=w
Probably should be
sky130_fd_pr__res_generic_nd
and
sky130_fd_pr__res_generic_pd
(2 '_' between the 'pr' and 'res') RTimothyEdwards/open_pdks