Docsity

Format Instruction - Computer Engineering - Solved Exam, Exams of Computer Science

Toggle sidebar
bg1
ECE 2030 1:00pm Computer Engineering Spring 2001
4 problems, 4 pages Exam Three 18 April 2001
1
Problem 1 (3 parts, 30 points) Memory Systems
Imagine using a 64 Mbit DRAM organized as 4 million addresses of 16-bit words to build three
memory systems. The following three parts consider memory systems built using this chip.
Part A (10 points) Consider 8 million addresses of 64-bit words memory system.
number of chips needed in one bank 64bit/bank / 16bits/chip = 4 chips/bank
number of banks for memory system 8M/system / 4M/bank = 2 banks/system
memory decoder required (n to m) 1 to 2
number of DRAM chips required 4 chips/bank * 2 banks/sys = 8 chips
Part B (10 points) Consider 32 million addresses of 128-bit words memory system.
number of chips needed in one bank 128bit/bank / 16bits/chip = 8 chips/bank
number of banks for memory system 32M/system / 4M/bank = 8 banks/system
memory decoder required (n to m) 3 to 8
number of DRAM chips required 8 chips/bank * 8 banks/sys = 64 chips
Part C (10 points) Consider 128 million addresses of 256-bit words memory system.
number of chips needed in one bank 256bit/bank / 16bits/chip = 16 chips/bank
number of banks for memory system 128M/system / 4M/bank = 32 banks/system
memory decoder required (n to m) 5 to 32
number of DRAM chips required 16 chips/bank * 32 banks/sys = 512 chips
Problem 2 (1 part, 15 points) Instruction Formats
Suppose a datapath has three operand busses (two source, one destination), 300 instruction types,
and 16 registers where each register is 64 bits wide. Immediate operands can be in the range of
±512K. Determine the following values for the resulting instruction format. For the last two
questions, assume the same operand number and types used in the MIPS format.
bits needed to specify an opcode 9
bits needed to specify a register operand 4
bits needed to specify an immediate operand 20
bits needed to specify an R-format instruction 9 + 4 + 4 + 4 = 21
bits needed to specify an I-format instruction 9 + 4 + 4 + 20 = 37
pf3

Partial preview of the text

Download Format Instruction - Computer Engineering - Solved Exam and more Exams Computer Science in PDF only on Docsity!

4 problems, 4 pages Exam Three 18 April 2001

Problem 1 (3 parts, 30 points) Memory Systems Imagine using a 64 Mbit DRAM organized as 4 million addresses of 16-bit words to build three memory systems. The following three parts consider memory systems built using this chip. Part A (10 points) Consider 8 million addresses of 64-bit words memory system. number of chips needed in one bank 64bit/bank / 16bits/chip = 4 chips/bank number of banks for memory system 8M/system / 4M/bank = 2 banks/system memory decoder required ( n to m ) 1 to 2 number of DRAM chips required 4 chips/bank * 2 banks/sys = 8 chips

Part B (10 points) Consider 32 million addresses of 128-bit words memory system. number of chips needed in one bank 128bit/bank / 16bits/chip = 8 chips/bank number of banks for memory system 32M/system / 4M/bank = 8 banks/system memory decoder required ( n to m ) 3 to 8 number of DRAM chips required 8 chips/bank * 8 banks/sys = 64 chips

Part C (10 points) Consider 128 million addresses of 256-bit words memory system. number of chips needed in one bank 256bit/bank / 16bits/chip = 16 chips/bank number of banks for memory system 128M/system / 4M/bank = 32 banks/system memory decoder required ( n to m ) 5 to 32 number of DRAM chips required 16 chips/bank * 32 banks/sys = 512 chips

Problem 2 (1 part, 15 points) Instruction Formats Suppose a datapath has three operand busses (two source, one destination), 300 instruction types, and 16 registers where each register is 64 bits wide. Immediate operands can be in the range of ±512K. Determine the following values for the resulting instruction format. For the last two questions, assume the same operand number and types used in the MIPS format. bits needed to specify an opcode 9 bits needed to specify a register operand 4 bits needed to specify an immediate operand 20 bits needed to specify an R-format instruction 9 + 4 + 4 + 4 = 21 bits needed to specify an I-format instruction 9 + 4 + 4 + 20 = 37

4 problems, 4 pages Exam Three 18 April 2001

Problem 3 (2 parts, 25 points) Datapath Elements Part A (12 points) For the eight bit word below, determine the result of a performing the shift operation specified. Each shift type should assume the same input value. Assume the shifter word width is eight bits. (Remember that positive shifts are to the right).

Input Value: 1 0 0 1 1 0 1

Shift type Count Result

logical +3 0 0 0 1 0 0 1 1

logical -1 0 0 1 1 0 1 1 0

arithmetic +2 1 1 1 0 0 1 1 0

arithmetic -4 1 0 1 1 0 0 0 0

rotate +2 1 1 1 0 0 1 1 0

rotate -6 1 1 1 0 0 1 1 0

Part B (13 points) Assuming X controls S0 and Y controls S1, determine the logical function produced by the logical unit multiplexer, given the input values (LF 3 -LF 0 ) listed below. Y X out 0 0 LF 0 0 1 LF 1 1 0 LF 2 1 1 LF 3

LF 3 LF 2 LF 1 LF 0 Logical Function

1 0 0 1 X^ ⊕ Y

1 0 1 0 X

0 1 1 1 X^ ⋅ Y

0 0 1 0 X^ ⋅ Y