GATE / CS ARCHIVE

SUBJECT COLLECTION

Computer Organization & Architecture · Memory Organization & Address Translation

28 questions, newest first

GATE CSE has asked 28 questions on Memory Organization & Address Translation (Computer Organization & Architecture) from 1991 to 2023, in 21 of the 46 papers; the most recent is in GATE CSE 2023. In the last five years it carried 0.2 marks per 100-mark paper on average, against 0.5 since 2003. Since 2014 the questions have been 4 NAT and 2 MCQ. 5 groups of questions here are solved the same way; “One per method” keeps the newest of each.

Browse topics
2 marks · MCQ
Report issue

Memory Organization & Address Translation

Question 42, GATE 2023: Four 1 KiB blocks form a 4 KiB byte-addressed memory. External IA4,IA3 select blocks X1,X2,X3,X4 through decoder outputs 00,01,10,11; the other ten address lines feed each block's internal address. Find the external decimal addresses where internal Addr=0 for X1 through X4.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

The internal address lines are all external lines except IA4 and IA3. Internal Addr=0 forces every one of those ten lines to 0. The four blocks are then selected by(IA4, IA3)=00, 01, 10, 11, whose external numeric contributions are 0, 8, 16, 24. Thus C. These are the starts in the interleaved external address map, not contiguous 1024-byte block boundaries.

Teaching detail. The address bits used for selection do not feed the internal address port. Setting internal Addr=0 therefore fixes IA11..IA5 and IA2..IA0 to zero, while leaving IA4,IA3 free to encode the selected block. Their binary place values are 16 and 8. This is an interleaved address mapping: the internal address can change as lower external bits change and block selection can change at bit 3. Assuming the chip-select lines are the two most significant bits would incorrectly produce 0,1024,2048,3072.

Original paper, page 43 · Answer key

1 mark · MCQ
Report issue

Decoding a DRAM chip-select address range

Memory Organization & Address Translation

Question 2, GATE 2019: Sixteen address lines are A15 through A0. A five-input AND chip-select gate receives A15, A14, inverted A13, inverted A12, and A11. Which address range enables the chip? Choices: A C800–CFFF; B CA00–CAFF; C C800–C8FF; D DA00–DFFF, all hexadecimal.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Method: turn the gate into fixed high-order bits and let every unused low-order address bit vary.

1. The active-high AND output is CS = A15 AND A14 AND NOT A13 AND NOT A12 AND A11. It is 1 only when A15…A11 = 11001.
2. Address lines A10…A0 do not enter the gate. Their 11 bits may take any values, giving 211 = 2048 consecutive addresses for the selected chip.
3. The lowest address sets those bits to zero: 1100 1000 0000 0000 in binary, or C800 in hexadecimal.
4. The highest address sets them all to one: 1100 1111 1111 1111, or CFFF. The number of addresses is CFFF − C800 + 1 = 0800 hexadecimal = 2048, agreeing with step 2.

Result: A, C800 through CFFF inclusive. The circles on A13 and A12 are inversions, so those original address lines must be zero, not one.

Original paper, page 4 · Answer key

1 mark · NAT
Report issue

DRAM refresh availability

Memory Organization & Address Translation

Question 23, GATE 2018: A 1 GB, 32-bit-wide memory uses 256M×4-bit DRAMs. Each chip has 2^14 rows; refreshing a row takes 50 ns and all rows must refresh every 2 ms. Find the nearest-integer percentage available for reads/writes.
Tap to enlarge
Answer & solution

Official answer: 59.0 to 60.0

Our answer: 59 percent

Method

Eight 4-bit chips operate in parallel to provide the 32-bit word. Since corresponding rows refresh together, the memory loses 16384 row-refresh slots per period, not eight times that number. Convert all durations to one unit: 2 ms=2000000 ns, and refresh consumes 819200 ns. Available time is 1180800 ns per period. Divide available time by total time, rather than reporting the refresh fraction.

Solution

The row refresh time per period is 214·50 ns=819200 ns=0.8192ms. The remaining fraction of the 2ms period is 1−0.8192/2=0.5904, or 59.04%, rounded 59%. The eight parallel 4-bit chips refresh a row together to form the 32-bit memory; their refresh times are not added serially.

Original paper, page 10 · Answer key

1 mark · NAT
Report issue

Memory Organization & Address Translation

Question 9, GATE 2016: A processor supports up to 4 GB of word-addressable memory, with two bytes per word. What is the minimum address-bus width in bits?
Tap to enlarge
Answer & solution

Official answer: 31.0 : 31.0

Our answer: 31

Using the exam’s binary memory-size convention, 4 GB=2³² bytes. A word address identifies two bytes, leaving 2³¹ addressable words and requiring 31 address bits. Decimal 4·10⁹ bytes gives the same ceiling 31.

The address bus counts addressable units, not bytes unless memory is byte-addressable. Here each address selects one two-byte word, so divide byte capacity by 2 before taking the base-two logarithm. With 31 address bits there are 231 distinct patterns, exactly enough for the word addresses. Thirty bits would reach only 230 words, or 2 GiB, so the lower width is insufficient. Data-bus width and address-bus width are separate questions.

Original paper, page 5 · Answer key

1 mark · NAT
Report issue

Memory Organization & Address Translation

Question 19, GATE 2015: Virtual addresses 40 bits, page size 8 KB, TLB128 entries arranged 32 sets×4 ways. No process ID in tag. Find minimum TLB tag width.
Tap to enlarge
Answer & solution

