


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



D 0 D 1 D 2 D 3
ADDR
CS D 0 D 1 D 2 D 3
ADDR
CS D 0 D 1 D 2 D 3
ADDR
CS
ADDR
27
MSEL
D 0 D 1 D 2 D 3
32 M x 4
D 0 D 1 D 2 D 3
ADDR
CS
32 M x 4
32 M x 4
32 M x 4
A24:A0 25
A
2 A
25
25
25
25
In 0 Out^0 En
2 t o 4 In (^1) O^ O Ouuuttt (^213)
4 problems, 5 pages Exam Three 21 April 2010
Problem 2 (3 parts, 26 points) Datapath Elements Part A (6 points) Suppose the following inputs (in hexadecimal) are applied to the 32-bit barrel shifter used in the datapath. Determine the output (in hexadecimal). Assume the shift amount is drawn from the 16-bit immediate value. Shift Type Shift Amount Input Value Output Value logical 0x0008^ EB25ACE7^ 00EB25AC arithmetic 0x0010^ BAC19317^ FFFFBAC rotate 0xFFF4^ DE2FAB36^ FAB36DE Part B (in hexadecimal) to correctly program the logical unit. (8 points) For each bitwise logical function specification below, determine the LF code
X Y Out logical function LF 0 0 LF 0 Y ī X D 1 0 LF 1 X^5 0 1 LF 2 X ā Y^6 1 1 LF 3 X ā Y^7 Part C (12 points) Given the following finite state diagram, fill in the state table below.
S 1 S 0 0 0
M/Out S 1 S 0 H/M NS 1 NS 0 Out S 1 S 0 H/M NS 1 NS 0 Out 0 0 0^0 1 0 1 0 0^0 0 0 0 1 0 0 0 1 0 1 0 0 0 0 1 0^1 0 0 1 1 0 x^ x^ x 0 1 1^0 0 0 1 1 1 x^ x^ x
4 problems, 5 pages Exam Three 21 April 2010 Problem 4 (2 parts, 18 points) Counters Part A (8 points) Design a toggle cell using inverter. Your toggle cell should have an active high toggle enable input two transparent latches, two 2 to 1 muxes, and one TE , and an active low clear input CLR , clock inputs Φ 1 and Φ 2 , and an output Out. The CLR signal has precedence over TE. Label all signals. Also complete the behavior table for the toggle cell. TE CLR^ CLK Out 0 0 āā 0 1 0 āā 0 0 1 āā Q 0 1 1 āā Q 0 Part B (10 points) Now combine these toggle cells to build a counter should have an external clear, external count enable, and four count outputs O divide by eleven counter. Your O 0. Use any basic gates (AND, OR, NAND, NOR, XOR & NOT) you require. Assume clock^3 , O^2 , O^1 , inputs to the toggle cells are already connected. Your design must support multi-digit systems.
O 0
O 1
O 2
Ext Clr
Ext CE TE Out Clr
TE Out Clr
TE Out Clr
O 3
TE Out Clr
In Out LatchEn In Out LatchEn TE
Out
CLR^ Φ^1 Φ^2
In0Out In1S
In0Out In1S