111-structure-and-function-of-the-processor Flashcards
Computer
- process data by following instructions in a program using CPU and main memory.
- store and retrieve data from storage devices (e,g hard drives, solid-state drives, and USB drives)
- electronic device: performs a wide range of tasks…
-…from basic calculations to complex data processing and multimedia tasks.
Processor/CPU
- FDE continuously
drives overall operations of system and controls other components of the system - Processes data by executing program instructions
- regularly interacts with main memory.
CU
- Coordinates + synchronizes CPU activities and all other processor components.
- Manages FDE cycle phases.
decodes and determines appropriate ensuring-correct sequence of operations to carry out for execution of instruction - Sends/receives control signals that direct flow of data and instructions between the computer’s components (ALU, I/O devices, memory, etc.) and checks if signals been delivered successfully.
- stores the resulting data back in memory
- Typically made up of a clock and a decoder.
ALU
performs logical and arithmetic operations (calculations on fixed n floating point numbers (e.g addition), logical comparisons (eg greater than), logical bitwise operations (e.g XOR), binary shifts).
IAS (immediate access store)
holds instructions n data ready to be used by CPU. Set of memory locations. Also called main memory/RAM/primary memory
System clock
- electronic unit
- synchronises flow of data (to avoid accidental overwriting data) n all processor components operations by generating signal pulses at a regular constant rate
- that continuously switches between a low (0)and a high (1) state. Rising edge- low to high, falling edge- high to low state. All processor activities begin on a clock pulse
Clock cycle
- clock period= time taken between two sequential rising edges, corresponds to 1 clock cycle
- Every operation of processor typically requires a number of clock cycles to complete, specific to each type of processor.
- E.g fetching data from memory/data transfers could require many clock cycles
Clock speed/rate/frequency
- number of FDE cycles ran per sec, measured in hz
- determined by system clock
- Higher clock speed= more processing it can do per sec+ more instructions executed faster rate so programs execute faster
- Clock rate=1/clock cycle time
Overclocking
- Overclocking = increasing component’s clock speed beyond its intended limit by adjusting BIOS or firmware settings.
- can improve performance but also generate heat, reduce lifespan, and cause instability or crashes if not properly managed.
- To compensate for the increased heat, overclockers typically use more powerful cooling solutions.
Decode unit
- piece of logic presented with a sequence of bits fetched from memory.
- prepares execution of an instruction by looking up the binary operation code in its table so CPU knows what to do.
- Fixed commands available in unit specific to instruction set architecture of processor
Registers
- small fast memory locations within processor with a single specific purpose.
@ - Provides extremely faster access than RAM/secondary storage, temporarily stores data/instructions/address.
- General-purpose registers & special-purpose registers
General-purpose registers
- to temporarily store n access results of operations for quicker retrieval n execution
- e.g ALU is connected to a set of general purpose registers: stores temporary intermediate calculation values produced as part of a larger computation whilst ALU is carrying out a calculation
Dedicated/special-purpose registers
processor-based registers used for a specific purpose. E.g the registers used in the FDE
Program counter (PC)
holds address of next instruction to be executed and copies it to the MAR. Increments by to point in the next instruction with each cycle.
Accumulator (ACC)
stores arithmetic and logic results of ALU
- stores inputs and outputs
- stores intermediate/working value
- stores data loaded from MDR/RAM
- checked for conditional branching e.g BRZ
Memory Address Register (MAR)
stores memory location address of data/instructions to be fetched/executed, or where data will be written to. Connected to address bus which carries address to RAM
Memory Data Register(MDR)/memory buffer register
holds data (data values/instructions) read from/to write to RAM, next to be processed, Connected to data bus. Contents of MDR copied to CIR too if it’s a instruction
Current instruction register (CIR)
holds current instruction being executed, divided up into operand and opcode, copied from MDR
Buses
- high-speed internal communication system
- consists of a set of parallel connections
- used to transport instructions & data, control signals, addresses,
- between the processor and components of computer system.
How can buses be implemented
various physical media, such as wires, optical fibers, or even wireless communication protocols. The specific implementation depends on the requirements of the computer system, such as the speed and distance of communication needed between components.