



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!




REMARKS: 1. All questions should be answered (in the space provided).
DATE: April 18, 2001 TIME: 10:05 a.m. - 10:55 a.m.
Georgia Institute of Technology Department of Electrical and Computer Engineering
ECE2030: Introduction to Computer Engineering
Marks:
Total:
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
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
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?
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
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
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.
φ 1 φ 2
Count Enable
Clear