Docsity

ECE2030: Introduction to Computer Engineering Final Exam, Exams of Computer Science

Toggle sidebar
bg1
STUDENT NAME and NUMBER: (PLEASE PRINT CLEARLY)
REMARKS: 1. All questions should be answered (in the space provided).
2. Books and notes may NOT be used.
3. Calculators are allowed.
4. You are allowed two 8.5”x11” crib sheets.
5. The exam is 2 hours and 50 minutes.
DATE: December 12, 2000 TIME: 11:30 a.m. - 2:20 p.m.
Marks:
Total:
Q1
Q2
Q3
Q4
v. 1.0 - 1 of 8 -
Georgia Institute of Technology
Department of Electrical and Computer Engineering
Final Exam
ECE2030: Introduction to Computer Engineering
Q5
Q6
Q7
Q8
Q9
Q10
/100
/10
/10
/10
/10
/10
/10
/10
/10
/10
/10
pf3
pf4
pf5
pf8

Partial preview of the text

Download ECE2030: Introduction to Computer Engineering Final Exam and more Exams Computer Science in PDF only on Docsity!

STUDENT NAME and NUMBER: (PLEASE PRINT CLEARLY)

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

  1. Books and notes may NOT be used.
  2. Calculators are allowed.
  3. You are allowed two 8.5”x11” crib sheets.
  4. The exam is 2 hours and 50 minutes.

DATE: December 12, 2000 TIME: 11:30 a.m. - 2:20 p.m.

Marks:

Total:

Q

Q

Q

Q

Georgia Institute of Technology Department of Electrical and Computer Engineering

Final Exam

ECE2030: Introduction to Computer Engineering

Q

Q

Q

Q

Q

Q

1. SWITCH DESIGN (MAX MARK: 10)

For the two expressions below, create a switch level implementation using nMOS and pMOS transistors. Assume you have the complements of each input.

2. MIXED LOGIC (MAX MARK: 10)

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 )

F = ( A + B ) CD + E

F =

5. COUNTERS (MAX MARK: 10)

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.

O 2 O 1 O 0

OUT

CE

CLEAR

OUT

CE

CLEAR

OUT

CE

CLEAR

6. MEMORY SYSTEMS (MAX MARK: 10)

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

R/W

MSEL

A10..A

D7..D

9. PROCEDURE CALL (MAX MARK: 10)

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?

10.SINGLE CYCLE DPU (MAX MARK: 10)

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

LF

ST

st en

ld en r/w msel Description

Zdi

Xdo

Ydo

Xra YraZ wa

32x

RF

rwe

32 X bus^ Y bus

Z bus

ALU

A B

a en

a/s

ST

LF

asl

Clk

sign extender

im en im va

RAM/ROM

addr

data

TG

TG

st en

ld en

r/w msel

X- register driven onto X bus Y- register driven onto Y bus Z- register written from Z bus rwe - register write enable

X Y Z

im en - immediate register enable

For all enables, 0=disable and 1=enable

a en - ALU enable LF - 4 bit logical function

A B

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