Question

In: Computer Science

Suppose you have a hypothetical machine that has 4 MB of physical memory and a 24-bit...

Suppose you have a hypothetical machine that has 4 MB of physical memory and a 24-bit address space.

Your hypothetical machine uses paging in a linear page table. Each page holds 512 bytes.

Each page still holds 512 bytes.

Given the following virtual address, partition the bits into a virtual page number and an offset.

0xC3D0E6

Solutions

Expert Solution

In linear page tables, the memory menagement unit(MMU) splits a virtual address into page number and page offset components. The page number is used to index into an array of page table entries.

page number offset

phsical memory = 4MB=4 * 220 =222 bytes

given 24 bit address space,

virtual address space = 224 Bytes (Total number of bits in virtual address=24 bits)

page size=512 Bytes =29 Bytes

Number ofpages = virtual address space/(page size) =224/ 29 =215

So page number requies 15 bits.

number of bits in offset = (total no of bits in virtual address) -( number of bits in page number)

                                      =24-15=9 bits

So 24 bit virtual address is divided into as follows

15 bit page number 9 bit offset

(C3D0E6)16 = (1100 0011 1101 0000 1110 0110)2

[To convert hex to binary, write 4 bit binary of each hex bit (C-->1100, 3->0011 , D-->1101, 0-->0000 , E-->1110,

6-->0110)]

First 15 bit represents page number , 1100 0011 1101 000 =0x61E8

(110000111101000)2 = ( 110 0001 1110 1000)2 = (61E8)16

(To convert binary to hex, we make group of 4 bits, starting from lsb and write the hex code for each group 1000->8, 1110-->E, 0001-->1, 0110-->6)

last 9 bits represents offset0 1110 0110

(011100110)2 = (0 1110 0110)2 =(0E6)16 =(E6)16

So page number=(110000111101000)2 =(61E8)16 , offset =(011100110)2=(E6)16


Related Solutions

6. Assume a computer has a physical memory organized into 64-bit words. Using hexadecimal notation, give...
6. Assume a computer has a physical memory organized into 64-bit words. Using hexadecimal notation, give the word address and offset within the word for each of the following byte addresses. Byte address Word address Offset 0x000b 0x03ff 0x07fc
What's the schematic of the 4-bit multiplier that has two 4-bit inputs and an 8-bit output...
What's the schematic of the 4-bit multiplier that has two 4-bit inputs and an 8-bit output with pure combinational logic? Can you draw the circuit?
Suppose the memory cells at address 0x00 through 0x0D in the vole contain the following bit...
Suppose the memory cells at address 0x00 through 0x0D in the vole contain the following bit patterns: Address. contents 0x00. 0x20 0x01. 0x04 0x02 0x21 0x03. 0x01 0x04. 0x40 0x05 0x12 0x06. 0x51 0x07. 0x12 0x08 0xB1 0x09. 0x0C 0x0A. 0xB0 0x0B. 0x06 0x0C. 0xC0 0x0D. 0x00 Assume that the machine starts with its program counter contaning 0x00. WHat bit pattern will be in register 0x00 when the machine Halts? WHat bit pattern will be in register 0x01 when the...
The followings are 8-bit words is stored in the memory. Suppose when the words were read...
The followings are 8-bit words is stored in the memory. Suppose when the words were read from the memory, the check bits are calculated to be 0010. Using Hamming error correction code, find the he check bits stored together with the word, the syndrome word and the word fetched from the memory for the word given below. 0110 1010                                                                                                                      1111 0001                                                                                                                     
Suppose you have an 8-bit A/D converter that has a full-scale input range of ︎2V to...
Suppose you have an 8-bit A/D converter that has a full-scale input range of ︎2V to ︎6V. When a particular voltage is applied, the computer records the hex number B3. Assuming a perfect calibration, answer the following questions: - What output voltage does this value correspond to? - What is the digitization (quantization) error in the voltage? - By how much percent would this error change if 12 bits were used to approximate the output instead of 8 bits? PLEASE...
polymer that doesn't have memory what polymer has no memory
polymer that doesn't have memory what polymer has no memory
24. Suppose that you have a stock with an average (expected) return of 32% and a...
24. Suppose that you have a stock with an average (expected) return of 32% and a standard deviation of return of 16%. Please answer the following question (show your work in your uploaded document): What is the probability of getting a return less than zero? (Round to 4 decimals, like .0000 or 00.00%)
Problem 1. Suppose we have 4 memory modules instead of 8 in Figures 4.6 and 4.7....
Problem 1. Suppose we have 4 memory modules instead of 8 in Figures 4.6 and 4.7. Draw the memory modules with the addresses they contain using: a) High-order Interleaving and b) Low-order interleaving.
Suppose that you pick a bit string from the set of all bit strings of length...
Suppose that you pick a bit string from the set of all bit strings of length ten. Find the probability that the bit string has exactly two 1s; the bit string begins and ends with 0; the bit string has the sum of its digits equal to seven; the bit string has more 0s than 1s; the bit string has exactly two 1s, given that the string begins with a 1.
Suppose that you pick a bit string from the set of all bit strings of length...
Suppose that you pick a bit string from the set of all bit strings of length ten. Find the probability that the bit string has exactly two 1s; the bit string begins and ends with 0; the bit string has the sum of its digits equal to seven; the bit string has more 0s than 1s; the bit string has exactly two 1s, given that the string begins with a 1.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT