description | org-babel functions for spice evaluation. |
owner | numbchild@gmail.com |
last change | Wed, 30 Aug 2023 01:28:21 +0000 (30 09:28 +0800) |
URL | git://repo.or.cz/ob-spice.git |
| https://repo.or.cz/ob-spice.git |
push URL | ssh://repo.or.cz/ob-spice.git |
| https://repo.or.cz/ob-spice.git (learn more) |
bundle info | ob-spice.git downloadable bundles |
content tags
|
|
README
* History
ob-spice is now being maintained at https://repo.or.cz/ob-spice.
This package was originally written by [[https://github.com/tiagoweber][Tiago Weber]].
You can find more (potentially outdated) information by him about
this package [[http://tiagoweber.github.io/blog/entry1.html][here]]
and [[http://tiagoweber.github.io/blog/entry4.html][here]].
* Usage
** Example
#+BEGIN_SRC org
,#+BEGIN_SRC spice :results drawer :exports both :var file="data/images/spice-example"
,*Virtual Ground Test: opamp gain = 1000
vin in 0 dc 0V sin(0 0.1 100Hz)
r1 in inn 10k
r2 inn out 10k
EOpamp out 0 0 inn 1000
.tran 0.1ms 0.05s
.print tran v(in)
.meas tran vtest find v(in) at=0.04e-3
.end
.control
run
set gnuplot_terminal=png
gnuplot $file v(in) v(out) v(inn)
.endc
,#+END_SRC
,#+RESULTS:
:RESULTS:
,#+ATTR_HTML: :width 600px
[[file:./data/images/spice-example.png]]
:END:
#+END_SRC