<@U06MNL0L0TT> xschem in the sky130B setup (expor...
# reram
s
@Konnor Kivimagi xschem in the sky130B setup (export PDK_ROOT=/..../share/pdk, export PDK=sky130B ) has a
sky130_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:
Copy code
$ 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:
Copy code
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.