Question

In: Computer Science

Assume a 222 byte memory: a. What are the lowest and highest addresses if memory is...

Assume a 222 byte memory:

a. What are the lowest and highest addresses if memory is byte-addressable?

b. What are the lowest and highest addresses if memory is word-addressable, assuming a 16-bit word?

c. What are the lowest and highest addresses if memory is word-addressable, assuming a 32-bit word?

Explain with Steps please

Solutions

Expert Solution

For a memory system, which stores data in bytes, if adress is allocated to every byte then it is known as byte-addressable memory. But if address is allocated to every word (a word can be defined a group of bytes), then it is known as word-addressable memory.

Given that memory size is 222 Bytes. In order to access n bytes, log2n bits are needed. Similarly to access 222 Bytes, log2222 = 22 bits are needed. With 22 bits, the possible decimal number range is from 0 to 222 - 1.

(a) So when memory is byte-addressable, a maximum of 222 bytes will be present in memory. To distinguish these 222 Bytes, 22 bits are needed. So

  • Lowest Address (in decimal) = 0
  • Highest Address (in decimal) = 222 - 1 .

(b) Given that the word size is 16-bits i.e., 2 Bytes (1 Byte = 8 bits). It means all the bytes of memory will be divided into a group of 2 bytes each, where each group is a word and address will be allocated to every word. So the memory is now containing (222 B / 1 word ) = ( 222 B / 2 B ) = 222-1 words = 221 words.

So to distinguish 221 words, log2221 = 21 bits are needed. With 21 bits, the possible decimal number range is from 0 to 221 - 1 and each of these will be allocated to a word.So

  • Lowest Address (in decimal) = 0
  • Highest Address (in decimal) = 221 - 1

(c) Given that the word size is 32-bits i.e., 4 Bytes (1 Byte = 8 bits). It means all the bytes of memory will be divided into a group of 4 bytes each, where each group is a word and address will be allocated to every word. So the memory is now containing (222 B / 1 word ) = ( 222 B / 4 B ) = ( 222 B / 22 B ) = 222-2 words = 220 words.

So to distinguish 220 words, log2220 = 20 bits are needed. With 20 bits, the possible decimal number range is from 0 to 220 - 1 and each of these will be allocated to a word.So

  • Lowest Address (in decimal) = 0
  • Highest Address (in decimal) = 220 - 1

Related Solutions

Assume a byte-addressable memory has 64K bytes. Blocks are 8 bytes in length and the cache...
Assume a byte-addressable memory has 64K bytes. Blocks are 8 bytes in length and the cache consists of 4K bytes. Show the format for a main memory address assuming a 4-way set associative cache mapping scheme. Include the field names as well as their sizes.
The lowest and highest observations in a population are 14 and 48, respectively. What is the...
The lowest and highest observations in a population are 14 and 48, respectively. What is the minimum sample size n required to estimate μ with 90% confidence if the desired margin of error is E = 1.5? What happens to n if you decide to estimate μ with 95% confidence? (You may find it useful to reference the z table. Round intermediate calculations to at least 4 decimal places and "z" value to 3 decimal places. Round up your answers...
What is a) the highest possible correlation coefficient? b) The lowest? c) What does a correlation...
What is a) the highest possible correlation coefficient? b) The lowest? c) What does a correlation coefficient of -1.0 mean? d) What does a correlation coefficient of 0 mean? Please Show Steps.
What are the block tags and block indexes for the below 12-bit memory locations with 256-byte...
What are the block tags and block indexes for the below 12-bit memory locations with 256-byte cache? a. 0001 0110 1010, for 16-byte blocks with direct-mapped cache b. 0010 0011 1011, for 4-byte blocks with 4-way associative cache
Write an assembly code the counts the number of accuracies of the byte AAh in memory...
Write an assembly code the counts the number of accuracies of the byte AAh in memory from address 120Ah to address 130Ah. You need to use a subroutine and call it 'COUNT' to do so. You also need to provide the count in BCD if it was less than 64h so that you need to include another subroutine called 'ToBCD' to do so. assembly 8086
If bandwidth is the difference between the highest and lowest signals of a transmission, then this...
If bandwidth is the difference between the highest and lowest signals of a transmission, then this means that a signal with the lowest frequency of 10KHz and an upper frequency of 5MHz, has a bandwidth of _____KHz. If a data signal bit rate is 5kbps, then at Harmonic 1 we would have a value of ______ Hz, at Harmonic 3 we would have a value of _____Hz, and at Harmonic 5 wed would have a value of ____ Hz. The...
If SI = 1000H, what does MOV [SI], BH do? Reads byte of data from memory...
If SI = 1000H, what does MOV [SI], BH do? Reads byte of data from memory location 1000H into BH Writes byte of data from BH into memory location 1000H Illegal, only DI can be used between [ ] s Illegal, mixed sizes Translate the statement “All your friends are perfect” into a logical expression. Let P(x) be “x is perfect” and F(x) be “x is your friend” and the universe of discourse be all the people. ∀xF(x) → ∃xP(x)...
Given byte-addressed memory with location 0x100 containing 0x62 and location 0x101 containing 0x7C. What is the...
Given byte-addressed memory with location 0x100 containing 0x62 and location 0x101 containing 0x7C. What is the decimal value of the signed short stored at location 0x100: Assuming big-endian addressing. Assuming little-endian addressing. You may assume that a short occupies 2 bytes.
Which of the following is listed in the correct order, from the highest to the lowest...
Which of the following is listed in the correct order, from the highest to the lowest taxonomic unit?
which has the highest and lowest EN [ Cl, P, Br]
which has the highest and lowest EN [ Cl, P, Br]
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT