Professional Documents
Culture Documents
Lecture6 More Gates
Lecture6 More Gates
E1.2 Digital Electronics I 6.1 1 Nov 2007 E1.2 Digital Electronics I 1 Nov 2007
Exclusive-OR Exclusive-XNOR
Exclusive-NOR (XNOR) produces a HIGH output
Exclusive-OR (XOR) produces a HIGH output whenever whenever the two inputs are at the same level.
the two inputs are at opposite levels.
E1.2 Digital Electronics I 6.3 1 Nov 2007 E1.2 Digital Electronics I 6.4 1 Nov 2007
XNOR gate may be used to simplify circuit implementation.
E1.2 Digital Electronics I 6.5 1 Nov 2007 E1.2 Digital Electronics I 6.6 1 Nov 2007
E1.2 Digital Electronics I 6.7 1 Nov 2007 E1.2 Digital Electronics I 6.8 1 Nov 2007
Enable/Disable Circuits cont. Merging & Inversion Circuits
Design a logic circuit that will allow a signal to pass to the output only
when control inputs B and C are both HIGH; otherwise, the output will OR gate performs signal merging function:-
stay LOW.
A
X
Design a logic circuit that will allow a signal to pass to the output only
when one, but not both, of the control inputs are HIGH; otherwise, the XOR gate performs selectable inversion function:-
output will stay HIGH.
E1.2 Digital Electronics I 6.9 1 Nov 2007 E1.2 Digital Electronics I 6.10 1 Nov 2007
Two-input multiplexer.
E1.2 Digital Electronics I 6.11 1 Nov 2007 E1.2 Digital Electronics I 6.12 1 Nov 2007
Multiplexers cont.
Four-input multiplexer.
E1.2 Digital Electronics I 6.13 1 Nov 2007 E1.2 Digital Electronics I 6.14 1 Nov 2007
0 D0
A B C f
0 D1
0 0 0 0 0 D2
0 0 1 0 1 D3
Y f
0 1 0 0 1 D4
0 D5
0 1 1 1
0 D6
1 0 0 1 1 D7
1 0 1 0
A
1 1 0 0
1 1 1 1
Variables { B
C
E1.2 Digital Electronics I 6.15 1 Nov 2007 E1.2 Digital Electronics I 1 Nov 2007
Demultiplexers (Data Distributors)
Another example
A DEMUX takes a single input and distributes it over
several outputs.
E1.2 Digital Electronics I 6.17 1 Nov 2007 E1.2 Digital Electronics I 6.18 1 Nov 2007
1-line-to-8-line demux
E1.2 Digital Electronics I 6.19 1 Nov 2007 E1.2 Digital Electronics I 6.20 1 Nov 2007
Demultiplexers (Data Distributors) cont.
E1.2 Digital Electronics I 6.21 1 Nov 2007 E1.2 Digital Electronics I 6.22 1 Nov 2007
EN
A1 &
OUT1
B1
A2
OUT2
B2
– inputs are on the left, outputs on the right
A3
OUT3
– qualifying symbol top centre: B3
E1.2 Digital Electronics I 1 Nov 2007 E1.2 Digital Electronics I 1 Nov 2007
Numbered Dependencies
• Other Dependencies
• Data inputs and outputs can be uniquely numbered
• Control input dependency labels can be followed by a number
– indicates which inputs or outputs they affect
Label Nam e On assertion ... On de-assertion ...
EN Enable perm its action prevents action – E.g.
G AN D (Gate) perm its action forces output low
V OR forces output high perm its action ENABLE G1
N NOT (Invert) Inverts output N o effect N2
INV
S Set forces output high N o effect
R Reset forces output low N o effect 1
OUT1
A1 1 2
A2 OUT2
E1.2 Digital Electronics I 1 Nov 2007 E1.2 Digital Electronics I 1 Nov 2007
Data Inputs
Outputs MUX
. .
0
}
. . A 0
. . select inputs G3
B 1
f
0
• The chip is enabled if the Enable input is "asserted”. 1
data inputs 2
3
• What does asserted mean?
– If the input is labelled EN, asserted means set Enable to 1
• Active High
– If the input is labelled EN , asserted means set Enable to 0
• Active Low
E1.2 Digital Electronics I 1 Nov 2007 E1.2 Digital Electronics I 6.28 1 Nov 2007