CS1 - Systems architecture Flashcards
CPU
Central Processing Unit; processes instructions in a computer.
Fetch-Execute Cycle
Process of retrieving and executing instructions.
MAR
Memory Address Register; holds address of data to access.
MDR
Memory Data Register; stores data being transferred.
Program Counter
Register that tracks the next instruction’s address.
Accumulator
Register that stores intermediate arithmetic results.
ALU
Arithmetic Logic Unit; performs arithmetic and logic operations.
CU
Control Unit; coordinates CPU operations and instruction flow.
Cache
Fast memory for frequently accessed data and instructions.
Registers
Fast storage locations within the CPU for quick access.
Input Devices
Hardware that allows user input into the system.
Output Devices
Hardware that conveys information from the system.
Main Memory
Primary storage for data and instructions in use.
Secondary Storage
Non-volatile storage for data not in use.
Stored Program Concept
Idea of storing program instructions in memory.
Processing
Execution of instructions by the CPU.
Computer Systems
Integrated hardware and software for processing data.
Human Brain Comparison
CPU compared to brain; both process information.
Billions of Instructions
CPU executes billions of instructions per second.
Von Neumann Architecture
Design model for stored-program computers.
Early Computers
Used switches or punch cards for instruction input.
Mathematician Von Neumann
Pioneered the stored-program concept in computing.
Von Neumann architecture
Program instructions and the data the programs are using are both stored in the same memory.
Control Unit
The control unit coordinates and controls all of the activities taking place within the CPU.
Arithmetic-Logic Unit (ALU)
The ALU or Arithmetic Logic Unit is where the actual arithmetic operations are done.
Program Counter (PC)
Holds the address of the next instruction to be executed.
Memory Address Register (MAR)
Holds the memory address of the current instruction, and then the data that it uses, so that these can be fetched from memory.
Memory Data Register (MDR)
Holds the actual instruction, and then the data that has been fetched from memory.
Fetch - Decode - Execute
The CPU operates by repeating three operations: FETCH, DECODE, and EXECUTE.
FETCH
Causes the next instruction and any data involved to be fetched from main memory.
DECODE
Decodes the instruction.
EXECUTE
The instruction is executed.
MAR and MDR
In the FETCH stage of the F-E cycle, the MAR holds the address of the instruction, and the MDR holds the fetched instruction.
PC increment
The Program Counter is incremented (increased by 1) as soon as that instruction has been fetched.
RAM
Random Access Memory.
ALU operations
Carries out logical operations such as those including AND, OR and NOT.
Example - Step 1 (Add 8 + 4)
PC points to next instruction in location 5, address 5 is passed to MAR and PC is incremented.
Accumulator (ACC)
Stores intermediate arithmetic and logic results.
Arithmetic Logic Unit (ALU)
Performs arithmetic and logic operations.
Instruction Fetch
Retrieves instruction from memory to MDR.
Instruction Decode
Interprets fetched instruction for execution.
Instruction Execute
Carries out the decoded instruction’s operation.
Data Transfer
Moves data between registers and memory.
Step 2 Example
PC points to instruction at location 6.
Step 3 Example
PC points to instruction at location 7.
LDA Instruction
Loads data from memory into the accumulator.
ADD Instruction
Adds immediate value to accumulator’s content.
STO Instruction
Stores accumulator’s value into specified memory location.
Special Registers
Includes PC, MAR, MDR, and Accumulator.
Purpose of CPU
Fetches and executes instructions from memory.
Incrementing PC
PC is increased after fetching an instruction.
Value Transfer
Transfers result from accumulator to memory.
Instruction Cycle
Consists of fetch, decode, and execute phases.
Control Signals
Directs operation of CPU components during execution.
Data Bus
Pathway for data transfer between CPU and memory.
Secondary storage
Not directly accessible by the CPU and is non-volatile, meaning it will keep data even if there is no power.
RAM
A type of primary storage with a fast data rate but is volatile (the data is lost if there is no power).
ROM
A type of primary storage that is non-volatile and retains data even when power is turned off.