Chapter 3 Flashcards

1
Q

Define a program in computing.

A

A sequence of steps to perform arithmetic or logical operations, each step controlled by specific signals.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Role of the Control Unit in the CPU.

A

It issues control signals and interprets operation codes to manage CPU functions like ADD or MOVE commands.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the primary CPU registers used in program execution?

A

PC (Program Counter): Holds the address of the next instruction
- IR (Instruction Register): Holds the current instruction
- MAR (Memory Address Register): Points to memory location for read/write
- MBR (Memory Buffer Register): Holds data for memory exchange
- I/O AR and I/O BR: Manage data exchange with I/O modules

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the two main steps in the Instruction Cycle?

A

1) Fetch Cycle: Retrieves the next instruction from memory.
2) Execute Cycle: Performs the operation specified by the instruction.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What happens during the Fetch Cycle?

A

The PC provides the address of the next instruction, the CPU fetches it into the IR, then increments the PC to the next instruction.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Describe the main actions during the Execute Cycle.

A

Processor-memory: Transfers data between CPU and memory
- Processor-I/O: Transfers data between CPU and I/O modules
- Data processing: Performs arithmetic or logic operations
- Control: Alters instruction sequence

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is an Interrupt, and why is it used?

A

An interrupt is a signal that halts the CPU’s current task to handle external events, ensuring devices get timely responses without CPU downtime.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

List the main types of Interrupts.

A

Program: Arises from software errors or instructions
- Timer: From internal clock
- I/O: From devices needing CPU attention
- Hardware failure: Emergency issues like power loss

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Steps of Interrupt Handling.

A

Save current program state, transfer control to interrupt handler, process interrupt, restore state, and resume the original program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Explain Direct Memory Access (DMA).

A

DMA allows I/O devices to transfer data directly to/from memory without CPU intervention, freeing the CPU for other tasks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the function of a System Bus?

A

It connects major components like CPU, memory, and I/O, enabling data exchange between them.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Name the three types of lines in a System Bus.

A
  • Data lines (Data Bus): Transfers data
  • Address lines (Address Bus): Specifies data locations
  • Control lines: Coordinates operations and timing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Function of Data Lines in a bus.

A

They provide a pathway for data transfer between components. The width (number of lines) impacts data transfer capacity.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Purpose of Address Lines in a bus.

A

Address lines specify data sources or destinations. The width of the address bus limits the system’s maximum memory capacity.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Role of Control Lines in a bus.

A

Control lines manage data and address line usage, sending commands (like read/write) and timing information for operations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is Bus Arbitration, and why is it important?

A

Bus arbitration ensures only one device at a time uses the bus, preventing conflicts. It’s managed using master-slave control.

17
Q

Types of Bus Arbitration Methods.

A
  • Centralized: A single controller manages access
  • Decentralized: Each device contains logic to control bus access
18
Q

Difference between Synchronous and Asynchronous Bus Timing.

A
  • Synchronous: Events occur on clock cycles, creating predictable timing.
  • Asynchronous: Timing depends on previous events, allowing flexibility for varying device speeds.
19
Q

What are Multiple Interrupts, and how are they handled?

A

Multiple interrupts can occur at once. They are managed by either disabling further interrupts temporarily or assigning priorities.

20
Q

Describe Nested Interrupt Processing.

A

In nested processing, higher-priority interrupts can interrupt lower-priority handlers, allowing critical tasks to be addressed first.

21
Q

Define Direct Memory Access (DMA) Transfers.

A

DMA enables data transfer directly between I/O and memory without CPU, increasing efficiency, especially for large transfers.

22
Q

Key components connected by an Interconnection Structure.

A

Memory, processor, and I/O modules, each having specific roles in data storage, processing, and input/output.

23
Q

Explain the concept of a Multiplexed Bus.

A

A multiplexed bus shares lines between address and data signals, reducing the number of lines but adding control complexity.

24
Q

Advantages of a Dedicated Bus over a Multiplexed Bus.

A

A dedicated bus has separate address and data lines, simplifying control but requiring more lines.

25
Q

Describe Master-Slave Mechanism in buses.

A

In this mechanism, the master device controls bus access, while the slave device receives data from the master.

26
Q

Examples of data transfers in a computer system.

A
  • Memory to Processor: Reads data
  • Processor to Memory: Writes data
  • I/O to Processor: Reads device data
  • Processor to I/O: Sends data to a device
  • I/O to/from Memory (DMA): Direct device-to-memory transfer