Official answer: 22

Step through it (6 steps)

An8 KiB page contributes 13 offset bits, leaving 27 virtual page-number bits. The 32 TLB sets use 5 index bits. Without a process identifier, the tag uses 27−5=22 bits.

Split the virtual address into tag, set index, and page offset. An8KiB page has 213 bytes, so 13 bits select the byte. The remaining 40−13=27 bits form the virtual page number. Thirty-two sets need log 2 32=5 index bits; the four ways do not consume address bits because their tags are compared associatively. The tag therefore needs 27−5=22 bits. No process-ID bits are added because the prompt excludes them.

Original paper, page 32 · Answer key

2 marks · NAT
Report issue

Memory Organization & Address Translation

Question 55, GATE 2014: Eight memory modules share a one-word-wide system bus. A store occupies the bus for 100 ns with data, address, and control. The target module accepts/stores during those 100 ns and for another 500 ns, totaling a 600 ns module cycle. Module operations may overlap, but the bus handles one request at a time. What is the maximum number of one-word stores that can be initiated in 1 ms?
Tap to enlarge
Answer & solution

Official answer: 10000

1. Set up the reasoning. Compute both throughput limits: the shared bus admits one initiation per 100 ns, while eight modules collectively can sustain eight per 600 ns if their cycles overlap. The slower resource is the bus.

2. Derive the result. The single bus admits at most one new store per 100 ns, so in a half-open 1ms interval the limit is 106/100=10000 initiations. Each module is busy 600 ns, so cycling among six of the eight modules already permits a request every 100 ns without revisiting a busy module. Thus the bus bound is achievable. The question counts stores initiated, not necessarily completed within the interval.

3. Check the interpretation. Show attainability by scheduling requests 100 ns apart and rotating through six or more modules. A module is free by its next use. Count initiations in the half-open observation interval [0,1 ms); requiring all stores to finish by its end would be a different question.

Original paper, page 44 · Answer key

2 marks · MCQ
Report issue

Decoder hierarchy for a 16K by 16 memory

Memory Organization & Address Translation

Question 46, GATE 2013: Build16K×16 RAM from 1K×8 chips. How many 2-to-4 decoders with enable are needed? A4, B5, C6, D7.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Two 1K×8 chips operate in parallel to supply each 16-bit word, making one 1K×16 bank. Sixteen such banks give 16K×16, so there are 32 memory chips but only 16 bank-select signals. The low ten address bits select a word within a bank; the upper four bits select the bank. Construct the required 4-to-16 decoding with one 2-to-4 decoder on the upper two bank bits. Its four outputs enable four further 2-to-4 decoders, each decoding the lower two bank bits. The total is 1+4=5 decoders, option B. Four bottom-level decoders are needed to provide sixteen outputs and an additional level is needed to select their enables.

Separate width expansion from depth expansion. Pairing two 8-bit chips gives 16 data bits at one address; it does not double the number of addresses. Sixteen such pairs are needed for 16Kdepth. A4-bit bank number chooses one pair, while 10low address bits are broadcast to all chips. A top decoder selects one group of four pairs, and four enabled bottom decoders select within each group. This produces 16mutually exclusive bank enables with five decoders; it is not one decoder per memory chip.

Original paper, page 10 · Answer key

1 mark · MCQ
Report issue

Refreshing a bank of DRAM chips

Memory Organization & Address Translation

Question 7, GATE 2010: A 4-megabyte main memory is built from 1M×1-bit DRAM chips. Each chip has 1K rows with 1K cells in each row. One refresh operation takes 100 ns. How long does one complete refresh of all memory cells take?
Options: (A) 100 ns; (B) 100×2^10 ns; (C) 100×2^20 ns; (D) 3200×2^20 ns.
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

A refresh operation refreshes one row in each chip in parallel. Each chip has 1K=2¹⁰ rows, requiring 2¹⁰ refresh operations to cover all its cells. At 100 ns each, the total is 100·2¹⁰ ns, B. The memory needs 32 chips for 4 MiB, but the standard parallel-bank refresh model does not multiply the refresh time by 32.

The row count, rather than the total cell count, determines the number of refresh commands: all 1024 cells on the selected row are refreshed together. Memory capacity determines how many chips are needed, but chips sharing refresh control perform that command concurrently in the model used here. Multiplying by 220 would incorrectly refresh individual cells separately.

Original paper, page 2

1 mark · MCQ
Report issue

RAM-chip capacity count

Memory Organization & Address Translation

Question 7, GATE 2009: How many 32K×1 RAM chips are needed for 256K bytes of memory? A 8; B 32; C 64; D 128.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

Each 32K×1 chip stores 32K bits. The required 256K bytes equal 2048K bits. Therefore 2048K/32K=64 chips, C.

A 32K×1 chip stores 32K bits, not 32K bytes. The requested capacity is 256K·8 bits. Dividing gives(256·8)/32=64 chips. Equivalently, eight chips in parallel provide a byte-wide 32K bank, and eight banks provide 256K byte addresses. Confusing width in bits with bytes would undercount by a factor of eight.

Original paper, page 2

2 marks · MCQ
Report issue

Earliest conventional data-TLB access

Memory Organization & Address Translation

Question 38, GATE 2008: In an execution pipeline, when can the data TLB be accessed at the earliest?

