Docsity

Computer Engineering Final Examination - Cmpe 2030 A, Exams of Computer Science

Toggle sidebar
bg1
1
Cmpe 2030 A
Introduction to Computer Engineering
Final Examination
June 10th, 1999
There are 14 questions and 19 pages. You also have an attachment with various figures and
worksheets. Please make sure that you have all of them. This examination is closed textbook.
No calculators, class notes or any material is allowed!
1. Please write/draw legibly. Use the work sheets for generating the solutions before provid-
ing the final answer.
2. State any assumptions you feel you have to make or ask for clarification
3. Keep in mind it is difficult to give partial credit without written material. Please make sure
you document any partial solutions.
4. All questions carry equal points (10 pts). Plan your work!
5.The exam is 2 hours and 50 minutes.
Name:_________________________________________________
Student Number:_________________________________________
Question Graded
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Total
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12

Partial preview of the text

Download Computer Engineering Final Examination - Cmpe 2030 A and more Exams Computer Science in PDF only on Docsity!

Cmpe 2030 A

Introduction to Computer Engineering

Final Examination

June 10th, 1999

There are 14 questions and 19 pages. You also have an attachment with various figures and worksheets. Please make sure that you have all of them. This examination is closed textbook. No calculators, class notes or any material is allowed!

  1. Please write/draw legibly. Use the work sheets for generating the solutions before provid- ing the final answer.
  2. State any assumptions you feel you have to make or ask for clarification
  3. Keep in mind it is difficult to give partial credit without written material. Please make sure you document any partial solutions.
  4. All questions carry equal points (10 pts). Plan your work!

5.The exam is 2 hours and 50 minutes.

Name:_________________________________________________

Student Number:_________________________________________

Question Graded 1 2 3 4 5 6 7 8 9

10 11 12 13 14 Total

  1. Provide a switch level implementation of the following expression using n-type and p-type switches. Assume that the complement of each signal is also available

F = A โŠ• B

3 Implement the following expression using only NAND and NOT gates. Use the mixed logic notation we have used in class. Do not assume that the complements of the inputs are avail- able. Do not simplify the expression. Provide the number of transistors in the implementa- tion.

Transistors = ____________

F = ( A + B ) C + AC + BCD

4 This questions deals with logic minimization using K-Maps.

4 (a) Simplify the following expression algebraically to a sum of products form.

4 (b) Fill in the K-Map for the preceding function.

F = A + C + BC D ( + B )

Function _______________________________________

A

C

B

D

CD

AB

5(a) Draw the gate level implementation of a 2:1 multiplexor. Clearly label all of the control, input, and output signals.

5 (b) Show how you can construct a 4:1 multiplexor using 2:1 multiplexors. Clearly label all control, input, and output signals. Clearly show all of the connections between multiplex- ors. Use the 2:1 Mux icon below. Do not provide a gate level implementation of a 4: muxltiplexor.

I

I

O

S

2: Mux

  1. Consider the boolean function specified with the truth table shown below.

Implement this function using a decoder. Clearly label all signals including the inputs, out- put and multiplexor select lines.

A B C Out 0 0 0 1 0 0 1 1 0 1 0 1 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 1 1 1 1 1

8(a). Show the hexadecimal value of the IEEE 754 floating point representation of -1.0.

8 (b) What is the result to of the following floating point operation? The numbers are shown in complete normalized IEEE 754 form: 1.101 x 2^129 + 1.01 x 2^122

9(a). Draw the gate level implementation of a D latch.

9 (b) Complete the timing diagram below for the circuit shown below.

phi

phi

Input

B

transparent latch

transparent latch

transparent latch

transparent latch

input

A B

phi1 (^) phi2 phi1 phi

A

10 (c) Implement the counter using two register cells and basic gates.

11 (a). What is the difference between a DRAM cell and a SRAM cell?

11 (b) We have memory chips with 4M addresses and 8 bits at each address. Each chip has the chip interface is shown below. We wish to design memory system that can provide 16M addresses with 16 bits at each address. Show a design for such a memory system with the following should be clearly marked: i) the number of address bits required of the mem- ory system, ii) the number of address bits required of each memory chip, iii) an overall memory select signal, msel , for the memory system and the iv) the decoder inputs and out- puts. Please make sure your drawing is legible! (Use the worksheets first!!)

WE

CS

ADDR

D0.D

12 (c) Assume that the register $sp points to the top of the stack, this location contains the value on the top of the stack. Write a short SPIM program that pushes the contents of regis- ter $t0 onto the top of the stack.

  1. Consider the single cycle datapath shown overleaf. Write the microcode to implement the following operation. Make sure you fill in the description column:

Mem[1000] = R4-[(R2+6R1)/4].

i.e., the result should be stored in memory at location 1000..

cycle X Y Z rwe

imm en

imm va

au en a/s

lu en lf

su en st

ld en

st en r/w msel Descr 1 2 3 4 5 6 7 8 9

10