An 8-bit 2’s complement number can represent values from ...
EECS 270 Final Exam
Spring 2007
Name: ____________________________________ unique name: _____________
Sign the honor code:
I have neither given nor received aid on this exam nor observed anyone else doing so.
___________________________________
Scores:
|Page # |Points |
|2 |/20 |
|3 |/16 |
|4 |/16 |
|5 |/8 |
|6 |/13 |
|7 |/12 |
|8/9 |/15 |
|Total | /100 |
NOTES:
1. Open book (our text only) and Open notes
2. Calculators are allowed, but no PDAs, Portables, Cell phones, etc.
3. Don’t spend too much time on any one problem.
4. You have about 120 minutes for the exam.
5. Be sure to fully label any MSI device you use.
Be sure to show work and explain what you’ve done when asked to do so
Fill-in-the-blank/multiple choice
20 points, -2 per wrong or blank answer, minimum 0
1. An 8-bit 2’s complement number can represent values from _________ to __________.
2. When building a 2048 by 8 memory out of a square memory of minimum size, the row
decoder will have _________ bits of input while the column MUX will have ___________
bits needed for the selector.
3. Consider the an error correction scheme where P(…) is the even one’s parity function (as in class) and there are 4 bits of data {ABCD}. If we are correcting 1 bit of error, and two of the error correction bits are sent as X=P(A,B,C), Y=P(B,C,D) then it must be the case that
Z=P(____________) or Z=P(______________)
4. ______ is the only negative value that has the same 4-bit representation as both a signed magnitude and 2’s complement number.
5. A clock period of 50ns corresponds to a frequency of _______________GHz.
6. The canonical sum-of-products representation of (A’*B)+(A’*C) is ____________________
7. The canonical sum-of-products representation of (A’+B’)*(A+B) is ___________________
8. In base-5 arithmetic, what arithmetic operation is performed when all digits of a number are shifted twice towards the least significant digit, dropping the two least significant digits and
adding zeros for the two most significant digits? Add/Subtract/Divide/Multiply by
____________
9. Consider a state machine that uses as few flip-flops as possible. If it has 8 states, 2 inputs and 3 outputs, there would be 4/8/16/32/64/128 rows and 4/8/16/32/64/128 columns in the state table (count both inputs and outputs).
10. In CMOS you’d need at least _______ transistors to implement a 3-input AND gate.
Short answer — 40 points
1. Using only tri-state devices, 2-input AND gates, 2-input OR gates, 2 to 4 decoders and inverters, build a 4 to 1 MUX. Use the same labels as the diagram below. Your design must use seven or fewer devices to receive credit. [8]
2. Following the rules for CMOS and using only transistors, design a device that computes (A’*B’) + C’. You may freely use the values A, B, C as well as A’, B’ and C’ as inputs. Your design must use eight or fewer transistors to receive credit. [8]
3. Using a K-map, find the minimal sum-of-products of Σ(W,X,Y,Z) (0,4,6,8,10,13,14). Place a star (*) next to each distinguished 1 in your K-map. [8]
4. Using only standard gates (AND, OR, NOT, XOR), D flip-flops and bubbles as well as a single up counter with reset, design a device which generates a clock with 7 times the period of the input clock and has a duty cycle of 3/7th. [8]
5. Design a state transition diagram for a state machine which has one input “A” and one output “Z”. Z should go high if the most recent inputs were either “1001” or “010”. For full credit, you should use as few states as possible. [8]
Long answer — 40 points
1. For this problem we will use a one-hot encoding. You are to assign state bits State[2:0] as 001 for state R, 010 for state M, and 100 for state T. You are to find logic equations for the next state (NS[2:0]) as well for the outputs Z and Y. You should simplify equations where possible and needless complexity will result in a deduction of points. [13]
NS2=
NS1=
NS0=
Y=
Z=
2. Using an implication table, minimize the number of states in the following state transition diagram. There is one input, A and one output X. In this diagram, dotted arrows are used to indicate A=0 and solid arrows that A=1. For your final answer you may either label the arrows or use dotted/solid lines as you wish. [12]
3. For this problem you will be designing a serial comparator. This device will take two numbers as input, with one bit of each number being provided each cycle (least significant bit first). It is then to figure which value is the greater one. More formally:
The machine has two inputs (X and Y) and one output (Z) in addition to the clock. The inputs are binary numbers given 1 bit at a time with the least significant bit given first and are valid on the rising edge of the clock (as well as well before and after that edge.) The output Z is 1 if the bits of X seen so far is larger (as a binary number) than the bits of Y seen so far. Consider the sample input and output sequence below (note: the rightmost bits are the oldest!):
[pic]
In this figure first X and Y are both zero, so X is not greater than Y and therefore Z=0. On the next rising edge of the clock X is now 1 (for a running value of 10) and Y is 0 (for a running value of 00) so the running value of X is greater than the running value of Y and therefore Z=1.
Design a circuit which implements the above. You may use only standard gates, MUXes, decoders, encoders, and D flip-flops. Your grade will be in part based on the size
and elegance of your design. You must show your work. You need not worry about timing issues (set-up and hold time etc.). [15]
The following page is provided for you to use for your answer if needed. Be sure to make it clear where your final answer is and cross out any work that wasn’t used or is wrong.
This page left blank to provide space for the last problem.
-----------------------
All outputs are zero
Unless shown
Input is A
Outputs are Y and Z
~A/Y=1
~A/Y=1,Z=1
A/Z=1
A/
A/Z=1
~A/
T
R
M
A
X=0
C
X=1
B
X=1
E
X=1
F
X=1
D
X=1
A
B
C
D
3
2
1
0
jk†Ü
" # $ % & ' ) * + , - . 0 1 2 4 5 6 7 8 9 : < = > ? @ A C D E F G I J M N O a b øîèäÞäØäÎèĺ³ºèĪº£ºèĪº£ºèÄšèšè£Äš”šè£Äš”šè£?Äèšè†è
hºì5?CJ$
hÈC0CJ$\?h?R³CJ$h…Out
S[1:0]
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- an 8 bit 2 s complement number can represent values from
- dear student pk
- iq
- digital systems
- lecture 4 binary and hexadecimal number systems
- chapter 7 expressions and assignment statements
- binary matrix operations general engineering
- chapter 2 primitive data types and operations
- notes on computer arithmetic carleton
- code conversion
Related searches
- 1 s complement and 2 s complement converter
- 2 s complement negative number
- 8 bit 2 s complement
- 2 s complement form
- adding 3 values 2 s complement numbers calculator
- n bit 2 s complement largest value
- 2 s complement subtraction calculator
- hexadecimal to 2 s complement calculator
- 8 bit 2 s complement calculator
- adding 2 s complement numbers
- 8 bit two s complement
- what is 2 s complement form