Stefan Schippers
02/09/2023, 11:22 AMopenvafsky130_fd_pr_reram_git/cells/reram_cell/sky130_fd_pr_reram__reram_cell.vasky130_fd_pr_reram__reram_cell.osdipre_osd** sch_path: /home/schippes/.xschem/xschem_library/xschem_sky130/sky130_tests/tb_reram.sch
**.subckt tb_reram
N1 TOP 0 sky130_fd_pr_reram__reram_model
V1 TOP 0 PWL (0 0 1u 2 2u 0 3u -2 4.0u 0.0)
**** begin user architecture code
.control
  * Modify according to your specific location
  pre_osdi /mnt/sda7/sky130_fd_pr_reram_git/cells/reram_cell/sky130_fd_pr_reram__reram_cell.osdi
  save all
  tran 1n 4.0u
  write tb_reram.raw
.endc
** opencircuitdesign pdks install, not needed in this testbench
* .lib /home/schippes/share/pdk/sky130A/libs.tech/ngspice/sky130.lib.spice tt
**.ends
.model sky130_fd_pr_reram__reram_model sky130_fd_pr_reram__reram_cell area_ox=0.1024e-12  Tox=5.0e-9
+  Tfilament_max=4.9e-9  Tfilament_min=3.3e-9  Tfilament_0=3.5e-9  Eact_generation=1.501  Eact_recombination=1.500
+  I_k1=6.140e-5  Tfilament_ref=4.7249e-9  V_ref=0.430  velocity_k1=150  gamma_k0=16.5  gamma_k1=-1.25
+   Temperature_0=300  C_thermal=3.1825e-16  tau_thermal=0.23e-9  t_step=1.0e-9
**** end user architecture code
.endNsky130_fd_pr_reram__reram_model.model sky130_fd_pr_reram__reram_model sky130_fd_pr_reram__reram_cell.model.model sky130_fd_pr_reram__reram_model<http://sky130_fd_pr_reram__reram_cell.va|sky130_fd_pr_reram__reram_cell.va>Tim Edwards
02/09/2023, 2:04 PMpre_osdi.libStefan Schippers
02/09/2023, 2:18 PMpre_osdi.control.control
  pre_osdi <.....osdi model>
.endc
.save all
.tran 1n 2u
....control
pre_osdi <.....osdi model>
.endc
.control
  save all
  tran 1n 2u
  write tb_reram.raw
.endc