(A) Before effective-address calculation starts
(B) During effective-address calculation
(C) After effective-address calculation completes
(D) After data-cache lookup completes
Tap to enlarge
Your answer
Answer & solution

Answer: C in the conventional address-generation pipeline (no official key was published)

1. The data TLB maps a virtual page number to a physical frame number. The virtual page number comes from the effective address of the data operand.
2. In the conventional sequential stage model, effective-address calculation must finish before that page number is available for translation. This gives C.
3. Waiting until the cache lookup ends is unnecessary. Speculative or overlapping translation in optimized microarchitectures is a separate implementation possibility, so the statement is not a universal physical restriction.

Original paper, page 7

2 marks · MCQ
Report issue

Interleaved memory-bank block latency

Memory Organization & Address Translation

Question 41, GATE 2006: A cache block is 64 bytes. Main memory has k banks of width c bytes; consecutive c-byte chunks map cyclically onto consecutive banks. All banks can be read in parallel, but repeated accesses to one bank are serialized. Every parallel round takes k/2 ns of decoding plus 80 ns for the bank access. For c=2,k=24, how long does fetching the block starting at address 0 take?
Options:
(A) 92 ns
(B) 104 ns
(C) 172 ns
(D) 184 ns
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

1. Each parallel round transfers at most 24×2=48 bytes. A 64-byte block starting at zero needs 32 bank-width chunks and hence two rounds.

2. Each round costs 24/2+80=92 ns, including the stated decoding cost. Total latency is 184 ns (D).

3. Teaching check: The block contains 64/2=32 chunks. The first 24 can be read together, but the remaining eight return to banks already used and require a second round. The stated model charges decoding again for that round even though not all 24 banks supply another chunk.

Original paper, page 6

2 marks · MCQ
Report issue

Tag width of four-way TLB

Memory Organization & Address Translation

Question 62, GATE 2006: A CPU has 32-bit virtual addresses, 4 KB pages, and a 128-entry TLB that is four-way set associative. What is the minimum tag width, excluding any address-space identifier?
Options:
(A) 11 bits
(B) 13 bits
(C) 15 bits
(D) 20 bits
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

Step through it (6 steps)

1. A 4 KB page requires 12 offset bits, leaving 32−12=20 virtual-page-number bits. There are 128/4=32 TLB sets, requiring 5 index bits.

2. The minimum tag is the remaining 20−5=15 bits, option C. Additional address-space identifiers are not included in the stated minimum.

3. Teaching check: Partition the virtual address into offset, set index and tag. Page offsets require log₂4096=12 bits. Four-way associativity means only 128/4=32 sets, so five more bits select the set and the remaining fifteen distinguish pages within that set.

Original paper, page 9

2 marks · MCQ
Report issue

Translation lookaside buffer and cache access time

Memory Organization & Address Translation

Question 78, GATE 2003: A byte-addressable processor has 32-bit virtual and physical addresses and two-level page tables stored in main memory. Address bits are split 10 bits for first-level index, 10 for second-level index, and 12 for page offset. All page-table entries are 4 bytes. TLB hit rate is 96%, physical-cache hit rate 90%; TLB and cache access each take 1 ns, and main memory takes 10 ns. With no page faults, what is mean virtual-address access time, approximately to the nearest 0.5 ns?
A. 1.5 ns  B. 2 ns  C. 3 ns  D. 4 ns
The statement does not specify whether page-table reads use the cache/hit rate.
Question 78, GATE 2003: A byte-addressable processor has 32-bit virtual and physical addresses and two-level page tables stored in main memory. Address bits are split 10 bits for first-level index, 10 for second-level index, and 12 for page offset. All page-table entries are 4 bytes. TLB hit rate is 96%, physical-cache hit rate 90%; TLB and cache access each take 1 ns, and main memory takes 10 ns. With no page faults, what is mean virtual-address access time, approximately to the nearest 0.5 ns?
A. 1.5 ns  B. 2 ns  C. 3 ns  D. 4 ns
The statement does not specify whether page-table reads use the cache/hit rate.
Tap to enlarge
Your answer
Answer & solution

Answer: None (no official key was published)

1. A cache-backed physical access costs 1 ns on a hit and 1+10=11 ns on a miss. Its mean is H=0.9×1+0.1×11=2 ns.
2. Every virtual access pays the 1 ns TLB lookup and one final data access. A TLB miss occurs with probability 0.04 and additionally reads two page-table entries.
3. If those reads also use this cache and hit rate, the conditional costs are 3 ns on a TLB hit and 7 ns on a miss. E=0.96×3+0.04×7=3.16 ns, rounding to 3.0 ns (C).
4. If page-table reads bypass the cache, a miss instead costs 1+20+2=23 ns. E=0.96×3+0.04×23=3.8 ns, rounding to 4.0 ns (D).
5. Both interpretations place page tables in main memory; this phrase alone does not resolve caching. Consequently retain the baseline underdetermination instead of asserting an unconditional option.

Solution: If every physical memory reference, including page-table reads, uses the stated cache with 90% hit probability, its mean service time is H=1+0.10×10=2 ns, charging the cache probe before a miss fetch. A lookup always costs 1 ns for the TLB and one data reference; a TLB miss, probability 0.04, adds two page-table references. Thus E=1+(1+2×0.04)H=3.16 ns, which rounds to 3.0 ns, C. If the two page-table references instead bypass the cache and each costs 10 ns, E=1+0.04×20+H=3.8 ns, rounding to 4.0 ns, D. The statement that page tables reside in main memory does not itself specify whether their reads are cached or share the data-cache hit rate. C is the usual all-physical-accesses-cached interpretation, but an unconditional answer is withheld.

