summaryrefslogtreecommitdiff
path: root/library/SubcircuitLibrary/demux
diff options
context:
space:
mode:
Diffstat (limited to 'library/SubcircuitLibrary/demux')
-rw-r--r--library/SubcircuitLibrary/demux/NMOS-180nm.lib13
-rw-r--r--library/SubcircuitLibrary/demux/PMOS-180nm.lib11
-rw-r--r--library/SubcircuitLibrary/demux/README.md28
-rw-r--r--library/SubcircuitLibrary/demux/analysis1
-rw-r--r--library/SubcircuitLibrary/demux/demux-cache.lib100
-rw-r--r--library/SubcircuitLibrary/demux/demux.cir25
-rw-r--r--library/SubcircuitLibrary/demux/demux.cir.out28
-rw-r--r--library/SubcircuitLibrary/demux/demux.pro71
-rw-r--r--library/SubcircuitLibrary/demux/demux.sch569
-rw-r--r--library/SubcircuitLibrary/demux/demux.sub22
-rw-r--r--library/SubcircuitLibrary/demux/demux_Previous_Values.xml1
11 files changed, 869 insertions, 0 deletions
diff --git a/library/SubcircuitLibrary/demux/NMOS-180nm.lib b/library/SubcircuitLibrary/demux/NMOS-180nm.lib
new file mode 100644
index 00000000..51e9b119
--- /dev/null
+++ b/library/SubcircuitLibrary/demux/NMOS-180nm.lib
@@ -0,0 +1,13 @@
+.model CMOSN NMOS (LEVEL=8 VERSION=3.2 TNOM=27 TOX=4.1E-9 XJ=1E-7 NCH=2.3549E17 VTH0=0.3823463 K1=0.5810697
++ K2=4.774618E-3 K3=0.0431669 K3B=1.1498346 W0=1E-7 NLX=1.910552E-7 DVT0W=0 DVT1W=0 DVT2W=0
++ DVT0=1.2894824 DVT1=0.3622063 DVT2=0.0713729 U0=280.633249 UA=-1.208537E-9 UB=2.158625E-18
++ UC=5.342807E-11 VSAT=9.366802E4 A0=1.7593146 AGS=0.3939741 B0=-6.413949E-9 B1=-1E-7 KETA=-5.180424E-4
++ A1=0 A2=1 RDSW=105.5517558 PRWG=0.5 PRWB=-0.1998871 WR=1 WINT=7.904732E-10 LINT=1.571424E-8 XL=0
++ XW=-1E-8 DWG=1.297221E-9 DWB=1.479041E-9 VOFF=-0.0955434 NFACTOR=2.4358891 CIT=0 CDSC=2.4E-4 CDSCD=0
++ CDSCB=0 ETA0=3.104851E-3 ETAB=-2.512384E-5 DSUB=0.0167075 PCLM=0.8073191 PDIBLC1=0.1666161 PDIBLC2=3.112892E-3
++ PDIBLCB=-0.1 DROUT=0.7875618 PSCBE1=8E10 PSCBE2=9.213635E-10 PVAG=3.85243E-3 DELTA=0.01 RSH=6.7 MOBMOD=1
++ PRT=0 UTE=-1.5 KT1=-0.11 KT1L=0 KT2=0.022 UA1=4.31E-9 UB1=-7.61E-18 UC1=-5.6E-11 AT=3.3E4 WL=0 WLN=1
++ WW=0 WWN=1 WWL=0 LL=0 LLN=1 LW=0 LWN=1 LWL=0 CAPMOD=2 XPART=0.5 CGDO=7.08E-10 CGSO=7.08E-10 CGBO=1E-12
++ CJ=9.68858E-4 PB=0.8 MJ=0.3864502 CJSW=2.512138E-10 PBSW=0.809286 MJSW=0.1060414 CJSWG=3.3E-10 PBSWG=0.809286
++ MJSWG=0.1060414 CF=0 PVTH0=-1.192722E-3 PRDSW=-5 PK2=6.450505E-5 WKETA=-4.27294E-4 LKETA=-0.0104078
++ PU0=6.3268729 PUA=2.226552E-11 PUB=0 PVSAT=969.1480157 PETA0=1E-4 PKETA=-1.049509E-3)
diff --git a/library/SubcircuitLibrary/demux/PMOS-180nm.lib b/library/SubcircuitLibrary/demux/PMOS-180nm.lib
new file mode 100644
index 00000000..032b5b95
--- /dev/null
+++ b/library/SubcircuitLibrary/demux/PMOS-180nm.lib
@@ -0,0 +1,11 @@
+.model CMOSP PMOS (LEVEL=8 VERSION=3.2 TNOM=27 TOX=4.1E-9 XJ=1E-7 NCH=4.1589E17 VTH0=-0.3938813 K1=0.5479015
++ K2=0.0360586 K3=0.0993095 K3B=5.7086622 W0=1E-6 NLX=1.313191E-7 DVT0W=0 DVT1W=0 DVT2W=0 DVT0=0.4911363
++ DVT1=0.2227356 DVT2=0.1 U0=115.6852975 UA=1.505832E-9 UB=1E-21 UC=-1E-10 VSAT=1.329694E5 A0=1.7590478
++ AGS=0.3641621 B0=3.427126E-7 B1=1.062928E-6 KETA=0.0134667 A1=0.6859506 A2=0.3506788 RDSW=168.5705677
++ PRWG=0.5 PRWB=-0.4987371 WR=1 WINT=0 LINT=3.028832E-8 XL=0 XW=-1E-8 DWG=-2.349633E-8 DWB=-7.152486E-9
++ VOFF=-0.0994037 NFACTOR=1.9424315 CIT=0 CDSC=2.4E-4 CDSCD=0 CDSCB=0 ETA0=0.0608072 ETAB=-0.0426148
++ DSUB=0.7343015 PCLM=3.2579974 PDIBLC1=7.229527E-6 PDIBLC2=0.025389 PDIBLCB=-1E-3 DROUT=0 PSCBE1=1.454878E10
++ PSCBE2=4.202027E-9 PVAG=15 DELTA=0.01 RSH=7.8 MOBMOD=1 PRT=0 UTE=-1.5 KT1=-0.11 KT1L=0 KT2=0.022 UA1=4.31E-9
++ UB1=-7.61E-18 UC1=-5.6E-11 AT=3.3E4 WL=0 WLN=1 WW=0 WWN=1 WWL=0 LL=0 LLN=1 LW=0 LWN=1 LWL=0 CAPMOD=2 XPART=0.5
++ CGDO=6.32E-10 CGSO=6.32E-10 CGBO=1E-12 CJ=1.172138E-3 PB=0.8421173 MJ=0.4109788 CJSW=2.242609E-10 PBSW=0.8 + MJSW=0.3752089 CJSWG=4.22E-10 PBSWG=0.8 MJSWG=0.3752089 CF=0 PVTH0=1.888482E-3 PRDSW=11.5315407 PK2=1.559399E-3
++ WKETA=0.0319301 LKETA=2.955547E-3 PU0=-1.1105313 PUA=-4.62102E-11 PUB=1E-21 PVSAT=50 PETA0=1E-4 PKETA=-4.346368E-3)
diff --git a/library/SubcircuitLibrary/demux/README.md b/library/SubcircuitLibrary/demux/README.md
new file mode 100644
index 00000000..b2bb3cb4
--- /dev/null
+++ b/library/SubcircuitLibrary/demux/README.md
@@ -0,0 +1,28 @@
+
+# Demux IC
+
+Demux is the de-multiplexer circuit that takes one input line and gives multiple output lines. Basically, it’s a combinational circuit and It always takes one input
+line and gives 2n output line, where n is the number of select lines. It is also, known as a serial to parallel converter or data distributor circuit. The 1:2 Demux consist of 1 input line, 1 select line, and produces 2 output line. as, according to the formula no. of the output line is depends on no. of select line, here, in 1:2 demux, no. of output line = 2^n = 2^1 = 2.
+
+
+## Usage/Examples
+
+It is used in communication systems.
+
+It is used in serial to parallel converter.
+
+
+## Documentation
+
+To know the details of 74LVC1G19 IC please refer to this link [74LVC1G19_IC_datasheet.](https://assets.nexperia.com/documents/data-sheet/74LVC1G19.pdf)
+
+## Comments/Notes
+
+Please note this is a complete Digital IC. It works fine at the time of simulation.
+
+## Contributor
+
+Name: Vanshika Tanwar
+Email: vanshikatanwar30@gmail.com
+Year: 2022
+Position: FOSSEE Summer Fellowship Intern 2022
diff --git a/library/SubcircuitLibrary/demux/analysis b/library/SubcircuitLibrary/demux/analysis
new file mode 100644
index 00000000..ebd5c0a9
--- /dev/null
+++ b/library/SubcircuitLibrary/demux/analysis
@@ -0,0 +1 @@
+.tran 0e-00 0e-00 0e-00 \ No newline at end of file
diff --git a/library/SubcircuitLibrary/demux/demux-cache.lib b/library/SubcircuitLibrary/demux/demux-cache.lib
new file mode 100644
index 00000000..6c512720
--- /dev/null
+++ b/library/SubcircuitLibrary/demux/demux-cache.lib
@@ -0,0 +1,100 @@
+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_MOS_N
+#
+DEF eSim_MOS_N M 0 0 Y N 1 F N
+F0 "M" 0 -150 50 H V R CNN
+F1 "eSim_MOS_N" 100 -50 50 H V R CNN
+F2 "" 300 -300 29 H V C CNN
+F3 "" 100 -200 60 H V C CNN
+ALIAS mosfet_n
+DRAW
+C 150 -200 111 0 1 10 N
+P 2 0 1 10 130 -290 130 -250 N
+P 2 0 1 0 130 -270 200 -270 N
+P 2 0 1 10 130 -220 130 -180 N
+P 2 0 1 0 130 -200 200 -200 N
+P 2 0 1 10 130 -150 130 -110 N
+P 2 0 1 0 130 -130 200 -130 N
+P 2 0 1 0 200 -300 200 -270 N
+P 2 0 1 0 200 -130 200 -100 N
+P 3 0 1 10 110 -275 110 -125 110 -125 N
+P 3 0 1 0 200 -200 300 -200 300 -250 N
+P 4 0 1 0 140 -200 180 -215 180 -185 140 -200 F
+X D 1 200 0 100 D 50 50 1 1 P
+X G 2 -100 -200 210 R 50 50 1 1 P
+X S 3 200 -400 100 U 50 50 1 1 P
+X B 4 300 -350 98 U 47 47 1 1 P
+ENDDRAW
+ENDDEF
+#
+# eSim_MOS_P
+#
+DEF eSim_MOS_P M 0 0 Y N 1 F N
+F0 "M" -50 50 50 H V R CNN
+F1 "eSim_MOS_P" 50 150 50 H V R CNN
+F2 "" 250 100 29 H V C CNN
+F3 "" 50 0 60 H V C CNN
+ALIAS mosfet_p
+DRAW
+C 100 0 111 0 1 10 N
+P 2 0 1 0 80 -70 150 -70 N
+P 2 0 1 10 80 -50 80 -90 N
+P 2 0 1 0 80 0 150 0 N
+P 2 0 1 10 80 20 80 -20 N
+P 2 0 1 0 80 70 150 70 N
+P 2 0 1 10 80 90 80 50 N
+P 2 0 1 0 150 -70 150 -100 N
+P 2 0 1 0 150 100 150 70 N
+P 3 0 1 10 60 75 60 -75 60 -75 N
+P 3 0 1 0 150 0 250 0 250 -50 N
+P 4 0 1 0 140 0 100 -15 100 15 140 0 F
+X D 1 150 200 100 D 50 50 1 1 P
+X G 2 -150 0 210 R 50 50 1 1 P
+X S 3 150 -200 100 U 50 50 1 1 P
+X B 4 250 -150 100 U 50 50 1 1 P
+ENDDRAW
+ENDDEF
+#
+#End Library
diff --git a/library/SubcircuitLibrary/demux/demux.cir b/library/SubcircuitLibrary/demux/demux.cir
new file mode 100644
index 00000000..720a8dff
--- /dev/null
+++ b/library/SubcircuitLibrary/demux/demux.cir
@@ -0,0 +1,25 @@
+* C:\FOSSEE\eSim\library\SubcircuitLibrary\demux\demux.cir
+
+* EESchema Netlist Version 1.1 (Spice format) creation date: 8/18/2022 2:01:37 AM
+
+* 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: /
+M2 /Vcc /Ebar Net-_M1-Pad1_ /Vcc mosfet_p
+M1 Net-_M1-Pad1_ /Ebar /GND /GND mosfet_n
+M3 /Vcc Net-_M1-Pad1_ Net-_M11-Pad2_ /Vcc mosfet_p
+M9 /Vcc /A Net-_M11-Pad2_ /Vcc mosfet_p
+M4 /Vcc /Ebar Net-_M10-Pad3_ /Vcc mosfet_p
+M10 /Vcc /A Net-_M10-Pad3_ /Vcc mosfet_p
+M5 Net-_M11-Pad2_ Net-_M1-Pad1_ Net-_M5-Pad3_ /GND mosfet_n
+M6 Net-_M5-Pad3_ /A /GND /GND mosfet_n
+M7 Net-_M10-Pad3_ /Ebar Net-_M7-Pad3_ /GND mosfet_n
+M8 Net-_M7-Pad3_ /A /GND /GND mosfet_n
+M13 /Vcc Net-_M11-Pad2_ /Y1 /Vcc mosfet_p
+M11 /Y1 Net-_M11-Pad2_ /GND /GND mosfet_n
+M14 /Vcc Net-_M10-Pad3_ /Y2 /Vcc mosfet_p
+M12 /Y2 Net-_M10-Pad3_ /GND /GND mosfet_n
+U1 /A /GND /Ebar /Y2 /Vcc /Y1 PORT
+
+.end
diff --git a/library/SubcircuitLibrary/demux/demux.cir.out b/library/SubcircuitLibrary/demux/demux.cir.out
new file mode 100644
index 00000000..d5837005
--- /dev/null
+++ b/library/SubcircuitLibrary/demux/demux.cir.out
@@ -0,0 +1,28 @@
+* c:\fossee\esim\library\subcircuitlibrary\demux\demux.cir
+
+.include NMOS-180nm.lib
+.include PMOS-180nm.lib
+m2 /vcc /ebar net-_m1-pad1_ /vcc CMOSP W=100u L=100u M=1
+m1 net-_m1-pad1_ /ebar /gnd /gnd CMOSN W=100u L=100u M=1
+m3 /vcc net-_m1-pad1_ net-_m11-pad2_ /vcc CMOSP W=100u L=100u M=1
+m9 /vcc /a net-_m11-pad2_ /vcc CMOSP W=100u L=100u M=1
+m4 /vcc /ebar net-_m10-pad3_ /vcc CMOSP W=100u L=100u M=1
+m10 /vcc /a net-_m10-pad3_ /vcc CMOSP W=100u L=100u M=1
+m5 net-_m11-pad2_ net-_m1-pad1_ net-_m5-pad3_ /gnd CMOSN W=100u L=100u M=1
+m6 net-_m5-pad3_ /a /gnd /gnd CMOSN W=100u L=100u M=1
+m7 net-_m10-pad3_ /ebar net-_m7-pad3_ /gnd CMOSN W=100u L=100u M=1
+m8 net-_m7-pad3_ /a /gnd /gnd CMOSN W=100u L=100u M=1
+m13 /vcc net-_m11-pad2_ /y1 /vcc CMOSP W=100u L=100u M=1
+m11 /y1 net-_m11-pad2_ /gnd /gnd CMOSN W=100u L=100u M=1
+m14 /vcc net-_m10-pad3_ /y2 /vcc CMOSP W=100u L=100u M=1
+m12 /y2 net-_m10-pad3_ /gnd /gnd CMOSN W=100u L=100u M=1
+* u1 /a /gnd /ebar /y2 /vcc /y1 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/demux/demux.pro b/library/SubcircuitLibrary/demux/demux.pro
new file mode 100644
index 00000000..d7f78c3b
--- /dev/null
+++ b/library/SubcircuitLibrary/demux/demux.pro
@@ -0,0 +1,71 @@
+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=eSim_Plot
+LibName23=transistors
+LibName24=conn
+LibName25=eSim_User
+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_Nghdl
+LibName38=eSim_Ngveri
diff --git a/library/SubcircuitLibrary/demux/demux.sch b/library/SubcircuitLibrary/demux/demux.sch
new file mode 100644
index 00000000..90d6f38d
--- /dev/null
+++ b/library/SubcircuitLibrary/demux/demux.sch
@@ -0,0 +1,569 @@
+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:eSim_Plot
+LIBS:transistors
+LIBS:conn
+LIBS:eSim_User
+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_Nghdl
+LIBS:eSim_Ngveri
+LIBS:demux-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
+$Comp
+L mosfet_p M2
+U 1 1 62F8023F
+P 3000 2500
+F 0 "M2" H 2950 2550 50 0000 R CNN
+F 1 "mosfet_p" H 3050 2650 50 0000 R CNN
+F 2 "" H 3250 2600 29 0000 C CNN
+F 3 "" H 3050 2500 60 0000 C CNN
+ 1 3000 2500
+ 1 0 0 -1
+$EndComp
+$Comp
+L mosfet_n M1
+U 1 1 62F80240
+P 2950 3000
+F 0 "M1" H 2950 2850 50 0000 R CNN
+F 1 "mosfet_n" H 3050 2950 50 0000 R CNN
+F 2 "" H 3250 2700 29 0000 C CNN
+F 3 "" H 3050 2800 60 0000 C CNN
+ 1 2950 3000
+ 1 0 0 -1
+$EndComp
+$Comp
+L mosfet_p M3
+U 1 1 62F80242
+P 4850 1900
+F 0 "M3" H 4800 1950 50 0000 R CNN
+F 1 "mosfet_p" H 4900 2050 50 0000 R CNN
+F 2 "" H 5100 2000 29 0000 C CNN
+F 3 "" H 4900 1900 60 0000 C CNN
+ 1 4850 1900
+ 1 0 0 -1
+$EndComp
+$Comp
+L mosfet_p M9
+U 1 1 62F80243
+P 5850 1900
+F 0 "M9" H 5800 1950 50 0000 R CNN
+F 1 "mosfet_p" H 5900 2050 50 0000 R CNN
+F 2 "" H 6100 2000 29 0000 C CNN
+F 3 "" H 5900 1900 60 0000 C CNN
+ 1 5850 1900
+ 1 0 0 -1
+$EndComp
+$Comp
+L mosfet_p M4
+U 1 1 62F80244
+P 4950 5100
+F 0 "M4" H 4900 5150 50 0000 R CNN
+F 1 "mosfet_p" H 5000 5250 50 0000 R CNN
+F 2 "" H 5200 5200 29 0000 C CNN
+F 3 "" H 5000 5100 60 0000 C CNN
+ 1 4950 5100
+ 1 0 0 -1
+$EndComp
+$Comp
+L mosfet_p M10
+U 1 1 62F80245
+P 5950 5100
+F 0 "M10" H 5900 5150 50 0000 R CNN
+F 1 "mosfet_p" H 6000 5250 50 0000 R CNN
+F 2 "" H 6200 5200 29 0000 C CNN
+F 3 "" H 6000 5100 60 0000 C CNN
+ 1 5950 5100
+ 1 0 0 -1
+$EndComp
+$Comp
+L mosfet_n M5
+U 1 1 62F80246
+P 5300 2750
+F 0 "M5" H 5300 2600 50 0000 R CNN
+F 1 "mosfet_n" H 5400 2700 50 0000 R CNN
+F 2 "" H 5600 2450 29 0000 C CNN
+F 3 "" H 5400 2550 60 0000 C CNN
+ 1 5300 2750
+ 1 0 0 -1
+$EndComp
+$Comp
+L mosfet_n M6
+U 1 1 62F80247
+P 5300 3550
+F 0 "M6" H 5300 3400 50 0000 R CNN
+F 1 "mosfet_n" H 5400 3500 50 0000 R CNN
+F 2 "" H 5600 3250 29 0000 C CNN
+F 3 "" H 5400 3350 60 0000 C CNN
+ 1 5300 3550
+ 1 0 0 -1
+$EndComp
+$Comp
+L mosfet_n M7
+U 1 1 62F80249
+P 5450 5800
+F 0 "M7" H 5450 5650 50 0000 R CNN
+F 1 "mosfet_n" H 5550 5750 50 0000 R CNN
+F 2 "" H 5750 5500 29 0000 C CNN
+F 3 "" H 5550 5600 60 0000 C CNN
+ 1 5450 5800
+ 1 0 0 -1
+$EndComp
+$Comp
+L mosfet_n M8
+U 1 1 62F8024A
+P 5450 6500
+F 0 "M8" H 5450 6350 50 0000 R CNN
+F 1 "mosfet_n" H 5550 6450 50 0000 R CNN
+F 2 "" H 5750 6200 29 0000 C CNN
+F 3 "" H 5550 6300 60 0000 C CNN
+ 1 5450 6500
+ 1 0 0 -1
+$EndComp
+$Comp
+L mosfet_p M13
+U 1 1 62F80250
+P 8000 2150
+F 0 "M13" H 7950 2200 50 0000 R CNN
+F 1 "mosfet_p" H 8050 2300 50 0000 R CNN
+F 2 "" H 8250 2250 29 0000 C CNN
+F 3 "" H 8050 2150 60 0000 C CNN
+ 1 8000 2150
+ 1 0 0 -1
+$EndComp
+$Comp
+L mosfet_n M11
+U 1 1 62F80251
+P 7950 2800
+F 0 "M11" H 7950 2650 50 0000 R CNN
+F 1 "mosfet_n" H 8050 2750 50 0000 R CNN
+F 2 "" H 8250 2500 29 0000 C CNN
+F 3 "" H 8050 2600 60 0000 C CNN
+ 1 7950 2800
+ 1 0 0 -1
+$EndComp
+$Comp
+L mosfet_p M14
+U 1 1 62F80252
+P 8000 5150
+F 0 "M14" H 7950 5200 50 0000 R CNN
+F 1 "mosfet_p" H 8050 5300 50 0000 R CNN
+F 2 "" H 8250 5250 29 0000 C CNN
+F 3 "" H 8050 5150 60 0000 C CNN
+ 1 8000 5150
+ 1 0 0 -1
+$EndComp
+$Comp
+L mosfet_n M12
+U 1 1 62F80253
+P 7950 5750
+F 0 "M12" H 7950 5600 50 0000 R CNN
+F 1 "mosfet_n" H 8050 5700 50 0000 R CNN
+F 2 "" H 8250 5450 29 0000 C CNN
+F 3 "" H 8050 5550 60 0000 C CNN
+ 1 7950 5750
+ 1 0 0 -1
+$EndComp
+$Comp
+L PORT U1
+U 2 1 62F8236C
+P 5950 7600
+F 0 "U1" H 6000 7700 30 0000 C CNN
+F 1 "PORT" H 5950 7600 30 0000 C CNN
+F 2 "" H 5950 7600 60 0000 C CNN
+F 3 "" H 5950 7600 60 0000 C CNN
+ 2 5950 7600
+ -1 0 0 1
+$EndComp
+$Comp
+L PORT U1
+U 4 1 62F82472
+P 9200 5600
+F 0 "U1" H 9250 5700 30 0000 C CNN
+F 1 "PORT" H 9200 5600 30 0000 C CNN
+F 2 "" H 9200 5600 60 0000 C CNN
+F 3 "" H 9200 5600 60 0000 C CNN
+ 4 9200 5600
+ -1 0 0 1
+$EndComp
+$Comp
+L PORT U1
+U 1 1 62F824AB
+P 1850 5300
+F 0 "U1" H 1900 5400 30 0000 C CNN
+F 1 "PORT" H 1850 5300 30 0000 C CNN
+F 2 "" H 1850 5300 60 0000 C CNN
+F 3 "" H 1850 5300 60 0000 C CNN
+ 1 1850 5300
+ 1 0 0 -1
+$EndComp
+$Comp
+L PORT U1
+U 5 1 62F824F0
+P 5700 950
+F 0 "U1" H 5750 1050 30 0000 C CNN
+F 1 "PORT" H 5700 950 30 0000 C CNN
+F 2 "" H 5700 950 60 0000 C CNN
+F 3 "" H 5700 950 60 0000 C CNN
+ 5 5700 950
+ -1 0 0 1
+$EndComp
+$Comp
+L PORT U1
+U 3 1 62F825BB
+P 1550 2700
+F 0 "U1" H 1600 2800 30 0000 C CNN
+F 1 "PORT" H 1550 2700 30 0000 C CNN
+F 2 "" H 1550 2700 60 0000 C CNN
+F 3 "" H 1550 2700 60 0000 C CNN
+ 3 1550 2700
+ 1 0 0 -1
+$EndComp
+$Comp
+L PORT U1
+U 6 1 62F8264A
+P 9400 2450
+F 0 "U1" H 9450 2550 30 0000 C CNN
+F 1 "PORT" H 9400 2450 30 0000 C CNN
+F 2 "" H 9400 2450 60 0000 C CNN
+F 3 "" H 9400 2450 60 0000 C CNN
+ 6 9400 2450
+ -1 0 0 1
+$EndComp
+Wire Wire Line
+ 3150 2700 3150 3000
+Wire Wire Line
+ 3150 3400 3150 7400
+Wire Wire Line
+ 2850 2500 2550 2500
+Wire Wire Line
+ 2550 2500 2550 3200
+Wire Wire Line
+ 2550 3200 2850 3200
+Wire Wire Line
+ 5000 1700 5000 1550
+Wire Wire Line
+ 5000 1550 6000 1550
+Wire Wire Line
+ 6000 1550 6000 1700
+Wire Wire Line
+ 5000 2100 5000 2300
+Wire Wire Line
+ 5000 2300 6000 2300
+Wire Wire Line
+ 6000 2300 6000 2100
+Wire Wire Line
+ 5500 2300 5500 2750
+Connection ~ 5500 2300
+Wire Wire Line
+ 5500 3550 5500 3150
+Wire Wire Line
+ 5500 3950 5500 4150
+Wire Wire Line
+ 5100 4900 5100 4700
+Wire Wire Line
+ 5100 4700 6100 4700
+Wire Wire Line
+ 6100 4700 6100 4900
+Wire Wire Line
+ 5100 5300 5100 5550
+Wire Wire Line
+ 5100 5550 6100 5550
+Wire Wire Line
+ 6100 5550 6100 5300
+Wire Wire Line
+ 5650 6500 5650 6200
+Wire Wire Line
+ 5650 5550 5650 5800
+Connection ~ 5650 5550
+Wire Wire Line
+ 5650 6900 5650 7600
+Wire Wire Line
+ 5200 5250 5300 5250
+Wire Wire Line
+ 5300 5250 5300 4700
+Connection ~ 5300 4700
+Wire Wire Line
+ 6200 5250 6300 5250
+Wire Wire Line
+ 6300 5250 6300 4750
+Wire Wire Line
+ 6300 4750 6100 4750
+Connection ~ 6100 4750
+Wire Wire Line
+ 5750 6150 5900 6150
+Wire Wire Line
+ 5900 6150 5900 6850
+Wire Wire Line
+ 5900 6850 5750 6850
+Wire Wire Line
+ 5850 6850 5850 6950
+Wire Wire Line
+ 5850 6950 5650 6950
+Connection ~ 5650 6950
+Connection ~ 5850 6850
+Wire Wire Line
+ 5600 3900 5850 3900
+Wire Wire Line
+ 5850 3900 5850 3100
+Wire Wire Line
+ 5850 3100 5600 3100
+Wire Wire Line
+ 5500 4050 5750 4050
+Wire Wire Line
+ 5750 4050 5750 3900
+Connection ~ 5750 3900
+Connection ~ 5500 4050
+Wire Wire Line
+ 5100 2050 5200 2050
+Wire Wire Line
+ 5200 2050 5200 1550
+Connection ~ 5200 1550
+Wire Wire Line
+ 6100 2050 6200 2050
+Wire Wire Line
+ 6200 2050 6200 1650
+Wire Wire Line
+ 6200 1650 6000 1650
+Connection ~ 6000 1650
+Wire Wire Line
+ 3250 3350 3300 3350
+Wire Wire Line
+ 3300 3350 3300 3500
+Wire Wire Line
+ 3300 3500 3150 3500
+Connection ~ 3150 3500
+Wire Wire Line
+ 4700 1900 4500 1900
+Wire Wire Line
+ 4500 1900 4500 2850
+Wire Wire Line
+ 4500 2850 3150 2850
+Connection ~ 3150 2850
+Wire Wire Line
+ 5200 2950 5050 2950
+Wire Wire Line
+ 5050 2950 5050 2700
+Wire Wire Line
+ 5050 2700 4500 2700
+Connection ~ 4500 2700
+Wire Wire Line
+ 3150 1350 3150 2300
+Wire Wire Line
+ 3150 1350 5450 1350
+Connection ~ 5450 1550
+Wire Wire Line
+ 4200 1350 4200 4550
+Wire Wire Line
+ 4200 4550 5500 4550
+Wire Wire Line
+ 5500 4550 5500 4700
+Connection ~ 5500 4700
+Connection ~ 4200 1350
+Connection ~ 5450 1350
+Wire Wire Line
+ 1800 2700 2550 2700
+Connection ~ 2550 2700
+Wire Wire Line
+ 5350 6700 3800 6700
+Wire Wire Line
+ 5800 5300 5800 5100
+Wire Wire Line
+ 2100 5300 5800 5300
+Wire Wire Line
+ 3800 6700 3800 5300
+Connection ~ 3800 5300
+Wire Wire Line
+ 3650 3750 5200 3750
+Wire Wire Line
+ 3650 3750 3650 5300
+Connection ~ 3650 5300
+Wire Wire Line
+ 2250 5100 4800 5100
+Wire Wire Line
+ 2250 5100 2250 2700
+Connection ~ 2250 2700
+Wire Wire Line
+ 5350 6000 4300 6000
+Wire Wire Line
+ 4300 6000 4300 5100
+Connection ~ 4300 5100
+Wire Wire Line
+ 5700 1900 5700 2200
+Wire Wire Line
+ 5700 2200 4700 2200
+Wire Wire Line
+ 4700 2200 4700 3750
+Connection ~ 4700 3750
+Wire Wire Line
+ 3250 2650 3400 2650
+Wire Wire Line
+ 3400 2650 3400 2100
+Wire Wire Line
+ 3400 2100 3150 2100
+Connection ~ 3150 2100
+Wire Wire Line
+ 8150 2350 8150 2800
+Wire Wire Line
+ 7850 5150 7500 5150
+Wire Wire Line
+ 7500 5150 7500 5950
+Wire Wire Line
+ 7500 3000 7850 3000
+Wire Wire Line
+ 7500 2150 7500 3000
+Wire Wire Line
+ 7500 2150 7850 2150
+Wire Wire Line
+ 7500 2550 5500 2550
+Connection ~ 5500 2550
+Connection ~ 7500 2550
+Wire Wire Line
+ 5650 5700 7500 5700
+Connection ~ 7500 5700
+Connection ~ 5650 5700
+Wire Wire Line
+ 8150 3200 8150 4200
+Wire Wire Line
+ 8150 5350 8150 5750
+Wire Wire Line
+ 7500 5950 7850 5950
+Wire Wire Line
+ 8150 1450 8150 1950
+Wire Wire Line
+ 5450 1450 8150 1450
+Connection ~ 5450 1450
+Wire Wire Line
+ 8150 4650 8150 4950
+Wire Wire Line
+ 8150 4650 7000 4650
+Wire Wire Line
+ 7000 4650 7000 1450
+Connection ~ 7000 1450
+Wire Wire Line
+ 8150 6150 8150 6450
+Wire Wire Line
+ 8250 3150 8250 3300
+Wire Wire Line
+ 8250 3300 8150 3300
+Connection ~ 8150 3300
+Wire Wire Line
+ 8250 6100 8250 6200
+Wire Wire Line
+ 8250 6200 8150 6200
+Connection ~ 8150 6200
+Wire Wire Line
+ 8250 2300 8450 2300
+Wire Wire Line
+ 8450 2300 8450 1750
+Wire Wire Line
+ 8450 1750 8150 1750
+Connection ~ 8150 1750
+Wire Wire Line
+ 8250 5300 8250 5400
+Wire Wire Line
+ 8250 5400 8350 5400
+Wire Wire Line
+ 8350 5400 8350 4800
+Wire Wire Line
+ 8350 4800 8150 4800
+Connection ~ 8150 4800
+Connection ~ 8150 2550
+Wire Wire Line
+ 8150 5600 8950 5600
+Connection ~ 8150 5600
+Wire Wire Line
+ 8150 2550 9150 2550
+Wire Wire Line
+ 9150 2550 9150 2450
+Wire Wire Line
+ 5450 1550 5450 950
+Wire Wire Line
+ 8150 6450 6500 6450
+Wire Wire Line
+ 6500 6450 6500 7400
+Wire Wire Line
+ 6500 7400 5800 7400
+Wire Wire Line
+ 8150 4200 6400 4200
+Wire Wire Line
+ 6400 4200 6400 7350
+Wire Wire Line
+ 6400 7350 5700 7350
+Wire Wire Line
+ 5700 7350 5700 7550
+Wire Wire Line
+ 3150 7400 5650 7400
+Wire Wire Line
+ 2350 4150 2350 7450
+Wire Wire Line
+ 2350 7450 5650 7450
+Wire Wire Line
+ 5650 7600 5700 7600
+Connection ~ 5650 7450
+Wire Wire Line
+ 5700 7550 5650 7550
+Connection ~ 5650 7550
+Wire Wire Line
+ 5800 7400 5800 7500
+Wire Wire Line
+ 5800 7500 5650 7500
+Connection ~ 5650 7500
+Connection ~ 5650 7400
+Text Label 2200 5300 0 60 ~ 12
+A
+Text Label 5700 7600 0 60 ~ 12
+GND
+Text Label 1900 2700 0 60 ~ 12
+Ebar
+Text Label 8800 5600 0 60 ~ 12
+Y2
+Text Label 5450 1100 0 60 ~ 12
+Vcc
+Text Label 9050 2550 0 60 ~ 12
+Y1
+Wire Wire Line
+ 5500 4150 2350 4150
+$EndSCHEMATC
diff --git a/library/SubcircuitLibrary/demux/demux.sub b/library/SubcircuitLibrary/demux/demux.sub
new file mode 100644
index 00000000..d96316ba
--- /dev/null
+++ b/library/SubcircuitLibrary/demux/demux.sub
@@ -0,0 +1,22 @@
+* Subcircuit demux
+.subckt demux /a /gnd /ebar /y2 /vcc /y1
+* c:\fossee\esim\library\subcircuitlibrary\demux\demux.cir
+.include NMOS-180nm.lib
+.include PMOS-180nm.lib
+m2 /vcc /ebar net-_m1-pad1_ /vcc CMOSP W=100u L=100u M=1
+m1 net-_m1-pad1_ /ebar /gnd /gnd CMOSN W=100u L=100u M=1
+m3 /vcc net-_m1-pad1_ net-_m11-pad2_ /vcc CMOSP W=100u L=100u M=1
+m9 /vcc /a net-_m11-pad2_ /vcc CMOSP W=100u L=100u M=1
+m4 /vcc /ebar net-_m10-pad3_ /vcc CMOSP W=100u L=100u M=1
+m10 /vcc /a net-_m10-pad3_ /vcc CMOSP W=100u L=100u M=1
+m5 net-_m11-pad2_ net-_m1-pad1_ net-_m5-pad3_ /gnd CMOSN W=100u L=100u M=1
+m6 net-_m5-pad3_ /a /gnd /gnd CMOSN W=100u L=100u M=1
+m7 net-_m10-pad3_ /ebar net-_m7-pad3_ /gnd CMOSN W=100u L=100u M=1
+m8 net-_m7-pad3_ /a /gnd /gnd CMOSN W=100u L=100u M=1
+m13 /vcc net-_m11-pad2_ /y1 /vcc CMOSP W=100u L=100u M=1
+m11 /y1 net-_m11-pad2_ /gnd /gnd CMOSN W=100u L=100u M=1
+m14 /vcc net-_m10-pad3_ /y2 /vcc CMOSP W=100u L=100u M=1
+m12 /y2 net-_m10-pad3_ /gnd /gnd CMOSN W=100u L=100u M=1
+* Control Statements
+
+.ends demux \ No newline at end of file
diff --git a/library/SubcircuitLibrary/demux/demux_Previous_Values.xml b/library/SubcircuitLibrary/demux/demux_Previous_Values.xml
new file mode 100644
index 00000000..5e4bb29c
--- /dev/null
+++ b/library/SubcircuitLibrary/demux/demux_Previous_Values.xml
@@ -0,0 +1 @@
+<KicadtoNgspice><source /><model /><devicemodel><m2><field>C:\FOSSEE\eSim\library\deviceModelLibrary\MOS\PMOS-180nm.lib</field><field /><field /><field /></m2><m1><field>C:\FOSSEE\eSim\library\deviceModelLibrary\MOS\NMOS-180nm.lib</field><field /><field /><field /></m1><m3><field>C:\FOSSEE\eSim\library\deviceModelLibrary\MOS\PMOS-180nm.lib</field><field /><field /><field /></m3><m9><field>C:\FOSSEE\eSim\library\deviceModelLibrary\MOS\PMOS-180nm.lib</field><field /><field /><field /></m9><m4><field>C:\FOSSEE\eSim\library\deviceModelLibrary\MOS\PMOS-180nm.lib</field><field /><field /><field /></m4><m10><field>C:\FOSSEE\eSim\library\deviceModelLibrary\MOS\PMOS-180nm.lib</field><field /><field /><field /></m10><m5><field>C:\FOSSEE\eSim\library\deviceModelLibrary\MOS\NMOS-180nm.lib</field><field /><field /><field /></m5><m6><field>C:\FOSSEE\eSim\library\deviceModelLibrary\MOS\NMOS-180nm.lib</field><field /><field /><field /></m6><m7><field>C:\FOSSEE\eSim\library\deviceModelLibrary\MOS\NMOS-180nm.lib</field><field /><field /><field /></m7><m8><field>C:\FOSSEE\eSim\library\deviceModelLibrary\MOS\NMOS-180nm.lib</field><field /><field /><field /></m8><m13><field>C:\FOSSEE\eSim\library\deviceModelLibrary\MOS\PMOS-180nm.lib</field><field /><field /><field /></m13><m11><field>C:\FOSSEE\eSim\library\deviceModelLibrary\MOS\NMOS-180nm.lib</field><field /><field /><field /></m11><m14><field>C:\FOSSEE\eSim\library\deviceModelLibrary\MOS\PMOS-180nm.lib</field><field /><field /><field /></m14><m12><field>C:\FOSSEE\eSim\library\deviceModelLibrary\MOS\NMOS-180nm.lib</field><field /><field /><field /></m12></devicemodel><subcircuit /><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" /><field2 name="Step Time" /><field3 name="Stop Time" /><field4 name="Start Combo">Sec</field4><field5 name="Step Combo">Sec</field5><field6 name="Stop Combo">Sec</field6></tran></analysis></KicadtoNgspice> \ No newline at end of file