Chapter 2: Computer Hardware Flashcards
Hardware
The physical components of a computer. Anything that that can be seen, or touched.
Computer architecture
The architecture is the logical structure, and organisation of the computer hardware.
The von Neumann structure is the basis for all modern digital computers.
All data, and instructionas are stored in RAM as binary numbers.
What are the two main components of the Central Processing Unit?
- ALU (Arithmetic, and Logic Unit): carries out all of the arithmetic, and logical operations e.g. addition, comparison
- Control unit: uses electrical signals to direct the system to run instructions in programs, and control the flow of data in the CPU.
The fetch-execute cycle
1) Fetch the instruction from memory.
2) Decode the instruction to find out what processing to do.
3) Execute the instruction.
This is an endless cycle that starts once the CPu is turned on.
The programs the CPU needs to process are stored in main memory/RAM.
The computer can only do one cycle at a time, it just does it incredibly quickly.
Boot program/sequence
When the CPU is switched on it looks in ROM to load the first program, and execute it. This is called the boot program.
This runs a few basic processes to get the CPU up, and running, and also gets the operating system started.
Once this is done it hands over control to the operating system.
Clock speed
The constant frequency that all of the computer’s processes are synchronised to. It is measured in Hz/cycles per second, and tells you how many processes are executed per second.
1 MHz = 1 million cycles per second.
1 GHz = 1 billion cycles per second.
Cache memory
Cache is very fast, and expensive memory. It holds data close to the CPU, and works at the same speed as the CPU. It only holds the single next piece of data to be processed.
Multiple processor cores
This means that the computer had multiple CPUs working simultaneously.
The CPUs can call fetch, decode, and execute processes at the same time so the computer can execute more processes per second e.g. 3 GHz + 3 GHz = 6 billion cycles per second.
+ive: more data processed at once.
-ive: more complicated operating systems are needed to manage them.
Bus
A circuit of wires that transport data, and connect the parts of the motherboard.
The speed of a bus is measured in MHz (millions of cycles per second), and refers to how much data can move across the bus at the same time.
Which three things change the speed at which the CPU can process data?
Clock speed (processor speed)
Cache memory
Number of cores
RAM (Random Access Memory)
This is the main memory. It temporarily stores data, and programs that are currently being processed. It is volatile.
It can be accessed, and changed by the computer at any time.
It stores the operating system, and is very large.
You can add more RAM to make more memory available, and improve performance.
ROM (Read Only Memory)
This cannot be writted to, is non-volatile, and stores the boot program (performs basic checks, finds the operating system, and hands over control to the operating system).
Also, it is small.
You can change the type of ROM/operating system using a process called flashing.
CPU
Central Processing Unit. The purpose of the CPU is to fetch, decode, and execute instructions.
Primary memory
The only memory that the CPU can access directly, it stores the data, and instructions to be processed.
There are two types of primary memory: RAM, and ROM.
Virtual memory
The part of the hard drive used as an extension to RAM when the computer doesn’t have enough RAM to hold all of the data, and instructions required.
Accessing the hard disk is MUCH slower than accessing RAM.
This means that if virtual memory is constantly being used the computer’s speed is significantly decreased.
To overcome this quit some programs, or add extra RAM to your computer.