A byte addressable memory contains 0x24 0x4A 0x3E 0x87 0x2A 0x5A 0xA5 0x71 from address 0x10010024. A processor following little endian system, is accessing a word from address 0x10010026. What is the value of the word?(show steps)
first understand what is little endian system
In little endian system, last byte of binary representation of the multibyte data-type is stored first.
so if we are storing 5678 then we are going to store the last bits i.e. of 78 will be stored first
now consider the data given : all the data stored and address is in hexadecimal
Address | value |
10010024 | 24 |
10010025 | 4A |
10010026 | 3E |
10010027 | 87 |
10010028 | 2A |
10010029 | 5A |
1001002a | A5 |
1001002b | 71 |
a WORD can be of 2 byte , 4 byte etc.
as it is not given about word size so we consider a word to be 4 byte as this is the size of integer
so in little endian system we will store data in binary form and then will convert to decimal value
step1: initially the data is empty
step2: as in little endian the last byte will be accessed first i.e. from address 0x10010026
so data at this address is: 0x3E which is equivalent to 0011 1110
00111110 |
step3: now the second last byte will be accessed from the next address i.e. from 0x10010027
data at this address is : 0x87 which is : 1000 0111
10000111 | 00111110 |
step 4: now the third last byte will be accessed from the next address i.e. from 0x10010028
data at this address is : 0x2A which is 0010 1010
00101010 | 10000111 | 00111110 |
step 5 : now the first byte will be accessed from the next address i.e. from 0x10010029
data at this address is : 5A which is 0101 1010
01011010 | 00101010 | 10000111 | 00111110 |
this is the final value of the integer which is equivalent to 1512736574
also the value in hexadecimal is 0x5A2A873E
I hope this will help you so please give positive ratings :))
A byte addressable memory contains 0x24 0x4A 0x3E 0x87 0x2A 0x5A 0xA5 0x71 from address 0x10010024. A processor following little endian system, is accessing a word from address 0x10010026. What is the...
A byte addressable memory contains 0x24 0x4A 0x3E 0x87 0x2A 0x5A 0xA5 0x71 from address 0x10010024. A processor following little endian system, is accessing a word from address 0x10010026. What is the value of the word?(show steps)
1) In a little endian memory system, assume the word 0xFFAABBCC is stored in memory address 0xFFFF0000. Then the byte at address 0xFFFF0002 is 0xAA TRUE FALSE Cyclic scheduling is more flexible and adaptive than round robin scheduling but 2) round robin is much easier to be implemented TRUE FALSE 3) The fundamental reason for building the memory hierarchy is due to the principle of locality, which includes the temporal locality and spatial locality. TRUE FALSE 4) Different threads spawned...
Show how the following value would be stored by byte-addressable machines with 32-bit words by filling in the appropriate memory locations, using big endian and then little endian format. Assume each value starts at address Ox10. VALUE: 0xF12 Address-Ox10 Big Endian Little Endian Ox11 0x12 0x13 0x14 Ox15
Show the following word in a memory with big endian and another with little endian ordering (0xFE2A)
3. (6 pts) Consider a new processor. The memory system is 32-bit byte- addressable. The on-chip cache memory is 128 KByte 4-way set-associative, with a 64 byte block size. (a) Draw a diagram showing how the cache controller will split the memory address: for each field. show its name and number of bits. (b) The design team decided to change the cache architecture to a direct mapped one. For each of the parameters in the following table, indicate the impact...
11. Suppose the 32-bit hex value ABCD4321 has been stored in memory starting at address 1000 (in decimal). Assuming byte-addressable memory, show the contents of the following memory locations if the machine is little endian and if it is big endian. address (in decimal) Contents in hex (Gif little endian) Contents in hex (if big endian) 1000 1001 1002 1003
What is the difference between Big Endian and Little Endian? Write each of the following base 16 numbers in both big and little endian format. Indicate the memory address of each byte. • 0xA0B18233 • 0xDEADBEEF • 0x21426981
Consider a virtual memory system with the following properties: 36 bit virtual byte address, 8 KB pages size, and 32 bit physical byte address. Please explain how you determined your answer. a. What is the size of main memory for this system if all addressable frames are used? b. What is the total size of the page table for each process on this processor, assuming that the valid, protection, dirty, and use bits take a total of 4 bits and...
3. Virtual Memory (20 points) An ISA supports an 8 bit, byte-addressable virtual address space. The corresponding physical memory has only 256 bytes. Each page contains 32 bytes. A simple, one-level translation scheme is used and the page table resides in physical memory. The initial contents of the frames of physical memory are shown below. VALUE address size 8 bit byte addressable each byte of addressing type memory has its own address 32 B page size physical memory size 256...
A computer uses a byte-addressable virtual memory system with a four-entry TLB and a page table for a process P. Pages are 16 bytes in size. Main memory contains 8 frames and the page table contains 16 entries. a. How many bits are required for a virtual address? b. How many bits are required for a physical address?