1.1 - CHARACTERISTICS OF CONTEMPORARY PROCESSORS, INPUT, OUTPUT AND STORAGE DEVICES. Flashcards
What is the processor?
The brain of a computer. It executes instructions which allows programs
to run.
What is the ALU (Arithmetic Logic Unit) ?
The ALU (Arithmetic and Logic Unit) completes all of the arithmetical and logical
operations. Arithmetical operations include all mathematical operations such as addition
and subtraction on fixed or floating point numbers. Logical operations include boolean
logic operations such as AND, OR, NOT, and XOR.
What is the CU (Control Unit) ?
The Control Unit is the component of the processor which directs the operations of the
CPU. It has the following jobs:
- 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 are Registers?
Registers are small memory cells that operate at a very high speed. They are used to
temporarily store data and all arithmetic, logical and shift operations occur in these
registers.
Name 5 Registers.
PC - Program Counter
ACC - Accumulator
MAR - Memory Address Register
MDR - Memory Data Register
CIR - Current Instruction Register
What is the PC (Program Counter) ?
Register - Holds the address of the next instruction to
be executed.
What is the ACC (Accumulator) ?
Register - Stores the results from calculations
What is the MAR (Memory Address Register) ?
Register - Holds the address of a location that is to be
read from or written to.
What is the MDR (Memory Data Register) ?
Register - Temporarily stores data that has been read
or data that needs to be written.
What is the CIR (Current Instruction Register) ?
Register - 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.
What are three types of buses?
There are three buses in the CPU: data bus, control bus, and address bus.
What are the system buses?
There are three buses in the CPU: data bus, control bus, and address bus. These buses
collectively are called the system bus.
What is the width of the bus?
The width of the bus is the number of parallel wires the bus has. The width of the bus is
directly proportional to the number of bits that can be transferred simultaneously at any
given time. buses are typically 8, 16, 32 or 64 wires wide.
What is the data bus?
This is a bi-directional bus (meaning bits can be carried in both directions). This is used for
transporting data and instructions between components.
What is the address bus?
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. The control bus coordinates the use of the address and data buses and
provides status information between system components.
What are examples of control 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 synchronise operations
What is assembly code?
Assembly code uses mnemonics to represent instructions,
for example ADD represents addition. This is a simplified
way of representing machine code.
What is an instruction divided into?
The instruction is divided into operand and opcode in the
Current Instruction Register.
What is OPERAND?
The operand contains the data
or the address of the data upon which the operation is to be
performed.
What is OPCODE?
The opcode specifies the type of instruction to
be executed.
What is pipelining?
Pipelining is the process of completing the fetch, decode, and execute cycles of three
separate instructions simultaneously, holding appropriate data in a buffer in close proximity
to the CPU until it’s required. While one instruction is being executed, another can be
decoded and another fetched.
What does pipelining aim to reduce?
Pipelining is aimed to reduce the amount of the CPU which is kept idle. It is separated into
instruction pipelining and arithmetic pipelining.
What is instruction pipelining?
Instruction pipelining is separating out the
instruction into fetching, decoding, and executing.
What is arithmetic pipelining?
Arithmetic pipelining is breaking down
the arithmetic operations and overlapping them as they are performed.
What is the FDE Cycle?
The fetch-decode-execute cycle is the sequence of operations that are completed in order
to execute an instruction.
What is the fetch stage?
Fetch phase:
- Address from the PC is copied to the MAR
- Instruction held at that address is copied to MDR by the data bus
- Simultaneously, the contents of the PC are increased by 1
- The value held in the MDR is copied to the CIR