summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2014-02-10 10:10:00 +1100
committerJed Barber <jjbarber@y7mail.com>2014-02-10 10:10:00 +1100
commit9ce10f3e9f74e3d5cf97cced0f01266189a095ee (patch)
tree0106b8400cb89451a2a19691b2582b3652f65a08
parentb7a4c18177c73cd9de206423ab732314adb66e77 (diff)
Fixed XOR gate
-rw-r--r--CMOS/xor.asc120
1 files changed, 71 insertions, 49 deletions
diff --git a/CMOS/xor.asc b/CMOS/xor.asc
index a26aae2..be464c6 100644
--- a/CMOS/xor.asc
+++ b/CMOS/xor.asc
@@ -1,5 +1,5 @@
Version 4
-SHEET 1 1068 724
+SHEET 1 1472 724
WIRE -432 -224 -480 -224
WIRE -80 -224 -352 -224
WIRE 176 -224 -80 -224
@@ -9,47 +9,54 @@ WIRE 176 -160 176 -224
WIRE -128 -144 -176 -144
WIRE 128 -144 80 -144
WIRE 464 -112 272 -112
-WIRE 736 -112 464 -112
-WIRE 880 -112 736 -112
+WIRE 1008 -112 464 -112
+WIRE 1392 -112 1008 -112
WIRE -176 -48 -176 -144
WIRE -176 -48 -480 -48
WIRE 16 -48 -176 -48
WIRE 368 -48 16 -48
+WIRE 736 -48 576 -48
+WIRE 1280 -48 1120 -48
WIRE 80 0 80 -144
-WIRE 80 0 -240 0
+WIRE 80 0 -272 0
+WIRE 640 0 80 0
WIRE -80 32 -80 -64
WIRE 176 32 176 -64
WIRE 464 32 464 -112
-WIRE 736 32 736 -112
-WIRE -640 48 -720 48
+WIRE 736 32 736 -48
+WIRE 1008 32 1008 -112
+WIRE 1280 32 1280 -48
WIRE -480 48 -480 -48
WIRE -480 48 -560 48
WIRE -432 48 -480 48
-WIRE -240 48 -240 0
-WIRE -240 48 -320 48
-WIRE -128 48 -176 48
+WIRE -272 48 -272 0
+WIRE -272 48 -320 48
+WIRE -128 48 -224 48
WIRE 128 48 80 48
WIRE 368 112 368 -48
WIRE 416 112 368 112
+WIRE 640 112 640 0
WIRE 688 112 640 112
-WIRE -720 208 -720 48
-WIRE -720 208 -800 208
+WIRE 960 112 912 112
+WIRE 1232 112 1184 112
+WIRE -272 208 -272 48
+WIRE -176 208 -272 208
WIRE -80 208 -80 128
WIRE 176 208 176 128
WIRE 176 208 -80 208
WIRE 272 208 272 -112
WIRE 272 208 176 208
-WIRE -800 240 -800 208
WIRE -80 288 -80 208
WIRE 176 288 176 208
WIRE 464 288 464 128
WIRE 736 288 736 128
-WIRE -720 368 -720 208
-WIRE -640 368 -720 368
+WIRE 1008 288 1008 128
+WIRE 1280 288 1280 128
WIRE -480 368 -560 368
WIRE -432 368 -480 368
-WIRE -176 368 -176 48
-WIRE -176 368 -320 368
+WIRE -224 368 -224 48
+WIRE -224 368 -320 368
+WIRE -176 368 -176 208
WIRE -128 368 -176 368
WIRE 80 368 80 48
WIRE 128 368 80 368
@@ -57,19 +64,32 @@ WIRE 368 368 368 112
WIRE 416 368 368 368
WIRE 640 368 640 112
WIRE 688 368 640 368
+WIRE 912 368 912 112
+WIRE 960 368 912 368
+WIRE 1184 368 1184 112
+WIRE 1232 368 1184 368
+WIRE 464 416 464 384
+WIRE 576 416 576 -48
+WIRE 576 416 464 416
+WIRE 1008 416 1008 384
+WIRE 1120 416 1120 -48
+WIRE 1120 416 1008 416
WIRE -480 464 -480 368
WIRE 80 464 80 368
WIRE 80 464 -480 464
-WIRE 640 464 640 368
-WIRE 640 464 80 464
+WIRE 912 464 912 368
+WIRE 912 464 80 464
WIRE -80 480 -80 384
WIRE 176 480 176 384
-WIRE 464 512 464 384
WIRE 736 512 736 384
-WIRE -240 560 -240 48
-WIRE -128 560 -240 560
+WIRE 1280 512 1280 384
+WIRE -224 560 -224 368
+WIRE -128 560 -224 560
WIRE 16 560 16 -48
WIRE 128 560 16 560
+WIRE -224 608 -224 560
+WIRE 1184 608 1184 368
+WIRE 1184 608 -224 608
WIRE -432 640 -480 640
WIRE -80 640 -80 576
WIRE -80 640 -352 640
@@ -78,9 +98,14 @@ WIRE 176 640 -80 640
WIRE -480 672 -480 640
FLAG -480 -192 0
FLAG -480 672 0
-FLAG -800 240 0
FLAG 736 512 0
-FLAG 464 512 0
+FLAG 1280 512 0
+FLAG -560 48 A
+IOPIN -560 48 In
+FLAG -560 368 B
+IOPIN -560 368 In
+FLAG 1392 -112 Y
+IOPIN 1392 -112 Out
SYMBOL pmos -128 -64 M180
SYMATTR InstName M1
SYMATTR Value P-ENH
@@ -119,35 +144,32 @@ WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value -1
-SYMBOL ternary-logic\\CMOS\\standard_inverter -384 0 R0
-SYMATTR InstName X1
-SYMBOL ternary-logic\\CMOS\\standard_inverter -384 320 R0
-SYMATTR InstName X2
-SYMBOL voltage -544 48 R90
-WINDOW 0 -32 56 VBottom 0
-WINDOW 3 32 56 VTop 0
-WINDOW 123 0 0 Left 0
-WINDOW 39 0 0 Left 0
-SYMATTR InstName A
-SYMATTR Value -1
-SYMBOL voltage -544 368 R90
-WINDOW 0 -32 56 VBottom 0
-WINDOW 3 32 56 VTop 0
-WINDOW 123 0 0 Left 0
-WINDOW 39 0 0 Left 0
-SYMATTR InstName B
-SYMATTR Value SINE(0 1 2)
-SYMBOL pmos 416 32 R0
+SYMBOL nmos 688 32 R0
SYMATTR InstName M9
-SYMATTR Value P-DLOW
-SYMBOL pmos 688 32 R0
+SYMATTR Value N-DLOW
+SYMBOL nmos 416 32 R0
SYMATTR InstName M10
-SYMATTR Value P-DLOW
-SYMBOL nmos 416 288 R0
-SYMATTR InstName M11
SYMATTR Value N-DLOW
-SYMBOL nmos 688 288 R0
+SYMBOL pmos 416 288 R0
+SYMATTR InstName M11
+SYMATTR Value P-DLOW
+SYMBOL pmos 688 288 R0
SYMATTR InstName M12
+SYMATTR Value P-DLOW
+SYMBOL standard_inverter -384 0 R0
+SYMATTR InstName X1
+SYMBOL standard_inverter -384 320 R0
+SYMATTR InstName X2
+SYMBOL nmos 960 32 R0
+SYMATTR InstName M13
+SYMATTR Value N-DLOW
+SYMBOL nmos 1232 32 R0
+SYMATTR InstName M14
SYMATTR Value N-DLOW
+SYMBOL pmos 960 288 R0
+SYMATTR InstName M15
+SYMATTR Value P-DLOW
+SYMBOL pmos 1232 288 R0
+SYMATTR InstName M16
+SYMATTR Value P-DLOW
TEXT -64 -296 Left 0 !.inc ./custom.mos
-TEXT -820 706 Left 0 !.tran 1