Question

Please, multiply the highlighted yellow digit by 6 first then solve. thank you!

Given: An 8-bit computer system with 4 MB of main memory. It has a 16K-words direct-mapped cache with a block size of 16 Byte

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Given,

The computer system is an 8 bit system.

So, size of 1 word = 8 bits = 1 word.

Size of memory = 4MB

Number of bits used to represent byte address = log ( Size of memory ) = log ( 4 MB ) = 22 bits

Block size = 16 Bytes

Number of bits used to represent block offset = log ( Block Size ) = log 16 = 4 bits

Size of the cache = 16 K words = 16 KB [ Since 1 word = 1 byte ]

Number of cache lines in the cache = Size of cache / Block Size = 16 KB / 16 Bytes = 1 K lines = 1024 lines

Number of bits used to represent cache line number = log ( Number of cache lines in the cache ) = log 1024 = 10 bits

Number of bits in the tag field = Address bits - ( Cache line number bits + Block offset bits )

= 22 - ( 10 + 4 ) = 8 bits

So, the address division in the direct mapped cache is :

Tag Line Number Block Offset
8 bits 10 bits 4 bits

The given byte address is ( 5678 * 6 ) = 34068 whose binary representation using 22 bits is :

0000001000010100010100

The first 8 bits from the left represent the tag, the 4 bits from the right represent the block offset and the remaining 8 bits represent the cache line number.

The cache line number is 0001010001 which is padded by extra 2 0s so that the number can be converted to hexadecimal form easily.

The binary number 000001010001 is divided into groups of size 4 in order to get the equivalent hexadecimal value as follows :

Binary value 0000 0101 0001
Hexadecimal value 0 5 1

Hence, the cache line number to which byte address 34068 is mapped is 0x051.

Add a comment
Know the answer?
Add Answer to:
Please, multiply the highlighted yellow digit by 6 first then solve. thank you! Given: An 8-bit...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • multiply hifhlighted number by 4 and please explain Given: An 8-bit computer system with 4 MB...

    multiply hifhlighted number by 4 and please explain Given: An 8-bit computer system with 4 MB of main memory. It has a 16K-words direct-mapped cache with a block size of 16 Bytes. Sought: Calculate the cache line number when Byte address 5678ten from main memory is mapped to cache. Consider that numbering of main memory blocks and cache lines starts from zero. Express your answer in hexadecimal. It is required to show ALL incremental steps of the solution.

  • 3) Direct-Mapped Cache Determine the Cache line holding an address EEL 3801 UCF Given: An 8-bit...

    3) Direct-Mapped Cache Determine the Cache line holding an address EEL 3801 UCF Given: An 8-bit computer system with 4 MB of main memory. It has a 16K-words direct-mapped cache with a block size of 16 Bytes. Sought: Calculate the cache line number when Byte address 5678ten from main memory is mapped to cache. Consider that numbering of main memory blocks and cache lines starts from zero. Express your answer in hexadecimal. It is required to show ALL incremental steps...

  • Given: An 8-bit computer system with 4 MB of main memory. It has a 16K-words direct-mapped...

    Given: An 8-bit computer system with 4 MB of main memory. It has a 16K-words direct-mapped cache with a block size of 16 Bytes. Sought: Calculate the cache line number when Byte address2271len from main memory is mapped to cache. Consider that numbering of main memory blocks and cache lines starts from zero. Express your answer in hexadecimal. It is required to show ALL incremental steps of the solution.

  • Please, multiply the highlighted yellow digit by 6 first then solve. thank you! Given: A4-bit adder...

    Please, multiply the highlighted yellow digit by 6 first then solve. thank you! Given: A4-bit adder is implemented in a carry ripple style as shown in the figure below. B3 A3 B2 A2 B1 A1 BO AO FA c3 FA FA FA CO='1' s2 s1 SO Sought: Please calculate the output carries for each full adder (FA) using A=0x01 and B=0x04. It is required to show ALL incremental steps of the solution, then record each the final results in the...

  • Please, multiply the highlighted yellow digit by 6 first then solve. thank you! Consider 0x40100000 to...

    Please, multiply the highlighted yellow digit by 6 first then solve. thank you! Consider 0x40100000 to represent a 32-bit floating-point number in IEEE754 single- precision format. What decimal value does it represent? Note: Only the non-fractional quantity “1” is noted in Yellow Font, in accordance with Syllabus page 11. It is required to show ALL incremental steps of the solution: including but not limited to fields, all bit values, bias, and so on.

  • 7.3 What is the memory layout of the 16-bit value, 0x7654 in a big-endian 16-bit machine,...

    7.3 What is the memory layout of the 16-bit value, 0x7654 in a big-endian 16-bit machine, and a little-endian 16-bit machine? b. What would the layouts be in 32-bit machines? 7.19 A certain two-way set-associative cache has an access time of 4 ns, compared to a miss time of 60 ns. Without the cache, main memory access time was 50 ns. Running a set of bench-marks with and without the cache indicated a speedup of 90%. What is the approximate...

  • Please, multiply the highlighted yellow digit by 6 first then solve. thank you! Express the decimal...

    Please, multiply the highlighted yellow digit by 6 first then solve. thank you! Express the decimal value -1.9375 ten as IEEE-754 Single Precision Floating Point, or else state “NOT POSSIBLE” if the value cannot be represented (e.g. underflow condition). No credit will be given if your answer is stated in any format besides hexadecimal or "NOT POSSIBLE”, accordingly. Note: Only the non-fractional quantity “1” is noted in Yellow Font, in accordance with Syllabus page 11.

  • Example 4.2 For all three cases, the example includes the following elements: The cache can hold...

    Example 4.2 For all three cases, the example includes the following elements: The cache can hold 64 Kbytes. Data are transferred between main memory and the cache in blocks of 4 bytes each. This means that the cache is organized as 16K = 214 lines of 4 bytes each. The main memory consists of 16 Mbytes, with each byte directly addressable by a 24-bit address (24 = 16M). Thus, for mapping purposes, we can consider main memory to consist of...

  • A system uses 27-bit addresses and it has a 32KB of direct-mapped cache with 8 bytes...

    A system uses 27-bit addresses and it has a 32KB of direct-mapped cache with 8 bytes per block. Memory of this system is byte-addressed. How many blocks (lines) are in this cache? (don't write your answer in power of two) A/

  • please answer $5 UXIF map in the computer uses direct mapping Question 18 5 pts Suppose...

    please answer $5 UXIF map in the computer uses direct mapping Question 18 5 pts Suppose we have a byte-addressable computer using 2-way set associative mapping with 16-bit main memory addresses and 32 blocks of cache. Suppose also that each block contains 8 bytes. The size of the block offset field is bits, the bits. size of the set field is bits, and the size of the tag field is 5 pts Question 19 Suppose we have a byte-addressable computer...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT