4.1/4.2- Decoders & Adders Flashcards
a way to create a circuit with multiple inputs based upon desired outputs.
minterm
When do we use minterms
When we have the truth table but not a boolean expression and want to create a circuit
What is the purpose of a multiplexer?
Pass through one of multiple inputs based upon a selection input.
Similar to an “if/else” statement in code.
Kinda a reverse multiplexer
Select one of 2n data OUTPUTS to set high based on the binary value of the n control inputs
Possible enable switch
Uses:
Decode address lines in memory
Decode opcode (operation code) in CPU
Decoder
Key component in an Arithmetic Logic Unit (ALU)
For ____ _____:
Thee Inputs: C{in}, x, y
Two Outputs: S & C
Full Adder
given an example decoder with inputs s0 and s1 and outputs m0 - m3, the inside of the decoder will contain:
inputs s1 and not s1 as well as input s0 and not s0
the output gates will be 4 AND gates with two inputs each. from top to bottom inputs will be:
(s1 and s0)
(s1 and not s0)
(not s1 and s0)
(not s1 and not s0)
given an example decoder with inputs s0, s1, and Enable (E) and outputs Q0 - Q3, the inside of the decoder will contain:
inputs s1 and not s1 as well as input s0 and not s0, and Enable (E)
the output gates will be 4 AND gates with three inputs each. from top to bottom inputs will be:
(s1 and s0 and E)
(s1 and not s0 and E)
(not s1 and s0 and E)
(not s1 and not s0 and E)
a single bit full adder circuit has the inputs X, Y and Cin as well as the outputs C and S. What is the inner circuits formula?
C = yCin + xCin + xy
S = x ⊕ y ⊕ Cin
a single bit full adder circuit has the inputs X, Y and Cin as well as the outputs C and S. What does the inner circuit look like?
Three AND gates with 2 inputs each, two xor gates and a or gate
(X AND Y)———
(X AND Cin)—— (OR) = C
(Y AND Cin)——-
(Y XOR Cin) XOR X = S
What two things cause a carry in a look ahead adder?
x =1 && y=1 ← generation (g)
(x =1 || y=1) && Cin ← propagation (p)
Carry look ahead adder formula
g= xy
p=x⊕y
there is a carry to a higher bit if
Carry generated by current bit (g=1)
OR There is a carry from the lower bit AND the current bit can propagate it
Formula: C = g + pCin
Look ahead adder input and output
g = _____
p = _____
S = _______
xy
x⊕y
x⊕y⊕Cin
a full adder with inputs x, y, and c and outputs p, g, and s can be formed from the following circuit:
(X XOR Y) –|– p
(X AND Y) –|— g
C— XOR —— s