IHP-Open-PDK icon indicating copy to clipboard operation
IHP-Open-PDK copied to clipboard

Discrepancy in pin order of stdcell spice models vs. xschem symbols

Open bmurmann opened this issue 10 months ago • 1 comments

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

bmurmann avatar Mar 27 '24 23:03 bmurmann

Dear @bmurmann thank you for notification and the sed code snippet. Please checkout the recent PR #63 where the standard cells symbols were updated.

KrzysztofHerman avatar Apr 03 '24 10:04 KrzysztofHerman

Hi @bmurmann, could you please check if the issue is resolved and we can close it. Thank you!

sergeiandreyev avatar Jul 10 '24 09:07 sergeiandreyev

Resolved.

bmurmann avatar Jul 10 '24 09:07 bmurmann