Original paper, page 11

1 mark · MCQ
Report issue

Instruction information versus storage

Memory Organization & Address Translation

Question 1.13, GATE 2002: Which item is not a kind of memory?
(A) Instruction cache; (B) Instruction register; (C) Instruction opcode; (D) Translation lookaside buffer.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

Step 1: Separate a stored field from a storage device.

Step 2: The instruction register can hold an entire instruction, including its opcode; an instruction cache holds instruction bytes. A TLB holds cached address translations. The opcode is the information inside such storage, just as a number written in a register is not itself a register.

Conclusion: A cache, an instruction register, and a translation lookaside buffer are storage structures. An instruction opcode is a bit field identifying an operation, not itself a memory structure. Therefore C.

Original paper, page 2

2 marks · MCQ
Report issue

Frame-buffer capacity and color depth

Memory Organization & Address Translation

Question 2.13, GATE 2000: A graphics card has 1 MB on-board memory. Which mode cannot fit:1600×400 at 256 colors;1600×400 at 16 million colors;800×400 at 16 million colors;800×800 at 256 colors? Monitor physical size is also listed.
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

Step 1: A palette of 256 colors needs 8 bits=1 byte per pixel. About 16 million colors requires 24 bits=3 bytes per pixel in the conventional packed framebuffer.

Step 2: The four memory needs are 640,000;1,920,000;960,000;640,000 bytes respectively. Only the second exceeds either 1,000,000 or 1,048,576 bytes.

Thus B. Screen size in inches does not affect the number of stored pixels. The calculation assumes one packed buffer without extra padding, double buffering or 32-bit-per-pixel storage.

Original paper, page 5

5 marks · Descriptive
Report issue

Wire a decoded 2K-by-8 memory

Memory Organization & Address Translation

Question 18, GATE 1999: Design 2048 eight-bit locations at 1000h–17FFh for an 8085, using four 1K×4 chips. Each has active-low /CS, /RD, /WR; address A0–A9; data D0–D3. /CS=1 makes data high impedance. GFG explicitly says eight-bit locations; GateForum loses the 8 in the prose.
Tap to enlarge
Answer & solution

Answer: Two 1K×8 banks: 1000h–13FFh and 1400h–17FFh; decode A15…A11=00010 and select bank by A10. (no official key was published)

A 1K×4 chip has 1024 locations of four bits. Put two chips in parallel to make each 1K×8 bank, then use two banks for 2K×8. Name them L0,H0 and L1,H1. Wire all four address inputs to CPU A0–A9. In each bank L’s chip D0–D3 connect to CPU D0–D3, and H’s chip D0–D3 connect to CPU D4–D7. Both chips in a bank share selection and read/write controls.

1000h = 0001 0000 0000 0000
17FFh = 0001 0111 1111 1111
Thus A15…A11=00010 is fixed; A10 selects one of two banks; A9…A0 address a byte within the bank. Let M=NOT(IO/M), true on memory cycles, and S=M·¬A15·¬A14·¬A13·A12·¬A11. Then
/CS0=NOT(S·¬A10), to L0 and H0
/CS1=NOT(S· A10), to L1 and H1.
Bank 0 responds to 1000h–13FFh and bank 1 to 1400h–17FFh, with no other addresses selected. Connect CPU /RD and /WR to each chip’s /RD and /WR; memory qualification in /CS suppresses I/O-cycle responses.

8085 AD0–AD7 ──┬── bidirectional data bus D0–D7 ── both banks
               └── ALE-controlled latch ── A0–A7 ── all chips
8085 A8,A9 ─────────────────────────────── A8,A9 ── all chips
A15…A10, IO/M ── decoder ── /CS0,/CS1
/RD,/WR ───────────────────────────────────────── all chips

The latch is essential because the 8085 multiplexes low address and data pins. The upper chip in each bank maps its local D0 to CPU D4, not CPU D0. Only one bank is enabled per address; deselected banks stay high impedance and cannot fight the data bus.

Original paper, page 8

2 marks · MCQ
Report issue

8086 physical address space

Memory Organization & Address Translation

Question 2.10, GATE 1998: Choose 8086 address-space size:1 MB, 256 KB, 1K MB, 64 KB.
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

The 8086 produces 20-bit physical addresses. Therefore it can address 220 distinct byte locations, which is 1, 048, 576 bytes, conventionally called 1 MB in this historical context. This gives A. Its 16-bit offset does not by itself limit the whole physical address space to 64 KB because segmentation combines a segment value and an offset. Individual segment addressing and total physical reach are different quantities.

Original paper, page 4

1 mark · MCQ
Report issue

ROM for multiplying two bytes

Memory Organization & Address Translation

Question 1.21, GATE 1996: A ROM directly implements multiplication of two unsigned 8-bit inputs. What organization is required?
Tap to enlarge
Your answer
Answer & solution

Answer: D: 64K words ×16 bits (no official key was published)

