

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!


ECE 2030 Computer Engineering Spring 1999
4 problems, 6 pages Exam Three Solutions 28 May 1999
1
Problem 1 (3 parts, 30 points) The Memory System Problem
Imagine a one gigabyte memory array organized as 256 million address of 32 bit words. The following three parts consider how the memory system could be built using three different DRAM memory chips.
Part 1.A (10 points) Suppose the gigabyte memory system is built using today’s 256 megabit DRAM organized as 32 million addresses of eight bit words.
number of chips needed in 32M word bank 32 / 8 = 4 number of banks for 256 million addresses 256M / 32M = 8 memory decoder required ( n to m ) 3 to 8 number of DRAM chips required 4 x 8 = 32
Part 1.B (10 points) Suppose the gigabyte memory system is built using the original IBM PC’s 16 killobit DRAM organized as 16 thousand addresses of one bit words.
number of chips needed in 16K word bank 32 / 1 = 32 number of banks for 256 million addresses 256M / 16K = 16K (2 14 ) memory decoder required ( n to m ) 14 to 16K number of DRAM chips required 32 x 16K = 512,000 (2 19 )
Part 1.C (10 points) Suppose the gigabyte memory system is built using tomorrow’s one gigabit DRAM organized as 64 million addresses of sixteen bit words.
number of chips needed in 64M word bank 32 / 16 = 2 number of banks for 256 million addresses 256M / 64M = 4 memory decoder required ( n to m ) 2 to 4 number of DRAM chips required 2 x 4 = 8
Problem 2 (2 parts, 10 points) Short Answer
Briefly explain what “byte addressing” means.
Byte addressing defines a memory system where individual bytes are addressed rather than full words.
Explain the difference between big-endian and little-endian.
This difference refers to which byte of a word is stored in the first byte address; big-endian systems stored the most significant byte; little-endian systems store the least significant byte.
ECE 2030 Computer Engineering Spring 1999
4 problems, 6 pages Exam Three Solutions 28 May 1999
2
Problem 3 (3 parts, 30 points) The Assembly Language Problem
Consider the following MIPS program. Use the attached sheet that lists the instruction format.
address label instruction 1000 start: addi $1, $0, 400 1004 addi $2, $0, 0 1008 loop: lw $4, 0($1) 1012 slt $3, $4, $ 1016 beq $3, $0, skip 1020 sub $4, $0, $ 1024 skip1: add $2, $2, $ 1028 addi $1, $1, 4 1032 slti $3, $1, 440 1036 bne $3, $0, loop 1040 sll $2, $2, 3
Part 3.A (10 points) How many times is the loop in this program executed?
number of loop iterations: 10
Part 3.B (10 points) What mathematical function is computed by the instructions at addresses 1012 to 1020?
absolute value
Part 3.C (10 points) What mathematical function is computed by the instruction at address 1040?
multiply by 8