summaryrefslogtreecommitdiff
path: root/library/SubcircuitLibrary
diff options
context:
space:
mode:
authorsaurabhb172020-04-05 11:14:24 +0530
committersaurabhb172020-04-05 11:14:24 +0530
commit44ca57b4d6ea99aac3bfe0310fd958dd9919e4e2 (patch)
tree531ccbf994f72c9c52a1bd63f2700a99464a5c80 /library/SubcircuitLibrary
parentdd228b2e15650a9887780618ed7ecedcce5d174a (diff)
downloadeSim-44ca57b4d6ea99aac3bfe0310fd958dd9919e4e2.tar.gz
eSim-44ca57b4d6ea99aac3bfe0310fd958dd9919e4e2.tar.bz2
eSim-44ca57b4d6ea99aac3bfe0310fd958dd9919e4e2.zip
7404 subcircuit added
Diffstat (limited to 'library/SubcircuitLibrary')
-rw-r--r--library/SubcircuitLibrary/74LS04/74LS04-cache.lib82
-rw-r--r--library/SubcircuitLibrary/74LS04/74LS04.cir23
-rw-r--r--library/SubcircuitLibrary/74LS04/74LS04.cir.out25
-rw-r--r--library/SubcircuitLibrary/74LS04/74LS04.pro72
-rw-r--r--library/SubcircuitLibrary/74LS04/74LS04.sch427
-rw-r--r--library/SubcircuitLibrary/74LS04/74LS04.sub19
-rw-r--r--library/SubcircuitLibrary/74LS04/74LS04_Previous_Values.xml1
-rw-r--r--library/SubcircuitLibrary/74LS04/Ideal_npn1.lib1
-rw-r--r--library/SubcircuitLibrary/74LS04/analysis1
9 files changed, 651 insertions, 0 deletions
diff --git a/library/SubcircuitLibrary/74LS04/74LS04-cache.lib b/library/SubcircuitLibrary/74LS04/74LS04-cache.lib
new file mode 100644
index 00000000..9c38feb3
--- /dev/null
+++ b/library/SubcircuitLibrary/74LS04/74LS04-cache.lib
@@ -0,0 +1,82 @@
+EESchema-LIBRARY Version 2.3
+#encoding utf-8
+#
+# PORT
+#
+DEF PORT U 0 40 Y Y 26 F N
+F0 "U" 50 100 30 H V C CNN
+F1 "PORT" 0 0 30 H V C CNN
+F2 "" 0 0 60 H V C CNN
+F3 "" 0 0 60 H V C CNN
+DRAW
+A 325 225 285 -1421 -1278 0 1 0 N 100 50 150 0
+A 376 -275 356 1294 1408 0 1 0 N 150 0 100 -50
+S -100 50 100 -50 0 1 0 N
+X ~ 1 250 0 100 L 30 30 1 1 B
+X ~ 2 250 0 100 L 30 30 2 1 B
+X ~ 3 250 0 100 L 30 30 3 1 B
+X ~ 4 250 0 100 L 30 30 4 1 B
+X ~ 5 250 0 100 L 30 30 5 1 B
+X ~ 6 250 0 100 L 30 30 6 1 B
+X ~ 7 250 0 100 L 30 30 7 1 B
+X ~ 8 250 0 100 L 30 30 8 1 B
+X ~ 9 250 0 100 L 30 30 9 1 B
+X ~ 10 250 0 100 L 30 30 10 1 B
+X ~ 11 250 0 100 L 30 30 11 1 B
+X ~ 12 250 0 100 L 30 30 12 1 B
+X ~ 13 250 0 100 L 30 30 13 1 B
+X ~ 14 250 0 100 L 30 30 14 1 B
+X ~ 15 250 0 100 L 30 30 15 1 B
+X ~ 16 250 0 100 L 30 30 16 1 B
+X ~ 17 250 0 100 L 30 30 17 1 B
+X ~ 18 250 0 100 L 30 30 18 1 B
+X ~ 19 250 0 100 L 30 30 19 1 B
+X ~ 20 250 0 100 L 30 30 20 1 B
+X ~ 21 250 0 100 L 30 30 21 1 B
+X ~ 22 250 0 100 L 30 30 22 1 B
+X ~ 23 250 0 100 L 30 30 23 1 B
+X ~ 24 250 0 100 L 30 30 24 1 B
+X ~ 25 250 0 100 L 30 30 25 1 B
+X ~ 26 250 0 100 L 30 30 26 1 B
+ENDDRAW
+ENDDEF
+#
+# eSim_NPN
+#
+DEF eSim_NPN Q 0 0 Y N 1 F N
+F0 "Q" -100 50 50 H V R CNN
+F1 "eSim_NPN" -50 150 50 H V R CNN
+F2 "" 200 100 29 H V C CNN
+F3 "" 0 0 60 H V C CNN
+ALIAS BC547 Q2N2222
+DRAW
+C 50 0 111 0 1 10 N
+P 2 0 1 0 25 25 100 100 N
+P 3 0 1 0 25 -25 100 -100 100 -100 N
+P 3 0 1 20 25 75 25 -75 25 -75 N
+P 5 0 1 0 50 -70 70 -50 90 -90 50 -70 50 -70 F
+X C 1 100 200 100 D 50 50 1 1 P
+X B 2 -200 0 225 R 50 50 1 1 P
+X E 3 100 -200 100 U 50 50 1 1 P
+ENDDRAW
+ENDDEF
+#
+# eSim_R
+#
+DEF eSim_R R 0 0 N Y 1 F N
+F0 "R" 50 130 50 H V C CNN
+F1 "eSim_R" 50 -50 50 H V C CNN
+F2 "" 50 -20 30 H V C CNN
+F3 "" 50 50 30 V V C CNN
+$FPLIST
+ R_*
+ Resistor_*
+$ENDFPLIST
+DRAW
+S 150 10 -50 90 0 1 10 N
+X ~ 1 -100 50 50 R 60 60 1 1 P
+X ~ 2 200 50 50 L 60 60 1 1 P
+ENDDRAW
+ENDDEF
+#
+#End Library
diff --git a/library/SubcircuitLibrary/74LS04/74LS04.cir b/library/SubcircuitLibrary/74LS04/74LS04.cir
new file mode 100644
index 00000000..bb2d0f69
--- /dev/null
+++ b/library/SubcircuitLibrary/74LS04/74LS04.cir
@@ -0,0 +1,23 @@
+* /home/ash98/Downloads/eSim-1.1.3/src/SubcircuitLibrary/74LS04/74LS04.cir
+
+* EESchema Netlist Version 1.1 (Spice format) creation date: Tue Jan 14 11:36:33 2020
+
+* 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: /
+Q5 Net-_Q5-Pad1_ Net-_Q5-Pad2_ Net-_Q1-Pad3_ eSim_NPN
+R5 Net-_R1-Pad1_ Net-_Q5-Pad1_ 100
+Q1 Net-_Q1-Pad1_ Net-_Q1-Pad2_ Net-_Q1-Pad3_ eSim_NPN
+R1 Net-_R1-Pad1_ Net-_Q1-Pad1_ 100
+Q3 Net-_Q3-Pad1_ Net-_Q3-Pad2_ Net-_Q1-Pad3_ eSim_NPN
+R3 Net-_R1-Pad1_ Net-_Q3-Pad1_ 100
+Q6 Net-_Q6-Pad1_ Net-_Q6-Pad2_ Net-_Q1-Pad3_ eSim_NPN
+R6 Net-_R1-Pad1_ Net-_Q6-Pad1_ 100
+Q2 Net-_Q2-Pad1_ Net-_Q2-Pad2_ Net-_Q1-Pad3_ eSim_NPN
+R2 Net-_R1-Pad1_ Net-_Q2-Pad1_ 100
+Q4 Net-_Q4-Pad1_ Net-_Q4-Pad2_ Net-_Q1-Pad3_ eSim_NPN
+R4 Net-_R1-Pad1_ Net-_Q4-Pad1_ 100
+U1 Net-_Q1-Pad2_ Net-_Q1-Pad1_ Net-_Q3-Pad2_ Net-_Q3-Pad1_ Net-_Q5-Pad2_ Net-_Q5-Pad1_ Net-_Q1-Pad3_ Net-_Q2-Pad1_ Net-_Q2-Pad2_ Net-_Q4-Pad1_ Net-_Q4-Pad2_ Net-_Q6-Pad1_ Net-_Q6-Pad2_ Net-_R1-Pad1_ PORT
+
+.end
diff --git a/library/SubcircuitLibrary/74LS04/74LS04.cir.out b/library/SubcircuitLibrary/74LS04/74LS04.cir.out
new file mode 100644
index 00000000..c222c723
--- /dev/null
+++ b/library/SubcircuitLibrary/74LS04/74LS04.cir.out
@@ -0,0 +1,25 @@
+* /home/ash98/downloads/esim-1.1.3/src/subcircuitlibrary/74ls04/74ls04.cir
+
+.include Ideal_npn1.lib
+q5 net-_q5-pad1_ net-_q5-pad2_ net-_q1-pad3_ Ideal_npn2
+r5 net-_r1-pad1_ net-_q5-pad1_ 100
+q1 net-_q1-pad1_ net-_q1-pad2_ net-_q1-pad3_ Ideal_npn2
+r1 net-_r1-pad1_ net-_q1-pad1_ 100
+q3 net-_q3-pad1_ net-_q3-pad2_ net-_q1-pad3_ Ideal_npn2
+r3 net-_r1-pad1_ net-_q3-pad1_ 100
+q6 net-_q6-pad1_ net-_q6-pad2_ net-_q1-pad3_ Ideal_npn2
+r6 net-_r1-pad1_ net-_q6-pad1_ 100
+q2 net-_q2-pad1_ net-_q2-pad2_ net-_q1-pad3_ Ideal_npn2
+r2 net-_r1-pad1_ net-_q2-pad1_ 100
+q4 net-_q4-pad1_ net-_q4-pad2_ net-_q1-pad3_ Ideal_npn2
+r4 net-_r1-pad1_ net-_q4-pad1_ 100
+* u1 net-_q1-pad2_ net-_q1-pad1_ net-_q3-pad2_ net-_q3-pad1_ net-_q5-pad2_ net-_q5-pad1_ net-_q1-pad3_ net-_q2-pad1_ net-_q2-pad2_ net-_q4-pad1_ net-_q4-pad2_ net-_q6-pad1_ net-_q6-pad2_ net-_r1-pad1_ port
+.tran 0e-00 0e-00 0e-00
+
+* Control Statements
+.control
+run
+print allv > plot_data_v.txt
+print alli > plot_data_i.txt
+.endc
+.end
diff --git a/library/SubcircuitLibrary/74LS04/74LS04.pro b/library/SubcircuitLibrary/74LS04/74LS04.pro
new file mode 100644
index 00000000..38d194c6
--- /dev/null
+++ b/library/SubcircuitLibrary/74LS04/74LS04.pro
@@ -0,0 +1,72 @@
+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/library/SubcircuitLibrary/74LS04/74LS04.sch b/library/SubcircuitLibrary/74LS04/74LS04.sch
new file mode 100644
index 00000000..577aa134
--- /dev/null
+++ b/library/SubcircuitLibrary/74LS04/74LS04.sch
@@ -0,0 +1,427 @@
+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
+EELAYER 25 0
+EELAYER END
+$Descr A4 11693 8268
+encoding utf-8
+Sheet 1 1
+Title ""
+Date ""
+Rev ""
+Comp ""
+Comment1 ""
+Comment2 ""
+Comment3 ""
+Comment4 ""
+$EndDescr
+$Comp
+L eSim_NPN Q5
+U 1 1 5E1D58A3
+P 8100 2950
+F 0 "Q5" H 8000 3000 50 0000 R CNN
+F 1 "eSim_NPN" H 8050 3100 50 0000 R CNN
+F 2 "" H 8300 3050 29 0000 C CNN
+F 3 "" H 8100 2950 60 0000 C CNN
+ 1 8100 2950
+ 1 0 0 -1
+$EndComp
+$Comp
+L eSim_R R5
+U 1 1 5E1D591F
+P 8150 2450
+F 0 "R5" H 8200 2580 50 0000 C CNN
+F 1 "100" H 8200 2400 50 0000 C CNN
+F 2 "" H 8200 2430 30 0000 C CNN
+F 3 "" V 8200 2500 30 0000 C CNN
+ 1 8150 2450
+ 0 1 1 0
+$EndComp
+$Comp
+L eSim_NPN Q1
+U 1 1 5E1D5AE8
+P 3850 2950
+F 0 "Q1" H 3750 3000 50 0000 R CNN
+F 1 "eSim_NPN" H 3800 3100 50 0000 R CNN
+F 2 "" H 4050 3050 29 0000 C CNN
+F 3 "" H 3850 2950 60 0000 C CNN
+ 1 3850 2950
+ 1 0 0 -1
+$EndComp
+$Comp
+L eSim_R R1
+U 1 1 5E1D5AEE
+P 3900 2450
+F 0 "R1" H 3950 2580 50 0000 C CNN
+F 1 "100" H 3950 2400 50 0000 C CNN
+F 2 "" H 3950 2430 30 0000 C CNN
+F 3 "" V 3950 2500 30 0000 C CNN
+ 1 3900 2450
+ 0 1 1 0
+$EndComp
+$Comp
+L eSim_NPN Q3
+U 1 1 5E1D5AF7
+P 5900 2950
+F 0 "Q3" H 5800 3000 50 0000 R CNN
+F 1 "eSim_NPN" H 5850 3100 50 0000 R CNN
+F 2 "" H 6100 3050 29 0000 C CNN
+F 3 "" H 5900 2950 60 0000 C CNN
+ 1 5900 2950
+ 1 0 0 -1
+$EndComp
+$Comp
+L eSim_R R3
+U 1 1 5E1D5AFD
+P 5950 2450
+F 0 "R3" H 6000 2580 50 0000 C CNN
+F 1 "100" H 6000 2400 50 0000 C CNN
+F 2 "" H 6000 2430 30 0000 C CNN
+F 3 "" V 6000 2500 30 0000 C CNN
+ 1 5950 2450
+ 0 1 1 0
+$EndComp
+$Comp
+L eSim_NPN Q6
+U 1 1 5E1D660C
+P 8100 5000
+F 0 "Q6" H 8000 5050 50 0000 R CNN
+F 1 "eSim_NPN" H 8050 5150 50 0000 R CNN
+F 2 "" H 8300 5100 29 0000 C CNN
+F 3 "" H 8100 5000 60 0000 C CNN
+ 1 8100 5000
+ 1 0 0 -1
+$EndComp
+$Comp
+L eSim_R R6
+U 1 1 5E1D6612
+P 8150 4500
+F 0 "R6" H 8200 4630 50 0000 C CNN
+F 1 "100" H 8200 4450 50 0000 C CNN
+F 2 "" H 8200 4480 30 0000 C CNN
+F 3 "" V 8200 4550 30 0000 C CNN
+ 1 8150 4500
+ 0 1 1 0
+$EndComp
+$Comp
+L eSim_NPN Q2
+U 1 1 5E1D661B
+P 3850 5000
+F 0 "Q2" H 3750 5050 50 0000 R CNN
+F 1 "eSim_NPN" H 3800 5150 50 0000 R CNN
+F 2 "" H 4050 5100 29 0000 C CNN
+F 3 "" H 3850 5000 60 0000 C CNN
+ 1 3850 5000
+ 1 0 0 -1
+$EndComp
+$Comp
+L eSim_R R2
+U 1 1 5E1D6621
+P 3900 4500
+F 0 "R2" H 3950 4630 50 0000 C CNN
+F 1 "100" H 3950 4450 50 0000 C CNN
+F 2 "" H 3950 4480 30 0000 C CNN
+F 3 "" V 3950 4550 30 0000 C CNN
+ 1 3900 4500
+ 0 1 1 0
+$EndComp
+$Comp
+L eSim_NPN Q4
+U 1 1 5E1D662A
+P 5900 5000
+F 0 "Q4" H 5800 5050 50 0000 R CNN
+F 1 "eSim_NPN" H 5850 5150 50 0000 R CNN
+F 2 "" H 6100 5100 29 0000 C CNN
+F 3 "" H 5900 5000 60 0000 C CNN
+ 1 5900 5000
+ 1 0 0 -1
+$EndComp
+$Comp
+L eSim_R R4
+U 1 1 5E1D6630
+P 5950 4500
+F 0 "R4" H 6000 4630 50 0000 C CNN
+F 1 "100" H 6000 4450 50 0000 C CNN
+F 2 "" H 6000 4480 30 0000 C CNN
+F 3 "" V 6000 4550 30 0000 C CNN
+ 1 5950 4500
+ 0 1 1 0
+$EndComp
+$Comp
+L PORT U1
+U 1 1 5E1D6683
+P 3250 2950
+F 0 "U1" H 3300 3050 30 0000 C CNN
+F 1 "PORT" H 3250 2950 30 0000 C CNN
+F 2 "" H 3250 2950 60 0000 C CNN
+F 3 "" H 3250 2950 60 0000 C CNN
+ 1 3250 2950
+ 1 0 0 -1
+$EndComp
+$Comp
+L PORT U1
+U 2 1 5E1D6721
+P 4500 2700
+F 0 "U1" H 4550 2800 30 0000 C CNN
+F 1 "PORT" H 4500 2700 30 0000 C CNN
+F 2 "" H 4500 2700 60 0000 C CNN
+F 3 "" H 4500 2700 60 0000 C CNN
+ 2 4500 2700
+ -1 0 0 1
+$EndComp
+$Comp
+L PORT U1
+U 3 1 5E1D67B9
+P 5450 2950
+F 0 "U1" H 5500 3050 30 0000 C CNN
+F 1 "PORT" H 5450 2950 30 0000 C CNN
+F 2 "" H 5450 2950 60 0000 C CNN
+F 3 "" H 5450 2950 60 0000 C CNN
+ 3 5450 2950
+ 1 0 0 -1
+$EndComp
+$Comp
+L PORT U1
+U 4 1 5E1D67BF
+P 6550 2700
+F 0 "U1" H 6600 2800 30 0000 C CNN
+F 1 "PORT" H 6550 2700 30 0000 C CNN
+F 2 "" H 6550 2700 60 0000 C CNN
+F 3 "" H 6550 2700 60 0000 C CNN
+ 4 6550 2700
+ -1 0 0 1
+$EndComp
+$Comp
+L PORT U1
+U 5 1 5E1D68A5
+P 7650 2950
+F 0 "U1" H 7700 3050 30 0000 C CNN
+F 1 "PORT" H 7650 2950 30 0000 C CNN
+F 2 "" H 7650 2950 60 0000 C CNN
+F 3 "" H 7650 2950 60 0000 C CNN
+ 5 7650 2950
+ 1 0 0 -1
+$EndComp
+$Comp
+L PORT U1
+U 6 1 5E1D68AB
+P 8750 2700
+F 0 "U1" H 8800 2800 30 0000 C CNN
+F 1 "PORT" H 8750 2700 30 0000 C CNN
+F 2 "" H 8750 2700 60 0000 C CNN
+F 3 "" H 8750 2700 60 0000 C CNN
+ 6 8750 2700
+ -1 0 0 1
+$EndComp
+$Comp
+L PORT U1
+U 7 1 5E1D68B1
+P 9400 4050
+F 0 "U1" H 9450 4150 30 0000 C CNN
+F 1 "PORT" H 9400 4050 30 0000 C CNN
+F 2 "" H 9400 4050 60 0000 C CNN
+F 3 "" H 9400 4050 60 0000 C CNN
+ 7 9400 4050
+ 1 0 0 -1
+$EndComp
+$Comp
+L PORT U1
+U 8 1 5E1D68B7
+P 4500 4750
+F 0 "U1" H 4550 4850 30 0000 C CNN
+F 1 "PORT" H 4500 4750 30 0000 C CNN
+F 2 "" H 4500 4750 60 0000 C CNN
+F 3 "" H 4500 4750 60 0000 C CNN
+ 8 4500 4750
+ -1 0 0 1
+$EndComp
+$Comp
+L PORT U1
+U 9 1 5E1D6A79
+P 3400 5000
+F 0 "U1" H 3450 5100 30 0000 C CNN
+F 1 "PORT" H 3400 5000 30 0000 C CNN
+F 2 "" H 3400 5000 60 0000 C CNN
+F 3 "" H 3400 5000 60 0000 C CNN
+ 9 3400 5000
+ 1 0 0 -1
+$EndComp
+$Comp
+L PORT U1
+U 10 1 5E1D6A7F
+P 6550 4750
+F 0 "U1" H 6600 4850 30 0000 C CNN
+F 1 "PORT" H 6550 4750 30 0000 C CNN
+F 2 "" H 6550 4750 60 0000 C CNN
+F 3 "" H 6550 4750 60 0000 C CNN
+ 10 6550 4750
+ -1 0 0 1
+$EndComp
+$Comp
+L PORT U1
+U 11 1 5E1D6A85
+P 5450 5000
+F 0 "U1" H 5500 5100 30 0000 C CNN
+F 1 "PORT" H 5450 5000 30 0000 C CNN
+F 2 "" H 5450 5000 60 0000 C CNN
+F 3 "" H 5450 5000 60 0000 C CNN
+ 11 5450 5000
+ 1 0 0 -1
+$EndComp
+$Comp
+L PORT U1
+U 12 1 5E1D6A8B
+P 8750 4750
+F 0 "U1" H 8800 4850 30 0000 C CNN
+F 1 "PORT" H 8750 4750 30 0000 C CNN
+F 2 "" H 8750 4750 60 0000 C CNN
+F 3 "" H 8750 4750 60 0000 C CNN
+ 12 8750 4750
+ -1 0 0 1
+$EndComp
+$Comp
+L PORT U1
+U 13 1 5E1D6A91
+P 7650 5000
+F 0 "U1" H 7700 5100 30 0000 C CNN
+F 1 "PORT" H 7650 5000 30 0000 C CNN
+F 2 "" H 7650 5000 60 0000 C CNN
+F 3 "" H 7650 5000 60 0000 C CNN
+ 13 7650 5000
+ 1 0 0 -1
+$EndComp
+$Comp
+L PORT U1
+U 14 1 5E1D6A97
+P 8650 2200
+F 0 "U1" H 8700 2300 30 0000 C CNN
+F 1 "PORT" H 8650 2200 30 0000 C CNN
+F 2 "" H 8650 2200 60 0000 C CNN
+F 3 "" H 8650 2200 60 0000 C CNN
+ 14 8650 2200
+ -1 0 0 1
+$EndComp
+Connection ~ 8200 2700
+Wire Wire Line
+ 8200 2700 8500 2700
+Wire Wire Line
+ 8200 2650 8200 2750
+Connection ~ 3950 2700
+Wire Wire Line
+ 3950 2700 4250 2700
+Wire Wire Line
+ 3950 2650 3950 2750
+Connection ~ 6000 2700
+Wire Wire Line
+ 6000 2700 6300 2700
+Wire Wire Line
+ 6000 2650 6000 2750
+Connection ~ 8200 4750
+Wire Wire Line
+ 8200 4750 8500 4750
+Wire Wire Line
+ 8200 4700 8200 4800
+Connection ~ 3950 4750
+Wire Wire Line
+ 3950 4750 4250 4750
+Wire Wire Line
+ 3950 4700 3950 4800
+Connection ~ 6000 4750
+Wire Wire Line
+ 6000 4750 6300 4750
+Wire Wire Line
+ 6000 4700 6000 4800
+Wire Wire Line
+ 3500 2950 3650 2950
+Wire Wire Line
+ 3950 3150 3950 3300
+Wire Wire Line
+ 3950 3300 9850 3300
+Wire Wire Line
+ 8200 3300 8200 3150
+Wire Wire Line
+ 6000 3150 6000 3300
+Connection ~ 6000 3300
+Wire Wire Line
+ 3950 5200 3950 5300
+Wire Wire Line
+ 3950 5300 9850 5300
+Wire Wire Line
+ 8200 5300 8200 5200
+Wire Wire Line
+ 6000 5200 6000 5300
+Connection ~ 6000 5300
+Wire Wire Line
+ 9850 5300 9850 3300
+Connection ~ 8200 5300
+Connection ~ 8200 3300
+Wire Wire Line
+ 3950 2350 3950 2200
+Wire Wire Line
+ 2800 2200 8400 2200
+Wire Wire Line
+ 8200 2200 8200 2350
+Wire Wire Line
+ 6000 2350 6000 2200
+Connection ~ 6000 2200
+Wire Wire Line
+ 2800 2200 2800 4300
+Wire Wire Line
+ 2800 4300 8200 4300
+Wire Wire Line
+ 3950 4300 3950 4400
+Connection ~ 3950 2200
+Wire Wire Line
+ 8200 4300 8200 4400
+Connection ~ 3950 4300
+Wire Wire Line
+ 6000 4400 6000 4300
+Connection ~ 6000 4300
+Connection ~ 8200 2200
+Wire Wire Line
+ 9650 4050 9850 4050
+Connection ~ 9850 4050
+Text Label 8350 2150 0 60 ~ 0
+VCC
+Text Label 9650 4000 0 60 ~ 0
+GND
+Text Label 5850 6000 0 60 ~ 0
+IC_74LS04_subcircuit
+$EndSCHEMATC
diff --git a/library/SubcircuitLibrary/74LS04/74LS04.sub b/library/SubcircuitLibrary/74LS04/74LS04.sub
new file mode 100644
index 00000000..8687a3cc
--- /dev/null
+++ b/library/SubcircuitLibrary/74LS04/74LS04.sub
@@ -0,0 +1,19 @@
+* Subcircuit 74LS04
+.subckt 74LS04 net-_q1-pad2_ net-_q1-pad1_ net-_q3-pad2_ net-_q3-pad1_ net-_q5-pad2_ net-_q5-pad1_ net-_q1-pad3_ net-_q2-pad1_ net-_q2-pad2_ net-_q4-pad1_ net-_q4-pad2_ net-_q6-pad1_ net-_q6-pad2_ net-_r1-pad1_
+* /home/ash98/downloads/esim-1.1.3/src/subcircuitlibrary/74ls04/74ls04.cir
+.include Ideal_npn1.lib
+q5 net-_q5-pad1_ net-_q5-pad2_ net-_q1-pad3_ Ideal_npn2
+r5 net-_r1-pad1_ net-_q5-pad1_ 100
+q1 net-_q1-pad1_ net-_q1-pad2_ net-_q1-pad3_ Ideal_npn2
+r1 net-_r1-pad1_ net-_q1-pad1_ 100
+q3 net-_q3-pad1_ net-_q3-pad2_ net-_q1-pad3_ Ideal_npn2
+r3 net-_r1-pad1_ net-_q3-pad1_ 100
+q6 net-_q6-pad1_ net-_q6-pad2_ net-_q1-pad3_ Ideal_npn2
+r6 net-_r1-pad1_ net-_q6-pad1_ 100
+q2 net-_q2-pad1_ net-_q2-pad2_ net-_q1-pad3_ Ideal_npn2
+r2 net-_r1-pad1_ net-_q2-pad1_ 100
+q4 net-_q4-pad1_ net-_q4-pad2_ net-_q1-pad3_ Ideal_npn2
+r4 net-_r1-pad1_ net-_q4-pad1_ 100
+* Control Statements
+
+.ends 74LS04 \ No newline at end of file
diff --git a/library/SubcircuitLibrary/74LS04/74LS04_Previous_Values.xml b/library/SubcircuitLibrary/74LS04/74LS04_Previous_Values.xml
new file mode 100644
index 00000000..fcf16953
--- /dev/null
+++ b/library/SubcircuitLibrary/74LS04/74LS04_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">0</field2><field3 name="Stop Time">0</field3><field4 name="Start Combo">Sec</field4><field5 name="Step Combo">Sec</field5><field6 name="Stop Combo">Sec</field6></tran></analysis><source /><model /><devicemodel><q1><field>/home/ash98/Downloads/eSim-1.1.3/src/deviceModelLibrary/User Libraries/Ideal_npn1.lib</field></q1><q3><field>/home/ash98/Downloads/eSim-1.1.3/src/deviceModelLibrary/User Libraries/Ideal_npn1.lib</field></q3><q2><field>/home/ash98/Downloads/eSim-1.1.3/src/deviceModelLibrary/User Libraries/Ideal_npn1.lib</field></q2><q5><field>/home/ash98/Downloads/eSim-1.1.3/src/deviceModelLibrary/User Libraries/Ideal_npn1.lib</field></q5><q4><field>/home/ash98/Downloads/eSim-1.1.3/src/deviceModelLibrary/User Libraries/Ideal_npn1.lib</field></q4><q6><field>/home/ash98/Downloads/eSim-1.1.3/src/deviceModelLibrary/User Libraries/Ideal_npn1.lib</field></q6></devicemodel><subcircuit /></KicadtoNgspice> \ No newline at end of file
diff --git a/library/SubcircuitLibrary/74LS04/Ideal_npn1.lib b/library/SubcircuitLibrary/74LS04/Ideal_npn1.lib
new file mode 100644
index 00000000..7d77cf88
--- /dev/null
+++ b/library/SubcircuitLibrary/74LS04/Ideal_npn1.lib
@@ -0,0 +1 @@
+.model Ideal_npn2 NPN(MJE=0.337 BF=400 BR=6 IKF=0.3 VTF=1.7 ITF=0.6 CJC=0 IS=1E-14 MJC=0.33 TR=1.25e-12 CJE=0 VAF=1e12 XTF=3 RE=.2 RB=1 RC=.3 TF=12.5e-12 EG=1.11 XTB=1.5)
diff --git a/library/SubcircuitLibrary/74LS04/analysis b/library/SubcircuitLibrary/74LS04/analysis
new file mode 100644
index 00000000..ebd5c0a9
--- /dev/null
+++ b/library/SubcircuitLibrary/74LS04/analysis
@@ -0,0 +1 @@
+.tran 0e-00 0e-00 0e-00 \ No newline at end of file