The two input bytes together provide 16 address bits, so every possible operand pair requires one of 216=65,536 entries. The largest product is 255²=65,025, which needs 16 bits; therefore every stored result is a 16-bit word. The organization is 64K×16. A ROM with only 256 entries would distinguish just one operand, not all pairs, and an 8-bit output would lose the high byte of many products.

Original paper, page 3

Descriptive
Report issue

Choosing memory hierarchy sizes

Memory Organization & Address Translation

Question 26(a), GATE 1996: A three-level hierarchy has level-1 access time 50 ns/byte and options 8KB (hit .80), 16KB (.90), 64KB (.95); level-2 access time 200 ns/byte and options 4MB (hit .98), 16MB (.99), 64MB (.995); level 3 has access time 5 microseconds/byte, size 250MB, hit 1.0. Use the GFG table; GateForum has inconsistent duplicated tables, KB/MB units and 250/260MB labels. The question does not explicitly state whether lower-level access times include earlier failed probes. Choose minimum level-1 and level-2 sizes giving average access time strictly below 100 ns.
Question 26(a), GATE 1996: A three-level hierarchy has level-1 access time 50 ns/byte and options 8KB (hit .80), 16KB (.90), 64KB (.95); level-2 access time 200 ns/byte and options 4MB (hit .98), 16MB (.99), 64MB (.995); level 3 has access time 5 microseconds/byte, size 250MB, hit 1.0. Use the GFG table; GateForum has inconsistent duplicated tables, KB/MB units and 250/260MB labels. The question does not explicitly state whether lower-level access times include earlier failed probes. Choose minimum level-1 and level-2 sizes giving average access time strictly below 100 ns.
Tap to enlarge
Answer & solution

Answer: Complete-service-time model: 8KB L1 and 4MB L2 (99.2 ns). Sequential probing gives different feasible minima; see solution. (no official key was published)

If the tabulated times are complete service times for a hit at the corresponding level, and h2 is conditional on missing level 1, then T=h1·50+(1−h1)h2·200+(1−h1)(1−h2)·5000. Try the smallest options first: h1=.80 and h2=.98. Their mutually exclusive outcome probabilities are .80, .196, and .004, summing to one. Hence T=40+39.2+20=99.2 ns, strictly below 100. Since 8KB and 4MB are individually the smallest listed sizes, this pair is componentwise minimal in that model.

A different standard convention treats 50,200,5000 as incremental sequential probe times. Then every access pays 50, every L1 miss pays another 200, and a miss in both pays another 5000: Tseq=50+(1−h1)[200+(1−h2)5000]. The same 8KB/4MB pair gives 110 ns and fails. At 8KB, increasing L2 to 16MB gives exactly 100 ns, still failing the strict inequality; 64MB gives 95 ns. At 16KB, the smallest L2=4MB already gives 80 ns. Thus the nondominated feasible pairs in the sequential model are (8KB,64MB) and (16KB,4MB); neither is smaller in both coordinates. Minimizing total installed bytes selects (16KB,4MB), whereas minimizing L1 first selects (8KB,64MB).

Therefore the familiar 8KB/4MB answer requires the complete-service-time interpretation. Without specifying the timing convention, the literal question has no single model-independent answer. The lower-level hit ratio is also taken as conditional, not as an additional unconditional probability.

Original paper, page 10

Descriptive
Report issue

Average access time for selected hierarchy

Memory Organization & Address Translation

Question 26(b), GATE 1996: A three-level hierarchy has level-1 access time 50 ns/byte and options 8KB (hit .80), 16KB (.90), 64KB (.95); level-2 access time 200 ns/byte and options 4MB (hit .98), 16MB (.99), 64MB (.995); level 3 has access time 5 microseconds/byte, size 250MB, hit 1.0. Use the GFG table; GateForum has inconsistent duplicated tables, KB/MB units and 250/260MB labels. The question does not explicitly state whether lower-level access times include earlier failed probes. Calculate the average time for the sizes selected to satisfy the strict 100 ns bound.
Question 26(b), GATE 1996: A three-level hierarchy has level-1 access time 50 ns/byte and options 8KB (hit .80), 16KB (.90), 64KB (.95); level-2 access time 200 ns/byte and options 4MB (hit .98), 16MB (.99), 64MB (.995); level 3 has access time 5 microseconds/byte, size 250MB, hit 1.0. Use the GFG table; GateForum has inconsistent duplicated tables, KB/MB units and 250/260MB labels. The question does not explicitly state whether lower-level access times include earlier failed probes. Calculate the average time for the sizes selected to satisfy the strict 100 ns bound.
Question 26(b), GATE 1996: A three-level hierarchy has level-1 access time 50 ns/byte and options 8KB (hit .80), 16KB (.90), 64KB (.95); level-2 access time 200 ns/byte and options 4MB (hit .98), 16MB (.99), 64MB (.995); level 3 has access time 5 microseconds/byte, size 250MB, hit 1.0. Use the GFG table; GateForum has inconsistent duplicated tables, KB/MB units and 250/260MB labels. The question does not explicitly state whether lower-level access times include earlier failed probes. Calculate the average time for the sizes selected to satisfy the strict 100 ns bound.
Tap to enlarge
Answer & solution

Answer: 99.2 ns in the complete-service-time model; sequential alternatives are 80 ns for 16KB/4MB or 95 ns for 8KB/64MB. (no official key was published)

