Computer Science Flashcards
(107 cards)
Registers
A fast access storage location found in the CPU where data or control information is temporarily stored.
Program counter (PC)
A counter that keeps track of the memory address of which instruction is to be executed next.
Memory address register (MAR)
Holds the address in the main memory that is to be read to or written from.
Current instruction register (CIR)
A temporary holding area for the instruction that has just been fetched from memory and is being decoded and executed.
VN Architecture Characteristics
Binary format, fetched from main memory,, fetched one at a time, one instruction is decoded before another is fetched (as and when required).
Von Neumann Architecture def
The design on which general purpose computers are based. Von Neumann architecture provides a simple explanation of the construction of the CPU and its relationship with other components of the computer.
Control Unit def
Control Unit – directs the flow of instructions and / or data and coordinates the other parts of the CPU. It generates clock ticks (controls the clock).
Arithmetic Logic Unit def
Arithmetic Logic Unit – the ALU performs all the calculations and logical operations in the CPU.
Memory def
Memory – used for temporary storage of currently running programs and data.
Address bus def
Address bus - when data is saved or loaded from memory, the address at which it is to be stored or loaded from must be sent. The storage address of data always travels in one direction along an address bus.
Data bus def
Data bus - data will then need to be moved between several parts of a computer. The path along which data travels is called a data bus.
Control bus def
Control bus - the controller uses the control bus to send control signals to different parts of the computer.
Bus def
Buses allow data to be transferred to different parts of the computer
Fetch def
The fetch cycle takes the instruction from the main memory using the address, and stores it in the current instruction register, and moves the program counter on one so that it points at the next instruction.
Execute def
The control unit authenticates the instruction in the current instruction register. The instruction is decoded to determine the action that needs to be carried out.
Decode def
The actual actions that happen during the execution cycle depend on the instruction itself.
Cache def
Cache – incredibly fast, but very expensive volatile memory used in the CPU. The cache temporarily holds data and instructions that are used frequently. It consists of a small number of store locations that can be accessed very quickly by the CPU; it is quicker than RAM.
Cache affecting performance
More cache memory improves performance as it can provide instructions and data to the CPU at a much faster rate than other system memory such as RAM. In addition, more cache memory will allow more instructions that are repeatedly used by the CPU to be stored in cache and therefore increase the hit rate, improving the performance of the processor as a result.
Clock speed def
Clock speed – the number of fetch-decode-execute cycles that the CPU can carry out per second. This is usually measured in Hertz.
Clock speed affecting performance
The faster the clock speed, the faster the computer can run the fetch-decode-execute cycle and therefore process more instructions in any given period. However, the faster the clock speed, the more power is generally required, which creates greater requirements for heat dissipation and can place more strain on battery life.
Cores def
Cores – some processors have multiple processors (known as cores) which can run in parallel, sequentially or can multitask.
Cores affecting performance
In a single-core CPU each instruction is processed one after the other, whereas in a dual-core CPU, two instructions may be processed at the same time. In theory, a dual-core CPU should mean that the computer can process instructions twice as fast as a single-core CPU. Performance may be affected where one core is waiting on the result of another and therefore cannot carry out any more instructions, leading to the performance being no better than a single-core processor.
RISC def
RISC processors can process a limited number of relatively simple instructions. To carry out more complex commands, the problem is broken down into a longer list of simpler instructions. The advantage of this is that a RISC processor can process these simpler instructions quickly. Processing simpler instructions also requires less circuitry to decode and execute these instructions, which in turn means less power consumption and therefore less heat being generated.
CISC def
CISC processors can process a large number of complex instructions. This allows the processor to understand and carry out complex tasks with only a few instructions. The advantage of this is that a CISC processor can process complex instructions, without having to break them down into many simpler instructions. Processing complex instructions, however, requires more circuitry to decode and execute these instructions, which in turn means more power consumption and therefore more heat being generated. Because of this, CISC CPUs will usually come with a heat sink or fan embedded.