Quiz 9 - Chapter 5

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

Consider a 32-bit hexadecimal number stored in memory as follows: (picture on back) If the machine is little endian and the number is an IEEE single-precision floating point value, determine the decimal equivalent of the number stored at address 100 (you may leave your answer in scientific notation form, as a number times a power of two).

+1.00010001100001000101010 x 2 ^ -73

Consider a 32-bit hexadecimal number stored in memory as follows: ( If the machine is big endian and the number is an IEEE single-precision floating point value, determine the decimal equivalent of the number stored at address 100 (you may leave your answer in scientific notation form, as a number times a power of two).

+1.10000100000100000011011 x 2 ^ - 42

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 memory is little endian?

+510^10

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 memory is big endian?

-511^10

Fill in the following table to show how the given integers are represented, assuming 16-bits are used to store values and the machine uses 2's complement notation.

0000000000011100 001C 001C 1C00

Fill in the following table to show how the given integers are represented, assuming 16-bits are used to store values and the machine uses 2's complement notation.

1111111111110100 FFF4 FFF4 F4FF

Show how the following value would be stored by byte-addressable machines with 32-bit words, using Big endian format. Assume each value starts at address 0x10. Draw a diagram of memory for each, placing the appropriate values in the correct (and labeled) memory locations. 0x14148888

14 14 88 88

The memory unit of a computer has 256K words of 32 bits each. The computer has an instruction format with 4 fields: an opcode field; a mode field to specify 1 of 7 addressing modes; a register address field to specify one of 60 registers; and a memory address field. Assume an instruction is 32 bits long. How large must the address field be?

18

Consider a 32-bit hexadecimal number stored in memory as follows: (picture on back side) If the machine is little endian and uses 2's complement representation for integers, write the 32-bit integer number stored at address 100 (you may write the number in hex).

1B08C2A2

Consider a 32-bit hexadecimal number stored in memory as follow: (back side picture) If the machine is big endian and uses 2's complement representation for integers, write the 32-bit integer number stored at address 100 (you may write the number in hex).

2AC2081B

A nonpipelined system takes 200ns to process a task. The same task can be processed in a 5-segment pipeline with a clock cycle of 40ns. Determine the speedup ratio of the pipeline for 200 tasks. What is the maximum speedup that could be achieved with the pipeline unit over the nonpipelined unit?

5

The memory unit of a computer has 256K words of 32 bits each. The computer has an instruction format with 4 fields: an opcode field; a mode field to specify 1 of 7 addressing modes; a register address field to specify one of 60 registers; and a memory address field. Assume an instruction is 32 bits long. How large is the opcode field?

5

The memory unit of a computer has 256K words of 32 bits each. The computer has an instruction format with 4 fields: an opcode field; a mode field to specify 1 of 7 addressing modes; a register address field to specify one of 60 registers; and a memory address field. Assume an instruction is 32 bits long. How large must the register field be?

64

The memory unit of a computer has 256K words of 32 bits each. The computer has an instruction format with 4 fields: an opcode field; a mode field to specify 1 of 7 addressing modes; a register address field to specify one of 60 registers; and a memory address field. Assume an instruction is 32 bits long. How large must the mode field be?

8

Convert the following expressions from infix to reverse Polish (postfix) notation. (8 - 6) / 2

8 6 - 2 /

Show how the following value would be stored by byte-addressable machines with 32-bit words, using little endian format. Assume each value starts at address 0x10. Draw a diagram of memory for each, placing the appropriate values in the correct (and labeled) memory locations. 0x0000058A

8A 05 00 00

Show how the following value would be stored by byte-addressable machines with 32-bit words, using little endian format. Assume each value starts at address 0x10. Draw a diagram of memory for each, placing the appropriate values in the correct (and labeled) memory locations. 0x456789A1

A1 89 67 45

Convert the following expressions from reverse Polish notation to infix notation. X Y Z + V W - * Z + +

X + ((Y + Z) * (V - W) + Z)

Consider a 32-bit hexadecimal number stored in memory as follows: (picture on back side) If the machine is big endian and the number is an IEEE single-precision floating point value, is the number positive or negative?

positive

Consider a 32-bit hexadecimal number stored in memory as follows: (picture on back) If the machine is little endian and the number is an IEEE single-precision floating point value, is the number positive or negative?

positive


Set pelajaran terkait

Chapter 3: Providing Equal Employment Opportunity & a Safe Workplace

View Set

Chapter 22 - Disorders of Hemostasis, Chapter 23 - Disorders of Red Blood Cells, Chapter 26 - Disorders of Blood Flow, Chapter 26 - Disorders of Blood Pressure Regulation, Chapter 27 - Disorders of Cardiac Function, Chapter 27 - Heart failure and Cir...

View Set

Accounting Fundamentals Sessions 7-13

View Set