Unit 1 : Components of a computer and their uses Flashcards
What is the processor
- The processor is the brain of the computer, it executes instructions which allows programs to run
What is the Arithmetic and logic unit
The ALU carries out all arithmetic and logical operations
What is the control unit
- The control unit is a processor which directs the operations of the CPU, its jobs are :
- Controlling and coordinating the activities of the CPU
- Managing the flow of data between the CPU and other devices
- Accepting the next instruction
- Decoding instructions
- Storing the resulting data back in memory
What is a register
- Registers are small memory cells that operate at very high speed. They are used to temporarily store data and all arithmetic, logical and shift operations occur in these registers
What are the different registers
- Program Counter (PC)
- Accumulator (ACC)
- Memory Address Register (MAR)
- Memory Data Register (MDR)
- Current Instruction Register (CIR)
What does the program counter do (PC)
- Holds the address of the next instruction to be executed
What does the Accumulator do (ACC)
- Stores the results from calculations
What does the Memory Address Register do (MAR)
- Holds the address of a location that is to be read from or written to
What does the Memory Data Register do (MDR)
- Temporarily stores data that has been read or data that needs to be written.
What does the Current Instruction Register do (CIR)
- Holds the current instruction being executed, divided up into operand and opcode.
What are buses
- Buses are a set of parallel wires which connect two or more components inside the CPU.
- There are three buses in the CPU: data bus, control bus, and address bus.
- These buses collectively are called the system bus
What does the data bus do
- This is a bi-directional bus (meaning bits can be carried in both directions) used for transporting data and instructions between components
What does the address bus do
- This is the bus used to transmit the memory addresses specifying where data is to be sent to or retrieved from. The width of the address bus is proportional to the number of addressable memory locations
What is the control bus
- This is a bi-directional bus used to transmit control signals between internal and external components.
What are the control buses signals
- Bus request: shows that a device is requesting the use of the data bus
- Bus grant: shows that the CPU has granted access to the data bus
- Memory write: data is written into the addressed location using this bus
- Memory read: data is read from a specific location to be placed onto the data bus,
- Interrupt request: shows that a device is requesting access to the CPU
- Clock: used to synchronies operations
How does assembly language work
- Assembly code uses mnemonics to represent instructions, for example ADD represents addition. This is a simplified way of representing machine code.
- The instruction is divided into operand and opcode in the Current Instruction Register.
What does the opcode do
- The opcode specifies the type of instruction to be executed.
What does the operand do
- The operand contains the data or the address of the data upon which the operation is to be performed
What is pipelining
- The process of completing the fetch, decode, and execute cycles of three separate instructions simultaneously
- Data is held in a buffer in close proximity to the CPU until it’s required
- Pipelining is aimed to reduce the amount of the CPU which is kept idle.
What is the Von Neumann architecture
- Von Neumann includes a single control unit, ALU, registers and memory units
- Shared memory and data bus used for both data and instructions.
What is the Harvard architecture
- Physically separate memories for instructions and data
- More commonly used with embedded processors
Advantages of Von Neumann Architecture
- Cheaper to develop since the control unit is easier to design.
- Programs can be optimized in size
Advantages of Harvard Architecture
- Quicker since data and instructions can be fetched in parallel.
- Both memories can be different sizes
What is contemporary processing
- Contemporary processors use a combination of Harvard and Von Neumann architecture. Von Neumann is used when working with data and instructions in main memory, but uses Harvard architecture to divide the cache into instruction cache and data cache