For the complete-service-time interpretation, select the smallest listed capacities, L1=8KB and L2=4MB. An access hits L1 with probability .80 and takes 50 ns. It misses L1 and hits L2 with probability .20×.98=.196 and takes 200 ns. It misses both with probability .20×.02=.004 and takes 5000 ns. The mean is therefore .80×50+.196×200+.004×5000=40+39.2+20=99.2 ns per byte. This is 0.8 ns below the required bound. Notice that even the rare .4 percent accesses to level 3 contribute 20 ns to the mean.

This calculation uses exclusive end-to-end outcomes. If the table instead lists incremental sequential access times, earlier failed probes must also be charged: 50+.20×200+.004×5000=110 ns for these same capacities, so they would not be a valid choice. In that model, the (16KB,4MB) pair gives 50+.10×200+(.10×.02)×5000=80 ns. The alternative nondominated (8KB,64MB) pair gives 50+.20×200+(.20×.005)×5000=95 ns. The (8KB,16MB) pair gives exactly 100 ns, which is excluded by “less than”.

Thus report 99.2 ns together with its timing assumption, rather than presenting it as a verified official value.

Original paper, page 10

2 marks · MCQ
Report issue

Address and data wires

Memory Organization & Address Translation

Question 2.2, GATE 1995: A memory stores 4K words of 16 bits each. How many separate address and data lines are needed?
Tap to enlarge
Your answer
Answer & solution

Answer: C: 12 address,16 data (no official key was published)

With K=1024, 4K=4096=212 distinct words, so selecting one requires 12 address bits. Each selected word contains 16 bits, transferred over 16 parallel data lines in the stated separate-bus model. Multiplying words by bits gives total capacity, but not the address-line count: addresses select words, not individual bits here. The answer assumes no address multiplexing or serial data interface, consistent with the requested separate lines.

Original paper, page 3

Descriptive
Report issue

Size a monochrome graphics buffer

Memory Organization & Address Translation

Question 17(b), GATE 1995: A CRT has 80×25 character cells, each 9×12 pixels. Find video-buffer RAM for monochrome graphics at one bit per pixel.
Tap to enlarge
Answer & solution

Answer: 27,000 bytes (216,000 bits), about 26.367 KiB. (no official key was published)

Convert the character grid into pixel dimensions first. There are 80×9=720 horizontal pixels and 25×12=300 vertical pixels. The bitmap therefore contains 720×300=216,000 pixels. At one bit per pixel it requires 216,000 bits, which is 216,000/8=27,000 bytes.

The same result follows by counting 80×25=2000 cells, each covering 9×12=108 pixels: 2000×108=216,000. This cross-check shows that the cell dimensions are not merely font metadata; they determine the graphics resolution. The result is 27 decimal kB or 27,000/1024≈26.367 KiB.

This is a tightly packed one-bit framebuffer. A 720-pixel row occupies exactly 90 bytes, so no padding is needed to reach a whole-byte row boundary. A device might allocate a larger power-of-two RAM bank or impose extra row alignment, but neither is specified. Text-mode character/attribute storage is not the requested buffer: the problem explicitly asks for monochrome graphics mode.

Original paper, page 7

2 marks · Other
Report issue

ROM truth table for a multiplier

Memory Organization & Address Translation

Question 6.6, GATE 1993: A ROM multiplies two unsigned 4-bit inputs. Give M words and N bits per word.
Tap to enlarge
Answer & solution

Answer: M=256,N=8 (no official key was published)

The two operands provide eight address bits together, so the truth table has 2⁸=256 possible input pairs, requiring 256 words. The largest product is 15·15=225, which fits in eight bits but not seven. Therefore each output word needs eight bits. This direct truth-table ROM organization is 256×8; it is not a 16-entry table because both operands independently select the result.

Original paper, page 5

5 marks · Descriptive
Report issue

Average access time in three-level memory

Memory Organization & Address Translation

Question 11, GATE 1993: A hierarchy has (access time ti seconds, access probability pi, page-transfer time Ti seconds): M1=(10^-6,0.99000,0.001), M2=(10^-5,0.00998,0.1), M3=(10^-4,0.00002,no lower level). A miss at Mi transfers a page from M(i+1) to Mi, taking Ti. Calculate mean time to read one word.
Tap to enlarge
Answer & solution

Answer: 13.0918 microseconds with supplying-level access plus transfers; 13.102 microseconds if serial failed probes are separately charged. (no official key was published)

The probabilities sum to 1, so treat them as unconditional, mutually exclusive probabilities of the level supplying the requested word, rather than three conditional hit ratios. In particular the probability that a transfer into M1 is needed is p2+p3=0.01, while the probability of a transfer from M3 into M2 is p3=0.00002. A word originally at M3 requires both transfers, not just T2.

Under the convention that each case incurs the access time of the supplying level plus the required page-transfer times, the three costs are t1, t2+T1, and t3+T2+T1. Hence
E[T] = p1*t1+p2*(t2+T1)+p3*(t3+T2+T1)
     = (0.99000*10^-6+0.00998*10^-5+0.00002*10^-4)
       +(0.00998+0.00002)*0.001+0.00002*0.1
     = 0.0000010918+0.000010+0.000002
     = 0.0000130918 seconds = 13.0918 microseconds.

This is the direct probability-weighted reading of the supplied table. The transfer contributions alone are 12 microseconds; omitting them would be a serious error despite the high first-level hit probability.

