machine instruction cycle Flashcards

1
Q

how are computer systems stored in primary memory

A

as a series of instructions in machine code

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

what needs to happen for a computer program to operate

A

the instructions in the primary memory needs to be moved into the CPU - fetch-execute cycle

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

4 steps in machine instruction cycle

A
  1. fetch instruction from primary memory to control unit
  2. decode instruction in control unit
  3. execute instruction
  4. store result of execution and check for next instruction
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what happens in the fetch phase of the machine instruction cycle

A

CPU sends appropriate address through the address bus to primary memory
instruction that resides in the address is copied into the data bus and is sent to the control unit

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

what happens in the decode phase of the machine instruction cycle

A

instruction received by the control unit is decoded
any required data that need to be loaded from the primary memory in order for the instruction to be executed is then fetched
address of these data are placed into address bus and data from these addresses are received by the CPU through data bus

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

why is decoding an instruction necessary

A

it allows the CPU to be aware of any additional data that are necessary for execution of the instruction

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

what happens in the execute phase of the machine instruction cycle

A

CPU executes the instruction using the data that have been loaded and calculates a result - depending on this result, additional data may be needed
addresses of these data are placed in the address bus and data from these addresses are received by the CPU through data bus

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

what happens in the store phase of the machine instruction cycle

A

CPU stores the result in primary memory by specifying the address where the result will reside in primary memory using the address bus and then sends data through data bus

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