diff options
author | Ambikeshwar | 2016-05-25 14:21:10 +0530 |
---|---|---|
committer | Ambikeshwar | 2016-05-25 14:21:10 +0530 |
commit | 10ffe344f141a49496b85cc780ffe85d7f084219 (patch) | |
tree | fafeaaa6b9d3588632f9599f6f438e47340c199e /Netlist/test2.cir | |
parent | b503d66fcc1e26be28b58cccf888e43f99d35ae2 (diff) | |
download | NGHDL-Example-10ffe344f141a49496b85cc780ffe85d7f084219.tar.gz NGHDL-Example-10ffe344f141a49496b85cc780ffe85d7f084219.tar.bz2 NGHDL-Example-10ffe344f141a49496b85cc780ffe85d7f084219.zip |
Diffstat (limited to 'Netlist/test2.cir')
-rw-r--r-- | Netlist/test2.cir | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/Netlist/test2.cir b/Netlist/test2.cir new file mode 100644 index 0000000..9f9f33a --- /dev/null +++ b/Netlist/test2.cir @@ -0,0 +1,55 @@ + +*** input sources *** + +*v1 100 0 DC PWL ( 0n 0.0 5n 0.0 5.1n 2.0 10n 2.0 10.1n 2.0 15n 2.0 15.1n 0.0 20.0n 0.0 20.1n 2.0 25n 2.0 25.1n 0.0 30n 0.0 30.1n 2.0 +* +40.0 2.0 40.1n 0.0 50n 0.0 50.1n 2.0 60n 2.0 60.1n 0.0 70n 0.0 70.1n 2.0 80n 2.0 80.1n 0.0 90n 0.0 100n 0.0) + +*v2 200 0 DC PWL (0n 2.0 5n 2.0 10n 2.0 15n 2.0 15.1n 0.0 20n 0.0 25n 0.0 30n 0.0 30.1n 2.0 40n 2.0 40.1n 0.0 45n 0.0 45.1n 2.0 +* + 50n 2.0 50.1n 0.0 60.0n 0.0 70n 0.0 80n 0.0 90n 0.0 95n 0.0 95.1n 2.0 100n 2.0) + +vin1 100 0 PULSE (5 0 0 .0000001ns 0.0000001ns 50ns 100ns) +vin2 200 0 PULSE (5 0 0 .0000001ns 0.0000001ns 10ns 20ns) +vin3 300 0 PULSE (5 0 0 .0000001ns 0.0000001ns 20ns 40ns) +vin4 400 0 PULSE (5 0 0 .0000001ns 0.0000001ns 30ns 60ns) + +Vvdd vdd 0 DC 2.0 + +*** resistors to ground *** +r1 100 0 1k +r2 200 0 1k +r3 300 0 1k +r4 400 0 1k + +* +*** adc_bridge blocks *** +aconverter1 [100 200 300 400] [1 2 3 4] adc + +aor1 [1] [2] [12] or1 +and1 [3] [4] [34] and_gate +axor [12] [34] [1234] axors +adac1 [1234] [out] dac + +*************model*********** + +.model axors myxor(instance_id = 112 rise_delay = 1.0e-10 fall_delay = 1.0e-10 stop_time=90n) +.model and_gate and_nghdl(instance_id = 14 rise_delay = 1.0e-10 fall_delay = 1.0e-10 stop_time=90n) + +.model or1 or_nghdl(instance_id = 11 rise_delay = 1.0e-10 fall_delay = 1.0e-10 stop_time=90n) + +.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) + + +.end + + + +.CONTROL + +option noopalter +tran .1n 100n +.ENDC + |