Netlist
Netlist copied to clipboard
Non Xyce Writer Incorporated yet ?
Hey Dan, Just wanted to confirm that the only writer fmt acceptable is Xyce ? I understand that there might be writer rules that need to be written still , I was looking at incorporating pins and mode_name in primitives since thats needed. This is my example
sub = parse_files("test.sp")
for x in sub.files[0].contents[0].entries:
for y in x.kwargs:
print(parse_files("test.sp").files[0].contents[0].name.name, x.name.name, y.name.name, lambda y: y.val)
print("updating the names of transistors")
x.args[len(x.args)-1].ident.name = f'{x.args[len(x.args)-1].ident.name}_test'
#print(x.args[len(x.args)-1].ident.name)
write_netlist(sub, dest=open("test1.sp", 'w'))
write_netlist(sub, dest=open("test1.sp", 'w'),fmt='<Anything else>') as I see that none of these except fmt as an option.
Error Below
>>> write_netlist(sub, dest=open("test1.sp", 'w'),fmt=NetlistDialects.SPECTRE)
Traceback (most recent call last):
File "
Here is the input netlist
.SUBCKT sky130_fd_sc_hs__a2111o_2 A1 A2 B1 C1 D1 VGND VNB VPB VPWR X chu=1
*.PININFO A1:I A2:I B1:I C1:I D1:I VGND:I VNB:I VPB:I VPWR:I X:O
MMPA0 pndA A1 VPWR VPB pfet_01v8 m=1 w=1.12 l=0.15 mult=1 sa=0.265
+ sb=0.265 sd=0.28 topography=normal area=0.063 perim=1.14
MMPA1 pndA A2 VPWR VPB pfet_01v8 m=1 w=1.12 l=0.15 mult=1 sa=0.265
+ sb=0.265 sd=0.28 topography=normal area=0.063 perim=1.14
.ENDS sky130_fd_sc_hs__a2111o_2
Thanks !!