* C:\Users\Chandanatejaswini\eSim-Workspace\comp9\comp9.cir
.lib "models/sky130.lib.spice" tt
.include 2_or.sub
.include 2_and.sub

*U1  p0 p1 p2 vdd w1 w0 PORT		
X1  vdd p0 p1 Net-_X1-Pad4_ 2_and		
X2  vdd Net-_X1-Pad4_ p2 w0 2_or		
X3  vdd p0 p1 w1 2_or	

Vdd vdd 0 3.3
Vd0 p0 0 pulse(0 1.8 0s 0s 0s 2us 4us)
Vd1 p1 0 pulse(0 1.8 0s 0s 0s 3us 6us)
Vd2 p2 0 pulse(0 1.8 0s 0s 0s 4us 8us)

.tran 0.1us 20us

.control
run
plot V(p0)
plot V(p1)
plot V(p2)
plot V(w0)
plot V(w1)

.endc		

.end
