* SPICE netlist
M1 VDD output output_bar VDD PMOS l=0.18u w=0.2u
M3 output_bar output 0 0 NMOS l=0.18u w=0.1u
M2 output output_bar 0 0 NMOS l=0.18u w=0.1u
M4 output output_bar VDD VDD PMOS l=0.18u w=0.2u
V1 VDD 0 1.8
M5 Y word output_bar 0 NMOS l=0.18u w=0.1u
M6 X word output 0 NMOS l=0.18u w=0.6u
VWord word 0 1.8
Vwrite write 0 PULSE(0 1.8 0 1p 1p 6n 12n 0)
M13 N003 bit 0 0 NMOS l=0.18u w=0.5u
M14 N003 bit VDD VDD PMOS l=0.15u w=1u
Vbit bit 0 PULSE(0 1.8 0 1p 1p 7n 10n 0)
M7 X write bit 0 NMOS l=0.18u w=0.1u
M10 Y write N003 0 NMOS l=0.18u w=0.2u
M11 N006 se 0 0 NMOS l=0.18u w=3u
M12 N005 N005 VDD VDD PMOS l=0.18u w=4u
M15 OUT N005 VDD VDD PMOS l=0.18u w=4u
M16 N005 X N006 0 NMOS l=0.18u w=6u
M17 OUT Y N006 0 NMOS l=0.18u w=6u
Vbit1 se 0 PULSE(0 1.8 0 1p 1p 1n 2n)
M8 X read N001 N001 PMOS l=0.18u w=0.2u
M9 Y read P001 N002 PMOS l=0.18u w=0.2u
C1 N001 0 0.1f
C2 P001 0 0.1f
C3 OUT 0 50f
Vwrite1 read 0 PULSE(0 1.8 0 1p 1p 6n 12n 0)
.include "C:\Users\sanje\Desktop\tsmc_180_nm\tsmc018.lib"
.tran 100n

