Architecture Flashcards
System
combination of connected parts working together to achieve a common goal
Computer system
system involving interaction between hardware, software, data and the user
What is Computer architecture
specification of how a computer’s parts are physically and logically connected
Von Neumann architecture
-CPU -Memory -Bus -Input/Output devices
What is a CPU
(processor) central processing unit. Carries out computations on data by following instructions
Control Unit
directs operations of CPU. Controls transfer of data and operations between other units of the computer. Instructs memory, logic unit and input and output devices on how to respond to program’s instructions
ALU and what it is
Arithmetic/Logic Unit. Where A and L processing takes place. Receives instructions and data (both from memory) and operates on them
What are Registers
temporary storage locations that can be accessed by CPU quickly when carrying out instructions. Very expensive and have a small capacity.
Examples of registers
- Program Counter: stores memory address of the next instruction to be executed, stores where CPU is in program sequence at any given time and is updated to indicate what must be done next
- Memory Address register [MAR]: store memory addresses of data required to carry out instruction.
Memory
stores data to be operated on + instructions(programs) that operate on data + the results
RAM
Random Access Memory. Temporarily holds data and instructions currently being executed by CPU. Volatile and typically fast.
Volatile memory
when computer loses power the data is lost
ROM
Read Only Memory. Non-volatile and an example would be BIOS
What is BIOS
Basic Input/Output System. Small amount of ROM for computer startup routine. Performs necessary checks and then hands control to OS
OS
Operating System
Primary Storage
(Main Memory). Memory with information for immediate use by the CPU. E.g. RAM and ROM
Fetch-execute cycle
Happens millions of times per second on modern computers. 1. FETCH. CPU fetch next instruction from memory. 2. Instruction found at memory address in binary code. 3. DECODE Decodes binary and reveals instruction EXECUTE which is executed. 4. Cycle starts again
What is The Clock
generates a continuous stream of electric pulses at a very steady frequency. Fed to all circuits in computer to ensure they operate on instructions together and are perfectly synchronised.
Clock and cpu speed
main factor determining CPU speed. Each pulse means CPU executes one instruction. 5GHz = 5 billion instructions per second
Cores
Part of CPU allowing it to execute instructions simultaneously. 8 cores = 8 instructions during one clock cycle
Bus
allows data and instructions to move from memory to the CPU and vice versa
Input/Output devices examples
-Secondary Storage. -USB devices(keyboards). -Display Devices. Pointing devices(mice)
What is Secondary Storage?
store data persistently. None volatile and an example would be hard drives
Differences between primary and secondary storage
-Primary is for immediate use by CPU whereas Secondary is used anytime.
-Primary is temporary.
-Generally primary is more expensive and smaller
What are Hard drives
widely used for secondary storage. Two main types:
1. Magnetic Hard Drive.
2. SSD
Magnetic Hard Drives
consist of a magnetic “platter” that rotates at very high speeds. “Head” moves across the platter and reads info
SSD
Solid State Drive. Faster and more durable because they have no moving parts. Based on flash memory which is also what USBs are typically based on.
Motherboard
circuit board where devices are physically mounted on to. Include CPU + Main Memory + Hard Drives + others. Also contain ports that allow you to connect input/output devices
Circuit Board
durable sandwich of non conducting fibre material with several layers of interconnecting paths that act as “wires” which connect components
Daughter Boards
small circuit board attached to mother board where some components are plugged in to
how does Binary Code work inside a computer
inside a computer binary is represented by the presence or lack of an electrical signal
Electric current
flow of electrons from one place to another
Voltage
(potential difference) causes electrons to move when there is a difference in charge between its current location and some other location
Voltage and binary
3.3 or 5 volts represents “on”/“high” whereas 0 or close to 0 represents “off”/“low”
Resistance
how much a material resists the flow of electric current. Different materials have different resistances
How computers manipulate the flow of electricity
use electronic devices like transistors + resistors + capacitors
Transistor
tiny electronic switch allows a small current change to switch on or off a larger current
Resistor
reduces current flow by passing electricity through a material whose resistance allows electricity to flow but not very well. When current flows some electricity is converted to heat.
Capacitors
store electrical energy in electric charge. Don’t store for long and are often used in volatile memory
Capacitance
measure of charge and capacitor can store
Device responsible for manipulating signals in the CPU
transistor
How Logic Gates work in the CPU
different arrangement of transistors into circuits so that can carry out Boolean operations. Each gate has a particular circuit so there are millions of transistors in a CPU
Types of logic gates
-and -or -not -nand -nor
Examples of RAM data
-system software such as operating system.
-Application software
-Program data. E.g. editing photo on computer
-any temporary data
Examples of ROM data
- BIOS. - essential for startup
- Firmware (software embedded into hardware devices)
- Bootstrap programs
What Input Device does
sends data into computer
what is Output Device
sends data out or displays it
Factors affecting CPU speed
- clock speed
- cores
- amount of main memory (holds programs currently being run. More means it doesn’t have to go through slower process of fetching from secondary storage)
- cache size (more = less time waiting for instructions)
ACC and what it is
Accumulator. Register that stores data to be operated on
Virtual Memory
area of secondary storage allocated to store data from RAM temporarily usually when RAM is full. Takes longer to be processed as it is no longer in RAM
Integrated circuit(chip)
electronic component that contains multiple discreet components combined together into logic circuits on a single silicon board
Benefits of more RAM
- Better Performance.
- Quicker response times for user.
- More applications can be loaded in RAM at the same time meaning CPU spends less time loading RAM from secondary storage
Why is data stored in binary
-circuits in a computer’s processor are made of transistors that are activated or deactivated by 5V or 0V signals. The 1 and 0 used in binary reflect the on and off states of a transistor.
-Binary is also more reliable than any other number system since there are only 2 states.
HDD acronym
Hard Disk Drive
cache
fast, relatively small set of locations built directly within processor. Stores instructions and data processor is most likely to need and reuse