1.1.1 Structure and Function of the Processor Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is the Control Unit (CU)?

A

A component of the CPU which coordinates all its activites

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

what are the main functions of the CU?

A
  • directs flow of data between CPU and other devices
  • sends command control signals on the control bus (eg. requests to read and write to memory)
  • coordinates and communicates with other CPU components
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the Program Counter (PC)?

A

Register which holds the address of the next instruction to be processed. Increments by one each clock cycle.

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

What is the Memory Address Register (MAR)?

A

Register which holds the address of data or an instruction which is to be fetched or that is going to be written to.

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

what does the MAR use to send addresses?

A

address bus

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

what is the Memory Data Register (MDR)?

A

Register used to temporarily store data that is read from or written to memory.

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

what does the Current Instruction Register (CIR) do?

A

holds the current instruction being processed

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

what is an instruction made up of?

A

opcode + operand

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

what does the Arithmetic Logic Unit (ALU) do?

A

performs logical or arithmetic operations on data

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

What does the Accumulator (ACC) do?

A

one of the general purpose registers that stores the result of the ALU temporarily

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

What does the Address Bus carry?

A

memory addresses that identify where data is being read from or written to

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

what does the Control bus carry?

A

command and control signals to and from every component in the CPU/computer

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

what does the Data Bus carry?

A

the binary code (1s and 0s) that make up the information being transmitted around the computer/CPU

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

how is data processed in a computer?

A

the computer follows a set of instructions called a computer program

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

what happens during the fetch stage of the FDE cycle?

A
  • PC checked as it holds address of next instruction
  • address in PC is copied to MAR
  • address then sent to memory on address bus. it then waits for a signal from control bus
  • CU sends signal (eg. read or write) along control bus
  • contents in memory sent along data bus to MDR
  • as the data is an instruction, data is then copied from MDR to CIR
  • Increment the PC for next instruction
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

what happens during the decode stage of the FDE cycle?

A
  • instruction in the CIR is decoded by the decode unit
  • if the instruction uses the ALU, load the contents of the memory address in the ACC
17
Q

what does the opcode do?

A

tells the computer what to do

18
Q

what is the operand?

A

tells the computer what the opcode instruction should be performed on (eg. actual data or an address)

19
Q

what happens during the execute stage of the FDE cycle?

A

which registers are used will depend on instruction:
- If value is being inputted the ACC will store value
- If value is being outputted this will be value currently in ACC
- If value is loaded from RAM this will be sent across the data bus from RAM (in the address location in the MAR) to the MDR
- If a value is to be stored it will take the value from the ACC, send it to MDR then send it across data bus to RAM (to the address location in the MAR)
- If a value is being added to or subtracted from another value, carried out in the ALU
- If the LMC code is to branch the comparison will take place in the ALU

20
Q

what happens in the decode and execute stages if the program branches?

A
  • if instruction in the opcode says branch, replace value in PC with the operand from the CIR
  • carry out the fetch cycle as normal
21
Q

what is the clock speed?

A

the number of FDE cycles per second in Hertz (Hz)

22
Q

how does an increased clock speed increase performance?

A

a greater number of cycles per second means more instructions can be carried out so the computer runs faster.

23
Q

what is cache?

A

temporary storage of data and instructions that is read from or written to.
near the CPU so faster to access

24
Q

how does a larger cache improve CPU performance?

A

more instructions can be stored near the CPU
this means the are quicker to access

25
Q

what does multiple cores on a single chip mean?

A

a single chip which has more than one processor that can excecute separate instructions.

26
Q

how do multiple cores improve CPU performance?

A

more than one instruction can be processed simultaneously so a program can run faster

27
Q

why does multiple cores not directly increase CPU performance?

A
  • cores have to communicate
  • some programs are not designed for multicore processing
28
Q

what is pipelining?

A

carrying out instructions concurrently (at the same time)
each instruction is at a different stage of the FDE cycle

29
Q

what happens to pipelining when there is branching?

A

the pipeline has to be flushed (some instructions have to be removed)

30
Q

how does pipelining improve efficiency and processor performance?

A
  • Pipelining reduces latency
  • The CPU is not idle while waiting for the next instruction which increases the speed of execution
  • The next instruction is fetched while the current one is decoded/executed
  • All parts of the processor can be used at any instance in time
31
Q

what is the structure of the Von Neumann architecture?

A
  • unified memory
  • single system bus
  • one control unit
  • instructions and data stored in same format
32
Q

what is the structure of the Harvard architecture?

A
  • separate memory for instructions and data
  • separate system busses for instructions and data
  • separate control units
  • reading + writing is done at the same time as fetching instructions
33
Q

what are some examples of contemporary processor architectures?

A
  • SIMD - used in grahics processors
  • MIMD - multiple instructions on multiple data with multiple cores
  • distributed computing - multiple computers on shared network working on a bigger problem