summaryrefslogtreecommitdiff
path: root/Netlist/op-amp.cir
diff options
context:
space:
mode:
authorAmbikeshwar2016-05-25 14:21:10 +0530
committerAmbikeshwar2016-05-25 14:21:10 +0530
commit10ffe344f141a49496b85cc780ffe85d7f084219 (patch)
treefafeaaa6b9d3588632f9599f6f438e47340c199e /Netlist/op-amp.cir
parentb503d66fcc1e26be28b58cccf888e43f99d35ae2 (diff)
downloadNGHDL-Example-10ffe344f141a49496b85cc780ffe85d7f084219.tar.gz
NGHDL-Example-10ffe344f141a49496b85cc780ffe85d7f084219.tar.bz2
NGHDL-Example-10ffe344f141a49496b85cc780ffe85d7f084219.zip
Sample netlist addedHEADmaster
Diffstat (limited to 'Netlist/op-amp.cir')
-rw-r--r--Netlist/op-amp.cir37
1 files changed, 37 insertions, 0 deletions
diff --git a/Netlist/op-amp.cir b/Netlist/op-amp.cir
new file mode 100644
index 0000000..46a33ce
--- /dev/null
+++ b/Netlist/op-amp.cir
@@ -0,0 +1,37 @@
+*Including the predefined op-amp subcircuit file
+.include ua741.txt
+*Connections as mentioned in subcircuit file
+
+.tran 1n 100n 0
+x1 1 2 3 4 5 UA741
+R1 an1 2 1k
+R2 an2 1 1k
+R3 5 2 2k
+R4 1 0 2k
+R5 5 out 1k
+R6 out 0 1k
+
+vin1 in1_an 0 PULSE (2 0 0 .0000001ns 0.0000001ns 50ns 100ns)
+vin2 in2_an 0 PULSE (2 0 0 .0000001ns 0.0000001ns 10ns 20ns)
+
+rin1 in1_an 0 1Meg
+rin2 in2_an 0 1Meg
+a1 [in1] [in2] [dg1] and_gate
+.model and_gate and_nghdl(instance_id = 12 rise_delay = 1.0e-10 fall_delay = 1.0e-10 stop_time=90n)
+.model or_gate or_nghdl(instance_id = 11 rise_delay = 1.0e-10 fall_delay = 1.0e-10 stop_time=90n)
+a2 [in1] [in2] [dg2] or_gate
+
+*adc_bridge
+aconverter1 [in1_an in2_an] [in1 in2] adc
+*dac_bridge
+aconverter2 [dg1 dg2] [an1 an2] dac
+.model adc adc_bridge ( in_low =0.5 in_high =1.0
++ rise_delay =1.0e-10 fall_delay =1.0e-10)
+.model dac dac_bridge(out_low = 0.0 out_high = 2.0 out_undef = 1.0
++ input_load = 5.0e-14 t_rise = 1.0e-10 t_fall = 1.0e-10)
+
+
+vcc 3 0 dc 15v
+vee 4 0 dc -15v
+*Giving a sinusoidal input
+.end