




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!





STUDENT NAME and NUMBER: (PLEASE PRINT CLEARLY)
REMARKS: 1. All questions should be answered (in the space provided).
DATE: December 12, 2000 TIME: 11:30 a.m. - 2:20 p.m.
Marks:
Total:
Georgia Institute of Technology Department of Electrical and Computer Engineering
ECE2030: Introduction to Computer Engineering
For the two expressions below, create a switch level implementation using nMOS and pMOS transistors. Assume you have the complements of each input.
Using mixed-logic notation, draw the logic circuit diagram that implements the following Boolean expres- sion using only NOR gates and inverters. Do not assume you have the complemented versions of inputs.
What is the implemented Boolean function using NOR gates?
Out = ( A + B ) CD Out = A B ( + C + D )
Using the toggle cells below, build a modulo-6 counter (divide by six). Your counter should have an active low external clear, an active high external count enable, and three count outputs , , and. Use any basic gates you require. Assume clock inputs to the toggle cells are already connected.
a) The module shown below is a 2Kx8 memory chip. Design an 8Kx8 bank of memory using multiple cop- ies of the 2Kx8 memory chip shown and whatever other combinational building blocks or logic elements you need. The inputs and outputs of your circuit should be the appropriate number of ADDRESS and DATA lines, as well as the MSEL (an enable to select the entire memory) and R/W lines to specify a read (or write) operation. It is OK to use “bus notation” to indicate multi-line datapaths, such as address and data lines. Label all inputs and outputs to your circuit, and label all pins on chips and building blocks used. Otherwise points will be deducted.
2Kx
Below is a subroutine that uses two input arguments, $a0 and $a1 , and has one return value, $v.
addi $v0, $a0, 4 sub $v0, $a1, $v sai $v0, $v0, - jr $ra
a) Write out algebraically the effective calculation that is performed by this subroutine. Use x = $a0 , y = $a1 , and z = $v.
b) If the inputs and outputs of this subroutine are addresses of some sort, what operation does the subroutine perform in context of our various discussions about program control?
c) What does the last instruction do? What does $ra hold?
Write a microcode fragment in the table below that will compute the following register transfer equation with as few clock cycles as possible. Use the single cycle datapath unit diagram attached at the back of the exam for reference on the control signals. In the computation use only R1, R2, and R3 which may be modified after their initial values have been used. For maximum credit, include a description of each microcode oper- ation as well as mark the appropriate “don’t care” inputs with an X.
M[R3] = -6 * (R1 + R2)
Clock Cycle X Y Z rwe imm en
imm va
a en asl a/s
st en
ld en r/w msel Description
X- register driven onto X bus Y- register driven onto Y bus Z- register written from Z bus rwe - register write enable
im en - immediate register enable
a en - ALU enable LF - 4 bit logical function
Logical Function LF LF (^0) LF (^1) LF (^2) LF (^3)
ST - 2 bit shift type
Shift Types 00 = Logical 01 = Arithmetic 10 = Rotate
Shift Direction (B on ALU) positive B = shift right negative B = shift left
im va - immediate value st en - store enable ld en - load enable
a/s - add or subtract (add=0, sub=1) asl - arithmetic unit, shift unit, logical unit select
r/w - memory read/write (read=0,write=1) msel - memory select
asl 00 - select arithmetic unit 01 - select shift unit 10 - select logical unit