diff options
Diffstat (limited to 'digital ciruits/cmos_nand_dlatch')
6 files changed, 847 insertions, 0 deletions
diff --git a/digital ciruits/cmos_nand_dlatch/cmos_nand_dlatch-cache.lib b/digital ciruits/cmos_nand_dlatch/cmos_nand_dlatch-cache.lib new file mode 100644 index 0000000..d0e6eb2 --- /dev/null +++ b/digital ciruits/cmos_nand_dlatch/cmos_nand_dlatch-cache.lib @@ -0,0 +1,82 @@ +EESchema-LIBRARY Version 2.4 +#encoding utf-8 +# +# Device:R +# +DEF Device:R R 0 0 N Y 1 F N +F0 "R" 80 0 50 V V C CNN +F1 "Device:R" 0 0 50 V V C CNN +F2 "" -70 0 50 V I C CNN +F3 "" 0 0 50 H I C CNN +$FPLIST + R_* +$ENDFPLIST +DRAW +S -40 -100 40 100 0 1 10 N +X ~ 1 0 150 50 D 50 50 1 1 P +X ~ 2 0 -150 50 U 50 50 1 1 P +ENDDRAW +ENDDEF +# +# power:VDD +# +DEF power:VDD #PWR 0 0 Y Y 1 F P +F0 "#PWR" 0 -150 50 H I C CNN +F1 "power:VDD" 0 150 50 H V C CNN +F2 "" 0 0 50 H I C CNN +F3 "" 0 0 50 H I C CNN +DRAW +C 0 75 25 0 1 0 N +P 2 0 1 0 0 0 0 50 N +X VDD 1 0 0 0 U 50 50 1 1 W N +ENDDRAW +ENDDEF +# +# pspice:0 +# +DEF pspice:0 #GND 0 0 Y Y 1 F P +F0 "#GND" 0 -100 50 H I C CNN +F1 "pspice:0" 0 -70 50 H V C CNN +F2 "" 0 0 50 H I C CNN +F3 "" 0 0 50 H I C CNN +DRAW +P 4 0 1 0 -50 0 0 -50 50 0 -50 0 N +X 0 1 0 0 0 R 40 40 1 1 W N +ENDDRAW +ENDDEF +# +# pspice:VSOURCE +# +DEF pspice:VSOURCE V 0 40 Y Y 1 F N +F0 "V" -250 300 50 H V C CNN +F1 "pspice:VSOURCE" 0 0 50 H V C CNN +F2 "" 0 0 50 H I C CNN +F3 "" 0 0 50 H I C CNN +DRAW +C 0 0 200 0 1 0 N +T 0 -320 -10 50 0 0 1 V Normal 0 C C +P 2 0 1 0 -250 -250 -250 150 F +P 3 0 1 0 -300 150 -250 250 -200 150 F +X E1 1 0 300 100 D 50 50 1 1 I +X E2 2 0 -300 100 U 50 50 1 1 I +ENDDRAW +ENDDEF +# +# sim_logic:CMOS_NAND +# +DEF sim_logic:CMOS_NAND X 0 20 Y Y 1 F N +F0 "X" 0 -400 50 H V C CNN +F1 "sim_logic:CMOS_NAND" 0 -300 50 H V C CNN +F2 "" 0 0 50 H I C CNN +F3 "" 0 0 50 H I C CNN +DRAW +A 200 0 200 -899 899 0 1 0 N 200 -200 200 200 +P 4 0 1 0 200 200 0 200 0 -200 200 -200 N +X A A -200 100 200 R 50 50 1 1 I +X B B -200 -100 200 R 50 50 1 1 I +X Out Out 600 0 200 L 50 50 1 1 O I +X VDD VDD 200 400 200 D 50 50 1 1 W +ENDDRAW +ENDDEF +# +#End Library diff --git a/digital ciruits/cmos_nand_dlatch/cmos_nand_dlatch.bak b/digital ciruits/cmos_nand_dlatch/cmos_nand_dlatch.bak new file mode 100644 index 0000000..8f57d2b --- /dev/null +++ b/digital ciruits/cmos_nand_dlatch/cmos_nand_dlatch.bak @@ -0,0 +1,352 @@ +EESchema Schematic File Version 4 +LIBS:cmos_nand_dlatch-cache +EELAYER 26 0 +EELAYER END +$Descr A4 11693 8268 +encoding utf-8 +Sheet 1 1 +Title "" +Date "" +Rev "" +Comp "" +Comment1 "" +Comment2 "" +Comment3 "" +Comment4 "" +$EndDescr +$Comp +L pspice:0 #GND01 +U 1 1 5B1AEE1C +P 1400 3800 +F 0 "#GND01" H 1400 3700 50 0001 C CNN +F 1 "0" H 1400 3887 50 0000 C CNN +F 2 "" H 1400 3800 50 0001 C CNN +F 3 "" H 1400 3800 50 0001 C CNN + 1 1400 3800 + 1 0 0 -1 +$EndComp +$Comp +L pspice:VSOURCE V1 +U 1 1 5B1AEF25 +P 1400 3050 +F 0 "V1" H 1828 3096 50 0000 L CNN +F 1 "dc 0 pulse(0 3.3 0 0 0 100m 200m)" H 1828 3005 50 0000 L CNN +F 2 "" H 1400 3050 50 0001 C CNN +F 3 "" H 1400 3050 50 0001 C CNN +F 4 "V" H 1400 3050 50 0001 C CNN "Spice_Primitive" +F 5 "dc 0 pulse(0 3.3 0 0 0 100m 200m)" H 1400 3050 50 0001 C CNN "Spice_Model" +F 6 "Y" H 1400 3050 50 0001 C CNN "Spice_Netlist_Enabled" + 1 1400 3050 + 1 0 0 -1 +$EndComp +Wire Wire Line + 1400 3800 1400 3750 +Text GLabel 4200 3300 0 50 Input ~ 0 +D +$Comp +L pspice:VSOURCE V2 +U 1 1 5B1B81D1 +P 10200 3800 +F 0 "V2" H 10628 3846 50 0000 L CNN +F 1 "3.3" H 10628 3755 50 0000 L CNN +F 2 "" H 10200 3800 50 0001 C CNN +F 3 "" H 10200 3800 50 0001 C CNN + 1 10200 3800 + 1 0 0 -1 +$EndComp +$Comp +L power:VDD #PWR01 +U 1 1 5B1B83AE +P 10200 3100 +F 0 "#PWR01" H 10200 2950 50 0001 C CNN +F 1 "VDD" H 10217 3273 50 0000 C CNN +F 2 "" H 10200 3100 50 0001 C CNN +F 3 "" H 10200 3100 50 0001 C CNN + 1 10200 3100 + 1 0 0 -1 +$EndComp +$Comp +L power:VDD #PWR02 +U 1 1 5B1B83E5 +P 6400 3100 +F 0 "#PWR02" H 6400 2950 50 0001 C CNN +F 1 "VDD" H 6417 3273 50 0000 C CNN +F 2 "" H 6400 3100 50 0001 C CNN +F 3 "" H 6400 3100 50 0001 C CNN + 1 6400 3100 + 1 0 0 -1 +$EndComp +Text Notes 1000 1100 0 80 ~ 0 +A Gated D Latch\n\nfrom https://en.wikipedia.org/wiki/Flip-flop_(electronics)#Gated_D_latch +Wire Wire Line + 1400 2250 1400 2350 +Text Notes 6550 1450 0 50 ~ 0 +.tran 1m 400m +Text Notes 9900 4850 0 50 ~ 0 +Supply voltage +Text Notes 1000 1600 0 50 ~ 0 +Notes:\n\n1. the dotted section implements a D-latch\n2. Run the simulation and plot V(D), V(E), V(Q), V(nQ)\n3. You can also export a SPICE netlist and run in ngspice +Text GLabel 1500 2250 2 50 Output ~ 0 +D +Text GLabel 1500 4200 2 50 Output ~ 0 +E +$Comp +L pspice:0 #GND04 +U 1 1 5B24BFD8 +P 10200 4500 +F 0 "#GND04" H 10200 4400 50 0001 C CNN +F 1 "0" H 10200 4587 50 0000 C CNN +F 2 "" H 10200 4500 50 0001 C CNN +F 3 "" H 10200 4500 50 0001 C CNN + 1 10200 4500 + 1 0 0 -1 +$EndComp +Wire Wire Line + 1400 2250 1500 2250 +$Comp +L pspice:0 #GND02 +U 1 1 5B24F37F +P 1400 5750 +F 0 "#GND02" H 1400 5650 50 0001 C CNN +F 1 "0" H 1400 5837 50 0000 C CNN +F 2 "" H 1400 5750 50 0001 C CNN +F 3 "" H 1400 5750 50 0001 C CNN + 1 1400 5750 + 1 0 0 -1 +$EndComp +$Comp +L pspice:VSOURCE V3 +U 1 1 5B24F388 +P 1400 5000 +F 0 "V3" H 1828 5046 50 0000 L CNN +F 1 "dc 0 pulse(0 3.3 25m 0 0 50m 100m)" H 1828 4955 50 0000 L CNN +F 2 "" H 1400 5000 50 0001 C CNN +F 3 "" H 1400 5000 50 0001 C CNN +F 4 "V" H 1400 5000 50 0001 C CNN "Spice_Primitive" +F 5 "dc 0 pulse(0 3.3 25m 0 0 50m 100m)" H 1400 5000 50 0001 C CNN "Spice_Model" +F 6 "Y" H 1400 5000 50 0001 C CNN "Spice_Netlist_Enabled" + 1 1400 5000 + 1 0 0 -1 +$EndComp +Wire Wire Line + 1400 5750 1400 5700 +Wire Wire Line + 1400 4200 1400 4300 +Wire Wire Line + 1400 4200 1500 4200 +Text Notes 1150 6050 0 50 ~ 0 +Test input signals +Text Notes 6550 2000 0 50 ~ 0 +.control\nrun\nplot v(D)+15 v(E)+10 v(Q)+5 v(nQ)\n.endc +$Comp +L sim_logic:CMOS_NAND X1 +U 1 1 5B25203E +P 6200 3500 +F 0 "X1" H 6400 3228 50 0000 C CNN +F 1 "CMOS_NAND" H 6400 3137 50 0000 C CNN +F 2 "" H 6200 3500 50 0001 C CNN +F 3 "" H 6200 3500 50 0001 C CNN +F 4 "X" H 6200 3500 50 0001 C CNN "Spice_Primitive" +F 5 "NAND" H 6200 3500 50 0001 C CNN "Spice_Model" +F 6 "Y" H 6200 3500 50 0001 C CNN "Spice_Netlist_Enabled" +F 7 "../libs/spice_models.lib" H 6200 3500 50 0001 C CNN "Spice_Lib_File" + 1 6200 3500 + 1 0 0 -1 +$EndComp +Wire Wire Line + 7750 3500 6950 3500 +Text GLabel 7400 3500 0 50 BiDi ~ 0 +Q +$Comp +L device:R R1 +U 1 1 5B2526A7 +P 7750 3650 +F 0 "R1" H 7820 3696 50 0000 L CNN +F 1 "10meg" H 7820 3605 50 0000 L CNN +F 2 "" V 7680 3650 50 0001 C CNN +F 3 "" H 7750 3650 50 0001 C CNN + 1 7750 3650 + 1 0 0 -1 +$EndComp +$Comp +L pspice:0 #GND03 +U 1 1 5B2526F1 +P 7750 3950 +F 0 "#GND03" H 7750 3850 50 0001 C CNN +F 1 "0" H 7750 4037 50 0000 C CNN +F 2 "" H 7750 3950 50 0001 C CNN +F 3 "" H 7750 3950 50 0001 C CNN + 1 7750 3950 + 1 0 0 -1 +$EndComp +Wire Wire Line + 7750 3800 7750 3950 +$Comp +L power:VDD #PWR03 +U 1 1 5B253303 +P 5100 3000 +F 0 "#PWR03" H 5100 2850 50 0001 C CNN +F 1 "VDD" H 5117 3173 50 0000 C CNN +F 2 "" H 5100 3000 50 0001 C CNN +F 3 "" H 5100 3000 50 0001 C CNN + 1 5100 3000 + 1 0 0 -1 +$EndComp +$Comp +L sim_logic:CMOS_NAND X2 +U 1 1 5B25330D +P 4900 3400 +F 0 "X2" H 5100 3128 50 0000 C CNN +F 1 "CMOS_NAND" H 5100 3037 50 0000 C CNN +F 2 "" H 4900 3400 50 0001 C CNN +F 3 "" H 4900 3400 50 0001 C CNN +F 4 "X" H 4900 3400 50 0001 C CNN "Spice_Primitive" +F 5 "NAND" H 4900 3400 50 0001 C CNN "Spice_Model" +F 6 "Y" H 4900 3400 50 0001 C CNN "Spice_Netlist_Enabled" +F 7 "../libs/spice_models.lib" H 4900 3400 50 0001 C CNN "Spice_Lib_File" + 1 4900 3400 + 1 0 0 -1 +$EndComp +$Comp +L power:VDD #PWR04 +U 1 1 5B2533AE +P 5100 4400 +F 0 "#PWR04" H 5100 4250 50 0001 C CNN +F 1 "VDD" H 5117 4573 50 0000 C CNN +F 2 "" H 5100 4400 50 0001 C CNN +F 3 "" H 5100 4400 50 0001 C CNN + 1 5100 4400 + 1 0 0 -1 +$EndComp +$Comp +L sim_logic:CMOS_NAND X3 +U 1 1 5B2533B8 +P 4900 4800 +F 0 "X3" H 5100 4528 50 0000 C CNN +F 1 "CMOS_NAND" H 5100 4437 50 0000 C CNN +F 2 "" H 4900 4800 50 0001 C CNN +F 3 "" H 4900 4800 50 0001 C CNN +F 4 "X" H 4900 4800 50 0001 C CNN "Spice_Primitive" +F 5 "NAND" H 4900 4800 50 0001 C CNN "Spice_Model" +F 6 "Y" H 4900 4800 50 0001 C CNN "Spice_Netlist_Enabled" +F 7 "../libs/spice_models.lib" H 4900 4800 50 0001 C CNN "Spice_Lib_File" + 1 4900 4800 + 1 0 0 -1 +$EndComp +$Comp +L power:VDD #PWR05 +U 1 1 5B25340B +P 6400 4300 +F 0 "#PWR05" H 6400 4150 50 0001 C CNN +F 1 "VDD" H 6417 4473 50 0000 C CNN +F 2 "" H 6400 4300 50 0001 C CNN +F 3 "" H 6400 4300 50 0001 C CNN + 1 6400 4300 + 1 0 0 -1 +$EndComp +$Comp +L sim_logic:CMOS_NAND X4 +U 1 1 5B253415 +P 6200 4700 +F 0 "X4" H 6400 4428 50 0000 C CNN +F 1 "CMOS_NAND" H 6400 4337 50 0000 C CNN +F 2 "" H 6200 4700 50 0001 C CNN +F 3 "" H 6200 4700 50 0001 C CNN +F 4 "X" H 6200 4700 50 0001 C CNN "Spice_Primitive" +F 5 "NAND" H 6200 4700 50 0001 C CNN "Spice_Model" +F 6 "Y" H 6200 4700 50 0001 C CNN "Spice_Netlist_Enabled" +F 7 "../libs/spice_models.lib" H 6200 4700 50 0001 C CNN "Spice_Lib_File" + 1 6200 4700 + 1 0 0 -1 +$EndComp +Text GLabel 4250 4900 0 50 Input ~ 0 +E +Wire Wire Line + 4200 3300 4700 3300 +Wire Wire Line + 4700 3500 4400 3500 +Wire Wire Line + 4400 3500 4400 4900 +Wire Wire Line + 4400 4900 4700 4900 +Wire Wire Line + 6000 3400 5550 3400 +Wire Wire Line + 6000 4800 5500 4800 +Wire Wire Line + 6000 3600 5900 3600 +Wire Wire Line + 5900 3600 5900 3900 +Wire Wire Line + 5900 3900 6950 4150 +Wire Wire Line + 6950 4150 6950 4700 +Wire Wire Line + 6950 4700 6800 4700 +Wire Wire Line + 6800 3500 6950 3500 +Wire Wire Line + 6950 3500 6950 3900 +Wire Wire Line + 6950 3900 5900 4150 +Wire Wire Line + 5900 4150 5900 4600 +Wire Wire Line + 5900 4600 6000 4600 +Wire Wire Line + 4700 4700 4600 4700 +Wire Wire Line + 4600 4700 4600 4150 +Wire Wire Line + 5500 3400 5550 3400 +Connection ~ 5550 3400 +Wire Wire Line + 5550 3400 5550 3900 +Wire Wire Line + 4600 4150 5550 3900 +Connection ~ 6950 3500 +Wire Wire Line + 7750 4700 6950 4700 +Text GLabel 7450 4700 0 50 BiDi ~ 0 +nQ +$Comp +L device:R R2 +U 1 1 5B254999 +P 7750 4850 +F 0 "R2" H 7820 4896 50 0000 L CNN +F 1 "10meg" H 7820 4805 50 0000 L CNN +F 2 "" V 7680 4850 50 0001 C CNN +F 3 "" H 7750 4850 50 0001 C CNN + 1 7750 4850 + 1 0 0 -1 +$EndComp +$Comp +L pspice:0 #GND05 +U 1 1 5B2549A0 +P 7750 5150 +F 0 "#GND05" H 7750 5050 50 0001 C CNN +F 1 "0" H 7750 5237 50 0000 C CNN +F 2 "" H 7750 5150 50 0001 C CNN +F 3 "" H 7750 5150 50 0001 C CNN + 1 7750 5150 + 1 0 0 -1 +$EndComp +Wire Wire Line + 7750 5000 7750 5150 +Wire Notes Line + 4300 5250 7200 5250 +Wire Notes Line + 7200 5250 7200 2700 +Wire Notes Line + 7200 2700 4300 2700 +Wire Notes Line + 4300 2700 4300 5250 +Connection ~ 6950 4700 +Connection ~ 4400 4900 +Wire Wire Line + 4400 4900 4250 4900 +Text GLabel 5800 3400 0 50 UnSpc ~ 0 +1 +Text GLabel 5750 4800 0 50 UnSpc ~ 0 +2 +$EndSCHEMATC diff --git a/digital ciruits/cmos_nand_dlatch/cmos_nand_dlatch.cir b/digital ciruits/cmos_nand_dlatch/cmos_nand_dlatch.cir new file mode 100644 index 0000000..e7ca311 --- /dev/null +++ b/digital ciruits/cmos_nand_dlatch/cmos_nand_dlatch.cir @@ -0,0 +1,17 @@ +.title KiCad schematic +.include "../libs/spice_models.lib" +V1 D 0 dc 0 pulse(0 3.3 0 0 0 100m 200m) +V2 VDD 0 3.3 +V3 E 0 dc 0 pulse(0 3.3 25m 0 0 50m 100m) +X1 1 nQ Q VDD NAND +X2 D E 1 VDD NAND +X3 1 E 2 VDD NAND +X4 Q 2 nQ VDD NAND +R2 0 Q 10meg +R1 0 nQ 10meg +.tran 1m 400m +.control +run +plot v(D)+15 v(E)+10 v(Q)+5 v(nQ) +.endc +.end diff --git a/digital ciruits/cmos_nand_dlatch/cmos_nand_dlatch.pro b/digital ciruits/cmos_nand_dlatch/cmos_nand_dlatch.pro new file mode 100644 index 0000000..152769c --- /dev/null +++ b/digital ciruits/cmos_nand_dlatch/cmos_nand_dlatch.pro @@ -0,0 +1,33 @@ +update=22/05/2015 07:44:53 +version=1 +last_client=kicad +[general] +version=1 +RootSch= +BoardNm= +[pcbnew] +version=1 +LastNetListRead= +UseCmpFile=1 +PadDrill=0.600000000000 +PadDrillOvalY=0.600000000000 +PadSizeH=1.500000000000 +PadSizeV=1.500000000000 +PcbTextSizeV=1.500000000000 +PcbTextSizeH=1.500000000000 +PcbTextThickness=0.300000000000 +ModuleTextSizeV=1.000000000000 +ModuleTextSizeH=1.000000000000 +ModuleTextSizeThickness=0.150000000000 +SolderMaskClearance=0.000000000000 +SolderMaskMinWidth=0.000000000000 +DrawSegmentWidth=0.200000000000 +BoardOutlineThickness=0.100000000000 +ModuleOutlineThickness=0.150000000000 +[cvpcb] +version=1 +NetIExt=net +[eeschema] +version=1 +LibDir= +[eeschema/libraries] diff --git a/digital ciruits/cmos_nand_dlatch/cmos_nand_dlatch.sch b/digital ciruits/cmos_nand_dlatch/cmos_nand_dlatch.sch new file mode 100644 index 0000000..4c25a38 --- /dev/null +++ b/digital ciruits/cmos_nand_dlatch/cmos_nand_dlatch.sch @@ -0,0 +1,360 @@ +EESchema Schematic File Version 4 +LIBS:cmos_nand_dlatch-cache +EELAYER 26 0 +EELAYER END +$Descr A4 11693 8268 +encoding utf-8 +Sheet 1 1 +Title "" +Date "" +Rev "" +Comp "" +Comment1 "" +Comment2 "" +Comment3 "" +Comment4 "" +$EndDescr +$Comp +L pspice:0 #GND01 +U 1 1 5B1AEE1C +P 1400 3800 +F 0 "#GND01" H 1400 3700 50 0001 C CNN +F 1 "0" H 1400 3887 50 0000 C CNN +F 2 "" H 1400 3800 50 0001 C CNN +F 3 "" H 1400 3800 50 0001 C CNN + 1 1400 3800 + 1 0 0 -1 +$EndComp +$Comp +L pspice:VSOURCE V1 +U 1 1 5B1AEF25 +P 1400 3050 +F 0 "V1" H 1828 3096 50 0000 L CNN +F 1 "dc 0 pulse(0 3.3 0 0 0 100m 200m)" H 1828 3005 50 0000 L CNN +F 2 "" H 1400 3050 50 0001 C CNN +F 3 "" H 1400 3050 50 0001 C CNN +F 4 "V" H 1400 3050 50 0001 C CNN "Spice_Primitive" +F 5 "dc 0 pulse(0 3.3 0 0 0 100m 200m)" H 1400 3050 50 0001 C CNN "Spice_Model" +F 6 "Y" H 1400 3050 50 0001 C CNN "Spice_Netlist_Enabled" + 1 1400 3050 + 1 0 0 -1 +$EndComp +Text GLabel 4200 3300 0 50 Input ~ 0 +D +$Comp +L pspice:VSOURCE V2 +U 1 1 5B1B81D1 +P 10200 3800 +F 0 "V2" H 10628 3846 50 0000 L CNN +F 1 "3.3" H 10628 3755 50 0000 L CNN +F 2 "" H 10200 3800 50 0001 C CNN +F 3 "" H 10200 3800 50 0001 C CNN + 1 10200 3800 + 1 0 0 -1 +$EndComp +$Comp +L power:VDD #PWR01 +U 1 1 5B1B83AE +P 10200 3100 +F 0 "#PWR01" H 10200 2950 50 0001 C CNN +F 1 "VDD" H 10217 3273 50 0000 C CNN +F 2 "" H 10200 3100 50 0001 C CNN +F 3 "" H 10200 3100 50 0001 C CNN + 1 10200 3100 + 1 0 0 -1 +$EndComp +$Comp +L power:VDD #PWR02 +U 1 1 5B1B83E5 +P 6400 3100 +F 0 "#PWR02" H 6400 2950 50 0001 C CNN +F 1 "VDD" H 6417 3273 50 0000 C CNN +F 2 "" H 6400 3100 50 0001 C CNN +F 3 "" H 6400 3100 50 0001 C CNN + 1 6400 3100 + 1 0 0 -1 +$EndComp +Text Notes 1000 1100 0 80 ~ 0 +A Gated D Latch\n\nfrom https://en.wikipedia.org/wiki/Flip-flop_(electronics)#Gated_D_latch +Text Notes 6550 1450 0 50 ~ 0 +.tran 1m 400m +Text Notes 9900 4850 0 50 ~ 0 +Supply voltage +Text Notes 1000 1600 0 50 ~ 0 +Notes:\n\n1. the dotted section implements a D-latch\n2. Run the simulation and plot V(D), V(E), V(Q), V(nQ)\n3. You can also export a SPICE netlist and run in ngspice +Text GLabel 1500 2250 2 50 Output ~ 0 +D +Text GLabel 1500 4200 2 50 Output ~ 0 +E +$Comp +L pspice:0 #GND04 +U 1 1 5B24BFD8 +P 10200 4500 +F 0 "#GND04" H 10200 4400 50 0001 C CNN +F 1 "0" H 10200 4587 50 0000 C CNN +F 2 "" H 10200 4500 50 0001 C CNN +F 3 "" H 10200 4500 50 0001 C CNN + 1 10200 4500 + 1 0 0 -1 +$EndComp +Wire Wire Line + 1400 2250 1500 2250 +$Comp +L pspice:0 #GND02 +U 1 1 5B24F37F +P 1400 5750 +F 0 "#GND02" H 1400 5650 50 0001 C CNN +F 1 "0" H 1400 5837 50 0000 C CNN +F 2 "" H 1400 5750 50 0001 C CNN +F 3 "" H 1400 5750 50 0001 C CNN + 1 1400 5750 + 1 0 0 -1 +$EndComp +$Comp +L pspice:VSOURCE V3 +U 1 1 5B24F388 +P 1400 5000 +F 0 "V3" H 1828 5046 50 0000 L CNN +F 1 "dc 0 pulse(0 3.3 25m 0 0 50m 100m)" H 1828 4955 50 0000 L CNN +F 2 "" H 1400 5000 50 0001 C CNN +F 3 "" H 1400 5000 50 0001 C CNN +F 4 "V" H 1400 5000 50 0001 C CNN "Spice_Primitive" +F 5 "dc 0 pulse(0 3.3 25m 0 0 50m 100m)" H 1400 5000 50 0001 C CNN "Spice_Model" +F 6 "Y" H 1400 5000 50 0001 C CNN "Spice_Netlist_Enabled" + 1 1400 5000 + 1 0 0 -1 +$EndComp +Wire Wire Line + 1400 4200 1500 4200 +Text Notes 1150 6050 0 50 ~ 0 +Test input signals +Text Notes 6550 2000 0 50 ~ 0 +.control\nrun\nplot v(D)+15 v(E)+10 v(Q)+5 v(nQ)\n.endc +$Comp +L sim_logic:CMOS_NAND X1 +U 1 1 5B25203E +P 6200 3500 +F 0 "X1" H 6400 3228 50 0000 C CNN +F 1 "CMOS_NAND" H 6400 3137 50 0000 C CNN +F 2 "" H 6200 3500 50 0001 C CNN +F 3 "" H 6200 3500 50 0001 C CNN +F 4 "X" H 6200 3500 50 0001 C CNN "Spice_Primitive" +F 5 "NAND" H 6200 3500 50 0001 C CNN "Spice_Model" +F 6 "Y" H 6200 3500 50 0001 C CNN "Spice_Netlist_Enabled" +F 7 "../libs/spice_models.lib" H 6200 3500 50 0001 C CNN "Spice_Lib_File" + 1 6200 3500 + 1 0 0 -1 +$EndComp +Text GLabel 7400 3500 0 50 BiDi ~ 0 +Q +$Comp +L pspice:0 #GND03 +U 1 1 5B2526F1 +P 7750 3950 +F 0 "#GND03" H 7750 3850 50 0001 C CNN +F 1 "0" H 7750 4037 50 0000 C CNN +F 2 "" H 7750 3950 50 0001 C CNN +F 3 "" H 7750 3950 50 0001 C CNN + 1 7750 3950 + 1 0 0 -1 +$EndComp +Wire Wire Line + 7750 3800 7750 3950 +$Comp +L power:VDD #PWR03 +U 1 1 5B253303 +P 5100 3000 +F 0 "#PWR03" H 5100 2850 50 0001 C CNN +F 1 "VDD" H 5117 3173 50 0000 C CNN +F 2 "" H 5100 3000 50 0001 C CNN +F 3 "" H 5100 3000 50 0001 C CNN + 1 5100 3000 + 1 0 0 -1 +$EndComp +$Comp +L sim_logic:CMOS_NAND X2 +U 1 1 5B25330D +P 4900 3400 +F 0 "X2" H 5100 3128 50 0000 C CNN +F 1 "CMOS_NAND" H 5100 3037 50 0000 C CNN +F 2 "" H 4900 3400 50 0001 C CNN +F 3 "" H 4900 3400 50 0001 C CNN +F 4 "X" H 4900 3400 50 0001 C CNN "Spice_Primitive" +F 5 "NAND" H 4900 3400 50 0001 C CNN "Spice_Model" +F 6 "Y" H 4900 3400 50 0001 C CNN "Spice_Netlist_Enabled" +F 7 "../libs/spice_models.lib" H 4900 3400 50 0001 C CNN "Spice_Lib_File" + 1 4900 3400 + 1 0 0 -1 +$EndComp +$Comp +L power:VDD #PWR04 +U 1 1 5B2533AE +P 5100 4400 +F 0 "#PWR04" H 5100 4250 50 0001 C CNN +F 1 "VDD" H 5117 4573 50 0000 C CNN +F 2 "" H 5100 4400 50 0001 C CNN +F 3 "" H 5100 4400 50 0001 C CNN + 1 5100 4400 + 1 0 0 -1 +$EndComp +$Comp +L sim_logic:CMOS_NAND X3 +U 1 1 5B2533B8 +P 4900 4800 +F 0 "X3" H 5100 4528 50 0000 C CNN +F 1 "CMOS_NAND" H 5100 4437 50 0000 C CNN +F 2 "" H 4900 4800 50 0001 C CNN +F 3 "" H 4900 4800 50 0001 C CNN +F 4 "X" H 4900 4800 50 0001 C CNN "Spice_Primitive" +F 5 "NAND" H 4900 4800 50 0001 C CNN "Spice_Model" +F 6 "Y" H 4900 4800 50 0001 C CNN "Spice_Netlist_Enabled" +F 7 "../libs/spice_models.lib" H 4900 4800 50 0001 C CNN "Spice_Lib_File" + 1 4900 4800 + 1 0 0 -1 +$EndComp +$Comp +L power:VDD #PWR05 +U 1 1 5B25340B +P 6400 4300 +F 0 "#PWR05" H 6400 4150 50 0001 C CNN +F 1 "VDD" H 6417 4473 50 0000 C CNN +F 2 "" H 6400 4300 50 0001 C CNN +F 3 "" H 6400 4300 50 0001 C CNN + 1 6400 4300 + 1 0 0 -1 +$EndComp +$Comp +L sim_logic:CMOS_NAND X4 +U 1 1 5B253415 +P 6200 4700 +F 0 "X4" H 6400 4428 50 0000 C CNN +F 1 "CMOS_NAND" H 6400 4337 50 0000 C CNN +F 2 "" H 6200 4700 50 0001 C CNN +F 3 "" H 6200 4700 50 0001 C CNN +F 4 "X" H 6200 4700 50 0001 C CNN "Spice_Primitive" +F 5 "NAND" H 6200 4700 50 0001 C CNN "Spice_Model" +F 6 "Y" H 6200 4700 50 0001 C CNN "Spice_Netlist_Enabled" +F 7 "../libs/spice_models.lib" H 6200 4700 50 0001 C CNN "Spice_Lib_File" + 1 6200 4700 + 1 0 0 -1 +$EndComp +Text GLabel 4250 4900 0 50 Input ~ 0 +E +Wire Wire Line + 4200 3300 4700 3300 +Wire Wire Line + 4700 3500 4400 3500 +Wire Wire Line + 4400 3500 4400 4900 +Wire Wire Line + 4400 4900 4700 4900 +Wire Wire Line + 6000 3400 5550 3400 +Wire Wire Line + 6000 4800 5500 4800 +Wire Wire Line + 6000 3600 5900 3600 +Wire Wire Line + 5900 3600 5900 3900 +Wire Wire Line + 5900 3900 6950 4150 +Wire Wire Line + 6950 4150 6950 4700 +Wire Wire Line + 6950 4700 6800 4700 +Wire Wire Line + 6800 3500 6950 3500 +Wire Wire Line + 6950 3500 6950 3900 +Wire Wire Line + 6950 3900 5900 4150 +Wire Wire Line + 5900 4150 5900 4600 +Wire Wire Line + 5900 4600 6000 4600 +Wire Wire Line + 4700 4700 4600 4700 +Wire Wire Line + 4600 4700 4600 4150 +Wire Wire Line + 5500 3400 5550 3400 +Connection ~ 5550 3400 +Wire Wire Line + 5550 3400 5550 3900 +Wire Wire Line + 4600 4150 5550 3900 +Connection ~ 6950 3500 +Wire Wire Line + 7750 4700 6950 4700 +Text GLabel 7450 4700 0 50 BiDi ~ 0 +nQ +$Comp +L pspice:0 #GND05 +U 1 1 5B2549A0 +P 7750 5150 +F 0 "#GND05" H 7750 5050 50 0001 C CNN +F 1 "0" H 7750 5237 50 0000 C CNN +F 2 "" H 7750 5150 50 0001 C CNN +F 3 "" H 7750 5150 50 0001 C CNN + 1 7750 5150 + 1 0 0 -1 +$EndComp +Wire Wire Line + 7750 5000 7750 5150 +Wire Notes Line + 4300 5250 7200 5250 +Wire Notes Line + 7200 5250 7200 2700 +Wire Notes Line + 7200 2700 4300 2700 +Wire Notes Line + 4300 2700 4300 5250 +Connection ~ 6950 4700 +Connection ~ 4400 4900 +Wire Wire Line + 4400 4900 4250 4900 +Text GLabel 5800 3400 0 50 UnSpc ~ 0 +1 +Text GLabel 5750 4800 0 50 UnSpc ~ 0 +2 +Wire Wire Line + 1400 2250 1400 2750 +Wire Wire Line + 1400 3350 1400 3800 +Wire Wire Line + 1400 4200 1400 4700 +Wire Wire Line + 1400 5300 1400 5750 +Wire Wire Line + 10200 3500 10200 3100 +Wire Wire Line + 10200 4100 10200 4500 +$Comp +L Device:R R2 +U 1 1 5B326075 +P 8100 3500 +F 0 "R2" V 7893 3500 50 0000 C CNN +F 1 "10meg" V 7984 3500 50 0000 C CNN +F 2 "" V 8030 3500 50 0001 C CNN +F 3 "~" H 8100 3500 50 0001 C CNN + 1 8100 3500 + 0 1 1 0 +$EndComp +Wire Wire Line + 6950 3500 7950 3500 +Wire Wire Line + 8250 3500 8250 3800 +Wire Wire Line + 8250 3800 7750 3800 +$Comp +L Device:R R1 +U 1 1 5B326C92 +P 7750 4850 +F 0 "R1" H 7680 4804 50 0000 R CNN +F 1 "10meg" H 7680 4895 50 0000 R CNN +F 2 "" V 7680 4850 50 0001 C CNN +F 3 "~" H 7750 4850 50 0001 C CNN + 1 7750 4850 + -1 0 0 1 +$EndComp +$EndSCHEMATC diff --git a/digital ciruits/cmos_nand_dlatch/sym-lib-table b/digital ciruits/cmos_nand_dlatch/sym-lib-table new file mode 100644 index 0000000..63105ad --- /dev/null +++ b/digital ciruits/cmos_nand_dlatch/sym-lib-table @@ -0,0 +1,3 @@ +(sym_lib_table + (lib (name sim_logic)(type Legacy)(uri ${KIPRJMOD}/../libs/sim_logic.lib)(options "")(descr "")) +) |