I have completed the design flow of a MUX successf...
# sky130
p
I have completed the design flow of a MUX successfully in openlane , i have various magic , spice files etc , i am not able to figure out how do i simulate it and visualize the inputs and outputs , please if someone could help me out here.
a
you could simulate it using ngspice outside the OpenLANE flow.
p
yeah , openlane created a .spice file , but I am unable to simulate it on ngspice
a
What error are you getting?
p
there is no error as such , but im lost as to how to get the waveforms on the GUI
this is the netlist file created by openlane as .spice which is just changed to .txt for sending it.
In this file what should I print / plot to get some output
a
You'll have to first invoke ngspice, then run plot commands. "ngspice test1.spice" "plot y vs time x" - plots output y with time sweeping input x values. You'll have to use appropriate variables according to your design
You'll see the node names and voltage values listed after the invoke command. Pick out the output and input node names from there
p
Hey , on invoking "ngspice test1.spice", i am not getting any node names and voltage values
Also , while running the design flow I got this :
but i am getting that the design flow is successful
but getting this too , so i suppose the power ports are not an issue , really sorry but im a novice at this
m
not exactly what you want, but here's an example of how you can run a simulation with a spice file
the spice file in this case is coming from extracting from a drawing made in magic instead of the output from openlane
but the concept is the same.
p
thank you , ill try it out
@Matt Venn , i tried following your repo and it worked fine , i want to understand how did you write the pre.spice and post.spice so that i can also write it for my design to run a simulation
m
Spice is a bit of a pain to learn. I just copy and paste the same pieces. You might be better off learning pyspice python Library.
If you do want to learn, then the manual is not bad. Search for it and you should find it easily