Skip to content

Commit 7a35edc

Browse files
Merge branch 'master' into qflow-1.4
2 parents 88c7e7f + 7314066 commit 7a35edc

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.4.101
1+
1.4.102

scripts/spi2xspice.py.in

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
# May 17, 2017
1414
# Updated Dec. 22, 2018 to accomodate in-lined standard cell subcircuits
1515
# (i.e., not from a .include statement) and corrected duplicate .end statement.
16+
# Updated Jan. 12, 2024 to fix port direction when inputs and outputs are not
17+
# buffered, and a subcircuit output signal is also fed back to other gates in
18+
# the subcircuit.
1619
#
1720
# This script is in the public domain
1821
#--------------------------------------------------------------------------
@@ -514,7 +517,8 @@ def read_spice(filein, fileout, celldefs, debug, modelfile, timing):
514517
if len(pins) > i:
515518
inlist.append(pins[i])
516519
if pins[i] in pindefs:
517-
pindefs[pins[i]] = 'input'
520+
if pindefs[pins[i]] != 'output':
521+
pindefs[pins[i]] = 'input'
518522
else:
519523
print('Pin ' + subpinname + ' of subckt ' + cellname + ' does not have a connecting net', file=sys.stderr)
520524

0 commit comments

Comments
 (0)