The text does not explicitly say whether failed higher-level probes consume additional ti, or whether those costs are already covered in the tabulated/transfer costs. If each request first probes M1 and each M1 miss additionally probes M2, count t1 for every request, t2 for probability 0.01, and t3 for probability 0.00002. Then E[T]=t1+0.01*t2+0.00002*t3+0.01*T1+0.00002*T2=13.102 microseconds. This alternative is a different timing model, not a rounding of 13.0918. No official key is available to resolve that convention; do not silently claim the paper specifies it.

Original paper, page 10

Descriptive
Report issue

Memory map and chip decoding

Memory Organization & Address Translation

Question 6(a), GATE 1992: A byte-addressed processor has 20 address bits (1 MiB). It needs 256 KiB RAM, 256 KiB EPROM, 16 memory-mapped I/O devices and 1 KiB EERAM. Available chips are printed as RAM 6K×8 at 140 ns, EPROM 256K×8 at 150 ns, and EERAM 256×8 at 500 ns read/3 μs write. Design a memory map minimizing decoding complexity and show its decoding logic.
Question 6(a), GATE 1992: A byte-addressed processor has 20 address bits (1 MiB). It needs 256 KiB RAM, 256 KiB EPROM, 16 memory-mapped I/O devices and 1 KiB EERAM. Available chips are printed as RAM 6K×8 at 140 ns, EPROM 256K×8 at 150 ns, and EERAM 256×8 at 500 ns read/3 μs write. Design a memory map minimizing decoding complexity and show its decoding logic.
Question 6(a), GATE 1992: A byte-addressed processor has 20 address bits (1 MiB). It needs 256 KiB RAM, 256 KiB EPROM, 16 memory-mapped I/O devices and 1 KiB EERAM. Available chips are printed as RAM 6K×8 at 140 ns, EPROM 256K×8 at 150 ns, and EERAM 256×8 at 500 ns read/3 μs write. Design a memory map minimizing decoding complexity and show its decoding logic.
Tap to enlarge
Answer & solution

Answer: Map RAM 00000–3FFFF, EPROM 40000–7FFFF, EERAM 80000–803FF, I/O C0000–C000F. Literal 6K chips can be used as 64 banks of 4K; a conditional 64K-chip interpretation needs four banks. (no official key was published)

Use K=1024 and hexadecimal byte addresses. The following aligned allocation permits a top-level 2-to-4 decoder on A19,A18:
00: 00000–3FFFF, 256 KiB RAM
01: 40000–7FFFF, 256 KiB EPROM
10: 80000–803FF, 1 KiB EERAM (remaining quadrant reserved)
11: C0000–C000F, 16 one-byte I/O registers (remaining quadrant reserved).
The I/O allocation assumes one addressed register per device; a device with multiple registers needs a correspondingly larger aligned subrange. Reset-vector placement is not specified.

Let R=¬A19∧¬A18, P=¬A19∧A18, E=A19∧¬A18, I=A19∧A18. These are active-high bank selections. EPROM has CS=P, internal address A17..A0 and output enable qualified by memory read; it is not written during normal operation.

The paper really print 6K×8 RAM, not 64K×8. A simple literal implementation uses 64 such chips, exposing only their lowest 4 KiB. Connect chip address A11..A0 to processor A11..A0 and hold its extra address bit at zero. A 6-to-64 decoder on A17..A12, enabled by R, selects exactly one chip. CS_RAM[j]=R∧(A17..A12=j), 0≤j<64. This deliberately sacrifices 2 KiB per chip to obtain regular power-of-two decoding. It implements all 256 KiB without assuming an undocumented capacity. The capacity lower bound is ceil(256/6)=43 chips; packing 42 full chips plus 4 KiB of a final chip needs non-power-of-two block selection/address translation, so minimum chip count and simplest decoder are different objectives.

For EERAM form E_exact=E∧(A17..A10=0). A 2-to-4 decoder on A9,A8 selects four 256-byte chips; connect A7..A0 to each. CS_E[k]=E_exact∧(A9A8=k), 0≤k<4. For I/O form I_exact=I∧(A17..A4=0); decode A3..A0 into 16 selects. Qualify all reads/writes with the processor’s memory-cycle control, since these are memory-mapped devices. An 8085-style IO/M signal is low for these cycles. Device-specific active-low chip selects are the complements of the active-high equations.

Block diagram

A19,A18→2:4 decoder→R→6:64(A17..A12)→RAM banks
                         P──────────────────→EPROM
                         E→zero-test A17..A10→2:4(A9,A8)→EERAM
                         I→zero-test A17..A4 →4:16(A3..A0)→I/O

A shared 8-bit data bus serves selected devices only. For a multiplexed address/data bus, latch the low address using ALE first.

If 6K was intended to be 64K, an explicitly corrected alternative replaces the RAM arrangement by four 64K×8 chips selected by A17,A16, with A15..A0 internal. This common four-chip design must not be presented as using the literal printed components. Partial decoding can omit reserved-region zero tests but creates address aliases; the exact map above avoids them.

Original paper, page 5

Descriptive
Report issue

EERAM wait-state interface

Memory Organization & Address Translation

