SLR1-1.1: Structure and function of the processor Flashcards
(16 cards)
What are the main components of a computer?
- Input devices
- Output devices
- CPU
- Main memory (RAM)
What are two examples of input devices?
1) Mouse
2) Keyboard
What are two examples of output devices?
1) Screen
2) Speakers
What is the function of the Control Unit (CU) ?
*Decodes instructions
* Sends control signals to coordinate the movement of data through the processor
* Sends control signals to execute them
* Coordinates buses
What is the function of the Program Counter (PC)?
- Holds the address of the next instruction
- Sends it to MAR
- Then increments (or jumps to new address from CIR)
What is the function of the Memory Address Register (MAR)?
- Holds the address from the Program Counter (PC) or Current Instruction Register (CIR)
- Sends it to memory to access data/instructions
What is the function of the Memory Data Register (MDR)?
*Temporarily stores fetched data/instructions
* Acts as a buffer
* Sends the instruction to the Current Instruction Register (CIR)
What is the function of the Current Instruction Register (CIR)?
*Holds the current instruction being executed
*The contents of the MDR are copied to the CIR if it is an instruction
* Contains the opcode and operand of the current instruction
What is the function of the Arithmetic Logic Unit (ALU)?
- Performs arithmetic and logical operations and calculations on the data
What is the function of the Accumulator (ACC)?
- Temporarily stores results of calculations
- General purpose register of the CPU
- Data or control information is stored here
What are the 3 buses?
- Data bus
*Address Bus - Control Bus
What is the function of the Data bus?
- Carries data between processor components
- Allows movement of values within the system
What is the function of the Address bus?
- Carries addresses of data/instructions
*Specifies where to read from or write to in memory
What is the function of the Control bus?
- Sends control signals from the Control Unit (CU) to other parts of the processor
What is assembly code?
It is a language that has one-to-one relationships with the processor architecture
In low-level, what code do computer use?
Assembly code