* LTspice schematic (.asc)
Version 4.1
SHEET 1 3584 2032
WIRE 336 -968 336 -1016
WIRE 336 -920 336 -968
WIRE -976 -856 -1008 -856
WIRE -928 -856 -976 -856
WIRE -928 -808 -928 -856
WIRE -656 -808 -928 -808
WIRE 336 -792 336 -840
WIRE -1008 -776 -1008 -856
WIRE 240 -712 -304 -712
WIRE 752 -712 240 -712
WIRE -1008 -632 -1008 -696
WIRE 832 -632 832 -712
WIRE 832 -584 832 -632
WIRE 256 -536 0 -536
WIRE 528 -536 256 -536
WIRE -1408 -504 -1408 -536
WIRE -1408 -440 -1408 -504
WIRE 0 -440 0 -536
WIRE 0 -440 -32 -440
WIRE 0 -424 0 -440
WIRE 528 -424 528 -536
WIRE 560 -424 528 -424
WIRE 128 -408 48 -408
WIRE 832 -408 832 -504
WIRE -32 -376 -32 -440
WIRE 0 -376 -32 -376
WIRE 560 -376 560 -424
WIRE 560 -376 528 -376
WIRE 480 -344 416 -344
WIRE -304 -328 -304 -712
WIRE 128 -312 128 -408
WIRE 528 -312 528 -328
WIRE 528 -312 128 -312
WIRE 752 -312 752 -712
WIRE -1408 -280 -1408 -360
WIRE -656 -280 -832 -280
WIRE -384 -280 -656 -280
WIRE 0 -280 0 -328
WIRE 0 -280 -288 -280
WIRE -656 -264 -656 -280
WIRE 0 -264 0 -280
WIRE 416 -264 416 -344
WIRE 416 -264 0 -264
WIRE 528 -264 528 -312
WIRE 736 -264 528 -264
WIRE 1088 -264 832 -264
WIRE 1296 -264 1088 -264
WIRE 1088 -248 1088 -264
WIRE 0 -232 0 -264
WIRE 0 -232 -192 -232
WIRE -656 -216 -704 -216
WIRE 528 -216 528 -264
WIRE 688 -216 528 -216
WIRE 0 -200 0 -232
WIRE 528 -200 528 -216
WIRE 1152 -200 1088 -200
WIRE -560 -184 -608 -184
WIRE -528 -184 -560 -184
WIRE -704 -168 -704 -216
WIRE -656 -168 -704 -168
WIRE 1024 -168 992 -168
WIRE 1040 -168 1024 -168
WIRE 0 -152 -48 -152
WIRE 640 -152 528 -152
WIRE -336 -136 -336 -280
WIRE 1152 -136 1152 -200
WIRE 1152 -136 1088 -136
WIRE 128 -120 128 -312
WIRE 128 -120 48 -120
WIRE 416 -120 416 -264
WIRE 480 -120 416 -120
WIRE 784 -120 784 -264
WIRE -832 -104 -832 -280
WIRE -784 -104 -832 -104
WIRE 1296 -104 1296 -264
WIRE 1408 -104 1296 -104
WIRE -48 -88 -48 -152
WIRE 0 -88 0 -104
WIRE 0 -88 -48 -88
WIRE 528 -88 528 -104
WIRE 640 -88 640 -152
WIRE 640 -88 528 -88
WIRE -656 -56 -656 -104
WIRE 0 -56 0 -88
WIRE 528 -56 528 -88
WIRE -192 -40 -192 -232
WIRE 688 -40 688 -216
WIRE 1296 -40 1296 -104
WIRE -832 -24 -832 -104
WIRE 688 8 688 -40
WIRE 1296 8 1168 8
WIRE -688 24 -832 24
WIRE 1168 24 1168 8
WIRE -192 40 -192 -40
WIRE 1424 40 1344 40
WIRE 1504 40 1424 40
WIRE -1456 56 -1456 -8
WIRE -976 56 -1008 56
WIRE -880 56 -976 56
WIRE -688 56 -688 24
WIRE 1088 120 1088 -88
WIRE 1632 120 1632 72
WIRE 1632 120 1600 120
WIRE -1456 136 -1456 56
WIRE 1632 136 1632 120
WIRE 1760 152 1680 152
WIRE -832 184 -832 72
WIRE 1600 184 1600 120
WIRE 1632 184 1600 184
WIRE 1296 216 1296 56
WIRE 1600 216 1296 216
WIRE -832 280 -832 184
WIRE 256 296 96 296
WIRE 416 296 256 296
WIRE 1600 296 1600 216
WIRE 1632 296 1632 232
WIRE 1632 296 1600 296
WIRE -1776 312 -1792 312
WIRE -1456 328 -1456 216
WIRE 416 344 416 296
WIRE 496 344 416 344
WIRE 96 360 96 296
WIRE 96 360 16 360
WIRE 1632 360 1632 296
WIRE 96 376 96 360
WIRE 416 376 416 344
WIRE 240 392 144 392
WIRE 368 392 240 392
WIRE 1760 392 1760 152
WIRE 1792 392 1760 392
WIRE 1632 408 1584 408
WIRE 16 424 16 360
WIRE 96 424 16 424
WIRE 496 424 496 344
WIRE 496 424 416 424
WIRE 1760 440 1760 392
WIRE 1760 440 1680 440
WIRE 1792 456 1792 392
WIRE 1584 472 1584 408
WIRE 1632 472 1632 456
WIRE 1632 472 1584 472
WIRE 1632 504 1632 472
WIRE 1792 504 1792 456
WIRE -384 520 -384 456
WIRE 96 520 96 472
WIRE 240 520 240 392
WIRE 240 520 96 520
WIRE 416 552 416 472
WIRE 512 552 416 552
WIRE 592 552 512 552
WIRE 624 552 592 552
WIRE -384 568 -384 520
WIRE 592 600 592 552
WIRE 416 632 416 552
WIRE 416 632 400 632
WIRE 96 648 96 520
WIRE 112 648 96 648
WIRE 352 664 320 664
WIRE 112 680 112 648
WIRE 272 680 224 680
WIRE 320 680 320 664
WIRE 400 680 400 632
WIRE 592 696 592 664
WIRE 224 728 224 680
WIRE 224 728 112 728
WIRE 272 728 272 680
WIRE 352 728 352 664
WIRE 400 728 352 728
WIRE -384 744 -384 648
WIRE -384 744 -400 744
WIRE 64 760 -64 760
WIRE 672 760 448 760
WIRE -400 776 -400 744
WIRE 272 776 112 776
WIRE 400 776 272 776
WIRE 672 808 672 760
WIRE 672 808 560 808
WIRE 272 888 272 776
WIRE 400 936 272 936
WIRE 160 968 96 968
WIRE 224 968 160 968
WIRE 400 984 400 936
WIRE 400 984 272 984
WIRE 272 1016 272 984
FLAG 528 -56 0
FLAG 0 -56 0
FLAG 256 -536 VDD
FLAG 832 -408 0
FLAG 832 -632 VDD
FLAG 240 -712 word
FLAG 336 -792 0
FLAG 336 -968 word
FLAG -336 -136 0
FLAG 784 -120 0
FLAG -1008 -632 0
FLAG 1168 24 0
FLAG -192 -40 output
FLAG 688 -40 output_bar
FLAG 1632 504 0
FLAG 1632 72 VDD
FLAG -976 -856 write
FLAG -1408 -280 0
FLAG 1792 456 bit
FLAG 1424 40 write
FLAG -688 56 0
FLAG -832 184 bit
FLAG -976 56 write
FLAG 256 296 VDD
FLAG 272 728 0
FLAG 272 1016 0
FLAG 160 968 se
FLAG -400 776 0
FLAG -384 520 se
FLAG 320 680 0
FLAG 512 552 OUT
FLAG -1408 -504 bit
FLAG -656 -56 0
FLAG 1088 120 0
FLAG 592 696 0
FLAG -784 -104 X
IOPIN -976 112 Out
FLAG 1408 -104 Y
IOPIN 1216 112 Out
FLAG -64 760 X
IOPIN -256 976 In
FLAG 560 808 Y
IOPIN 368 1024 In
FLAG -1456 328 0
FLAG -1456 56 read
FLAG -560 -184 read
FLAG 1024 -168 read
SYMBOL pmos4 480 -424 R0
SYMATTR InstName M1
SYMATTR Value2 l=0.18u w=0.2u
SYMBOL nmos4 480 -200 R0
SYMATTR InstName M3
SYMATTR Value2 l=0.18u w=0.1u
SYMBOL nmos4 48 -200 M0
SYMATTR InstName M2
SYMATTR Value2 l=0.18u w=0.1u
SYMBOL pmos4 48 -328 R180
SYMATTR InstName M4
SYMATTR Value2 l=0.18u w=0.2u
SYMBOL voltage 832 -600 R0
SYMATTR InstName V1
SYMATTR Value 1.8
SYMBOL nmos4 832 -312 R90
SYMATTR InstName M5
SYMATTR Value2 l=0.18u w=0.1u
SYMBOL nmos4 -384 -328 M90
SYMATTR InstName M6
SYMATTR Value2 l=0.18u w=0.6u
SYMBOL voltage 336 -936 R0
SYMATTR InstName Word
SYMATTR Value 1.8
SYMBOL voltage -1008 -792 R0
SYMATTR InstName write
SYMATTR Value PULSE(0 1.8 0 1p 1p 6n 12n 0)
SYMBOL nmos4 1680 360 M0
SYMATTR InstName M13
SYMATTR Value2 l=0.18u w=0.5u
SYMBOL pmos4 1680 232 R180
SYMATTR InstName M14
SYMATTR Value2 l=0.15u w=1u
SYMBOL voltage -1408 -456 R0
SYMATTR InstName bit
SYMATTR Value PULSE(0 1.8 0 1p 1p 7n 10n 0)
SYMBOL nmos4 -880 -24 R0
SYMATTR InstName M7
SYMATTR Value2 l=0.18u w=0.1u
SYMBOL nmos4 1344 -40 M0
SYMATTR InstName M10
SYMATTR Value2 l=0.18u w=0.2u
SYMBOL nmos4 224 888 R0
SYMATTR InstName M11
SYMATTR Value2 l=0.18u w=3u
SYMBOL pmos4 144 472 R180
SYMATTR InstName M12
SYMATTR Value2 l=0.18u w=4u
SYMBOL pmos4 368 472 M180
SYMATTR InstName M15
SYMATTR Value2 l=0.18u w=4u
SYMBOL nmos4 64 680 R0
SYMATTR InstName M16
SYMATTR Value2 l=0.18u w=6u
SYMBOL nmos4 448 680 M0
SYMATTR InstName M17
SYMATTR Value2 l=0.18u w=6u
SYMBOL voltage -384 552 R0
SYMATTR InstName bit1
SYMATTR Value PULSE(0 1.8 0 1p 1p 1n 2n)
SYMBOL pmos4 -608 -264 M0
SYMATTR InstName M8
SYMATTR Value2 l=0.18u w=0.2u
SYMBOL pmos4 1040 -248 R0
SYMATTR InstName M9
SYMATTR Value2 l=0.18u w=0.2u
SYMBOL cap -672 -168 R0
SYMATTR InstName C1
SYMATTR Value 0.1f
SYMBOL cap 1072 -152 R0
SYMATTR InstName C2
SYMATTR Value 0.1f
SYMBOL cap 576 600 R0
SYMATTR InstName C3
SYMATTR Value 50f
SYMBOL voltage -1456 120 R0
SYMATTR InstName write1
SYMATTR Value PULSE(0 1.8 0 1p 1p 6n 12n 0)