









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Problem # Points Score
(a) 6 points Fill in the following table, converting each unsigned number to binary, decimal, and/or hexadecimal as indicated.
Decimal Binary Hexadecimal
(b) 6 points Perform the following binary math operations. Assume that the numbers are unsigned (i.e. NOT 2ās complement).
(a) 6 points Basic blocks. The devices listed in the table below may have any or all of the following in- puts/outputs: data bits (D 3 , D 2 , D 1 , D 0 ), select/code bits (S 1 S 0 ), and an input/output bit (Y ). For each device in the table, specify whether each set of bits is an input (IN), output (OUT), or not used (X).
Device D 3 , D 2 , D 1 , D 0 S 1 S 0 Y
4-2 encoder
2-4 decoder
(b) 10 points * Using 1-4 DEMUXs as building blocks, along with minimal external
logic, design a 3-8 decoder. Label the inputs using the notation from Part 1 (above). Note: there are possibly multiple ways to solve this problem ā some approaches are worth more points than others. If your solution uses 1-4 DEMUXs that require an enable input, you will lose 2 points on this problem. If your solution requires connecting any inputs to 1 or 0, you will lose 2 points on this problem.
(b) 5 points Using various adder building blocks (such as the ones shown below), design a circuit for a 4 bit ripple carry adder. Your inputs should be labeled A 3 , A 2 , A 1 , A 0 , B 3 , B 2 , B 1 , B 0 , Cin. Your outputs should be labeled S 3 , S 2 , S 1 , S 0 , Cout.
A
B Cin (^) S^
Cout
full adder
A
B (^) S^
Cout
half adder
(c) 5 points * Below is the symbol for a 4 bit adder. Add the necessary circuitry to
make it a 4 bit adder/subtractor. Your inputs should be labeled A 3 , A 2 , A 1 , A 0 , B 3 , B 2 , B 1 , B 0 , and S. The outputs should be labeled S 3 S 2 S 1 S 0. When S=0, the circuit functions as a normal 4 bit adder. When S=1, the circuit computes A ā B.
Cin
Cout
B B
S
S
A
A
B B
S
S
4 bit adder
A
A
L
D
E
J^
K
Q^
Q^
CLK^
(a) 4 points Write simplified equations for J and K.
(b) 8 points Fill in the state transition table for the above circuit. The J and K columns are for your convenience and do not have to be used.
(c) 8 points Draw the state diagram for the circuit. The inputs on each arc (arrow) should be in the form LDE. You can label each arc with more than one set of inputs (as opposed to drawing one arc for each input combination ā see the next page for an example) to keep the diagram simpler.
(d) 2 points Can you describe how the E input controls the circuit when L=0?
(e) 2 points Can you describe what the L input does to the circuit? You may have to consider D when formulating your answer.
(b) 8 points Design a circuit to implement the state diagram using D flip flops. You do not have to draw the circuit; just show me the simplified equations for the flip flop inputs (DA and DB ) and the outputs V and C. Empty K-maps are provided below for your convenience. The next page is blank to show additional work if necessary.
00
01
11
10
AB^00 01 11
A
B
DN N
D
00
01
11
10
AB^00 01 11
A
B
DN N
D
00
01
11
10
AB^00 01 11
A
B
DN N
D
00
01
11
10
AB^00 01 11
A
B
DN N
D
Extra page for work.