← Back to quizzesFree quiz

Kiến trúc máy tính - Ôn tập

Welcome to this comprehensive review of fundamental computer architecture topics. Whether you are preparing for an exam in Computer Science or Embedded Systems , this course will reinforce…

10 questions~5 min
Kiến trúc máy tính - Ôn tập — Qwi
0 / 10
Score: 0%
1

Thanh ghi IR có nhiệm vụ gì?

2

Bộ đếm chương trình (PC) giữ địa chỉ của gì?

3

Đặc điểm của bộ nhớ ROM là gì?

4

Số F9B3 (hệ thập lục phân) chuyển sang nhị phân là:

5

Bộ nhớ Cache được cấu trúc từ loại bộ nhớ nào?

6

Trong bus đồng bộ, mọi thao tác được thực hiện trong khoảng thời gian nào?

7

Đơn vị điều khiển (CU) thực hiện chức năng nào?

8

Đặc điểm quan trọng của bus không đồng bộ là gì?

9

Trong 3 kiểu toán hạng cơ bản của ALU, kiểu nào được sử dụng nhiều nhất?

10

Đặc điểm của bộ nhớ DRAM là gì?

Computer Architecture Review: Core Concepts Explained

Welcome to this comprehensive review of fundamental computer architecture topics. Whether you are preparing for an exam in Computer Science or Embedded Systems, this course will reinforce the key ideas behind registers, program counters, memory types, binary conversion, cache design, and bus protocols. The material is organized in clear sections, each focusing on a specific concept that frequently appears in quizzes and interviews.

1. Instruction Register (IR) – What Does It Store?

The Instruction Register (IR) is a pivotal component of the control unit. Its sole purpose is to hold the current instruction that the CPU is about to execute. When the program counter (PC) supplies the address of the next instruction, the instruction is fetched from main memory and placed into the IR. From there, the control unit decodes the opcode and orchestrates the required actions.

  • Key point: The IR does not contain intermediate results or program counters; it only stores the instruction being processed.
  • Typical workflow: PC → Memory → IR → Decoder → ALU/Registers.

2. Program Counter (PC) – Address of the Next Instruction

The Program Counter (also called the instruction pointer) keeps track of the address of the next instruction to be fetched. After each instruction cycle, the PC is automatically incremented (or altered by a branch/jump) so that the CPU continuously streams instructions from memory.

  • Correct answer: It holds the address of the instruction that will be received next.
  • Common misconception: It does not store the address of the instruction already executed; that information is discarded after decoding.

3. ROM (Read‑Only Memory) – Characteristics and Usage

Read‑Only Memory (ROM) is a non‑volatile storage medium that retains its contents when power is removed. The most important characteristic is that the data is programmed during manufacturing and cannot be altered by normal software operations. In many textbooks the phrase “can be programmed by a burning device” is used to describe the manufacturing process.

  • Key feature: Data is written once (often by a laser or electron‑beam) and thereafter only read.
  • Examples: Firmware, boot loaders, and microcontroller program memory.
  • Contrast with: EEPROM or Flash, which allow electrical erasing and rewriting.

4. Converting Hexadecimal to Binary – Example F9B3

Hexadecimal (base‑16) is a compact representation of binary data. Each hex digit corresponds to exactly four binary bits. To convert F9B3 to binary, translate each digit individually:

  • F → 1111
  • 9 → 1001
  • B → 1011
  • 3 → 0011

Putting the groups together yields 1111 1001 1011 0011, which matches the answer 1111100110110011. Mastering this conversion is essential for low‑level debugging and understanding memory dumps.

5. Cache Memory – Underlying Technology

Modern CPUs use a multi‑level cache hierarchy to bridge the speed gap between the processor core and main memory. The fastest cache levels (L1, L2) are built from Static RAM (SRAM). SRAM cells retain their state as long as power is supplied and provide nanosecond‑scale access times without the need for refresh cycles, unlike DRAM.

  • Why SRAM? It offers low latency, high reliability, and simple read/write circuitry, making it ideal for cache.
  • Contrast with DRAM: DRAM is denser and cheaper but requires periodic refresh, which would slow down cache performance.

6. Synchronous Bus – Timing Rules

In a synchronous bus, all data transfers are coordinated by a common clock signal. Operations occur at defined intervals that are integer multiples of the bus clock period. This means that any read or write transaction must complete within a whole number of clock cycles, ensuring predictable timing across all devices on the bus.

  • Correct concept: Actions happen at multiples of the bus cycle.
  • Benefit: Simplifies timing analysis and allows high‑speed data rates because devices can pipeline operations.

7. Control Unit (CU) – Core Functions

The Control Unit orchestrates the execution of instructions. Its responsibilities include:

  • Fetching the instruction address from the PC.
  • Reading the instruction from memory into the IR.
  • Decoding the opcode and generating control signals.
  • Coordinating the ALU, registers, and other functional units to perform the required operation.

Thus, the CU takes the instruction, decodes it, and drives the ALU and other components. It does not perform arithmetic itself; that role belongs to the ALU.

8. Asynchronous Bus – Distinguishing Feature

An asynchronous bus operates without a shared clock line. Instead, handshaking signals (such as REQ and ACK) manage the timing of each transfer. The defining characteristic is the absence of a common clock signal, which allows devices with different speed capabilities to communicate on the same bus.

  • Key advantage: Flexibility in mixed‑speed environments.
  • Typical use cases: Peripheral interfaces like I²C and some legacy expansion buses.

9. Summary of Core Concepts

Understanding the following points will solidify your grasp of computer architecture fundamentals:

  • The Instruction Register (IR) holds the current instruction for decoding.
  • The Program Counter (PC) always points to the next instruction address.
  • ROM is programmed during manufacturing and is read‑only for the end user.
  • Hexadecimal to binary conversion is performed digit‑by‑digit (e.g., F9B3 → 1111 1001 1011 0011).
  • CPU caches are built from SRAM due to its speed and stability.
  • Synchronous buses rely on operations that align with integer multiples of the clock period.
  • The Control Unit (CU) fetches, decodes, and directs the execution of instructions.
  • Asynchronous buses lack a global clock, using handshaking instead.

10. Frequently Asked Questions (FAQ)

Q: Can the IR be used to store intermediate calculation results?
A: No. Intermediate results are stored in general‑purpose registers or the ALU’s internal latch, not in the IR.

Q: Is ROM ever writable after production?
A: Standard ROM is not; however, variants like EEPROM or Flash ROM are rewritable using electrical methods.

Q: Why is SRAM preferred for cache despite being more expensive than DRAM?
A: The speed advantage outweighs cost for the small amounts of memory required for cache, where latency is critical.

Q: How does an asynchronous bus guarantee data integrity without a clock?
A: It uses request/acknowledge handshaking signals to ensure that the sender and receiver are synchronized for each transaction.

11. Further Reading and Resources

To deepen your knowledge, explore the following resources:

  • Instruction Register – Wikipedia
  • Program Counter – Wikipedia
  • ROM – Wikipedia
  • Cache Memory – Wikipedia
  • Synchronous vs Asynchronous Buses – Wikipedia

By mastering these concepts, you will be well‑prepared for quizzes, exams, and real‑world engineering tasks in computer architecture and embedded system design.