Академический Документы
Профессиональный Документы
Культура Документы
Directions There are 7 problems worth a total of 100 points. The number of points for each question
is indicated. Make sure that you show all work since partial credit will be given. This exam is
closed book, closed notes, and no calculators are allowed. You may not communicate in any
way with anyone other than exam proctors during the exam time. Dont forget to put your name
down on the first page. You may use the back of the sheets if you need extra space to do scratch work.
Name:
1
1. (18 points) Answer the following
xABBA NOR xB0B0 = [1010 1011 1011 1010] NOR [1011 0000 1011 0000]
= [0101 0100 0100 0101] = x5445
(d) (2 points) With 12 bits, we can represent uniquely:
i. exactly 12 distinct items
ii. X exactly 4096 distinct items.
iii. exactly 2 times 12, or 24 distinct items
iv. as many distinct items as we wish to.
2
2. (6 points) Consider the following logic circuit using a 2-to-1 MUX, where the A input is also used
as the select line. What logic operation does this circuit implement. Hint: Fill out the truth table.
A B Z
0 0
0 1
1 0
1 1
A B Z
0 0 0
0 1 0 The OR gate
1 0 0
1 1 1
3. (6 points) Using only 2-input NAND gates implement a 3-input OR gate. No other gates are allowed.
4. (6 points) Given a 22 4 memory, where the following sequence of 6 operations were performed.
What are the contents of memory at the end of the these 6 operations?
00 0 0 0 1
01 1 1 1 1
10 0 1 0 1
11 0 1 0 1
3
5. (18 points) A 1-bit comparator circuit has inputs A and B and three outputs G (Greater than), E
(Equal) and L (Less than):
where, G is 1 if A > B, 0 otherwise; E is 1 if A = B, 0 otherwise; L is 1 if A < B, 0 otherwise.
(Hint: This problem is similar to the Full Adder, only simpler)
A B G E L
An AND gate with all four E outputs connected to it will realize the logic
4
6. (25 points) The following decoder-based design for the circuit for an FSM was derived from a Truth
Table which in turn was derived from a State Transition Graph (STG). Your task is to show the
truth table and corresponding STG
(a) (15 points) Complete the following truth-table that the above FSM circuit was built from.
Note:You are being provided two tables so you fill in the second if you need space.
We need three states, one to indicate that the car is on track, the second
to indicate that the car is off to the left and the third to indicate that
it is off to the right. so we need two bits S1 S2 to represent them.
Inputs Cur St. Next St. Outputs
I C2 C1 N2 N1 X
0 0 0 0 1 0
0 0 1 1 0 0
0 1 0 1 0 0
0 1 1 0 0 1
1 0 0 0 0 0
1 0 1 0 1 0
1 1 0 0 1 0
1 1 1 1 1 1
(b) (10 points) Give the State transition graph for the FSM. Give names (of your choosing) to each
of the states.
Note: You may not need all circles.
5
7. (21 points) Answer the following:
(a) (3 points) The MAR for a memory is n bits and the MDR is m bits. What is the capacity of
the memory (in bits)?
4 NAND gates
(d) (2 points) If a decoder has 2k output lines, how many input lines will it need?