summaryrefslogtreecommitdiff
path: root/MIL_testing/simulation.cir
blob: 8b0701de82715ccde516f9c5e8d8712c4b0282c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
* simulation.cir
* Testbench for HP Memristor
.options savecurrents
.save all

.include "hp_memristor.cir"

* Voltage source
.param Vin = ${VOLTAGE_IN}
.param Vlast = ${VOLTAGE_LAST}
V1 in 0 PULSE(VOLTAGE_LAST VOLTAGE_IN 0 1u 1u 1m 3m)

* Memristor
XMEM in out memristor 
+ Ron=1k 
+ Roff=100k 
+ Rinit=80k 
+ D=10n 
+ uv=10f 
+ p=1

* Load resistor
Rload out 0 1k

.tran 1u 100m uic

.control

run
write simulation.raw
quit

.endc
.end