Question 6(b), GATE 1992: A byte-addressed processor has 20 address bits (1 MiB). It needs 256 KiB RAM, 256 KiB EPROM, 16 memory-mapped I/O devices and 1 KiB EERAM. Available chips are printed as RAM 6K×8 at 140 ns, EPROM 256K×8 at 150 ns, and EERAM 256×8 at 500 ns read/3 μs write. The processor clock is printed as 12.5 mHz and a memory transfer allows two clocks. Assuming 8085-like control signals, design extra EERAM interface logic.
Question 6(b), GATE 1992: A byte-addressed processor has 20 address bits (1 MiB). It needs 256 KiB RAM, 256 KiB EPROM, 16 memory-mapped I/O devices and 1 KiB EERAM. Available chips are printed as RAM 6K×8 at 140 ns, EPROM 256K×8 at 150 ns, and EERAM 256×8 at 500 ns read/3 μs write. The processor clock is printed as 12.5 mHz and a memory transfer allows two clocks. Assuming 8085-like control signals, design extra EERAM interface logic.
Question 6(b), GATE 1992: A byte-addressed processor has 20 address bits (1 MiB). It needs 256 KiB RAM, 256 KiB EPROM, 16 memory-mapped I/O devices and 1 KiB EERAM. Available chips are printed as RAM 6K×8 at 140 ns, EPROM 256K×8 at 150 ns, and EERAM 256×8 at 500 ns read/3 μs write. The processor clock is printed as 12.5 mHz and a memory transfer allows two clocks. Assuming 8085-like control signals, design extra EERAM interface logic.
Tap to enlarge
Answer & solution

Answer: Literal 12.5 mHz needs no speed wait states. If intended 12.5 MHz, add 5 read wait clocks or 36 write wait clocks in the stated two-clock timing model. (no official key was published)

The printed unit matters: lowercase mHz means millihertz. At literal 12.5 mHz, f=0.0125 Hz, T=80 seconds and two clocks provide 160 seconds. Neither a 500 ns read nor a 3 μs write needs any speed-extension wait states. The extraordinary slowness strongly suggests a unit error, but the paper prints mHz and an official correction is unavailable.

For the conventional intended interpretation 12.5 MHz, T=80 ns and the specified ordinary memory interval is 2T=160 ns. RAM 140 ns and EPROM 150 ns fit this idealized interval; EERAM does not. With W additional whole clocks:
Read: (2+W)80≥500 ⇒ W≥4.25 ⇒ W_read=5.
Write: (2+W)80≥3000 ⇒ W≥35.5 ⇒ W_write=36.
Total durations are 7 clocks=560 ns and 38 clocks=3040 ns. Rounding down would violate the specified device timing.

Interface block diagram

latched address→EERAM decoder→SEL_E
SEL_E + memory RD/WR + cycle-start→operation latch / wait controller
clock→6-bit elapsed-clock counter→threshold comparators→READY
latched address + data bus + held RD/WR→four EERAM chips.
READY is high for ordinary accesses. At the beginning of a selected EERAM transfer, latch read versus write, clear the counter and assert READY low before its processor sampling point. Hold address, chip select and the applicable read/write strobe stable as the bus is stretched. At the release sampling point choose READY high only when completion will occur no earlier than 7 clocks after transfer start for a read or 38 for a write. End-of-cycle resets the controller. Equivalently, count five or 36 inserted wait clocks after the nominal two-clock interval. Gate initialization with a single cycle-start pulse so held strobes do not repeatedly reset the counter. A six-bit counter accommodates the longest interval.

These counts follow the problem’s simplified timing model. Actual 8085 READY sampling, decoder delay, setup/hold margins, write-pulse width and whether 3 μs denotes strobe time or internal programming time require the particular EERAM/processor data sheets. If writes are internally timed, latch the write data/address and wait on a busy signal rather than blindly holding a programming pulse. No exact pin waveform or additional nanosecond margin can be inferred from the supplied numbers.

Original paper, page 5

2 marks · Other
Report issue

Memory interleaving address bits

Memory Organization & Address Translation

Question 1(ii), GATE 1991: Which interleaving stores consecutive words in consecutive modules, and which stores them within one module?
Question 1(ii), GATE 1991: Which interleaving stores consecutive words in consecutive modules, and which stores them within one module?
Tap to enlarge
Answer & solution

Answer: Low-order; high-order (no official key was published)

For M banks, low-order interleaving uses the low address bits as bank number: address j selects bank j mod M. Consecutive addresses consequently cycle through the banks, allowing overlap of sequential accesses. High-order interleaving selects the bank with high bits, leaving the low bits as the location within that bank. A consecutive run then stays in the same bank until it crosses that bank’s address range. These names describe address mapping, not whether the memory cells themselves are physically adjacent.

Original paper, page 1

2 marks · MSQ
Report issue

What limits a virtual address space

Memory Organization & Address Translation

Question 3(iii), GATE 1991: Which limits total address-space size: MAR width, available secondary storage, main memory, all, none?
Question 3(iii), GATE 1991: Which limits total address-space size: MAR width, available secondary storage, main memory, all, none?
Tap to enlarge
Select all that apply
Answer & solution

Answer: A if MAR means the virtual-address register; terminology needs qualification (no official key was published)

With v virtual-address bits, at most 2v distinct addressable units can be named. Thus the architectural virtual-address width bounds the address space independently of how many pages are resident. Main memory limits residence, while backing storage can limit the amount of committed data, not necessarily the range of legal virtual addresses. The traditional answer A treats MAR as the register carrying that virtual address. If MAR instead denotes the post-translation physical memory-address register, its width bounds physical memory and need not equal the virtual-address width. The source does not make that distinction explicit.

Original paper, page 3