Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  A computer system with a word length of 32 bi... Start Learning for Free
A computer system with a word length of 32 bits has a 16 MB byte-addressable main memory and a 64 KB, 4-way set associative cache memory with a block size of 128 bytes. Consider the following four physical addresses represented in hexadecimal notation. A1 = 0x52C9A4, A2 = 0x54698, A3 = 0x6A389C, A4 = 0x5E4699 Tell in which cache set will these A1, A2, A3, A4 map? Out of A1, A2, A3, A4 , which maps to the same cache set ,if any?
Most Upvoted Answer
A computer system with a word length of 32 bits has a 16 MB byte-addre...
Cache Mapping


Given Information:


  • Word length = 32 bits

  • Main memory size = 16 MB

  • Cache memory size = 64 KB

  • Cache memory is 4-way set associative

  • Block size = 128 bytes

  • Physical addresses: A1 = 0x52C9A4, A2 = 0x54698, A3 = 0x6A389C, A4 = 0x5E4699



Calculation:


  • Size of main memory = 224 * 210 * 4 bytes = 232 bytes

  • Number of blocks in cache memory = (64 KB) / (128 B) = 512

  • Number of sets in cache memory = 512 / 4 = 128

  • Block offset bits = log2(128) = 7 bits

  • Set index bits = log2(128) - log2(4) = 5 bits

  • Tag bits = 32 - 7 - 5 = 20 bits

  • A1:


    • Block offset = 0x52C9A4 mod 128 = 68

    • Set index = (0x52C9A4 div 128) mod 128 = 333 mod 128 = 45

    • Tag = 0x52C9A4 div (128 * 128) = 1

    • Maps to set 45


  • A2:


    • Block offset = 0x54698 mod 128 = 104

    • Set index = (0x54698 div 128) mod 128 = 213 mod 128 = 85

    • Tag = 0x54698 div (128 * 128) = 2

    • Maps to set 85


  • A3:


    • Block offset = 0x6A389C mod 128 = 116

    • Set index = (0x6A389C div 128) mod 128 = 271 mod 128 = 15

    • Tag = 0x6A389C div (128 * 128) = 3

    • Maps to set 15


  • A4:


    • Block offset = 0x5E4699 mod 128 = 105

    • Set index =
Explore Courses for Computer Science Engineering (CSE) exam

Similar Computer Science Engineering (CSE) Doubts

Top Courses for Computer Science Engineering (CSE)

A computer system with a word length of 32 bits has a 16 MB byte-addressable main memory and a 64 KB, 4-way set associative cache memory with a block size of 128 bytes. Consider the following four physical addresses represented in hexadecimal notation. A1 = 0x52C9A4, A2 = 0x54698, A3 = 0x6A389C, A4 = 0x5E4699 Tell in which cache set will these A1, A2, A3, A4 map? Out of A1, A2, A3, A4 , which maps to the same cache set ,if any?
Question Description
A computer system with a word length of 32 bits has a 16 MB byte-addressable main memory and a 64 KB, 4-way set associative cache memory with a block size of 128 bytes. Consider the following four physical addresses represented in hexadecimal notation. A1 = 0x52C9A4, A2 = 0x54698, A3 = 0x6A389C, A4 = 0x5E4699 Tell in which cache set will these A1, A2, A3, A4 map? Out of A1, A2, A3, A4 , which maps to the same cache set ,if any? for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about A computer system with a word length of 32 bits has a 16 MB byte-addressable main memory and a 64 KB, 4-way set associative cache memory with a block size of 128 bytes. Consider the following four physical addresses represented in hexadecimal notation. A1 = 0x52C9A4, A2 = 0x54698, A3 = 0x6A389C, A4 = 0x5E4699 Tell in which cache set will these A1, A2, A3, A4 map? Out of A1, A2, A3, A4 , which maps to the same cache set ,if any? covers all topics & solutions for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for A computer system with a word length of 32 bits has a 16 MB byte-addressable main memory and a 64 KB, 4-way set associative cache memory with a block size of 128 bytes. Consider the following four physical addresses represented in hexadecimal notation. A1 = 0x52C9A4, A2 = 0x54698, A3 = 0x6A389C, A4 = 0x5E4699 Tell in which cache set will these A1, A2, A3, A4 map? Out of A1, A2, A3, A4 , which maps to the same cache set ,if any?.
Solutions for A computer system with a word length of 32 bits has a 16 MB byte-addressable main memory and a 64 KB, 4-way set associative cache memory with a block size of 128 bytes. Consider the following four physical addresses represented in hexadecimal notation. A1 = 0x52C9A4, A2 = 0x54698, A3 = 0x6A389C, A4 = 0x5E4699 Tell in which cache set will these A1, A2, A3, A4 map? Out of A1, A2, A3, A4 , which maps to the same cache set ,if any? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of A computer system with a word length of 32 bits has a 16 MB byte-addressable main memory and a 64 KB, 4-way set associative cache memory with a block size of 128 bytes. Consider the following four physical addresses represented in hexadecimal notation. A1 = 0x52C9A4, A2 = 0x54698, A3 = 0x6A389C, A4 = 0x5E4699 Tell in which cache set will these A1, A2, A3, A4 map? Out of A1, A2, A3, A4 , which maps to the same cache set ,if any? defined & explained in the simplest way possible. Besides giving the explanation of A computer system with a word length of 32 bits has a 16 MB byte-addressable main memory and a 64 KB, 4-way set associative cache memory with a block size of 128 bytes. Consider the following four physical addresses represented in hexadecimal notation. A1 = 0x52C9A4, A2 = 0x54698, A3 = 0x6A389C, A4 = 0x5E4699 Tell in which cache set will these A1, A2, A3, A4 map? Out of A1, A2, A3, A4 , which maps to the same cache set ,if any?, a detailed solution for A computer system with a word length of 32 bits has a 16 MB byte-addressable main memory and a 64 KB, 4-way set associative cache memory with a block size of 128 bytes. Consider the following four physical addresses represented in hexadecimal notation. A1 = 0x52C9A4, A2 = 0x54698, A3 = 0x6A389C, A4 = 0x5E4699 Tell in which cache set will these A1, A2, A3, A4 map? Out of A1, A2, A3, A4 , which maps to the same cache set ,if any? has been provided alongside types of A computer system with a word length of 32 bits has a 16 MB byte-addressable main memory and a 64 KB, 4-way set associative cache memory with a block size of 128 bytes. Consider the following four physical addresses represented in hexadecimal notation. A1 = 0x52C9A4, A2 = 0x54698, A3 = 0x6A389C, A4 = 0x5E4699 Tell in which cache set will these A1, A2, A3, A4 map? Out of A1, A2, A3, A4 , which maps to the same cache set ,if any? theory, EduRev gives you an ample number of questions to practice A computer system with a word length of 32 bits has a 16 MB byte-addressable main memory and a 64 KB, 4-way set associative cache memory with a block size of 128 bytes. Consider the following four physical addresses represented in hexadecimal notation. A1 = 0x52C9A4, A2 = 0x54698, A3 = 0x6A389C, A4 = 0x5E4699 Tell in which cache set will these A1, A2, A3, A4 map? Out of A1, A2, A3, A4 , which maps to the same cache set ,if any? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev