summaryrefslogtreecommitdiff
path: root/digital ciruits/libs/sim_logic.lib
blob: 5221cdecfd0160d39c8eba80393acbb537aa2c0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
EESchema-LIBRARY Version 2.4
#encoding utf-8
#
# CMOS_NAND
#
DEF CMOS_NAND X 0 20 Y Y 1 F N
F0 "X" 0 -400 50 H V C CNN
F1 "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
#
# CMOS_NAND3
#
DEF CMOS_NAND3 X 0 20 Y Y 1 F N
F0 "X" 0 -400 50 H V C CNN
F1 "CMOS_NAND3" 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 0 200 R 50 50 1 1 I
X C C -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
#
# CMOS_NOT
#
DEF CMOS_NOT X 0 20 Y N 1 F N
F0 "X" 0 -400 50 H V C CNN
F1 "CMOS_NOT" 0 -300 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 400 0 0 200 0 -200 400 0 N
X A A -200 0 200 R 50 50 1 1 I
X Out Out 600 0 200 L 50 50 1 1 O I
X VDD VDD 200 300 200 D 50 50 1 1 W
ENDDRAW
ENDDEF
#
# D_FLIPFLOP
#
DEF D_FLIPFLOP X 0 40 Y Y 1 F N
F0 "X" 0 -400 50 H V C CNN
F1 "D_FLIPFLOP" 0 -300 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
DRAW
S 0 200 400 -200 0 1 0 N
X D 1 -200 100 200 R 50 50 1 1 I
X CLK 2 -200 -100 200 R 50 50 1 1 I C
X Q 3 600 100 200 L 50 50 1 1 O
X nQ 4 600 -100 200 L 50 50 1 1 O I
X VDD 5 200 400 200 D 50 50 1 1 W
ENDDRAW
ENDDEF
#
# D_LATCH
#
DEF D_LATCH X 0 20 Y Y 1 F N
F0 "X" 0 -400 50 H V C CNN
F1 "D_LATCH" 0 -300 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
DRAW
S 0 200 400 -200 0 1 0 N
X D 1 -200 100 200 R 50 50 1 1 I
X E 2 -200 -100 200 R 50 50 1 1 I
X Q 3 600 100 200 L 50 50 1 1 O
X nQ 4 600 -100 200 L 50 50 1 1 O I
X VDD 5 200 400 200 D 50 50 1 1 W
ENDDRAW
ENDDEF
#
#
# NOR
#
DEF NOR X 0 40 Y Y 1 F N
F0 "X" -100 -50 39 H V C CNN
F1 "NOR" -100 -100 39 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
DRAW
S -250 -250 50 -250 0 1 0 N
S -250 100 -250 -250 0 1 0 N
S 50 100 -250 100 0 1 0 N
S 50 100 50 -250 0 1 0 N
X A 1 -450 0 200 R 50 28 1 1 I
X B 2 -450 -150 200 R 50 28 1 1 I
X Out 3 250 -150 200 L 50 31 1 1 O
X VDD 4 250 0 200 L 50 28 1 1 I
ENDDRAW
ENDDEF
#
#
# basic_gates:jkff
#
DEF basic_gates:jkff X 0 40 Y Y 1 F N
F0 "X" 0 -350 50 H V C CNN
F1 "basic_gates:jkff" 0 0 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
DRAW
S -350 250 350 -300 0 1 0 N
X J 1 -450 200 100 R 50 50 1 1 I
X clk 2 -450 0 100 R 50 50 1 1 I
X k 3 -450 -200 100 R 50 50 1 1 I
X vdd 4 0 350 100 D 50 50 1 1 O
X q 5 450 150 100 L 50 50 1 1 O
X nq 6 450 -200 100 L 50 50 1 1 O
ENDDRAW
ENDDEF
#
# XNOR
#
DEF XNOR X 0 40 Y Y 1 F N
F0 "X" -100 300 39 H V C CNN
F1 "XNOR" -100 250 39 H V C CNN
F2 "" -150 350 50 H I C CNN
F3 "" -150 350 50 H I C CNN
DRAW
S -250 100 50 100 0 1 0 N
S -250 450 -250 100 0 1 0 N
S 50 100 50 450 0 1 0 N
S 50 450 -250 450 0 1 0 N
X A 1 -450 350 200 R 50 28 1 1 I
X B 2 -450 200 200 R 50 28 1 1 I
X Out 3 250 200 200 L 50 28 1 1 O
X VDD 4 250 350 200 L 50 28 1 1 I
ENDDRAW
ENDDEF
#
#
# XOR
#
DEF XOR X 0 40 Y Y 1 F N
F0 "X" 0 50 39 H V C CNN
F1 "XOR" 0 0 39 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
DRAW
S -150 -150 150 -150 0 1 0 N
S -150 200 -150 -150 0 1 0 N
S 150 200 -150 200 0 1 0 N
S 150 200 150 -150 0 1 0 N
X A 1 -350 100 200 R 50 28 1 1 I
X B 2 -350 -100 200 R 50 28 1 1 I
X Out 3 350 -50 200 L 50 28 1 1 O
X VDD 4 350 100 200 L 50 28 1 1 I
ENDDRAW
ENDDEF
#
#End Library