Docsity

Appropriate Modifications - Computer Engineering - Solved Exam, Exams of Computer Science

Toggle sidebar
bg1
STUDENT NAME: (PLEASE PRINT CLEARLY)
REMARKS: 1. All questions should be answered (in the space provided).
2. Books and notes may NOT be used, with the exception of one 8.5”x11” sheet of paper.
DATE: April 18, 2001 TIME: 10:05 a.m. - 10:55 a.m.
v. 1.0 - 1 of 6 -
Georgia Institute of Technology
Department of Electrical and Computer Engineering
Test #3
ECE2030: Introduction to Computer Engineering
Marks:
Total:
Q1
Q2
Q3
1. SINGLE CYCLE DPU (MAX MARK: 20)
Write a microcode fragment in the table below that will compute the following register transfer equation.
Use the single cycle datapath unit diagram attached at the back of the exam for reference on the control signals
(you may detach the reference page). In the computation use only R5 to R8 where R8 can be used as a tempo-
rary register and the other register values should not be altered. For maximum credit, write the microcode in as
few steps as possible, include a description of each microcode operation, and mark the appropriate “don’t care”
inputs with an X.
M[R5] = (M[R6] + 12) * 4) & R7
Clock
Cycle X Y Z rwe imm
en imm
va a
en asl a/s LF
(3210) ST st
en ld
en r/w msel Description
1 00110 x 01000 1 0 x 0 xx x xxxx xx 0 1 0 1 R8 = M[R6]
2 01000 x 01000 1 1 +12 1 00 0 xxxx xx 0 0 x 0 R8 = R8 + 12
3 01000 x 01000 1 1 -2 1 01 x xxxx 00 0 0 x 0 R8 = R8 << 2
4 01000 00111 01000 1 0 x 1 10 x 1000 xx 0 0 x 0 R8 = R8 & R7
5 00101 01000 x 0 0 x 0 xx x xxxx xx 1 0 1 1 M[R5] = R8
6
7
8
9
10
/20
/16
/24
/20
/20
Q4
/100
Q5
pf3
pf4
pf5

Partial preview of the text

Download Appropriate Modifications - Computer Engineering - Solved Exam and more Exams Computer Science in PDF only on Docsity!

STUDENT NAME:

(PLEASE PRINT CLEARLY)

REMARKS: 1. All questions should be answered (in the space provided).

  1. Books and notes may NOT be used, with the exception of one 8.5”x11” sheet of paper.

DATE: April 18, 2001 TIME: 10:05 a.m. - 10:55 a.m.

Georgia Institute of Technology Department of Electrical and Computer Engineering

Test

ECE2030: Introduction to Computer Engineering

Marks:

Total:

Q

Q

Q

1. SINGLE CYCLE DPU (MAX MARK: 20)

Write a microcode fragment in the table below that will compute the following register transfer equation. Use the single cycle datapath unit diagram attached at the back of the exam for reference on the control signals (you may detach the reference page). In the computation use only R5 to R8 where R8 can be used as a tempo- rary register and the other register values should not be altered. For maximum credit, write the microcode in as few steps as possible, include a description of each microcode operation, and mark the appropriate “don’t care” inputs with an X.

M[R5] = (M[R6] + 12) * 4) & R

Clock Cycle X Y Z rwe imm en

imm va

a en asl a/s

LF

ST

st en

ld en r/w msel Description

1 00110 x 01000 1 0 x 0 xx x xxxx xx 0 1 0 1 R8 = M[R6]

2 01000 x 01000 1 1 +12 1 00 0 xxxx xx 0 0 x 0 R8 = R8 + 12

3 01000 x 01000 1 1 -2 1 01 x xxxx 00 0 0 x 0 R8 = R8 << 2

4 01000 00111 01000 1 0 x 1 10 x 1000 xx 0 0 x 0 R8 = R8 & R

5 00101 01000 x 0 0 x 0 xx x xxxx xx 1 0 1 1 M[R5] = R

6

7

8

9

10

Q

Q

2. INSTRUCTION SET ARCHITECTURES (MAX MARK: 16)

Suppose that you have a datapath similar to the one discussed in class except that it has 16 registers and each register is 64 bits wide. Also, suppose that you wish to design the processor to be able to handle 150 different types of instructions (i.e. and, or, add, sub, etc.). Finally, suppose that you require immediate operands to have a range of. Determine the following values for the resulting instruction format that would need to be implemented. For the last two questions, assume the same basic instruction layout as discussed in class except for the appropriate modifications to instruction field sizes.

a) What is the minimum number of bits needed to specify the opcode?

b) What is the minimum number of bits needed to specify a register operand?

c) What is the minimum number of bits needed to specify an immediate operand?

d) What is the minimum number of bits needed to specify an R-format instruction?

e) What is the minimum number of bits needed to specify an I-format instruction?

3. MEMORY SYSTEMS (MAX MARK: 24)

a) You are given two different memory chips as listed in the table below. Fill in the remaining table cells with the total bits in each of the memory chips, the number of addressable locations, the number of address lines required to address all of these locations, and the number of input/output data lines.

Memory chip Total # of bits # of addresses # address lines # data lines

1Mx4 20 4

8Gx2 33 2

± 4 K

4 × 2 20 = 4194304 2 20 = 1048576

2 1 × 2 33 =

4. FINITE STATE MACHINES (MAX MARK: 20)

a) Develop the state table for the following state diagram.

b)There are problems with the above state diagram. Which node(s) have a problem and what is it?

State 011 for an input of 0 is undefined. State 001 has two directed arcs for an input of 1.

c) Is the above state machine a Mealy machine or a Moore machine. Justify your answer!

Moore machine since output is dependent only on the present state and not on the present input.

Present State Input Next State Output

100 or 010 011 010 ? 001 011 010

5. COUNTERS (MAX MARK: 20)

Design a synchronous modulo-12 counter (divide by 12 counter) using toggle cells and a minimum number of other gates. An example of the toggle cell block to use is shown below. For this counter, use an active high

external clear, an external count enable and have outputs , , , and for the modulo-12 counter value.

Assume that the clock inputs (i.e. , and ) are already connected to the toggle cells.

Z 0 Z 1 Z 2 Z 3

φ 1 φ 2

OUT

CE

CLEAR

OUT

CE

CLEAR

OUT

CE

CLEAR

OUT

CE

CLEAR

Z 0

Z 1

Z 2

Z 3

Count Enable

Clear