From 608e5b59182144634c82912e52a57393f157518d Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Fri, 31 Jan 2014 03:11:09 +1100 Subject: Changed from comparison to equality and added symbol --- CMOS/comparison.asc | 169 ---------------------------------------------------- CMOS/equality.asc | 169 ++++++++++++++++++++++++++++++++++++++++++++++++++++ CMOS/equality.asy | 22 +++++++ 3 files changed, 191 insertions(+), 169 deletions(-) delete mode 100644 CMOS/comparison.asc create mode 100644 CMOS/equality.asc create mode 100644 CMOS/equality.asy (limited to 'CMOS') diff --git a/CMOS/comparison.asc b/CMOS/comparison.asc deleted file mode 100644 index 411a864..0000000 --- a/CMOS/comparison.asc +++ /dev/null @@ -1,169 +0,0 @@ -Version 4 -SHEET 1 944 868 -WIRE -400 -240 -448 -240 -WIRE -128 -240 -320 -240 -WIRE 128 -240 -128 -240 -WIRE 704 -240 128 -240 -WIRE -448 -208 -448 -240 -WIRE 448 -176 224 -176 -WIRE -128 -128 -128 -240 -WIRE 128 -128 128 -240 -WIRE 448 -128 448 -176 -WIRE 704 -128 704 -240 -WIRE -224 -112 -592 -112 -WIRE -176 -112 -224 -112 -WIRE 80 -112 32 -112 -WIRE 400 -112 288 -112 -WIRE 656 -112 560 -112 -WIRE -224 -16 -224 -112 -WIRE 32 -16 32 -112 -WIRE 32 -16 -224 -16 -WIRE -592 48 -592 -112 -WIRE -592 48 -784 48 -WIRE -544 48 -592 48 -WIRE 288 48 288 -112 -WIRE 288 48 -432 48 -WIRE 560 48 560 -112 -WIRE 560 48 288 48 -WIRE -128 64 -128 -32 -WIRE 128 64 128 -32 -WIRE 448 64 448 -32 -WIRE 704 64 704 -32 -WIRE -176 80 -288 80 -WIRE 80 80 -32 80 -WIRE 400 80 352 80 -WIRE 656 80 608 80 -WIRE 352 176 352 80 -WIRE 352 176 -384 176 -WIRE 608 176 608 80 -WIRE 608 176 352 176 -WIRE 128 208 128 160 -WIRE 224 208 224 -176 -WIRE 224 208 128 208 -WIRE -128 272 -128 160 -WIRE 128 272 -128 272 -WIRE 448 272 448 160 -WIRE 448 272 128 272 -WIRE 704 272 704 160 -WIRE 704 272 448 272 -WIRE 864 272 704 272 -WIRE -592 352 -784 352 -WIRE -544 352 -592 352 -WIRE -384 352 -384 176 -WIRE -384 352 -432 352 -WIRE -128 384 -128 272 -WIRE 128 384 128 272 -WIRE 448 384 448 272 -WIRE 704 384 704 272 -WIRE -224 464 -224 -16 -WIRE -176 464 -224 464 -WIRE 32 464 32 -16 -WIRE 80 464 32 464 -WIRE 288 464 288 48 -WIRE 400 464 288 464 -WIRE 560 464 560 48 -WIRE 656 464 560 464 -WIRE -592 512 -592 352 -WIRE -288 512 -288 80 -WIRE -288 512 -592 512 -WIRE -32 512 -32 80 -WIRE -32 512 -288 512 -WIRE 352 512 -32 512 -WIRE 608 512 352 512 -WIRE -384 560 -384 352 -WIRE 32 560 -384 560 -WIRE -128 576 -128 480 -WIRE 128 576 128 480 -WIRE 448 576 448 480 -WIRE 704 576 704 480 -WIRE -384 656 -384 560 -WIRE -176 656 -384 656 -WIRE 32 656 32 560 -WIRE 80 656 32 656 -WIRE 352 656 352 512 -WIRE 400 656 352 656 -WIRE 608 656 608 512 -WIRE 656 656 608 656 -WIRE -400 784 -448 784 -WIRE -128 784 -128 672 -WIRE -128 784 -320 784 -WIRE 128 784 128 672 -WIRE 128 784 -128 784 -WIRE 448 784 448 672 -WIRE 448 784 128 784 -WIRE 704 784 704 672 -WIRE 704 784 448 784 -WIRE -448 816 -448 784 -FLAG -448 816 0 -FLAG -448 -208 0 -FLAG -784 48 A -IOPIN -784 48 In -FLAG -784 352 B -IOPIN -784 352 In -FLAG 864 272 Y -IOPIN 864 272 Out -SYMBOL pmos -176 -32 M180 -SYMATTR InstName M1 -SYMATTR Value P-ENH -SYMBOL pmos -176 160 M180 -SYMATTR InstName M2 -SYMATTR Value P-ENH -SYMBOL pmos 80 -32 M180 -SYMATTR InstName M3 -SYMATTR Value P-ELOW -SYMBOL pmos 80 160 M180 -SYMATTR InstName M4 -SYMATTR Value P-ELOW -SYMBOL pmos 400 -32 M180 -SYMATTR InstName M5 -SYMATTR Value P-ELOW -SYMBOL pmos 400 160 M180 -SYMATTR InstName M6 -SYMATTR Value P-ELOW -SYMBOL pmos 656 -32 M180 -SYMATTR InstName M7 -SYMATTR Value P-ENH -SYMBOL pmos 656 160 M180 -SYMATTR InstName M8 -SYMATTR Value P-ENH -SYMBOL voltage -304 -240 R90 -WINDOW 0 -32 56 VBottom 0 -WINDOW 3 32 56 VTop 0 -SYMATTR InstName V1 -SYMATTR Value 1 -SYMBOL nmos -176 384 R0 -SYMATTR InstName M9 -SYMATTR Value N-ENH -SYMBOL nmos -176 576 R0 -SYMATTR InstName M10 -SYMATTR Value N-ELOW -SYMBOL nmos 80 384 R0 -SYMATTR InstName M11 -SYMATTR Value N-ELOW -SYMBOL nmos 80 576 R0 -SYMATTR InstName M12 -SYMATTR Value N-ENH -SYMBOL nmos 400 384 R0 -SYMATTR InstName M13 -SYMATTR Value N-ENH -SYMBOL nmos 400 576 R0 -SYMATTR InstName M14 -SYMATTR Value N-ELOW -SYMBOL nmos 656 384 R0 -SYMATTR InstName M15 -SYMATTR Value N-ELOW -SYMBOL nmos 656 576 R0 -SYMATTR InstName M16 -SYMATTR Value N-ENH -SYMBOL voltage -304 784 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 V2 -SYMATTR Value -1 -SYMBOL standard_inverter -496 0 R0 -SYMATTR InstName U1 -SYMBOL standard_inverter -496 304 R0 -SYMATTR InstName U2 -TEXT -752 624 Left 0 !.inc ./custom.mos diff --git a/CMOS/equality.asc b/CMOS/equality.asc new file mode 100644 index 0000000..411a864 --- /dev/null +++ b/CMOS/equality.asc @@ -0,0 +1,169 @@ +Version 4 +SHEET 1 944 868 +WIRE -400 -240 -448 -240 +WIRE -128 -240 -320 -240 +WIRE 128 -240 -128 -240 +WIRE 704 -240 128 -240 +WIRE -448 -208 -448 -240 +WIRE 448 -176 224 -176 +WIRE -128 -128 -128 -240 +WIRE 128 -128 128 -240 +WIRE 448 -128 448 -176 +WIRE 704 -128 704 -240 +WIRE -224 -112 -592 -112 +WIRE -176 -112 -224 -112 +WIRE 80 -112 32 -112 +WIRE 400 -112 288 -112 +WIRE 656 -112 560 -112 +WIRE -224 -16 -224 -112 +WIRE 32 -16 32 -112 +WIRE 32 -16 -224 -16 +WIRE -592 48 -592 -112 +WIRE -592 48 -784 48 +WIRE -544 48 -592 48 +WIRE 288 48 288 -112 +WIRE 288 48 -432 48 +WIRE 560 48 560 -112 +WIRE 560 48 288 48 +WIRE -128 64 -128 -32 +WIRE 128 64 128 -32 +WIRE 448 64 448 -32 +WIRE 704 64 704 -32 +WIRE -176 80 -288 80 +WIRE 80 80 -32 80 +WIRE 400 80 352 80 +WIRE 656 80 608 80 +WIRE 352 176 352 80 +WIRE 352 176 -384 176 +WIRE 608 176 608 80 +WIRE 608 176 352 176 +WIRE 128 208 128 160 +WIRE 224 208 224 -176 +WIRE 224 208 128 208 +WIRE -128 272 -128 160 +WIRE 128 272 -128 272 +WIRE 448 272 448 160 +WIRE 448 272 128 272 +WIRE 704 272 704 160 +WIRE 704 272 448 272 +WIRE 864 272 704 272 +WIRE -592 352 -784 352 +WIRE -544 352 -592 352 +WIRE -384 352 -384 176 +WIRE -384 352 -432 352 +WIRE -128 384 -128 272 +WIRE 128 384 128 272 +WIRE 448 384 448 272 +WIRE 704 384 704 272 +WIRE -224 464 -224 -16 +WIRE -176 464 -224 464 +WIRE 32 464 32 -16 +WIRE 80 464 32 464 +WIRE 288 464 288 48 +WIRE 400 464 288 464 +WIRE 560 464 560 48 +WIRE 656 464 560 464 +WIRE -592 512 -592 352 +WIRE -288 512 -288 80 +WIRE -288 512 -592 512 +WIRE -32 512 -32 80 +WIRE -32 512 -288 512 +WIRE 352 512 -32 512 +WIRE 608 512 352 512 +WIRE -384 560 -384 352 +WIRE 32 560 -384 560 +WIRE -128 576 -128 480 +WIRE 128 576 128 480 +WIRE 448 576 448 480 +WIRE 704 576 704 480 +WIRE -384 656 -384 560 +WIRE -176 656 -384 656 +WIRE 32 656 32 560 +WIRE 80 656 32 656 +WIRE 352 656 352 512 +WIRE 400 656 352 656 +WIRE 608 656 608 512 +WIRE 656 656 608 656 +WIRE -400 784 -448 784 +WIRE -128 784 -128 672 +WIRE -128 784 -320 784 +WIRE 128 784 128 672 +WIRE 128 784 -128 784 +WIRE 448 784 448 672 +WIRE 448 784 128 784 +WIRE 704 784 704 672 +WIRE 704 784 448 784 +WIRE -448 816 -448 784 +FLAG -448 816 0 +FLAG -448 -208 0 +FLAG -784 48 A +IOPIN -784 48 In +FLAG -784 352 B +IOPIN -784 352 In +FLAG 864 272 Y +IOPIN 864 272 Out +SYMBOL pmos -176 -32 M180 +SYMATTR InstName M1 +SYMATTR Value P-ENH +SYMBOL pmos -176 160 M180 +SYMATTR InstName M2 +SYMATTR Value P-ENH +SYMBOL pmos 80 -32 M180 +SYMATTR InstName M3 +SYMATTR Value P-ELOW +SYMBOL pmos 80 160 M180 +SYMATTR InstName M4 +SYMATTR Value P-ELOW +SYMBOL pmos 400 -32 M180 +SYMATTR InstName M5 +SYMATTR Value P-ELOW +SYMBOL pmos 400 160 M180 +SYMATTR InstName M6 +SYMATTR Value P-ELOW +SYMBOL pmos 656 -32 M180 +SYMATTR InstName M7 +SYMATTR Value P-ENH +SYMBOL pmos 656 160 M180 +SYMATTR InstName M8 +SYMATTR Value P-ENH +SYMBOL voltage -304 -240 R90 +WINDOW 0 -32 56 VBottom 0 +WINDOW 3 32 56 VTop 0 +SYMATTR InstName V1 +SYMATTR Value 1 +SYMBOL nmos -176 384 R0 +SYMATTR InstName M9 +SYMATTR Value N-ENH +SYMBOL nmos -176 576 R0 +SYMATTR InstName M10 +SYMATTR Value N-ELOW +SYMBOL nmos 80 384 R0 +SYMATTR InstName M11 +SYMATTR Value N-ELOW +SYMBOL nmos 80 576 R0 +SYMATTR InstName M12 +SYMATTR Value N-ENH +SYMBOL nmos 400 384 R0 +SYMATTR InstName M13 +SYMATTR Value N-ENH +SYMBOL nmos 400 576 R0 +SYMATTR InstName M14 +SYMATTR Value N-ELOW +SYMBOL nmos 656 384 R0 +SYMATTR InstName M15 +SYMATTR Value N-ELOW +SYMBOL nmos 656 576 R0 +SYMATTR InstName M16 +SYMATTR Value N-ENH +SYMBOL voltage -304 784 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 V2 +SYMATTR Value -1 +SYMBOL standard_inverter -496 0 R0 +SYMATTR InstName U1 +SYMBOL standard_inverter -496 304 R0 +SYMATTR InstName U2 +TEXT -752 624 Left 0 !.inc ./custom.mos diff --git a/CMOS/equality.asy b/CMOS/equality.asy new file mode 100644 index 0000000..c6470ce --- /dev/null +++ b/CMOS/equality.asy @@ -0,0 +1,22 @@ +Version 4 +SymbolType CELL +LINE Normal 48 64 32 64 +LINE Normal 32 64 32 56 +LINE Normal 64 64 48 64 +LINE Normal -32 48 -48 48 +LINE Normal -32 80 -48 80 +LINE Normal 32 32 -32 32 +LINE Normal 32 96 32 32 +LINE Normal -32 96 32 96 +LINE Normal -32 32 -32 96 +TEXT 0 52 Center 0 = +SYMATTR Description 2-input equality gate +PIN -48 48 NONE 0 +PINATTR PinName A +PINATTR SpiceOrder 1 +PIN -48 80 NONE 0 +PINATTR PinName B +PINATTR SpiceOrder 2 +PIN 64 64 NONE 0 +PINATTR PinName Y +PINATTR SpiceOrder 3 -- cgit