diff options
Diffstat (limited to 'Examples/D_PULLUP_PULLDOWN_CHARACTERISTICS')
10 files changed, 458 insertions, 0 deletions
diff --git a/Examples/D_PULLUP_PULLDOWN_CHARACTERISTICS/D_PULLUP_PULLDOWN_CHARACTERISTICS-cache.lib b/Examples/D_PULLUP_PULLDOWN_CHARACTERISTICS/D_PULLUP_PULLDOWN_CHARACTERISTICS-cache.lib new file mode 100644 index 00000000..c6afb471 --- /dev/null +++ b/Examples/D_PULLUP_PULLDOWN_CHARACTERISTICS/D_PULLUP_PULLDOWN_CHARACTERISTICS-cache.lib @@ -0,0 +1,74 @@ +EESchema-LIBRARY Version 2.3 +#encoding utf-8 +# +# d_and +# +DEF d_and U 0 40 Y Y 1 F N +F0 "U" 0 0 60 H V C CNN +F1 "d_and" 50 100 60 H V C CNN +F2 "" 0 0 60 H V C CNN +F3 "" 0 0 60 H V C CNN +DRAW +A 149 50 100 -894 0 0 1 0 N 150 -50 250 50 +A 150 49 100 6 900 0 1 0 N 250 50 150 150 +P 4 0 1 0 150 -50 -250 -50 -250 150 150 150 N +X IN1 1 -450 100 200 R 50 50 1 1 I +X IN2 2 -450 0 200 R 50 50 1 1 I +X OUT 3 450 50 200 L 50 50 1 1 O +ENDDRAW +ENDDEF +# +# d_pulldown +# +DEF d_pulldown U 0 40 Y Y 1 F N +F0 "U" 0 200 60 H V C CNN +F1 "d_pulldown" -50 300 55 H V C CNN +F2 "" 0 200 60 H V C CNN +F3 "" 0 200 60 H V C CNN +DRAW +S 200 350 -300 150 0 1 0 N +X OUT 1 -500 250 200 R 50 43 1 1 I +ENDDRAW +ENDDEF +# +# d_pullup +# +DEF d_pullup U 0 40 Y Y 1 F N +F0 "U" 0 0 60 H V C CNN +F1 "d_pullup" 0 100 60 H V C CNN +F2 "" 0 0 60 H V C CNN +F3 "" 0 0 60 H V C CNN +DRAW +S 200 150 -300 -50 0 1 0 N +X OUT 1 -500 50 200 R 50 50 1 1 I +ENDDRAW +ENDDEF +# +# dac_bridge_1 +# +DEF dac_bridge_1 U 0 40 Y Y 1 F N +F0 "U" 0 0 60 H V C CNN +F1 "dac_bridge_1" 0 150 60 H V C CNN +F2 "" 0 0 60 H V C CNN +F3 "" 0 0 60 H V C CNN +DRAW +S -400 200 350 -50 0 1 0 N +X IN1 1 -600 50 200 R 50 50 1 1 I +X OUT1 2 550 50 200 L 50 50 1 1 O +ENDDRAW +ENDDEF +# +# plot_v1 +# +DEF plot_v1 U 0 40 Y Y 1 F N +F0 "U" 0 500 60 H V C CNN +F1 "plot_v1" 200 350 60 H V C CNN +F2 "" 0 0 60 H V C CNN +F3 "" 0 0 60 H V C CNN +DRAW +C 0 500 100 0 1 0 N +X ~ ~ 0 200 200 U 50 50 1 1 I +ENDDRAW +ENDDEF +# +#End Library diff --git a/Examples/D_PULLUP_PULLDOWN_CHARACTERISTICS/D_PULLUP_PULLDOWN_CHARACTERISTICS.cir b/Examples/D_PULLUP_PULLDOWN_CHARACTERISTICS/D_PULLUP_PULLDOWN_CHARACTERISTICS.cir new file mode 100644 index 00000000..016f46e4 --- /dev/null +++ b/Examples/D_PULLUP_PULLDOWN_CHARACTERISTICS/D_PULLUP_PULLDOWN_CHARACTERISTICS.cir @@ -0,0 +1,15 @@ +* /home/bhargav/eSim-Workspace/D_PULLUP_PULLDOWN_CHARACTERISTICS/D_PULLUP_PULLDOWN_CHARACTERISTICS.cir + +* EESchema Netlist Version 1.1 (Spice format) creation date: Tue Jul 2 12:59:56 2019 + +* To exclude a component from the Spice Netlist add [Spice_Netlist_Enabled] user FIELD set to: N +* To reorder the component spice node sequence add [Spice_Node_Sequence] user FIELD and define sequence: 2,1,0 + +* Sheet Name: / +U2 /1 d_pulldown +U3 /1 Net-_U1-Pad1_ Net-_U3-Pad3_ d_and +U4 Net-_U3-Pad3_ o dac_bridge_1 +U5 o plot_v1 +U1 Net-_U1-Pad1_ d_pullup + +.end diff --git a/Examples/D_PULLUP_PULLDOWN_CHARACTERISTICS/D_PULLUP_PULLDOWN_CHARACTERISTICS.cir.out b/Examples/D_PULLUP_PULLDOWN_CHARACTERISTICS/D_PULLUP_PULLDOWN_CHARACTERISTICS.cir.out new file mode 100644 index 00000000..df55e255 --- /dev/null +++ b/Examples/D_PULLUP_PULLDOWN_CHARACTERISTICS/D_PULLUP_PULLDOWN_CHARACTERISTICS.cir.out @@ -0,0 +1,29 @@ +* /home/bhargav/esim-workspace/d_pullup_pulldown_characteristics/d_pullup_pulldown_characteristics.cir + +* u2 /1 d_pulldown +* u3 /1 net-_u1-pad1_ net-_u3-pad3_ d_and +* u4 net-_u3-pad3_ o dac_bridge_1 +* u5 o plot_v1 +* u1 net-_u1-pad1_ d_pullup +a1 /1 u2 +a2 [/1 net-_u1-pad1_ ] net-_u3-pad3_ u3 +a3 [net-_u3-pad3_ ] [o ] u4 +a4 net-_u1-pad1_ u1 +* Schematic Name: d_pulldown, NgSpice Name: d_pulldown +.model u2 d_pulldown(load=1.0e-12 ) +* Schematic Name: d_and, NgSpice Name: d_and +.model u3 d_and(fall_delay=1.0e-9 input_load=1.0e-12 rise_delay=1.0e-9 ) +* Schematic Name: dac_bridge_1, NgSpice Name: dac_bridge +.model u4 dac_bridge(out_undef=0.5 out_low=0.0 out_high=5.0 t_rise=1.0e-9 t_fall=1.0e-9 input_load=1.0e-12 ) +* Schematic Name: d_pullup, NgSpice Name: d_pullup +.model u1 d_pullup(load=1.0e-12 ) +.tran 1e-06 10e-06 0e-00 + +* Control Statements +.control +run +print allv > plot_data_v.txt +print alli > plot_data_i.txt +plot v(o) +.endc +.end diff --git a/Examples/D_PULLUP_PULLDOWN_CHARACTERISTICS/D_PULLUP_PULLDOWN_CHARACTERISTICS.pro b/Examples/D_PULLUP_PULLDOWN_CHARACTERISTICS/D_PULLUP_PULLDOWN_CHARACTERISTICS.pro new file mode 100644 index 00000000..148e9ed5 --- /dev/null +++ b/Examples/D_PULLUP_PULLDOWN_CHARACTERISTICS/D_PULLUP_PULLDOWN_CHARACTERISTICS.pro @@ -0,0 +1,73 @@ +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] +LibName1=adc-dac +LibName2=memory +LibName3=xilinx +LibName4=microcontrollers +LibName5=dsp +LibName6=microchip +LibName7=analog_switches +LibName8=motorola +LibName9=texas +LibName10=intel +LibName11=audio +LibName12=interface +LibName13=digital-audio +LibName14=philips +LibName15=display +LibName16=cypress +LibName17=siliconi +LibName18=opto +LibName19=atmel +LibName20=contrib +LibName21=power +LibName22=device +LibName23=transistors +LibName24=conn +LibName25=linear +LibName26=regul +LibName27=74xx +LibName28=cmos4000 +LibName29=eSim_Analog +LibName30=eSim_Devices +LibName31=eSim_Digital +LibName32=eSim_Hybrid +LibName33=eSim_Miscellaneous +LibName34=eSim_Power +LibName35=eSim_Sources +LibName36=eSim_Subckt +LibName37=eSim_User +LibName38=eSim_Plot +LibName39=eSim_PSpice + diff --git a/Examples/D_PULLUP_PULLDOWN_CHARACTERISTICS/D_PULLUP_PULLDOWN_CHARACTERISTICS.proj b/Examples/D_PULLUP_PULLDOWN_CHARACTERISTICS/D_PULLUP_PULLDOWN_CHARACTERISTICS.proj new file mode 100644 index 00000000..8c0e0115 --- /dev/null +++ b/Examples/D_PULLUP_PULLDOWN_CHARACTERISTICS/D_PULLUP_PULLDOWN_CHARACTERISTICS.proj @@ -0,0 +1 @@ +schematicFile D_PULLUP_PULLDOWN_CHARACTERISTICS.sch diff --git a/Examples/D_PULLUP_PULLDOWN_CHARACTERISTICS/D_PULLUP_PULLDOWN_CHARACTERISTICS.sch b/Examples/D_PULLUP_PULLDOWN_CHARACTERISTICS/D_PULLUP_PULLDOWN_CHARACTERISTICS.sch new file mode 100644 index 00000000..9f56c9cb --- /dev/null +++ b/Examples/D_PULLUP_PULLDOWN_CHARACTERISTICS/D_PULLUP_PULLDOWN_CHARACTERISTICS.sch @@ -0,0 +1,130 @@ +EESchema Schematic File Version 2 +LIBS:adc-dac +LIBS:memory +LIBS:xilinx +LIBS:microcontrollers +LIBS:dsp +LIBS:microchip +LIBS:analog_switches +LIBS:motorola +LIBS:texas +LIBS:intel +LIBS:audio +LIBS:interface +LIBS:digital-audio +LIBS:philips +LIBS:display +LIBS:cypress +LIBS:siliconi +LIBS:opto +LIBS:atmel +LIBS:contrib +LIBS:power +LIBS:device +LIBS:transistors +LIBS:conn +LIBS:linear +LIBS:regul +LIBS:74xx +LIBS:cmos4000 +LIBS:eSim_Analog +LIBS:eSim_Devices +LIBS:eSim_Digital +LIBS:eSim_Hybrid +LIBS:eSim_Miscellaneous +LIBS:eSim_Power +LIBS:eSim_Sources +LIBS:eSim_Subckt +LIBS:eSim_User +LIBS:eSim_Plot +LIBS:eSim_PSpice +LIBS:digital_2-cache +EELAYER 25 0 +EELAYER END +$Descr A4 11693 8268 +encoding utf-8 +Sheet 1 1 +Title "" +Date "" +Rev "" +Comp "" +Comment1 "" +Comment2 "" +Comment3 "" +Comment4 "" +$EndDescr +Wire Wire Line + 4550 3900 4550 4050 +Wire Wire Line + 4550 4050 4750 4050 +$Comp +L d_pulldown U2 +U 1 1 5D1B07FC +P 4800 3400 +F 0 "U2" H 4800 3600 60 0000 C CNN +F 1 "d_pulldown" H 4750 3700 55 0000 C CNN +F 2 "" H 4800 3600 60 0000 C CNN +F 3 "" H 4800 3600 60 0000 C CNN + 1 4800 3400 + 0 -1 -1 0 +$EndComp +Text Label 4550 4000 0 60 ~ 0 +1 +$Comp +L d_and U3 +U 1 1 5D1B07FD +P 5200 4150 +F 0 "U3" H 5200 4150 60 0000 C CNN +F 1 "d_and" H 5250 4250 60 0000 C CNN +F 2 "" H 5200 4150 60 0000 C CNN +F 3 "" H 5200 4150 60 0000 C CNN + 1 5200 4150 + 1 0 0 -1 +$EndComp +Wire Wire Line + 4600 4150 4750 4150 +$Comp +L dac_bridge_1 U4 +U 1 1 5D1B07FE +P 6500 4150 +F 0 "U4" H 6500 4150 60 0000 C CNN +F 1 "dac_bridge_1" H 6500 4300 60 0000 C CNN +F 2 "" H 6500 4150 60 0000 C CNN +F 3 "" H 6500 4150 60 0000 C CNN + 1 6500 4150 + 1 0 0 -1 +$EndComp +Wire Wire Line + 5900 4100 5650 4100 +$Comp +L plot_v1 U5 +U 1 1 5D1B07FF +P 7250 4100 +F 0 "U5" H 7250 4600 60 0000 C CNN +F 1 "plot_v1" H 7450 4450 60 0000 C CNN +F 2 "" H 7250 4100 60 0000 C CNN +F 3 "" H 7250 4100 60 0000 C CNN + 1 7250 4100 + 1 0 0 -1 +$EndComp +Wire Wire Line + 7250 3900 7250 4100 +Wire Wire Line + 7250 4100 7050 4100 +Text GLabel 7400 4000 2 60 Input ~ 0 +o +Wire Wire Line + 7400 4000 7250 4000 +Connection ~ 7250 4000 +$Comp +L d_pullup U1 +U 1 1 5D1B0801 +P 4100 4100 +F 0 "U1" H 4100 4100 60 0000 C CNN +F 1 "d_pullup" H 4100 4200 60 0000 C CNN +F 2 "" H 4100 4100 60 0000 C CNN +F 3 "" H 4100 4100 60 0000 C CNN + 1 4100 4100 + -1 0 0 1 +$EndComp +$EndSCHEMATC diff --git a/Examples/D_PULLUP_PULLDOWN_CHARACTERISTICS/D_PULLUP_PULLDOWN_CHARACTERISTICS_Previous_Values.xml b/Examples/D_PULLUP_PULLDOWN_CHARACTERISTICS/D_PULLUP_PULLDOWN_CHARACTERISTICS_Previous_Values.xml new file mode 100644 index 00000000..788981df --- /dev/null +++ b/Examples/D_PULLUP_PULLDOWN_CHARACTERISTICS/D_PULLUP_PULLDOWN_CHARACTERISTICS_Previous_Values.xml @@ -0,0 +1 @@ +<KicadtoNgspice><analysis><ac><field1 name="Lin">true</field1><field2 name="Dec">false</field2><field3 name="Oct">false</field3><field4 name="Start Frequency" /><field5 name="Stop Frequency" /><field6 name="No. of points" /><field7 name="Start Fre Combo">Hz</field7><field8 name="Stop Fre Combo">Hz</field8></ac><dc><field1 name="Source 1" /><field2 name="Start" /><field3 name="Increment" /><field4 name="Stop" /><field5 name="Operating Point">0</field5><field6 name="Start Combo">Volts or Amperes</field6><field7 name="Increment Combo">Volts or Amperes</field7><field8 name="Stop Combo">Volts or Amperes</field8><field9 name="Source 2" /><field10 name="Start" /><field11 name="Increment" /><field12 name="Stop" /><field13 name="Start Combo">Volts or Amperes</field13><field14 name="Increment Combo">Volts or Amperes</field14><field15 name="Stop Combo">Volts or Amperes</field15></dc><tran><field1 name="Start Time">0</field1><field2 name="Step Time">1</field2><field3 name="Stop Time">10</field3><field4 name="Start Combo">Sec</field4><field5 name="Step Combo">us</field5><field6 name="Stop Combo">us</field6></tran></analysis><source /><model><u2 name="type">d_pulldown<field1 name="Enter value of Load" /></u2><u3 name="type">d_and<field2 name="Enter Fall Delay (default=1.0e-9)" /><field3 name="Enter Input Load (default=1.0e-12)" /><field4 name="Enter Rise Delay (default=1.0e-9)" /></u3><u4 name="type">dac_bridge<field5 name="Enter value for input load (default=1.0e-12)" /><field6 name="Enter value for out_low (default=0.0)" /><field7 name="Enter value for out_high (default=5.0)" /><field8 name="Enter the Rise Time (default=1.0e-9)" /><field9 name="Enter the Fall Time (default=1.0e-9)" /><field10 name="Enter value for out_undef (default=0.5)" /></u4><u1 name="type">d_pullup<field11 name="Enter value of Load" /></u1></model><devicemodel /><subcircuit /></KicadtoNgspice>
\ No newline at end of file diff --git a/Examples/D_PULLUP_PULLDOWN_CHARACTERISTICS/analysis b/Examples/D_PULLUP_PULLDOWN_CHARACTERISTICS/analysis new file mode 100644 index 00000000..ff0d8ca8 --- /dev/null +++ b/Examples/D_PULLUP_PULLDOWN_CHARACTERISTICS/analysis @@ -0,0 +1 @@ +.tran 1e-06 10e-06 0e-00
\ No newline at end of file diff --git a/Examples/D_PULLUP_PULLDOWN_CHARACTERISTICS/plot_data_i.txt b/Examples/D_PULLUP_PULLDOWN_CHARACTERISTICS/plot_data_i.txt new file mode 100644 index 00000000..466eb18d --- /dev/null +++ b/Examples/D_PULLUP_PULLDOWN_CHARACTERISTICS/plot_data_i.txt @@ -0,0 +1,67 @@ +* /home/bhargav/esim-workspace/d_pullup_pulldown_characteristics/d_pullup_pulldown_characteristics.cir +Transient Analysis Tue Jul 2 13:00:21 2019 +-------------------------------------------------------------------------------- +Index time alli +-------------------------------------------------------------------------------- +0 0.000000e+00 0.000000e+00 +1 1.000000e-09 0.000000e+00 +2 2.000000e-09 0.000000e+00 +3 4.000000e-09 0.000000e+00 +4 8.000000e-09 0.000000e+00 +5 1.600000e-08 0.000000e+00 +6 3.200000e-08 0.000000e+00 +7 6.400000e-08 0.000000e+00 +8 1.280000e-07 0.000000e+00 +9 2.560000e-07 0.000000e+00 +10 4.560000e-07 0.000000e+00 +11 6.560000e-07 0.000000e+00 +12 8.560000e-07 0.000000e+00 +13 1.056000e-06 0.000000e+00 +14 1.256000e-06 0.000000e+00 +15 1.456000e-06 0.000000e+00 +16 1.656000e-06 0.000000e+00 +17 1.856000e-06 0.000000e+00 +18 2.056000e-06 0.000000e+00 +19 2.256000e-06 0.000000e+00 +20 2.456000e-06 0.000000e+00 +21 2.656000e-06 0.000000e+00 +22 2.856000e-06 0.000000e+00 +23 3.056000e-06 0.000000e+00 +24 3.256000e-06 0.000000e+00 +25 3.456000e-06 0.000000e+00 +26 3.656000e-06 0.000000e+00 +27 3.856000e-06 0.000000e+00 +28 4.056000e-06 0.000000e+00 +29 4.256000e-06 0.000000e+00 +30 4.456000e-06 0.000000e+00 +31 4.656000e-06 0.000000e+00 +32 4.856000e-06 0.000000e+00 +33 5.056000e-06 0.000000e+00 +34 5.256000e-06 0.000000e+00 +35 5.456000e-06 0.000000e+00 +36 5.656000e-06 0.000000e+00 +37 5.856000e-06 0.000000e+00 +38 6.056000e-06 0.000000e+00 +39 6.256000e-06 0.000000e+00 +40 6.456000e-06 0.000000e+00 +41 6.656000e-06 0.000000e+00 +42 6.856000e-06 0.000000e+00 +43 7.056000e-06 0.000000e+00 +44 7.256000e-06 0.000000e+00 +45 7.456000e-06 0.000000e+00 +46 7.656000e-06 0.000000e+00 +47 7.856000e-06 0.000000e+00 +48 8.056000e-06 0.000000e+00 +49 8.256000e-06 0.000000e+00 +50 8.456000e-06 0.000000e+00 +51 8.656000e-06 0.000000e+00 +52 8.856000e-06 0.000000e+00 +53 9.056000e-06 0.000000e+00 +54 9.256000e-06 0.000000e+00 + +Index time alli +-------------------------------------------------------------------------------- +55 9.456000e-06 0.000000e+00 +56 9.656000e-06 0.000000e+00 +57 9.856000e-06 0.000000e+00 +58 1.000000e-05 0.000000e+00 diff --git a/Examples/D_PULLUP_PULLDOWN_CHARACTERISTICS/plot_data_v.txt b/Examples/D_PULLUP_PULLDOWN_CHARACTERISTICS/plot_data_v.txt new file mode 100644 index 00000000..63fd79ce --- /dev/null +++ b/Examples/D_PULLUP_PULLDOWN_CHARACTERISTICS/plot_data_v.txt @@ -0,0 +1,67 @@ +* /home/bhargav/esim-workspace/d_pullup_pulldown_characteristics/d_pullup_pulldown_characteristics.cir +Transient Analysis Tue Jul 2 13:00:21 2019 +-------------------------------------------------------------------------------- +Index time allv +-------------------------------------------------------------------------------- +0 0.000000e+00 0.000000e+00 +1 1.000000e-09 0.000000e+00 +2 2.000000e-09 0.000000e+00 +3 4.000000e-09 0.000000e+00 +4 8.000000e-09 0.000000e+00 +5 1.600000e-08 0.000000e+00 +6 3.200000e-08 0.000000e+00 +7 6.400000e-08 0.000000e+00 +8 1.280000e-07 0.000000e+00 +9 2.560000e-07 0.000000e+00 +10 4.560000e-07 0.000000e+00 +11 6.560000e-07 0.000000e+00 +12 8.560000e-07 0.000000e+00 +13 1.056000e-06 0.000000e+00 +14 1.256000e-06 0.000000e+00 +15 1.456000e-06 0.000000e+00 +16 1.656000e-06 0.000000e+00 +17 1.856000e-06 0.000000e+00 +18 2.056000e-06 0.000000e+00 +19 2.256000e-06 0.000000e+00 +20 2.456000e-06 0.000000e+00 +21 2.656000e-06 0.000000e+00 +22 2.856000e-06 0.000000e+00 +23 3.056000e-06 0.000000e+00 +24 3.256000e-06 0.000000e+00 +25 3.456000e-06 0.000000e+00 +26 3.656000e-06 0.000000e+00 +27 3.856000e-06 0.000000e+00 +28 4.056000e-06 0.000000e+00 +29 4.256000e-06 0.000000e+00 +30 4.456000e-06 0.000000e+00 +31 4.656000e-06 0.000000e+00 +32 4.856000e-06 0.000000e+00 +33 5.056000e-06 0.000000e+00 +34 5.256000e-06 0.000000e+00 +35 5.456000e-06 0.000000e+00 +36 5.656000e-06 0.000000e+00 +37 5.856000e-06 0.000000e+00 +38 6.056000e-06 0.000000e+00 +39 6.256000e-06 0.000000e+00 +40 6.456000e-06 0.000000e+00 +41 6.656000e-06 0.000000e+00 +42 6.856000e-06 0.000000e+00 +43 7.056000e-06 0.000000e+00 +44 7.256000e-06 0.000000e+00 +45 7.456000e-06 0.000000e+00 +46 7.656000e-06 0.000000e+00 +47 7.856000e-06 0.000000e+00 +48 8.056000e-06 0.000000e+00 +49 8.256000e-06 0.000000e+00 +50 8.456000e-06 0.000000e+00 +51 8.656000e-06 0.000000e+00 +52 8.856000e-06 0.000000e+00 +53 9.056000e-06 0.000000e+00 +54 9.256000e-06 0.000000e+00 + +Index time allv +-------------------------------------------------------------------------------- +55 9.456000e-06 0.000000e+00 +56 9.656000e-06 0.000000e+00 +57 9.856000e-06 0.000000e+00 +58 1.000000e-05 0.000000e+00 |