Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  A digital computer has a memory unit of 256k ... Start Learning for Free
A digital computer has a memory unit of 256k x 16 and a cache memory of 4k words. The cache uses direct mapping with a block size of 16 words.
 
Q. How many bits are there in index, tag, block and words fields of address format ?
  • a)
    10, 6, 8, 2
  • b)
    12, 6, 8, 4
  • c)
    12, 8, 6, 4
  • d)
    10, 6, 8, 4
Correct answer is option 'B'. Can you explain this answer?
Verified Answer
A digital computer has a memory unit of 256k x 16 and a cache memory o...
Main Memory has 256k = 2^8 x 2^10 = 2^18.
i.e. We need 18 bits to address main memory.
Cache Memory has 4k = 2^2 x 2^10 = 2^12.
i.e. We need 12 bits to address cache memory.
Cache consists of Index and tag which together are used to address main memory location.
Here Index is 12 bits and tag is 6 bits. (18 – 12 = 6).
Index is divided into block part and word part. Block part is used to address blocks in cache and word part addresses individual word in a block.
Here a block size is 16 words. i.e. 2^4, we need 4 bits to address a word and 12 – 4 = 8 bits to address a block in cache memory.
View all questions of this test
Most Upvoted Answer
A digital computer has a memory unit of 256k x 16 and a cache memory o...
Main Memory has 256k = 28 x 210 = 218.
i.e. We need 18 bits to address main memory.
Cache Memory has 4k = 22 x 210 = 212.
i.e. We need 12 bits to address cache memory.
Cache consists of Index and tag which together are used to address main memory location.
Here Index is 12 bits and tag is 6 bits. (18 – 12 = 6).
Index is divided into block part and word part. Block part is used to address blocks in cache and word part addresses individual word in a block.
Here a block size is 16 words. i.e. 24, we need 4 bits to address a word and 12 – 4 = 8 bits to address a block in cache memory.
Free Test
Community Answer
A digital computer has a memory unit of 256k x 16 and a cache memory o...
Understanding the Memory Structure
The digital computer has a memory unit of 256k x 16 bits and a cache memory of 4k words. To determine the address format, we need to analyze the components involved in the cache memory.
Memory Details
- Main Memory Size: 256k words (16 bits each)
- Cache Memory Size: 4k words
- Block Size: 16 words
Calculating Address Fields
1. Total Addressable Memory:
- The main memory consists of 256k words, which translates to 256 x 1024 = 262144 words.
- Each word has a size of 16 bits.
2. Total Number of Cache Blocks:
- Cache size = 4k words = 4096 words.
- With a block size of 16 words, the number of blocks in cache = 4096 / 16 = 256 blocks.
3. Address Breakdown:
- Word Offset:
- Since each block contains 16 words, we need 4 bits to address each word within a block (2^4 = 16).
- Index:
- The cache has 256 blocks, which requires 8 bits for the index (2^8 = 256).
- Tag:
- The main memory has 262144 words, which requires 18 bits for a unique address (2^18 = 262144).
- Therefore, the tag bits = Total bits - (Index bits + Word Offset bits) = 18 - (8 + 4) = 6 bits.
Final Breakdown
- Tag: 6 bits
- Index: 8 bits
- Block Offset: 4 bits (indicating which word in the block)
Thus, the correct answer is option B: 12, 6, 8, 4.
Explore Courses for Computer Science Engineering (CSE) exam

Similar Computer Science Engineering (CSE) Doubts

Top Courses for Computer Science Engineering (CSE)

A digital computer has a memory unit of 256k x 16 and a cache memory of 4k words. The cache uses direct mapping with a block size of 16 words.Q. How many bits are there in index, tag, block and words fields of address format ?a)10, 6, 8, 2b)12, 6, 8, 4c)12, 8, 6, 4d)10, 6, 8, 4Correct answer is option 'B'. Can you explain this answer?
Question Description
A digital computer has a memory unit of 256k x 16 and a cache memory of 4k words. The cache uses direct mapping with a block size of 16 words.Q. How many bits are there in index, tag, block and words fields of address format ?a)10, 6, 8, 2b)12, 6, 8, 4c)12, 8, 6, 4d)10, 6, 8, 4Correct answer is option 'B'. Can you explain this answer? 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 digital computer has a memory unit of 256k x 16 and a cache memory of 4k words. The cache uses direct mapping with a block size of 16 words.Q. How many bits are there in index, tag, block and words fields of address format ?a)10, 6, 8, 2b)12, 6, 8, 4c)12, 8, 6, 4d)10, 6, 8, 4Correct answer is option 'B'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for A digital computer has a memory unit of 256k x 16 and a cache memory of 4k words. The cache uses direct mapping with a block size of 16 words.Q. How many bits are there in index, tag, block and words fields of address format ?a)10, 6, 8, 2b)12, 6, 8, 4c)12, 8, 6, 4d)10, 6, 8, 4Correct answer is option 'B'. Can you explain this answer?.
Solutions for A digital computer has a memory unit of 256k x 16 and a cache memory of 4k words. The cache uses direct mapping with a block size of 16 words.Q. How many bits are there in index, tag, block and words fields of address format ?a)10, 6, 8, 2b)12, 6, 8, 4c)12, 8, 6, 4d)10, 6, 8, 4Correct answer is option 'B'. Can you explain this answer? 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 digital computer has a memory unit of 256k x 16 and a cache memory of 4k words. The cache uses direct mapping with a block size of 16 words.Q. How many bits are there in index, tag, block and words fields of address format ?a)10, 6, 8, 2b)12, 6, 8, 4c)12, 8, 6, 4d)10, 6, 8, 4Correct answer is option 'B'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of A digital computer has a memory unit of 256k x 16 and a cache memory of 4k words. The cache uses direct mapping with a block size of 16 words.Q. How many bits are there in index, tag, block and words fields of address format ?a)10, 6, 8, 2b)12, 6, 8, 4c)12, 8, 6, 4d)10, 6, 8, 4Correct answer is option 'B'. Can you explain this answer?, a detailed solution for A digital computer has a memory unit of 256k x 16 and a cache memory of 4k words. The cache uses direct mapping with a block size of 16 words.Q. How many bits are there in index, tag, block and words fields of address format ?a)10, 6, 8, 2b)12, 6, 8, 4c)12, 8, 6, 4d)10, 6, 8, 4Correct answer is option 'B'. Can you explain this answer? has been provided alongside types of A digital computer has a memory unit of 256k x 16 and a cache memory of 4k words. The cache uses direct mapping with a block size of 16 words.Q. How many bits are there in index, tag, block and words fields of address format ?a)10, 6, 8, 2b)12, 6, 8, 4c)12, 8, 6, 4d)10, 6, 8, 4Correct answer is option 'B'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice A digital computer has a memory unit of 256k x 16 and a cache memory of 4k words. The cache uses direct mapping with a block size of 16 words.Q. How many bits are there in index, tag, block and words fields of address format ?a)10, 6, 8, 2b)12, 6, 8, 4c)12, 8, 6, 4d)10, 6, 8, 4Correct answer is option 'B'. Can you explain this answer? 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