ceng252_quiz3answers

ceng252_quiz3answers - CENG 252 Computer Organization QUIZ...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CENG 252 Computer Organization QUIZ III Each wrong answer for multiple-choice questions costs you 10 points! Name : 1. (20) The first two bytes of a 2M x 16 main memory have the following hex values: Byte 0 is FE Byte 1 is 01 If these bytes hold a 16-bit two's complement integer, what is its actual decimal value if: a. memory is big endian? b. memory is little endian? a. FE01 16 = 1111 1110 0000 0001 2 = -511 10 b. 01FE 16 = 0000 0001 1111 1110 2 = 510 10 2. (20) A digital computer has a memory unit with 24 bits per word. The instruction set consists of 150 different operations. All instructions have an operation code part (opcode) and an address part (allowing for only one address). Each instruction is stored in one word of memory. a. How many bits are needed for the opcode? b. How many bits are left for the address part of the instruction? c. What is the maximum allowable size for memory? d. What is the largest unsigned binary number that can be accommodated in one word of memory? a. 150 instructions implies 2 8 (2 7 will only give us 128 instructions), or 8 bits for the opcode. b. 24 - 8 = 16. c. 2 16 , or 32M. d. 24 1's, or 2 24 -1. 3. (10) Suppose that a 2M x 16 main memory is built using 256K x 8 RAM chips and memory is word- addressable. a. How many RAM chips are necessary? b. How many RAM chips are there per memory word?
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

ceng252_quiz3answers - CENG 252 Computer Organization QUIZ...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online