blob: 2df3d66fc191b92be4dfdd43d28758e7c22da519 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
* c:\users\aditya\esim-workspace\logic_gates\logic_gates.cir
.include XOR.sub
.include NOT.sub
v1 a gnd pulse(0 1.8 0 1m 1m 5 10)
v2 b gnd pulse(1.8 0 0 1m 1m 10 20)
r1 outa gnd 1000k
x1 a outa NOT
x2 b outb NOT
r2 outb gnd 1000k
xu1 a b outc XOR
r3 outc gnd 1000k
.tran 0.01e-00 50e-00 0e-00
* Control Statements
.control
run
print allv > plot_data_v.txt
print alli > plot_data_i.txt
.endc
.end
|