Principles of computer science Flashcards
Von Neumann architecture
DIAGRAM:
__________Main Memory
________ (Read)!_____¡(Write)
Input –> Central Proecessing Unit –> Output
- A structure in which computer hardware is connected and organised.
- It consists of RAM and CPU interconnected by buses.
- The CPU reads and writes data & program instruction to and from main memory (RAM)
Main memory
Known as Random Access Memory(RAM)
It stores the data & programs the CPU can access.
Volatile - Loses content when power is lost.
Faster and more expensive than secondary storage
Programmable computer
A computer that is multi-purpose, can be programmed to carry out different tasks. They are able to store program instructions and data in memory.
The CPU consists of…
- Control Unit (CU)
- Arithmetic logic unit (ALU)
- Registers
- Clock
Control Unit (CU)
The control Unit decodes information received from main memory and coordinates the actions of the other parts of the CPU
Arithmetic Logic unit (ALU)
Performs arithmetic and logic operations on data
Registers
Provides fast and temporary storage for instructions
Clock
Sends out electrical signals to synchronise the actions of the hardware components. Measured in hertz, 1 hertz = 1 “tick” per second
Busses
Busses connect the CPU with the main memory. There are 3 types of busses:
- Adress bus
- Data bus
- Control bus
Secondary Storage
Non-volatile Allows the system to store data and programs permanently. Types: -SSD(Solid State Drives): USB drive -HDD(Hard Disc Drive): Magnetic storage -Optical Storage: DVD/CD
Cheaper and slower than main memory.
Solid State Drive
Represents bits by little pools of trapped electrons on a microchip
Binary System
Components inside computers have billions of transistors. Binary is used to represent the transistors inside the component. Transistors can be on or off (1 or 0).
Fetch
CPU sends through the address bus the memory address of the next instruction
The CU within the CPU sends a read message to the memory through control bus
The content of the memory locations is sent to the CPU via the data bus
General: The next instruction to be executed is transferred from the RAM to the CPU
Decode
The CU looks up the instruction in the CPUs instruction set
Execute
CU coordinates the action of other components to carry out the operation and instructs the ALU if calculations needed to be done