IHP-Open-PDK
IHP-Open-PDK copied to clipboard
Discrepancy in pin order of stdcell spice models vs. xschem symbols
I am not sure of this was brought up here already. The spice pin order between these two stdcell representations do not match up:
libs.tech/xschem/sg13g2_stdcells libs.ref/sg13g2_stdcell/spice/sg13g2_stdcell.spice
The spice file pins are in alphabetical order, but the xschem pins are not.
The following sed applied to the xschem symbols fixes the problem (courtesy Mitch Bailey):
sed -i .bak
-e 's/@VGND @VNB @VPB @VPWR/@VDD @VSS/'
-e 's/VGND=VGND VNB=VNB VPB=VPB VPWR=VPWR/VDD=VDD VSS=VSS/'
-e 's/VGND VNB VPB VPWR/VDD VSS/'
-e 's/@VDD @VSS @@Q @@Q_N/@@Q @@Q_N @VDD @VSS/'
-e 's/(@@RESET.*)@@Q @@Q_N /@@Q @@Q_N \1/' *.sym
Dear @bmurmann thank you for notification and the sed
code snippet. Please checkout the recent PR #63 where the standard cells symbols were updated.
Hi @bmurmann, could you please check if the issue is resolved and we can close it. Thank you!
Resolved.