Topic 2.1 - Hardware and Components Flashcards
What is word length and what are some usual word lengths of processors?
The word length is the number of bits that a processor can handle/transfer as a unit. Common word lengths are now 32/64
Examples of main (primary) memory:
- RAM
- ROM
Examples of secondary storage:
- SSD
- HDD
- Magnetic Tape
- Flash drive
Describe RAM
Random Access Memory temporarily stores currently being used programs and data including the OS so it accessible by the processor.
- If there is not enough RAM, data must be sent back to secondary storage to free up space (less efficient)
- Volatile
- Random Access, given a unique address
- Made of cheap silicon
What is the difference between DRAM and SRAM
Dynamic RAM is cheaper and more can be stored in a smaller space however data must be reloaded. Static RAM is more expensive, larger and doesn’t need reloading.
What components are found inside the CPU?
- ALU (Arithmetic Logic Unit)
- PC (Program Counter)
- Control Unit
- MAR (Memory Address Register)
- MDR (Memory Data Register)
- CIR (Current Instructor Register)
- SR (Status Register)
- System Clock
What busses are used in the Von Neumann architecture?
- Address bus
- Control bus
- Data bus
What’s the difference between the address bus and the data bus?
The address bus is uni-directional and sends the addresses to memory so they can be retrieved whereas the data bus is bi-directional and send data to be stored/fetched.
What is the definition of a bus?
It is a set of parallel wires that connect the different parts of the computer and to send data/addresses to different parts of the computer.
What happens in the fetch part of the fetch-decode-execute cycle?
- The program counter is copied to the memory address register
- The program counter is incremented
- The address is sent down the address bus and the data at that address is sent back via the data bus into the memory data register,
What happens in the decode-execute part of the fetch-decode-execute cycle?
- The contents of the memory data register are copied to the current instruction counter
- The CIR decodes the opcode and that operation is carried out with the operand to update the necessary register or accumulator
What is the status register used for?
The status register stores the state of the values of the outcomes of some operations such as:
- Overflow, underflow, zero, negative, positive
- Parity
- Interrupts (enabled disabled)
What are the problems with the Von Neumann architecture?
- Data bus is slower than the CPU’s clock speed
- Data and instructions share the same memory location so there is a risk of accidentally over-writing code
What is the Harvard model?
The Harvard model splits memory into two parts, one section for programs and one section for data. This means the CPU can both fetch instructions and data at the same time.
- Less chance of program corruption
- Used for ABS as the system must respond really quickly
Why is Cache memory needed?
As fetching from memory is a lot slower than the speed of the processor, cache is required to make up this difference and increase efficiency.