SLR1- Structure and Function of the Processor Flashcards
1
Q
What is the purpose of the Control Unit?
A
- Coordinates all activities of the CPU
- Directs flow of data between CPU and other devices
- Accepts the next instruction, decodes it, handles execution and stores data back in memory or registers.
- Sends read and write requests to main memory on the control bus, as well as other requests such as interrupt requests.
2
Q
What is the purpose of the Program Counter?
A
- Holds the address of the next instruction to be executed (could be next in sequence or address to jump to if current instruction is a jump or branch- copied from CIR)
- At the end of FDE cycle the address held in the PC is copied to the MAR
3
Q
What is the purpose of the MAR?
A
- Holds the address or memory location from which data or an instruction is to be fetched or to which data is to be written.
- Sends the address to memory down the address bus.
4
Q
What is the MDR used for?
A
- Used to temporarily store the data which is read from or written to memory.
- Sometimes known as the MBR (memory buffer register) also nicknamed the gateway to the processor.
- All data from memory must travel down the data bus and pass through the MDR
5
Q
What is the purpose of the Current Instruction Register?
A
- Holds the current instruction being executed.
- Contents of MDR are copied to CIR if it is an instruction.
- Contains the opcode and operand(s) of the current instruction
6
Q
What is the purpose of the Arithmetic Logic Unit?
A
- Performs arithmetic and logical operations on data.
- Arithmetic operations on fixed and floating point numbers
- ADD
- SUBTRACT
- MULTIPLY
- DIVIDE
- Bitwise shift operations left and right.
- Boolean logic operations
- AND
- OR
- NOT
- XOR
- Comparison
- Often uses general-purpose registers to store results of calculations such ass the accumulator
7
Q
What is the purpose of the Accumulator?
A
- One of many general-purpose registers.
- Data control info is often stored in them.
- Typically, the more general-purpose registers a processer has, the faster it may operate.
- Results of ALU calculations are often stored here.
8
Q
What is the purpose of the Address Bus?
A
- Carries memory addresses that identify where the data is being read from or written to.
9
Q
What is the purpose of the Data Bus?
A
- Carries the binary 1’s and 0’s that make up the actual information being transmitted around the computer
10
Q
What is the purpose of the Control Bus?
A
- Carries command and control signals to and from every other component of the CPU/Computer
11
Q
What is add in assembly code?
A
ADD
12
Q
What is subtract in assembly code?
A
SUB
13
Q
What is store in assembly code?
A
STA
14
Q
What is load in assembly code?
A
LDA
15
Q
What is branch always in assembly code?
A
BRA