Docsity

5 Problems on Computer Architecture - Assignment 3 | CPSC 5155U, Assignments of Computer Architecture and Organization

Toggle sidebar
bg1
CPSC 5155 Homework Set 3 Due Thursday 11/04
Problems for Solution
1. Using two JK flip-flops and the methods of this chapter, design a modulo-3 up-counter.
The only input to such a counter is the clock. There are two outputs Y1Y0, which take
values 00, 01, 10, 00, 01, 10, etc. As a part of your design, produce the following.
a) The state diagram for the circuit.
b) The state table for the circuit.
c) The state transition table.
d) The input table for each flip-flop.
e) The input equations for each flip-flop.
f) A readable diagram for this circuit.
2. Extend the above circuit to produce three outputs Z0, Z1, Z2, exactly one of which is
active (high) at any given clock pulse.
3. Use three D flip-flops in a shift-register configuration to produce the modulo-3 counter.
Include a start signal (START) that sets the circuit to state 0, so Z0 = 1.
4. The following is a state transition table for a two-flip-flop circuit with two inputs X1 and
X0. Design the circuit represented by this transition table, using two JK flip-flops.
Present Next State
State X1 = 0, X0 = 0 X1 = 0, X0 = 1 X1 = 1, X0 = 0 X1 = 1, X0 = 1
Y1Y0Y1Y0Y1Y0Y1Y0Y1Y0
0 0 0 0 0 1 1 0 1 1
0 1 0 1 1 0 1 1 0 0
1 0 1 0 1 1 0 0 0 1
1 1 1 1 0 0 0 1 1 0
As a part of this design, provide the following.
a) Two state transition tables, one for each of the flip-flops.
b) Two input tables, one for each flip-flop.
c) The input equations for each flip-flop.
d) A readable design for this circuit.
5. The following is a state table for a circuit of interest.
Complete the design of this circuit, making the
state vector assignments A = 00, B = 01, C = 10,
and D = 11. Show the output table and output
equation, as well as the input tables and equations
for each of the two flip-flops. Draw the circuit.
You may use either JK or D flip-flops.
Created November 28, 2020
Present State Next State / Output
X = 0 X = 1
A A/0 B/0
B A/0 C/0
C A/0 D/0
D A/1 D/0

Partial preview of the text

Download 5 Problems on Computer Architecture - Assignment 3 | CPSC 5155U and more Assignments Computer Architecture and Organization in PDF only on Docsity!

CPSC 5155 Homework Set 3 Due Thursday 11/

Problems for Solution

  1. Using two JK flip-flops and the methods of this chapter, design a modulo-3 up-counter. The only input to such a counter is the clock. There are two outputs Y 1 Y 0 , which take values 00, 01, 10, 00, 01, 10, etc. As a part of your design, produce the following. a) The state diagram for the circuit. b) The state table for the circuit. c) The state transition table. d) The input table for each flip-flop. e) The input equations for each flip-flop. f) A readable diagram for this circuit.
  2. Extend the above circuit to produce three outputs Z 0 , Z 1 , Z 2 , exactly one of which is active (high) at any given clock pulse.
  3. Use three D flip-flops in a shift-register configuration to produce the modulo-3 counter. Include a start signal (START) that sets the circuit to state 0, so Z 0 = 1.
  4. The following is a state transition table for a two-flip-flop circuit with two inputs X 1 and X 0. Design the circuit represented by this transition table, using two JK flip-flops. Present Next State State X 1 = 0, X 0 = 0^ X 1 = 0, X 0 = 1^ X 1 = 1, X 0 = 0^ X 1 = 1, X 0 = 1 Y 1 Y 0 Y 1 Y 0 Y 1 Y 0 Y 1 Y 0 Y 1 Y 0 0 0 0 0 0 1 1 0 1 1 0 1 0 1 1 0 1 1 0 0 1 0 1 0 1 1 0 0 0 1 1 1 1 1 0 0 0 1 1 0 As a part of this design, provide the following. a) Two state transition tables, one for each of the flip-flops. b) Two input tables, one for each flip-flop. c) The input equations for each flip-flop. d) A readable design for this circuit.
  5. The following is a state table for a circuit of interest. Complete the design of this circuit, making the state vector assignments A = 00, B = 01, C = 10, and D = 11. Show the output table and output equation, as well as the input tables and equations for each of the two flip-flops. Draw the circuit. You may use either JK or D flip-flops. Created November 28, 2020 Present State Next State / Output X = 0 X = 1 A A/0 B/ B A/0 C/ C A/0 D/ D A/1 D/