components of a computer system Flashcards
what happens in the fetch?
-copy mem. add. from PC to the MAR
-copy instruc. stored in MAR to MDR
-increment PC to point to the add. of next instruc. ready for next cycle
what is a processors clock speed?
how many instructions can be carried out per unit time (on a single individual core)
the speed at which the FDE cycle happens
-measure in Hz, 1 cycle per second
purpose of an electronic computer:
-takes input
-processes data
-delivers output
purpose of ALU (arithmetic logic unit)
performs calcs and logical decisions
Control Unit (CU) purpose:
decodes instructions
sends signals to control how data moves around CPU & memory to execute those instructions
what is cache?
-store of temp data
-provides fast access to frequently used instructions and data
what are registers:
tiny, super fast pieces of onboard memory inside CPU designed to hold temporary data during FDE cycle
components in a VNa (von neumann architecture)
-control unit (CU)
-ALU
-Memory Unit (RAM)
-inputs and outputs
what registers does a von neumann contain:
-program counter (PC)
-memory address register (MAR)
-memory data register (MDR)
-accumulator
what is the decode:
-instruction in MDR decoded by CU
-CU may then prepare for next step eg. by loading values into MAR or MDR
what is execute:
-eg. of what it may execute
-instruction performed. could be: write data to mem, load data from mem, halt program etc.
what is cache
-very fast memory in CPU, slower than registers but faster than RAM
characteristics that affect performance:
-clock speed
one GHz= 1 billion Hz instructions per sec
-cache size
-no. of cores
cores are complete copies of the CPU
what are embedded systems?
-advantages?
computer system built into another device
-easier to design, cheaper, more efficient at doing their task than general purpose comps
what is primary storage?
-RAM, ROM, registers and cache
why is sec storage needed?
-because ROM is read-only and RAM is volatile
uses of sec storage?
-storage of data and programs when power is off
-archiving files
-semi permanent storage of data that can change
-backup files
what is the role of a program counter
-holds memory address of the instruction for each cycle
-program counter (PC):
stores the memory address of the next instruction in program to be executed
-once fetched, contents incremented by 1 so it can point to next instruction
-memory address register (MAR):
holds address of where data is to be fetched or stored
-memory data register (MDR):
holds the data fetched from, or to be written to memory
-accumulator:
holds results of calculations by ALU and and value of inputs and outputs to and from CPU
how to work out text file size
bits per character x no. of characters
bits to bytes
/ by 8
work out image file size
colour depth x image height x image width