Stefan Schippers
03/21/2024, 4:10 PMsky130_tests/tb_reram.sch
. You can try to simulate this example just to verify all the needed files are present. Most likely you need to get openvaf (there is also a newer "noise" enabled version, I have not tested this so far) and build the osdi module:
clone this repo: https://github.com/barakhoffer/sky130_ngspice_reram.git
cd into it and into the ngspice/
directory, then compile the verilogA module:
$ openvaf <http://sky130_fd_pr_reram__reram_module.va|sky130_fd_pr_reram__reram_module.va>
Finished building <http://sky130_fd_pr_reram__reram_module.va|sky130_fd_pr_reram__reram_module.va> in 0.20s
Then copy the generated osdi file into the pdk:
cp sky130_fd_pr_reram__reram_module.osdi /.../.../share/pdk/sky130B/libs.tech/combined/sky130_fd_pr_reram__reram_module.osdi
open_pdks provides the osdi module but in most cases it must be compiled on the same machine where ngspice runs.