summaryrefslogtreecommitdiff
path: root/Netlist/counter.cir
diff options
context:
space:
mode:
authorAmbikeshwar2016-05-25 14:21:10 +0530
committerAmbikeshwar2016-05-25 14:21:10 +0530
commit10ffe344f141a49496b85cc780ffe85d7f084219 (patch)
treefafeaaa6b9d3588632f9599f6f438e47340c199e /Netlist/counter.cir
parentb503d66fcc1e26be28b58cccf888e43f99d35ae2 (diff)
downloadNGHDL-Example-master.tar.gz
NGHDL-Example-master.tar.bz2
NGHDL-Example-master.zip
Sample netlist addedHEADmaster
Diffstat (limited to 'Netlist/counter.cir')
-rw-r--r--Netlist/counter.cir39
1 files changed, 39 insertions, 0 deletions
diff --git a/Netlist/counter.cir b/Netlist/counter.cir
new file mode 100644
index 0000000..b182aea
--- /dev/null
+++ b/Netlist/counter.cir
@@ -0,0 +1,39 @@
+* analysis type *
+.tran 1us 200us 0us
+
+*
+* input sources *
+*V1 100 0 PWL ( 0u 0 0.0000000005u 5.0 10u 5.0 10.00000000005u 0.0 20u 0.0 20.00000000005u 0.0 30u 0.0 30.00000000005u 0.0 40u 0.0 40.00000000005u 0.0 50u 0.0 50.00000000005u 0.0 60u 0.0 60.00000000005u 0.0 70u 0.0 70.00000000005u 0.0 80u 0.0 80.00000000005u 0.0 90u 0.0 90.00000000005u 0.0 100u 0.0)
+*V1 100 0 DC 2.0
+*V2 200 0 PWL ( 0u 2.0 0.00000000005u 0 5u 0.0 5.00000000005u 2.0 10u 2.0 10.00000000005u 0.0 15u 0.0 15.00000000005u 2.0 20u 2 20.00000000005u 0.0 25u 0.0 25.00000000005u 2.0 30u 2.0 30.00000000005u 0.0 40u 0.0 40.00000000005u 2.0 50u 2.0 50.00000000005u 0.0 60u 0.0 60.00000000005u 2.0 70u 2.0 70.00000000005u 0.0 80u 0.0 80.00000000005u 2.0 90u 2.0 90.00000000005u 0.0 100u 0.0 100.00000000005u 2.0)
+V1 200 0 PULSE (2 0 0 .0000001ns 0.0000001ns 70us 140us)
+V2 100 0 PULSE (2 0 0 .0000001ns 0.0000001ns 10us 20us)
+
+
+* resistors to ground *
+r1 100 0 1Meg
+r2 200 0 1Meg
+
+rload1 300 0 1Meg
+rload2 400 0 1Meg
+rload3 500 0 1Meg
+rload4 600 0 1Meg
+
+*
+* adc_bridge blocks *
+aconverter1 [100 200] [1 2] adc_bridge1
+
+.model adc_bridge1 adc_bridge ( in_low =0.3 in_high =0.7
++ rise_delay =1.0e-12 fall_delay =1.0e-12)
+
+ac1 [1] [2] [3 4 5 6] count1
+
+.model count1 counter(rise_delay = 1.0e-7 fall_delay = 1.0e-7 stop_time= 190.0e-6)
+
+* dac_bridge blocks *
+aconverter2 [3 4 5 6] [300 400 500 600] dac_bridge1
+
+.model dac_bridge1 dac_bridge( out_low=0.25 out_high=5.0
++out_undef=1.8 t_rise=0.5e-9 t_fall=0.5e-9)
+
+.end