Question

Part I Consider a computer that you have used or now use. (You may make an...

Part I

Consider a computer that you have used or now use. (You may make an assumption on word size if needed.)

  • How large is the memory of the computer?
  • How long is a word in the computer above?
  • How many bits are required to address the bytes in that memory?
  • How many data lines are required to read data from the computer memory?

Part II

  • Does your computer have cache?
  • If so how big is it?
  • How does your cache size compare with the size of main memory?
  • Do you know what kind of cache it is?
  • How did you find out about your computer's cache?

Make an assumption that your cache is either:

  • Fully associative
  • Direct mapped
  • Two-way set-associative
  • Four-way set-associative

Using the relationships in Part I above, determine:

the size of the Tag and Word for Associative cache;

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

Part1

How large is the memory of the computer? - 4 GB

How long is a word in the computer above? - 32bits

How many bits are required to address the bytes in that memory? - 2^32

How many data lines are required to read data from the computer memory? - 32

Part II

Does your computer have cache?If so how big is it? - L2 Cache 256 KB, L3 Cache: 6 MB

How does your cache size compare with the size of main memory? - Much smaller, however, quicker.

Do you know what kind of cache it is - It doesn’t say, I’d assume it was associative.

How did you find out about your computer's cache? - By running windows command

wmic cpu get L2CacheSize, L2CacheSpeed, L3CacheSize, L3CacheSpeed

My memory system that uses a 32-bit address to address at the byte level, plus a cache that uses a 64-byte line size.

Make an assumption that your cache is either:

  • Fully associative
  • Direct mapped
  • Two-way set-associative
  • Four-way set-associative

direct mapped cache

a. Address format: Tag = 20 bits; Line = 6 bits; Word = 6 bits.

Number of lines in cache 2r = 26 = 64; size of tag = 20 bits.

associative cache

b. Address format: Tag = 26 bits; Word = 6 bits.

Number of lines in cache = undetermined; size of tag = 26 bits.

four-way set-associative cache

d. Address format: Tag = 9 bits; Set = 17 bits; Word = 6 bits.

Number of lines in set = k = 4; Number of sets in cache = 2d = 217; Number of lines in cache = k × 2d =219; Size of tag = 9 bits.

Add a comment
Know the answer?
Add Answer to:
Part I Consider a computer that you have used or now use. (You may make an...
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
  • Problem 6. Suppose we have a computer with 32 megabytes of main memory, 256 bytes of...

    Problem 6. Suppose we have a computer with 32 megabytes of main memory, 256 bytes of cache, and a block size of 16 bytes. For each configuration below, determine the memory address format, indicating the number of bits needed for each appropriate field (i.e. tag, block, set, offset). Show any relevant calculations. Direct cache mapping and memory is byte-addressable a) Direct cache mapping and memory is word-addressable with a word size of 16 bits b) c) 2-way set associative cache...

  • Make an assumption that your cache is either: Fully associative Direct mapped Two-way set-associative Four-way set-associative...

    Make an assumption that your cache is either: Fully associative Direct mapped Two-way set-associative Four-way set-associative determine: the size of the Tag and Word for Associative cache; OR the size of the Tag, Line, and Word for Direct-Mapped Cache ; Or the size of Tag, Set, and Word for K-Way Set-Associative Cache. You may make any assumptions necessary including the number of Words in each block (recommend 2 or 4 or 8)

  • Cache question computer architecture A cache holds 128 words where each word is 4 bytes. Assuming...

    Cache question computer architecture A cache holds 128 words where each word is 4 bytes. Assuming a 32-bit address, for each of the following organizations, complete the table. a.A direct-mapped cache with block size = 16words b.2-way set-associative cache with block size = 8words c.4-way set-associative cache with block size = 4words d.A fully associative cache with block size = 2words. Cache a Cache b Cache c Cache d total # bits for word & byte displacement # bits in...

  • question 2 and 3 2. Determine how many sets of cache blocks will be there for...

    question 2 and 3 2. Determine how many sets of cache blocks will be there for the following Cache memory size (in bytes) Direct Mapped Blocks Size (in bits) 32 64 218 2-way Set Associative Block Size (in bits) 32 64 A 2A6 [0.5 * 16 = 8] 4-way Set Associative Block Size (in bits) 32 64 SK 64K 256K 3. The physical memory address generated by a CPU is converted into cache memory addressing scheme using the following mapping...

  • a) Suppose we have a 64 KB, direct-mapped cache with 8-word blocks. Determine how many bits...

    a) Suppose we have a 64 KB, direct-mapped cache with 8-word blocks. Determine how many bits are required for the tag, index, and offset fields for a 32-bit memory address. b) If instead, we use a 64 KB, 4-way set-associative cache with 8-word blocks, how many bits will be required for the tag, index, and offset fields for a 32-bit address? c) What type of cache is shown in problem 2? How many bits are required for this cache’s tag,...

  • 3. (12 points) Consider a cache has lines of 16 bytes and a total size of...

    3. (12 points) Consider a cache has lines of 16 bytes and a total size of 16 kB. The main memory is 16MB and a word takes 4 bytes. For the hexadecimal main memory addresses FFF666, show the following information in hexadecimal format a. Tag and word values for associative cache b. Tag, set and word values for a two-way set-associative cache 3. (12 points) Consider a cache has lines of 16 bytes and a total size of 16 kB....

  • Memory Hierarchy and Cache Consider a computer with byte-addressable memory. Addresses are 24-bits. The cache is...

    Memory Hierarchy and Cache Consider a computer with byte-addressable memory. Addresses are 24-bits. The cache is capable of storing a total of 64KB of data, and frames of 32 bytes, Show the format of a 24-bit memory address for: a- Direct mapped cache b- 2-way associative cache c- 4-way associative cache d- For each type of cache above, indicate where would the reference memory address 0DEFB6 map

  • Text: Explain how a 32-bit byte memory address should be divided into Tag/Index/Offset fields for each...

    Text: Explain how a 32-bit byte memory address should be divided into Tag/Index/Offset fields for each of the cache configurations below. Note: 1KB = 210 bytes. You must explain how many bits to assign to each field and the ordering of the three fields. You get at most 50% of the credit if you give the length of each field without an explanation. 1) A fully associative cache with cache block size = 2 words and cache size = 512KB....

  • Given the following 16 bit numbers: A.) 0x8FFF B.) 0x1000 C.) Ox00FO D.) 0x0888 E.) 0xC000 F) 0x9000 . If the numbers are unsigned integers rank them from smallest to larest )rank them from small...

    Given the following 16 bit numbers: A.) 0x8FFF B.) 0x1000 C.) Ox00FO D.) 0x0888 E.) 0xC000 F) 0x9000 . If the numbers are unsigned integers rank them from smallest to larest )rank them from smallest to largest 10. If the above number are signed integers (2's complement 11Acomputer has a 16 bit address field,is byte addressable, the word length is also 16 bits, 32 lines of direct mapped cache and each line of cache holds 8 bytes. A.) How many...

  • 2. A computer uses a memory with addresses of 8 bits. (What's the size of the...

    2. A computer uses a memory with addresses of 8 bits. (What's the size of the MM?) This computer has a 16-byte cache with 4 bytes per block. (How many blocks in the cache?) The computer accesses a number of memory locations throughout the course of running a program. Suppose this computer uses direct-mapped cache. a. What's the format of a memory address as seen by the cache ? Tag ? bits Block ? bits Offset ? bits b. The...

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