-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
## About | ||
|
||
| Model Class | Model Language | Simulator | | ||
|---|---|---| | ||
|Ill-formed|Native Xyce Device|Xyce| | ||
|
||
## Instructions | ||
|
||
See: <http://knowm.org/native-memristor-device-development-in-xyce/> | ||
|
||
## Sources | ||
|
||
1. Original Source of Yakopcic Model: <https://cyakopcic1.files.wordpress.com/2014/02/a-memristor-device-model.pdf> | ||
|
||
## How to Run Model | ||
|
||
Xyce /path/to/.../yakopcic.cir | ||
gnuplot | ||
plot '/path/to/.../yakopcic.cir.prn' using 3:4 with lines title "I-V" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
* Voltage Sources | ||
V1 1 0 SIN(0V 1.2V 1Hz) | ||
|
||
* Memristors | ||
ymemristor mr1 1 0 mrm1 | ||
|
||
|
||
.MODEL mrm1 memristor level=3 a1=0.17 a2=0.17 b=0.05 vp=0.16 vn=0.15 | ||
+ ap=4000 an=4000 xp=0.3 xn=0.5 alphap=1 alphan=5 eta=1 | ||
|
||
|
||
* Analysis Command | ||
.TRAN 1ms 1s | ||
* Output | ||
.PRINT TRAN V(1) I(V1) | ||
|
||
.END |