S1 - 1 processor components Flashcards

1
Q

how many components does the CPU have?

A

The CPU has 4 components

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

Name all the components of the CPU

A

+ control unit
+ arithmetic logic unit (ALU)
+ buses
+ dedicated registers

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

what does the control unit do?

A

+ coordinates all activities of the CPU

+ directs flow of data between the CPU and other devices

+ Accepts the next instruction, decodes it, handles its execution and stores the resulting data back in memory or registers

+ Sends memory read and write
requests to main memory on the
control bus,as well as other
command and control signals such as
bus requests,bus grants,interrupt
requests ,etc.

+ Makes extensive use of the status
registers and clock.

+ .Coordinates and communicates with
all parts of the CPU (orange lines).

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

what does the program counter do?

A

. Holds the address of the next
instruction to be executed.

  • This could be:

+ the next instruction in a
sequence of instructions;or

+ the address to jump to if the
current instruction is a
command to jump or branch-
this would be copied from the
current instruction register.

+ Has a very close relationship with
the memory address register. At the
start of every new fetch-decode
execute cycle,the address held in
the PC is copied to the MAR.

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

what does the program counter do?

A

Holds the address of the next
instruction to be executed.

  • This could be:

+ the next instruction in a
sequence of instructions

+ the address to jump to if the
current instruction is a
command to jump or branch-
this would be copied from the
current instruction register.

+ Has a very close relationship with
the memory address register. At the
start of every new fetch-decode
execute cycle,the address held in
the PC is copied to the MAR.

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

how many registers are there?

A

there are 3 data registers

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

what are the 2 data registers?

A

+ Memory data register (MAR)
+ Memory address register (MDR)
+ current instruction register (CIR)

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

what does the memory address register do?

A

The memory address register holds the address of the memory location where an instruction or data which would be fetched or written.

And it sends these addresses to memory down the address bus

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

what does the memory address register do?

A

The memory address register holds the address of the memory location where an instruction or data which would be fetched or written.

And it sends these addresses to memory down the address bus

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

what does the memory data register (MDR) do?

A

The memory data register temporarily stores the data which is read from or written to memory.

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

why is the memory data register (MDR) important?

A

ALL DATA to and from memory MUST travel down the data bus and pass through the memory data register (MDR)

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

The memory data register is also known as…

A

the memory buffer register (MBR), its nicknamed “the gateway to the processor”

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

what does the current data register do?

A

+ holds the current instruction being executed

+ The contents of the MDR are copied to the CIR if its an instruction

+ contains the opcode + operands

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

what does the ALU do?

A

The ALU performs arithmetic and logical operations on data

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

what are the arithmetic operations the ALU can perform?

A

The ALU can perform arithmetic operations on fixed and floating numbers such as - ADD, SUBTRACT, MULTIPLY and DIVIDE.

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

what are all the operations an ALU can perform?

A

+ Arithmetic operations
+ Boolean operations
+ Shift operations

17
Q

what are the shift operations the ALU can perform?

A

The ALU can perform shift operations by shifting bits to the left or right within a register.

18
Q

what are the boolean operations the ALU can perform?

A

The ALU can perform boolean logic operations by comparing 2 values and using operators such as AND, OR, NOT, XOR

19
Q

state all the boolean operations

A

AND, OR, NOT, XOR