cs CPU architecture Flashcards
purpose of ALU
resposible for any arithmetic or logic processing that might be needed when a program is running
purpose of control unit
- To control operation of fetch-execute cycle;
- To send control signals/commands to other components of fetch-execute cycle;
- To control the transfer of data between registers
The internal clock
controls the cycles inside the processor and its frequency is called clock speed
immediate access memory
Immediate Access Store holds all the data / instructions / programs currently in use
- Immediate Access Store is volatile memory
- Immediate Access Store has fast access times
system clock
- synchronise operations
- … by creating timing signals
program counter
Stores the address where the next instruction is to be read from
memory address register
Stores the address of the memory location currently being read from
memory data register
Holds the data/instruction which has been read from the address in the MAR.
current instruction register
Holds the instruction currently being decoded and/or executed
index register (IX)
Stores a value; only used for indexed addressing.
status register
Holds information about the current state of operations. It is used to set flags or to detect error conditions and to disable/enable interrupts.
fetch
The address of the next instruction to be executed, held in the PC, is copied to the MAR.
- The instruction held at that address is placed in the MDR. then copied to CIR
decode, execute
The instruction is held in the CIR.
- The control unit decoder decodes the instruction, the opcode identifies the type of instruction it is and the relevant part of processor executes the instruction.
what is the stored program concept
Instructions and data are stored in the same memory space / in main memory.
control bus
The control bus is bi-directional and carries control signals.
data bus
The data bus is bi-directional as data can be sent both ways along the bus
address bus
This bus carries the address of a memory location in one direction
how number of cores affect performnace
Each core processes one instruction per clock pulse
- More/multiple cores mean that sequences of instructions can be split between them
how clock speed affects performance
- determines the number of cycles the CPU can execute per second
- increasing clock speed increases the number of operations/number of fetch-execute cycles that can be carried out per unit of time
how cache affects performance
cache memory is faster than main memory so the more that can be stored in cache memory the less frequently the main memory needs to be accessed
- … the higher capacity the more frequently used instructions it can store for fast access
what are interrupts
- A digital signal from some device/source seeking the attention of the processor
- a signal from a device/program that it requires attention from the processor.
how interrupts are handled
Detection: At the start / end of each fetch-execute cycle the processor checks for interrupt(s)
- Check if an interrupt flag is set // Check if bit set in interrupt register
- Processor identifies source of interrupt
- Processor checks priority of interrupt
- If interrupt priority is high enough // Lower priority interrupts are disabled
def of file header
specifies the image size, number of colours, and other data needed to display an image
benefits of vector graphic
can be enlarged without loss of quality
generally a smaller file size
bitmap vs vector
bitmap is made out of pixels, vector store set of instructions
bitmap file is usually bigger
sampling resolution
number of bits used to store each sample
benefits of connecting to a LAN
allows sharing of files
allows sharing of resources
what is a client server model
at least one computer as the server,another as the client
benefits of client server model
files are centralised
centralised back up
centralised security
pros/cons of star topology
pros :signals only go to destination
centralised management
cons:
if central device fails whole network goes down
performance id dependant on central device
pros / cons of bus topology
pros:
easier to set up
less cable required
cons:
increased risk of collisions
weaker security
what is mesh topology
all computers are connected to at least one other device
multiple routes between devices
benefits of mesh topology
if on eline goes down there are other routes
improved security as not only using one line
fewer collisions
difference between fibre optic and copper cables
fibre optic data is transmitted by light, copper by electric signals
fibre optic has greater bandwidth
fibre has higher transmission rates
benefits of upgrading to fibre optic cable
less interference with the signal
more secure
greater bandwidth
wired vs wireless connection
wired : faster connection, more reliable, more secure
wireless:freedom of movement, less cabling
how a switch supports a LAN
allows connection between two or more devices
connects individual devices together
wireless access point supports LAN
allow communication of devices
allow wireless enabled devices to connect to a wired network
how a bridge supports a LAN
to connect 2 LANS
transmit data between 2 networks with the same protocol
function of router
receive packets from devices
find destination of packets using IP address
forward packets to destination
what is bit streaming
sequence of digital bits
over a communucation path
requires some buffering
tranfers data at high speed
how a 3d printer works
the CAD software splits objects into pieces
data is sent to the printer
the plastic is melted and transferred to the nozzle
how a laser printer works
revolving drum is given an initial charge
a laser beam scans across the drum
discharging certain points
explain the internal operation of a speaker
translates electrical signal into physical vibrations
an electric current in the coil creates an electro-magnetic field
describe the internal operation of optical disk
drive motor is used to spin the disk
tracking mechanism moves the laser assembly
a lens focuses the laser onto the disk
features of SSD
no moving parts
non-volatile
makes use of blocks/arrays
how a magnetic hard disk works
binary digits are represented by spots on disk
disk made up of platters
disk divided into tracks and sectors
resistive touchscreens
two layers with a gap
when a finger touches the screen the layers touch
and the contact point is calculated