1.1 System Architecture Flashcards
Basic computer system model
Includes input, processing, output and storage
CPU - name and function
Central Processing Unit - Decodes and executes instructions and manages the rest of the hardware.
Input device
A device used to input information into the computer
Output device
A device that presents data from the computer
Storage device
A device on which information can be stored.
Von Neumann Architecture
Instructions are fetched, decoded and executed one at a time. Instructions and data are held together in the same memory space.
Bus
Paths/lines on the motherboard that data, electrical power and instructions move on.
Address Bus
Carries addresses from the processor to memory and input/output devices.
Data Bus
Sends data between the processor, memory and input/output devices.
Control Bus
Carries signals to co-ordinate computer activities.
CU
Control Unit - Co-ordinates activities taking place inside the CPU.
Functions of the Control Unit:
- Controls the execution of instructions in the right order.
- Decodes the instructions.
- Regulates and controls processor timing using regular pulses from the system clock.
- Sends and receives control signals to and from other devices within the computer.
ALU
Arithmetic Log Unit. Carries out mathematical and logical operations.
ALU functions:
- Logical Operations: AND, OR, NOT.
- Shift Operations: The bits in a binary number can be shifted to the left or the right a number of times.
- Arithmetic Operations: +, -, x, /.
What are special Purpose Registers?
Special very fast memory locations within the CPU with specific purposes in the process of executing instructions.
MAR
Memory Address Register - Holds the address of data ready for use by the MDR, or the address of an instruction passed from the PC.
MDR
Memory Data Register - Holds data fetched from or to be written to memory.
PC
Program Counter - The register that contains the address of the next instruction to be executed. It is incremented for each
instruction of the program being executed.
ACC
Accumulator - Holds the result of calculations.
FDE Cycle
Fetch-Decode-Execute. The CPU uses this cycle to carry out program instructions.
Fetch
- The contents of the Program Counter are put into the MAR.
- The address is transferred along the address bus to main memory.
Decode
The CU decodes the instruction in the CIR to see what is to be done next.
Execute
The instruction is then executed.
Factors affecting the speed of the CPU.
- Clock Speed
- Cache size
- Number of cores
Embedded system + example
A computer system within a larger mechanical or electrical system designed for a specialist purpose. Example - coffee machine
Multi-tasking
Creating the illusion that many programs are running at the same time (rapidly switches between programs)
Primary storage -
Volatile, short-term, fast memory. Includes registers, cache and RAM.
Random Access Memory (RAM)
a type of volatile primary storage that stores programs and files that are currently in use.
Volatile
when the power is turned off, the contents are lost.
Virtual Memory
when a portion of the Hard Disk Drive (HDD) is used as though it is RAM (hence “virtual”). When RAM fills up, it can use this to keep the programs running without having to close them.
Cache
very high speed memory next to the CPU that stores frequently used instructions + data
Secondary storage
non-volatile, long term storage for programs, files and other data. E.g. HDD/SSD, CDs/DVDs.
Optical storage
CDs and DVDs.
Magnetic storage
Hard Disk Drives. It uses a moving read-write head that passes over magnetised platters. HDDs can be a bit unreliable due to moving parts than can wear out and break
Solid state drives…
uses Flash chips which has no moving parts and is much faster and more durable than a Hard Disk Drive.
Read-Only Memory (ROM)
a type of storage that can only be read from and not written to. The most common use of ROM is to store the basic BIOS settings that boot up the computer.
Units of storage:
- Bit = 1 or 0 (smallest unit of data).
- Nibble = 4 bits
- Byte = 8 bits
- KiloByte = 1024 Bytes
- MegaByte = 1024 x 1024 (roughly 1 million) Bytes
- GigaByte = 1024 x 1024 x 1024 (roughly 1 billion) Bytes
- TeraByte = 1024 x 1024 x 1024 x 1024 (roughly 1 trillion) Bytes
Characteristics of secondary storage that need to be considered when buying devices for certain scenarios:
- capacity (amount of data it can store)
- speed (how fast data can be read and written to it)
- portability (how easy it is to carry about)
- durability (how difficult it is to break)
- reliability (how long it tends to last without going faulty)
- cost (per byte or Gigabyte)