summaryrefslogtreecommitdiff
path: root/src/custom_memristor.sub
diff options
context:
space:
mode:
authorTanner Robison <[email protected]>2026-07-06 10:35:32 -0700
committerTanner Robison <[email protected]>2026-07-07 15:42:48 -0700
commite2b30976cdaccf9d2b9820fefa22ced03c82711f (patch)
tree99f1d6d5824882a533f46f1819138ec5196abed3 /src/custom_memristor.sub
parent3a17db637fd41015df26f1cceb0d1c098e85d436 (diff)
readout layer trained
verified with time-series forecasting task and plotted
Diffstat (limited to 'src/custom_memristor.sub')
-rw-r--r--src/custom_memristor.sub14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/custom_memristor.sub b/src/custom_memristor.sub
new file mode 100644
index 0000000..bd909c8
--- /dev/null
+++ b/src/custom_memristor.sub
@@ -0,0 +1,14 @@
+* This is completely ai generated to be honest
+* Custom Behavioral Memristor Model
+.subckt custom_memristor plus minus state_node
+* Internal state capacitor to store value 'w'
+Cstate state_node 0 1IC=0.1
+
+* Example behavioral state derivative derivative equation (dw/dt)
+* Gbar represents the rate of change based on voltage across plus and minus
+Gstate 0 state_node value={V(plus,minus) * 1e3}
+
+* Behavioral current equation (I = V / R(w))
+* Resistance varies inversely with the voltage at 'state_node'
+Gmem plus minus value={V(plus,minus) / (100 + (10000 * (1 - V(state_node))))}
+.ends custom_memristor