Larry Harris
04/17/2023, 2:31 PMStefan Schippers
04/17/2023, 2:53 PMspi2xspice.py
script from qflow.
By using the generic Xspice LUT and the DFF models all standard cells (combinatorial and sequential) can be simulated at digital level.
In xschem_sky130 there is a sky130_tests/test_stdcells.sch
that does a side by side comparison of some digital logic, one block simulated at analog level, the other identical block simulated at XSPICE level. The outputs are the same.
One thing that I do not like of LUT devices is that the output is undefined (X) if one of the inputs is undefined.
This is not accurate for some logic functions.
If a NAND gate has one input low and the other input undefined (X) the output is high (1) regardless of the undefined second input.Tim Edwards
04/17/2023, 5:56 PMLarry Harris
04/17/2023, 8:13 PMLarry Harris
04/17/2023, 8:54 PMTim Edwards
04/18/2023, 8:27 AMHarald Pretl
04/18/2023, 3:08 PMHarald Pretl
04/18/2023, 3:09 PMLarry Harris
04/18/2023, 7:41 PMHarald Pretl
04/19/2023, 5:43 AMLarry Harris
04/19/2023, 1:19 PMLarry Harris
04/19/2023, 1:27 PMStefan Schippers
04/19/2023, 5:52 PMHarald Pretl
04/19/2023, 5:55 PMStefan Schippers
04/19/2023, 5:55 PMdevices/spice_probe.sym
symbol to nets you want to save. xschem will emit the relevant .save line in the netlist.
Similarly if ypu put a devices/ammeter.sym
device in a branch the branch current will be saved. So you don't have to write complex ,save .... lines.Stefan Schippers
04/19/2023, 6:03 PMHarald Pretl
04/19/2023, 6:06 PMLarry Harris
04/19/2023, 6:07 PMLarry Harris
04/25/2023, 12:35 PMHarald Pretl
04/25/2023, 2:04 PMgear
shows weak numerical damping, trap
has no damping, so you might try that. In addition, BSIM are poor models for precision analog, PSP would be better, but this is beyond your control. Also, make sure that the GMIN
parameter is set low enough so that unwanted leakage currents do not affect your simulation.Harald Pretl
04/25/2023, 2:06 PMLarry Harris
04/25/2023, 3:16 PMHarald Pretl
04/25/2023, 7:43 PMHarald Pretl
04/25/2023, 7:50 PM