2.1.4 - Explain the machine instruction cycle. Flashcards

1
Q

What is the machine instruction cycle?

A

The machine instruction cycle refers to the fetch, decode, execute cycle where the ALU carries out calculations and logical decisions required by the program instructions that the CPU is processing.

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

What are registers in the context of the CPU?

A

Registers are small, very fast circuits that store intermediate values from calculations or instructions inside the CPU.

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

What is the function of the Memory Address Register (MAR)?

A

The MAR contains the RAM address of the instruction the CPU wants next, is connected to the address bus, and contains a memory address to be used by the ALU.

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

What is the function of the Memory Data Register (MDR)?

A

The MDR is connected to the data bus and holds data that will be written to or read from RAM.

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

What is the relationship between the MAR and MDR?

A

The MAR gives the address from which the data in the MDR will be read or to which it will be written.

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

What are the six stages of the machine instruction cycle?

A

The six stages are: 1) Process starts at the PC, 2) PC sends the next address to the MAR, 3) MAR sends address to RAM and stores the result in the MDR, 4) MDR sends data to the CIR for decoding, 5) CIR passes decoded instructions to the ALU, 6) ALU gives an address to MAR if further instructions are needed.

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

What are buses in the context of the CPU?

A

Buses are connecting wires that connect the CPU to other devices, carrying instructions to/from components. They are built into the motherboard.

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

What are the three most important buses and their functions?

A

The three most important buses are: data bus (links RAM to CPU via MDR), control bus (links RAM to CPU via CU), and memory bus (links RAM to CPU via MAR).

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