Micah Tseng
08/26/2022, 1:43 AMspi2xspice.py
script; that is super awesome. I found your post https://open-source-silicon.slack.com/archives/C016HUV935L/p1654049119452869?thread_ts=1654009288.441639&cid=C016HUV935L and I tried to follow the directions with this little dmux toy problem, but I don’t have something quite right. The spice executes, but the outputs are 0. Could you perhaps take a look?
I have attached the spice subckt, the generated xspice subckt and the test with the xspice subckt pasted in. It looks to me like the the generated xspice circuit isn’t actually wiring in any of the AND or INV xspice models…
Also, do you maybe have any good examples of mixed signal simulations with xspice and sky130? I would like to learn more about how to do this well.
Thanks a lot for your help!
MicahTim Edwards
08/26/2022, 1:56 AMMicah Tseng
08/26/2022, 1:57 AMTim Edwards
08/26/2022, 2:02 AMMicah Tseng
08/26/2022, 2:06 AMTim Edwards
08/26/2022, 2:23 AM.include
statement in the original SPICE file being inside the subcircuit definition. The python script, unlike ngspice, depends on the line ordering, as it will see the calls to the subcircuits before it sees the subcircuit definitions. I modified demux2.spice
to put the include line at the top, and I got this output, which differs only by having the three A
lines near the top that instantiate the three standard cell models (and2
, and2
, and inv
):Micah Tseng
08/26/2022, 2:57 AMMicah Tseng
08/28/2022, 10:24 PMspi2xspice.py
script is designed to only work if there is one subckt
spice statement in the input spice file? So a file with some hierarchy (all std cells) will fail?Tim Edwards
08/29/2022, 2:17 AMMicah Tseng
08/29/2022, 3:14 AM