mirror of
https://github.com/VLSIDA/OpenRAM.git
synced 2026-09-04 08:44:12 +02:00
Get rid of netgen error of undefined dlatch. Fix sp_read to find correct subckt name and pins.
This commit is contained in:
@@ -97,8 +97,8 @@ class spice(verilog.verilog):
|
||||
for i in range(len(self.spice)):
|
||||
self.spice[i] = self.spice[i].rstrip(" \n")
|
||||
|
||||
# find first subckt line in the file
|
||||
subckt = re.compile("^.subckt", re.IGNORECASE)
|
||||
# find the correct subckt line in the file
|
||||
subckt = re.compile("^.subckt {}".format(self.name), re.IGNORECASE)
|
||||
subckt_line = filter(subckt.search, self.spice)[0]
|
||||
# parses line into ports and remove subckt
|
||||
self.pins = subckt_line.split(" ")[2:]
|
||||
|
||||
Reference in New Issue
Block a user