Professional Documents
Culture Documents
A - O: 1013 DOW
Su - Z: 1017 DOW
Name:
______Solutions______________________________________________
UMID:
_______________________________________________________________
Honor Pledge:
I have neither given nor received aid on this exam, nor have I
concealed any violation of the Honor Code.
Signature:
_______________________________________________________________
Instructions:
The exam is closed book except for one double-sided
8.5"x11" sheet of notes. No electronics of any kind may be
used.
1.
/9
2.
/15
Print your name and student ID number and sign the honor
pledge.
3.
/ 20
4.
/ 16
5.
/ 20
6.
/ 10
7.
/ 10
Total:
/ 100
EECS 270
University of Michigan
Winter 2015
1. [Number Systems9 Points]
A. [3 Points] What is the range of representation of non-negative decimal ranges in the
following format for the following schemes? You may leave your answer in terms of powers
of the specified radix.
5 digits in hexadecimal = ___[0, 165 -1]_______________
7 digits in octal = ____[0, 87 -1]_________________
12 digits in binary = _____[0, 212 - 1]_____________
B. [6 Points] Convert the following decimal numbers to binary, then to octal and hex. Only 6
fractional bits are necessary. If there is a repeating fractional part, indicate it. You may
show your work below the table.
Decimal
Binary
Octal
Hexadecimal
20.413
10100.0110102
24.328
14.6816
36.375
100100.0110002
44.308
24.6016
112.2
1110000.0011002
160.148
70.3016
Page 2 of 12
EECS 270
University of Michigan
Winter 2015
2. [Boolean Algebra15 Points]
A. [5 Points] Convert (xy) to SOP form. Describe its function with one word.
() = ( + )
= ( ) ( )
= ( + )( + )
= + + +
= +
Equality
B. [5 Points] Given the truth table:
0 0
0 1
1 0
1 1
1
0
1
By answering the three parts below, show that F is functionally complete. You can use
constants 0 & 1.
(i) Show how NOT can be implemented using one or more gates that implement F:
(ii) Show how AND can be implemented using one or more gates that implement F:
(iii) Show how OR can be implemented using one or more gates that implement F:
Page 3 of 12
EECS 270
University of Michigan
Winter 2015
C. [5 Points] Apply the rules of Boolean Algebra to show that both sides of the following
equation are equivalent without using truth tables (perfect induction). Hint: expand xy and
yz.
+ + = + +
= + ( + ) +
= + + +
= + +
=
Page 4 of 12
EECS 270
University of Michigan
3. [Shannons Expansion Theorem20 Points]
Winter 2015
If x2 = 1,
= (1 , 0, 3 , , )
= [0 + (1 , 0, 3 , , )][1 + (1 , 1, 3 , , )]
= (1 , 0, 3 , , ) 1
=
= (1 , 1, 3 , , )
= [1 + (1 , 0, 3 , , )][0 + (1 , 1, 3 , , )]
= 1 (1 , 1, 3 , , )
=
Q.E.D.
Page 5 of 12
EECS 270
University of Michigan
C. [10 Points] For the function F given below:
Winter 2015
(, , , ) = + +
(i) Identify all the minterms of F.
= ( + ) + ( + ) + ( + )
= + + + + +
Page 6 of 12
EECS 270
University of Michigan
Winter 2015
4. [Combinational Logic Blocks16 Points]
[8 Points] Use an 8-to-1 multiplexer to implement the three-variable EXCLUSIVE-OR
function . Inputs I7 and S2 are the most significant bits; inputs I0 and S0 are the least
significant bits. Your answers should be in terms of a, b, c, 0, or 1.
Answers:
I0 = 0
I1 = 1
I2 = 1
I3 = 0
I4 = 1
I5 = 0
I6 = 0
I7 = 1
Page 7 of 12
EECS 270
University of Michigan
Winter 2015
[8 Points] Using an 8-to-1 multiplexer, implement the four-variable EXCLUSIVE-OR
function . Inputs I7 and S2 are the most significant bits; inputs I0 and S0 are the
least significant bits. Your answers should be in terms of a, b, c, d, 0, or 1.
Answers:
I0 = d
I1 = d
I2 = d
I3 = d
I4 = d
I5 = d
I6 = d
I7 = d
Page 8 of 12
EECS 270
University of Michigan
Winter 2015
5. [Combinational Design20 Points]
A SuperSafe 2-passenger car will only start if the cars safety system signals that all
passengers are seated with their seatbelts fastened. It also will not start unless there is at
least one passenger seated in the car. (Note: it is possible that a seatbelt can be fastened
when no passenger is in the corresponding seat in such a case, the safety system should
still allow the engine to start.)
In addition to starting the car, the safety system must illuminate a warning light if the car is
moving fast and a seatbelt becomes unfastened.
Inputs:
Passengers seated (P1, P2: 0=passenger not seated, 1=passenger seated)
Seatbelts fastened (S1, S2: 0=seatbelt not fastened, 1=seatbelt fastened)
Car moving fast (F: 0=not fast, 1=fast)
Outputs:
Start engine (E: 0=do not start, 1=start)
Warning light (L: 0=light is on, 1=light is off)
A. [9 Points] Write a canonical SOP equation for the start engine output E. (Do not use
shorthand notation.)
= 1 2 1 2 + 1 2 1 2 + 1 2 1 2 + 1 2 1 2 + 1 2 1 2
Page 9 of 12
EECS 270
University of Michigan
Winter 2015
B. [8 Points] Write a canonical POS equation for the warning light output L. (Pay
attention to the output signal! Do not use shorthand notation.)
F
0
0
0
0
1
1
1
1
S1
0
0
1
1
0
0
1
1
S2
0
1
0
1
0
1
0
1
L
0
0
0
0
1
1
1
0
L (active low)
1
1
1
1
0
0
0
1
= ( + 1 + 2 )( + 1 + 2 )( + 1 + 2 )
C. [3 Points] SuperSafe will only let you design the circuit using two-input NAND gates.
What is the minimum number of these gates necessary to implement the start
engine output? (Hint: Simplify (show your work) your solution from Part A. Try to
determine the minimum number of NAND gates without drawing the whole circuit.)
= 1 2 1 2 + 1 2 1 2 + 1 2 1 2 + 1 2 1 2 + 1 2 1 2
= 1 2 (1 2 + 1 2 ) + 1 2 (1 2 + 1 2 ) + 1 2 1 2
= 1 2 2 + 1 2 1 + 1 2 1 2
NOT requires 1 NAND gate, AND requires 2 NAND gates, OR requires 3 NAND gates.
All NAND gates have two inputs in accordance with the question.
1 2 21 NOT, 2 ANDs 1(1 NAND gates) + 2(2 NANDs) = 5 gates
1 2 1 1 NOT, 2 ANDs 1(1 NANDs) + 2(2 NANDS) = 5 gates
1 2 1 2 3 ANDs 3(2 NANDs) = 6 gates
1 2 2 + 1 2 1 + 1 2 1 2 The previous gates + two OR gates
16 + 2(3 NANDs) = 22 gates.
Page 10 of 12
EECS 270
University of Michigan
6. [Timing and Delay10 Points]
Winter 2015
Assume that the NOR and AND gates have a 50ns delay, and that the NOT and XOR gates
have a 100ns delay. Complete the timing diagram below clearly showing all causality
arrows. Assume that signals are stable at -100ns.
Page 11 of 12
EECS 270
University of Michigan
7. [Laboratory Experience10 Points]
Winter 2015
True
True
False
True
True
False
`timescale 1 ns/1 ns
module _anything_but_myxor();
reg red, blue;
wire yellow;
myxor_____ t1
initial begin
_red_____ <= 0; _blue____ <= 0;
_red_____ <= 1; _blue____ <= 0;
_red_____ <= 0; _blue____ <= 1;
_red_____ <= 1; _blue____ <= 1;
#20____;
#20____;
#20____;
#20____;
Page 12 of 12