


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!



4 problems, 4 pages Exam Three 18 April 2001
Instructions: This is a closed book, closed note exam. Calculators are not permitted. If you have a question, raise your hand and I will come to you. Please work the exam in pencil and do not separate the pages of the exam. For maximum credit, show your work. Good Luck!
Your Name ( please print ) ________________________________________________
1 2 3 4 total
4 problems, 4 pages Exam Three 18 April 2001
Problem 1 (3 parts, 30 points) Memory Systems
Imagine using a 16 Kbit DRAM (the dynamic memory chip of choice when I graduated from Tech) organized as 4 thousand addresses of 4-bit words to build three memory systems. The following three parts consider memory systems built using this chip.
Part A (10 points) Consider 64 thousand addresses of 8-bit words memory system.
number of chips needed in one bank number of banks for memory system memory decoder required ( n to m )
number of DRAM chips required
Part B (10 points) Consider 1 million addresses of 16-bit words memory system.
number of chips needed in one bank number of banks for memory system memory decoder required ( n to m )
number of DRAM chips required
Part C (10 points) Consider 256 million addresses of 32-bit words memory system.
number of chips needed in one bank number of banks for memory system memory decoder required ( n to m )
number of DRAM chips required
Problem 2 (1 part, 15 points) Instruction Formats
An ancient Egyptian hieroglyphic tablet has been found which may be the earliest record of an instruction set architecture (perhaps alien?). The example shown below has all fields shown with zeros. Do your best to interpret its meaning and answer the questions below.
000 000 000 000 000 000 000 000 000 000 000 000 opcode dest. reg. source 1 reg. immediate value
What is the maximum number of opcodes?
What is the number of registers?
What is the range of the signed immediate value?
How many bits would an R-type instruction use?
4 problems, 4 pages Exam Three 18 April 2001
Problem 4 (1 part, 30 points) Microcode Using the supplied datapath, write a microcode fragment that computes the average of the values stored at memory locations 0x5000 and 0x5004. Store the result in memory location 0x5004. Express all values in hexadecimal notation. “0xnnnn” means nnnn is already in hexadecimal; you don’t have to convert. You may not require every row in the table. Use ‘X’ when a value is don’t cared. For maximum credit, complete the description field. Use only registers 1, 2, and 3.
# X Y Z r we
im en
im va au en
-a /s
lu en
lf su en
st ld en
st en
r/ -w
m sel
description
1 2 3 4 5 6 7 8 9
10