mirror of https://github.com/VLSIDA/OpenRAM.git
Remove level of indirection to ptx devices to allow LVS symmetries.
This commit is contained in:
parent
586d80623e
commit
3c5ecb963d
|
|
@ -126,6 +126,8 @@ class spice(verilog.verilog):
|
||||||
return
|
return
|
||||||
if self.pins == []:
|
if self.pins == []:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
# write out the first spice line (the subcircuit)
|
# write out the first spice line (the subcircuit)
|
||||||
sp.write("\n.SUBCKT {0} {1}\n".format(self.name,
|
sp.write("\n.SUBCKT {0} {1}\n".format(self.name,
|
||||||
" ".join(self.pins)))
|
" ".join(self.pins)))
|
||||||
|
|
@ -146,6 +148,12 @@ class spice(verilog.verilog):
|
||||||
# these are wires and paths
|
# these are wires and paths
|
||||||
if self.conns[i] == []:
|
if self.conns[i] == []:
|
||||||
continue
|
continue
|
||||||
|
if hasattr(self.insts[i].mod,"spice_device"):
|
||||||
|
sp.write(self.insts[i].mod.spice_device.format(self.insts[i].name,
|
||||||
|
" ".join(self.conns[i])))
|
||||||
|
sp.write("\n")
|
||||||
|
|
||||||
|
else:
|
||||||
sp.write("X{0} {1} {2}\n".format(self.insts[i].name,
|
sp.write("X{0} {1} {2}\n".format(self.insts[i].name,
|
||||||
" ".join(self.conns[i]),
|
" ".join(self.conns[i]),
|
||||||
self.insts[i].mod.name))
|
self.insts[i].mod.name))
|
||||||
|
|
@ -158,6 +166,7 @@ class spice(verilog.verilog):
|
||||||
#if os.path.isfile(self.sp_file):
|
#if os.path.isfile(self.sp_file):
|
||||||
# sp.write("\n* {0}\n".format(self.sp_file))
|
# sp.write("\n* {0}\n".format(self.sp_file))
|
||||||
sp.write("\n".join(self.spice))
|
sp.write("\n".join(self.spice))
|
||||||
|
|
||||||
sp.write("\n")
|
sp.write("\n")
|
||||||
|
|
||||||
def sp_write(self, spname):
|
def sp_write(self, spname):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue