1.1/1.2 Flashcards
what is a computer?
an electronic device which takes input, processes data and delivers output
what is the purpose of the cpu?
To fetch, decode and execute instructions
what happens at the ‘fetch’ stage in the fetch-execute cycle?
fetches the next instruction from the main memory (RAM). Brings the instruction back into the cpu.
what happens at the ‘decode’ stage in the fetch-execute cycle?
inspects the instruction and works out what it is that needs doing.
what happens at the ‘execute’ stage in the fetch-execute cycle?
carries out the instruction (e.g going back to main memory and grabbing some data,performing a calculation , storing info back into main memory)
what are the common cpu components
arithmetic logic unit (ALU) , control unit (CU) , cache , registers
what is the purpose of the ALU?
performs calculations and logical decisions
what is the purpose of the CU?
sends signals to control how data moves around the CPU
what is the purpose of the cache?
provides fast access to frequently used instructions and data
what is the purpose of registers?
tiny,super fast pieces of onboard memory inside the CPU each with a very specific purpose
what does the Von Neuman architecture consists of?
control unit (cu) , arithmetic logic unit (alu) , memory unit (typically ram) , inputs and outputs.
what are the names of registers in the Von Neuman architecture?
program counter (pc) , memory address register (mar) , memory data register (mdr) , accumulator
what is the purpose of the program counter?(register)
holds the address of the next instruction in memory
what is the purpose of the memory address register?(register)
holds the address of where data is to be fetched or stored
what is the purpose of the memory data register?(register)
holds the data fetched from or to be written to memory
what is the purpose of the accumulator?
holds the result of calculations
what factors affect cpu’s performance?
Clock speed, Cache size, Number of cores
how does ‘clock speed’ affect the cpu’s performance?
the more pulses per second the more fetch-decode-execute cycles.
how does ‘cache size’ affect the cpu’s performance?
the bigger the cache the less time a processor has to wait for instructions to be fetched.
how does the ‘number of cores’ affect the cpu’s performance?
(each core is capable of fetching, decoding and executing its own instruction) More cores a cpu has the greater the number of instructions it can process in a given space of time.
what is a cpu called with 2 cores?
dual core
what is a cpu called with 4 cores?
quad core
how could dual core affect performance?
a program is split into two or more parts and each part is processed at the same time) In theory this would double performance on a dual core cpu as each part is processed independently. (however, you do not always get twice the performance because many programs cannot be split neatly into two independent parts).
What is an embedded system?
a computer system that is built into another device
what are the characteristics of an embedded system?
low power consumption , small size , rugged operating ranges , low cost per unit .
what are examples of an embedded system?
traffic lights,
factory equipment
hospital equipment
why do computers need primary storage?
holds the data and instructions which the CPU needs access to while a computer is running ,
the CPU = quickly access data fronts primary storage
what does the primary storage consist of?
random access memory (RAM) , read-only memory (ROM) , registers and cache
what is the purpose of RAM?
holds the operating system, programs and data in use by the CPU when the computer is running.
what is the purpose of ROM?
holds the first instruction for when the computer is first turned on (known as bootstrap)
what are the characteristics of RAM?
volatile (contents lost when the power is turned off)
read and write
large
what are the characteristics of ROM?
non-volatile (contents remain when power is turned off)
read only
small in comparison to RAM