Docsity

ECE 274 Homework Assignment 4: Digital Electronics, Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
ECE 274 – Homework Assignment 4
Due at the beginning of class – Wednesday March 28, 2007
1. (5 points) Show the multiplication of two signed numbers represented in two’s complement. Be sure to show the partial product as
well as the final product.
a. 0102 * 0112 (210 * 310)
b. 1102 * 0112 (-210 * 310)
2. (5 points) Trace the outputs appearing at the output of a 3-bit carry-ripple adder for every one FA delay time period when adding 111
with 011. Assume all previous inputs were zero for a long time.
3. (5 points)Trace through the execution of a 4-bit magnitude comparator when a=15 and b=12. Be sure to show how the comparisons
propagate through the individual comparators.
4. (5 points) Design a special multiplier circuit that can multiply it’s 16-bit input by 1,2, 4, 8, 16, or 32 specified by 3 inputs a, b, and c.
A input of abc=000 means no multiply, abc=001means multiply by 2, abc=010 means multiply by 4, abc=011 means by 8, abc=100
means16, and abc=101 means by 32. HINT: You do not need to design a custom multiplier circuit, rather you can utilize other
combinational components. Simply show the block-level diagram and the corresponding interconnections.
5. (10 points) Design a 3-bit ALU to perform the operations specified.
Inputs
a b Operation
0 0 Clear output to 0
0 1 A – B
1 0 B + 2
1 1 B
6. (5 points) Trace the execution of a level sensitive SR Latch for the following input pattern. Assume S1, R1, and Q are initially 0.
Complete the timing diagram assuming logic gates have a tiny but non-zero delay
C
S
R
S1
R1
Q
7. (5 points) Trace the execution of a D Latch for the following input pattern. Assume Q is initially 0. Complete the timing diagram
assuming logic gates have a tiny but non-zero delay
C
D
S
R
Q
pf2

Partial preview of the text

Download ECE 274 Homework Assignment 4: Digital Electronics and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

ECE 274 – Homework Assignment 4

Due at the beginning of class – Wednesday March 28, 2007

  1. (5 points) Show the multiplication of two signed numbers represented in two’s complement. Be sure to show the partial product as well as the final product.a. 010 b. 1102 * 011^2 (2^10 * 3^ 10) 2 * 011 2 (-2 10 * 310)
  2. (5 points) with 011. Assume all previous inputs were zero for a long time. Trace the outputs appearing at the output of a 3-bit carry-ripple adder for every one FA delay time period when adding 111
  3. (5 points) propagate through the individual comparators.Trace through the execution of a 4-bit magnitude comparator when a=15 and b=12. Be sure to show how the comparisons
  4. (5 points) A input of abc=000 means no multiply, abc=001means multiply by 2, abc=010 means multiply by 4, abc=011 means by 8, abc=100 Design a special multiplier circuit that can multiply it’s 16-bit input by 1,2, 4, 8, 16, or 32 specified by 3 inputs a, b, and c. means16, and abc=101 means by 32. combinational components. Simply show the block-level diagram and the corresponding interconnections. HINT: You do not need to design a custom multiplier circuit, rather you can utilize other
  5. (10 points) Design a 3-bit ALU to perform the operations specified.

a Inputsb Operation 00 01 Clear output to 0A – B 11 01 B + 2B

  1. (5 points) Trace the execution of a level sensitive SR Latch for the following input pattern. Assume S1, R1, and Q are initially 0. Complete the timing diagram assuming logic gates have a tiny but non-zero delay C S R S R Q
  2. (5 points) Trace the execution of a D Latch for the following input pattern. Assume Q is initially 0. Complete the timing diagram assuming logic gates have a tiny but non-zero delay C D S R Q

8. (5 points) initially stores a 0. Provide a brief explanation of the behavior of each device. Compare the behavior of D latch and D flip-flop devices by completing the timing diagram below. Assume each device

C D Q (D latch) Q (D flip-flop)

  1. (10 points) Design a 4-bit multifunction register, defined by the table below. Each input should have its own control line.

SHL ROLInputs CLR INV Operation 00 00 00 01 Maintain present valueInvert input, Q = I' (^00 01) X 1 XX Clear, Q = 0Rotate Left 1 X X X Shift Left

  1. (5 points) for two clock cycles and then return to 0 – even if X is still 1. Remember that in an FSM, every transition condition is implicitly Draw a state diagram for an FSM that has an input X and an output Y. Whenever X changes from 0 to 1, Y should become 1 ANDed with a rising clock edge.

SHLROL CLR

SHL_IN

INV

I3 I2 I1 I

Q3 Q2 Q1 Q