Chapter 4: Computers Flashcards
What is a von Neumann architecture computer?
A computer in which the processing instructions are stored in memory with the data
How are processor instructions written?
In binary numbers (just like data)
What is a bus?
A group of wires that connect the CPU, RAM and I/O devices
What is the fetch-decode-execute cycle?
The process by which the CPU executes instructions. The CPU fetches an instruction from memory, executes it and fetches the next one until the PC shuts down
What is stored in RAM?
Programs currently being executed and their data
What is stored in ROM?
BIOS/UEFI and firmware
What is cache memory?
A small amount of fast, expensive memory used in-between two devices that communicate at different speeds
How is cache memory used to maximise performance?
Frequently used code or data is sent from RAM to the cache
What is the arithmetic logic unit (ALU)?
The part of the CPU that performs calculations and logical operations
What is a register?
An extremely fast storage location in the CPU used to store an instruction, address or other small piece of data
What is the control unit?
The part of the CPU that organises the actions of the other parts of the CPU
What is the clock?
The part of the CPU that “ticks” at regular intervals and synchronises the actions of the other parts of the CPU
What are the 3 parts of the CPU bus?
Address bus: Carries memory addresses between the CPU and memory to uniquely identify a memory location
Data bus: Carries the data to be read from or written to memory
Control bus: Carries the signals that identify whether data should be written or read, and when
What is bus width?
The number of wires that make up a bus. This determines the length of the binary numbers that can be transmitted
What happens in the “fetch” stage of the fetch-decode-execute cycle?
The control unit places the memory address of the next instruction on the address bus. It also sends a signal on the control bus requesting to read from memory. The memory receives the signal and looks up that memory location. The data in memory is sent via the data bus to a special register
What happens in the “decode” stage of the fetch-decode-execute cycle?
The control unit analyses the contents of the special register and sends signals to other parts of the CPU telling them what to do (e.g. add numbers, store a value in memory). The instruction is then completed (the “execute” stage of the cycle)
What is scheduling?
An algorithm the CPU uses to allow each program to use the CPU for a short period of time before switching to the next program
What is paging?
An algorithm the CPU uses to move programs from RAM to disk when RAM is full