🎓 BookMCQ
← Back to 8. Main Memory

📝 EXAMPLE of ARM ARCHITECTURE (9 MCQs)

📖 From Operating System • 8. Main Memory • 9 questions available

What is EXAMPLE of ARM ARCHITECTURE?

Definition:
ARM uses TTBR-based translation tables with configurable granules (4 KB/16 KB/64 KB4 \text{ KB}/16 \text{ KB}/64 \text{ KB}), ASIDs, and stage-1/stage-2 translation for virtualization.

Example:
AArch64 EL1 uses 4 KB4 \text{ KB} granule with 4-level table; TTBR0_EL1 holds base PA and ASID enabling TLB tagging without flush on context switch.

Reason:
Flexible granules and ASID support optimize for diverse embedded-to-server workloads while hardware-assisted virtualization enables efficient hypervisors.

2
Easy
5
Medium
2
Hard

📝 All EXAMPLE of ARM ARCHITECTURE MCQs

Q1. A smartphone uses a 32‑bit ARM processor with 4‑KB pages. Which paging mechanism is employed for address translation?

A.Two‑level paging ✅
B.One‑level paging
C.Direct mapping
D.Segmentation
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: Two‑level paging is used for 4‑KB and 16‑KB pages in the ARM architecture, so the correct choice is A. One‑level paging applies only to 1‑MB and 16‑MB sections, making B incorrect. Direct mapping and segmentation are not part of ARM's virtual memory scheme, so C and D are wrong. In a real smartphone, the processor must translate many small pages quickly, and the two‑level scheme provides the needed granularity and speed.

Q2. Why does ARM primarily license its processor designs instead of fabricating the chips itself?

A.To reduce manufacturing cost ✅
B.To concentrate on core design expertise
C.Because of patent restrictions
D.To avoid competition with other vendors
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: ARM focuses on design excellence, allowing it to innovate rapidly while partners handle costly fabrication. Option A is partly true but not the main reason; licensing does not directly lower design costs. Patent restrictions (C) are not the driving factor, and ARM does face competition, so D is inaccurate. By licensing, ARM can spread its architecture across many devices, such as smartphones and tablets, enabling widespread adoption without owning fabs.

Q3. Given a virtual address where the outer page index is 0x12, the inner page index is 0x34, and the offset is 0x56 for a 4‑KB page, and the micro TLB provides a base mapping of 0x12000000, what is the resulting physical address?

A.302202966 ✅
B.302003286
C.302011956
D.302204256
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: The micro TLB supplies the base of the 1‑MB section (0x12000000). For a 4‑KB page, the inner index (0x34) is multiplied by the page size (0x1000) giving 0x34000. Adding the offset 0x56 yields 0x34056, which combined with the base gives 0x12034056, so A is correct. Option B mistakenly places the inner index before the offset, C mixes offset and index, and D adds extra digits. This calculation mirrors how an operating system translates virtual addresses to physical memory in a real ARM‑based device.

Q4. In the context of ARM's micro TLB, what does the acronym ASID stand for?

A.Address Space Identifier ✅
B.Asynchronous Signal Interface Device
C.Advanced System Integration Design
D.Application Specific Integrated Device
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: ASID means Address Space Identifier, a tag that allows the micro TLB to distinguish entries belonging to different processes, preventing unnecessary flushes. The other options describe unrelated hardware terms; B refers to a signaling device, C is a design concept, and D describes a type of integrated circuit, none of which match the TLB functionality. In multitasking smartphones, ASIDs let the processor keep separate virtual‑to‑physical mappings for each app, improving performance.

Q5. An operating system chooses 1‑MB sections instead of 4‑KB pages to reduce page‑table size. What is the primary trade‑off of this decision?

A.Larger internal fragmentation
B.Faster address translation
C.Both larger fragmentation and faster translation ✅
D.No trade‑off
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: Using 1‑MB sections cuts the number of page‑table entries dramatically, which speeds up look‑ups (B). However, allocating memory in 1‑MB chunks can waste space when processes need only a few kilobytes, leading to internal fragmentation (A). Therefore the correct answer combines both effects, C. Options A and B isolate one benefit, and D ignores the impact. In a tablet, this trade‑off means the system may run faster but could consume more RAM than necessary for small workloads.

Q6. Why does ARM employ separate micro TLBs for instructions and data rather than a single unified TLB?

A.To allow simultaneous lookups for instruction and data streams ✅
B.To reduce overall power consumption
C.To simplify the hardware design
D.To support different ASID handling for each
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Having distinct instruction and data micro TLBs enables the processor to fetch an instruction address and resolve a data address at the same time, improving pipeline throughput, which is why A is correct. Reducing power (B) is a secondary benefit but not the primary design goal. Simplifying hardware (C) would be easier with a unified TLB, not more complex. Different ASID handling (D) is unnecessary because both TLBs can share the same ASID scheme. Real‑world ARM cores benefit from parallel translation when executing code and accessing memory concurrently.

Q7. During a benchmark, 30 % of memory accesses miss both micro and main TLBs, incurring a page‑table walk that takes 120 cycles. Each successful TLB lookup costs 2 cycles. What is the average memory‑access latency?

A.40 cycles
B.37.4 cycles ✅
C.30 cycles
D.45 cycles
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: The average latency is calculated by weighting the hit and miss cases. Hits occur 70 % of the time at 2 cycles each (0.7 × 2 = 1.4 cycles). Misses occur 30 % of the time at 120 cycles each (0.3 × 120 = 36 cycles). Adding them yields 1.4 + 36 = 37.4 cycles, so answer B is correct. Option A overestimates, C underestimates, and D is unrelated. This figure reflects how TLB performance directly influences overall execution time in real ARM‑based applications.

Q8. How does using 1‑MB sections instead of 4‑KB pages affect the size of the page table in an ARM system?

A.Reduces the number of entries by a factor of 256 ✅
B.Increases the number of entries
C.Leaves the number of entries unchanged
D.Has no impact on page‑table size
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: A 1‑MB section covers 256 times the memory of a 4‑KB page (since 1 MB = 256 × 4 KB). Therefore, the page table needs one entry for each section rather than for each page, cutting the entry count by a factor of 256, which makes A correct. Options B and C contradict this reduction, and D suggests no effect, which is inaccurate. In devices with limited RAM, a smaller page table can free valuable memory, illustrating the practical benefit of section‑based mapping.

Q9. A device uses ARM's two‑level paging with 16‑KB pages. If the virtual address space is 4 GB, how many entries are required in the outer page table?

A.256
B.1024
C.4096 ✅
D.8192
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: With 16‑KB pages, the offset occupies 14 bits. ARM’s outer page table typically maps 1‑MB regions (2^20 bytes). Dividing the total virtual space (4 GB = 2^32 bytes) by 1 MB (2^20) yields 2^(32‑20) = 2^12 = 4096 entries, so C is correct. Option A would correspond to 16‑MB regions, B to 4‑MB, and D to 0.5‑MB regions, none matching the architecture’s layout. Knowing the outer table size helps system designers allocate appropriate memory for page‑table structures in real ARM‑based platforms.

🔗 Related Topics (MCQs)