computer systems Flashcards
what is a computer?
a machine that processes data
what does a computer system consist of?
hardware and software
hardware?
physical stuff : motherboard, monitor
software?
the programs that a computer system runs : video game, operating system
what is an embedded system?
computers built into other devices with a single, dedicated task
embedded system examples?
washing machine, dishwasher, windscreen wipers
expand on embedded system dishwasher example?
the embedded system could control the water pumps and water release mechanisms, manage the various dishwasher cycles and control the thermostat to keep water at an appropriate temperature
why are embedded systems better than a computer?
theyre dedicated to a single task so they are:
cheaper
more efficient
easier to design
CPU stands for?
central processing unit
what does the CPU do?
it processes all the data and instructions that make the system work
what are the 3 main parts of the CPU?
control unit (CU)
arithmetic logic unit (ALU)
the cache
what is the control unit?
overall control of the CPU
fetch decode execute cycle
controls the flow of data
what is the arithmetic logic unit?
performs all the calculations
what is the cache?
stores regularly used data for the CPU to access quickly
characteristics of cache?
very fast memory
low capacity
expencive
what else does the CPU contain?
registers
what do registers do?
temporarily hold tiny bits of data needed by the CPU
characteristic of registers?
super quick to read/write to
example of registers?
MAR - memory address register
MDR - memory data register
ACC - accumulator
PC - program counter
what is the program counter? (PC)
holds the memory address of the instruction for each cycle
what is the accumulator? (ACC)
stores results of calculations from the ALU
what is the memory address register? (MAR)
holds any memory address about to be used by the CPU
the address might point to data or a CPU instruction
what is the memory data register? (MDR)
holds the actual data or instruction that has been fetched from memory or waiting to be written to memory
who is von neumann?
came up with a CPU design where it runs programs stored in memory
describes how most computers work today
made in 1945
what cycle does the CPU follow?
fetch - decode - execute
what is fetch?
copy memory address from the PC to the MAR
copy the instruction stored in the MAR address to the MDR
increment the PC to point to the address of the next instruction for the next cycle
what is decode?
instruction in the MDR is decoded by the CU
what is execute?
the instruction is performed/outputted
why is the FDE cycle important?
to run instructions efficiently
what is memory?
storage of all the instructions that the CPU follows
what does RAM stand for?
random access memory
what is RAM?
the main memory in a computer where all files, data and programs are stored while being used
can be read and written to
volatile