U2T3 (1) - Hardware + Software Flashcards
What is a computer system?
A system that is able to take a set of inputs, process them + create a set of outputs which is done by a combination of hardware + software.
What do you need for processing to take place? What is this system called?
A program which is a set of instructions. A stored-program computer.
What are the internal components of a computer system?
Motherboard, CPU, hard drive, RAM memory, graphics card, optical drive, power supply + heat sink/fan.
What is inside the CPU? Other names?
Control unit (CU), memory (cache) + arithmetic + logic unit (ALU) - Processor/central processing unit.
What does the CU do?
Control operation of CPU + hardware components by following program, organises storage + transfer of data using internal memory + special registers, performs fetch-decode-execute cycle by using register to step through instructions in sequence.
What do these mean?:
Fetch, decode, execute.
An instruction is copied from memory to CPU.
Meaning of instruction is determined.
Appropriate action is taken/calculation performed.
What does the ALU do?
Calculations (+/-/x/divide), comparisons (>/=), logical functions (and/or/not), bit-shift operations (shift bits in word right/left) Contains decoder + registers too.
What is the decoder?
Logic circuit to take binary rep of instruction + initiate execution of instruction. Part of ALU.
What are the registers?
Small pieces of memory inside CPU. Hardware version of variable in software.
What are the 3 steps that computers go through?
Input, process, output.
What are the 3 types of memory in the IAS? What is the IAS?
Immediate access store.
RAM, ROM + cache.
What is RAM? Typical size in computer?
Temporarily stores programs/data currently being executed. Content can be changed as it is temp. When programs are loaded from hard drive they are put into RAM. Allows programs to be quicker. 512 MB. Volatile. Read to/written from.
What is ROM?
Perm stores booting up part of operating system program. Non-volatile. Read from, not written to.
What is cache memory?
Fast access RAM close to CPU. Stores recent + frequent files. Volatile. Used by proxy server.
What are the registers in the CPU? (6)
IR, MDR, MAR, PC, ACC, general purpose.
What is the IR and what does it do?
Instruction register holds instruction currently being executed.
What is the MDR and what does it do?
Memory Data Register/memory buffer register/data buffer holds data that has been fetched from memory.
What is the MAR and what does it do?
Memory Address Register holds address of next piece of memory to be fetched.
What is the PC and what does it do?
Program Counter holds address of next instruction to be fetched from memory. Automatically incremented between supplying address of next instruction + instruction being executed.
What is the ACC and what does it do?
Accumulator is an internal CPU register used as default location to store calculations performed by ALU.
What are the general purpose registers used for?
Store transient data required by program. e.g. when a program is interrupted, its state may be saved here, ready for recall when it’s ready to start again.
What is the state of a program?
Value of registers e.g. PC/IR/MAR
If a CPU has ___ registers available, it will work faster.
More
What is the fetch-decode-execute cycle?
The sequence that is completed for each instruction in a program.
Describe each step of the fetch-decode-execute cycle?
Data + program that acts upon it are loaded into main memory (RAM) by operating system. PC copies address of next instruction into MAR, MAR places address onto Address bus, MAR triggers read signal causing RAM to place instruction onto data bus, this is loaded into MDR which copies it into IR. Decoded from instruction set in CPU and areas are prepared for execution. Instruction is now executed and CPU sets up for next cycle.
What are the 4 key factors of about CPU architecture that affect its performance?
Cores, clock speed, cache size + processor type.
What processing units does the CPU contain? What does eat unit contain? How many units might it have and why?
Cores. ALU, control unit & registers. 2 (dual), 4 (Quad) or even more. Runs multiple programs at the same time.
If I double the number of cores from 2 to 4, how much does my speed increase?
It won’t double as some is used up in communicating with each other through channels.
What is the clock speed?
Clock rate, indicates how fast the CPU can run. Measured in MHz or gHz and corresponds with how many instruction cycles the CPU can deal with in a second.
What happens in a faster CPU?
It uses more energy and creates more heat.
If my CPU works at 2 gHz, how many cycles can it complete in a second?
2 billion
Does the computer have a max clock speed? How can you increase it? What is this known as?
Yes. Changed in computer BIOS, overclocking.
Why is overclocking a bad idea?
There are limits to how fast a CPU can run and its circuitry may not keep up with speed. If clock tells CPU to execute instructions too fast, the processing won’t be completed before the next instruction is carried out, it this happens then the data is corrupted and the CPU can overheat.
What is cache?
A small amount of memory which is part of the CPU and faster as it is closer than RAM. It is used to temporarily hold instructions and data that the CPU may reuse.
How does cache work?
CPU control unit checks cache for instructions before requesting data from RAM so it is faster.
How is cache graded?
Level 1 (L1), Level 2 (L2) + Level 3 (L3)
How do the different cache grades work?
L1 Is part of CPU chip, smallest + fastest, 8KB to 64KB.
L2 + L3 are bigger extra caches between CPU + RAM. Slightly slower than L1. Each core has their own L1 but may share L2 + L3.
What are the 2 man types of CPU?
CISC (Complex Instruction Set Computing) + RISC (Reduced Instruction Set Computing)
What uses CISC?
Desktop/laptop computers use CISC architecture made by Intel/AMD
What uses RISC?
Smartphones + tablets use RISC ARM Architecture
What are the main differences between CISC + RISC?
Instructions, physical size, speed, energy consumption, design + cost.
In what way do instructions differ between CISC + RISC?
RISC has fewer instructions as CISC usually have hundreds. RISC must combine simple operations to do complex tasks so RISC is more efficient at performing simpler tasks.
In what way does physical size differ between CISC + RISC?
CISC are larger and require more silicon.
In what way does speed differ between CISC + RISC?
RISC run at a lower clock speed and perform simpler tasks faster but complex tasks slower but this works as smartphones/tablets are not used for such intensive tasks as playing hi-spec advanced games.
In what way does energy consumption differ between CISC + RISC?
CISC use more electricity and RISC can go into sleep mode when not actively accessing a program.
In what way does design differ between CISC + RISC?
Smartphones/tablets combine their processing architecture into an SOC and don’t have space for heat sinks or fans. As RISC are smaller, more functions (memory, hardware etc) can be combined with CPU in 1 chip. CISC are built into a system with a heat sink + fan for cooling.
What is an SOC?
System On a Chip
In what way does cost differ between CISC + RISC?
RISC uses less power and is cheaper to make.
What are backing storage devices also known as? What type of storage is it?
Secondary storage. Devices which hold programs + data when not in use. Non-volatile.
Give the 3 types of backing storage devices?
Magnetic, optical + flash.
Give 2 examples of magnetic storage devices?
Tape streamer + magnetic disks
Give 5 examples of optical storage devices?
CD-ROM, CD-R, CD-RW, DVD, Blu-Ray.
Give 4 examples of flash memory storage devices?
SD card, xD card, memory stick, CompactFlash.
Describe tape streamers.
AKA Magnetic Tape. Serial/sequential access. Not used to spree frequently used data, just backups and long term storage because it takes a long time to read the data. Main form in medium sized organisations, can be very large, hundreds of Gbs.
Describe the structure of a tape streamer?
What speed of access is it nowadays?
Data is stored on a strip of plastic covered in a magnetic coating. Tracks of data run along the tape with each track divided into frames of data.
Up to 80Mb/s.
What is a frame?
A set of bits that run across a magnetic tape which are read together by the read/write head.
What is serial/sequential access?
To get to any piece of data, all the stored data before that piece on the storage medium must be read through to find it. This makes it very slow.
What are the advantages of tape streamers?
Cheap per Mb storage, can store lots of data (over 100Gb), can be set up to backup overnight/weekend + robotic archive + backup systems can swap tapes in + out automatically.
What are the disadvantages of tape streamers?
Serial access makes it slow access, need special equipment to record + read data on tape + less robust so can easily break.
Describe magnetic disks.
Random/direct access. Divided into circular tracks which are subdivided by sectors into blocks. The outside track contains an index which holds track + sector location for each saved file. May have multiple disks (several platters on the same spindle). Data can be written on both sides which have a read/write head each that are fixed together so all read the same track on their surface at the same time.
What is random/direct access?
Any piece of data on a disk can be accessed without having to go through all the information stored before it on that disk.
How is access time worked out?
Access Time = Seek Time + Rotational Delay + Transfer Time
What is seek time?
The time it takes to move the read/write head to the correct track on the disk.
What is rotational delay?
The time it takes to rotate the disk so that the read/write head is at the correct block.
What is transfer time?
The time it takes to read the data and transfer it to the computer’s primary memory.
What is a cylinder of data?
It’s faster for the computer to write data that doesn’t fit on one track on one surface onto the same track on a different surface rather than moving the read/write head to the 7th track.
What is the speed of a hard disk?
What is transfer time?
What is seek time?
7200 RPM/5400 RPM/15000 RPM.
70 Mb/SV
9ms
How does a magnetic disk work?
The heads don’t physically touch the disk but float above it. The distance determines how well the data can be read + so affects the capacity of the disk. This is why manufacturers are trying to reduce the float/flying height of read/write heads. Stores data on mylar film coated with iron oxide.
What is the float height of modern read/write heads? What is the human hair in comparison?
13 nanometers. 5100 nanometers.
What is a head crash?
When the read/write head is too close to the surface of the platter and touches the disk, it permanently damages the disk and the read/write head so the disk won’t work.