[go: nahoru, domu]

Skip to content

Commit

Permalink
Yakopcic model in Xyce
Browse files Browse the repository at this point in the history
  • Loading branch information
timmolter committed Jan 15, 2017
1 parent 952412d commit 14dae52
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Yakopcic/Xyce/README.md
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"
17 changes: 17 additions & 0 deletions Yakopcic/Xyce/yakopcic.cir
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

0 comments on commit 14dae52

Please sign in to comment.