Topic 3: Computers Flashcards
Computer architecture
the hardware components it has and how they work together to execute programs.
Von Neumann architecture
- A processing unit to decode and execute program instructions
- Input and output mechanisms to input programs and data and output program results.
- A memory unit which receives and loads data and program instructions before being processed
Keyfacts about main memory
- short-term memory
- collection of storage locations
- referred tp as RAM
- primary storage
- Volatile
- 4GiB to 32GiB
Why the stored program concept enabled computers to become general purpose machines capable of performing a variety of different tasks
Computers could then be reprogrammed to carry out different tasks, because they were able to store program instructions and data in memory.
Advantaje of storing programs in memory
Enabled computers to be general purpose machines capable of carrying out lots of different tasks.
Describe how the CPU and main memory work together to run programs (4 marks)
- Programs instructions and data are STORED IN RAM and TRANSFERRED/fetched one at a time TO THE CPU
- where they are decoded and executed (in CPU).
- Results of operations carried out in the CPU are STORED in/written to MEMORY.
CPU
hardware component that decodes and executes program instructions.
Clock
tiny quartz crystal that vibrates at a constant rate and synchronises the actions of the CPU
Control unit
- fetches program instructions from main memory
- decodes them
- directs operations to the ALU if needed
ALU (Arithmetic Logic Unit)
Performs arithmetic and logic operations on data.
Registers
Direct-access storage for instructions, results and data
Control bus
(bidirectional) carries signals between the CPU and other parts of the computer system
Data bus
(bidirectional) transfers program instructions and data between memory and CPU
Address bus
(unidirectional) holds address of the memory location that the CPU will read from or write to
Bandwidth in address bus
determines how much addressable memory there is
Reason why data bus needs to be bidirectional
Because CPU must read data and program instructions from main memory, and after write the result of the operation to memory.
Describe how the bandwidth of the address bus determines the size of the memory that a CPU can use
Each memory location has a unique binary address.
Each wire in the address bus represents one bit of the address, so the number of wires in the address bus determines how many unique addresses can be generated.
Fetch stage
- The CPU places the memory address of the next instruction on the address bus
- The CU within the CPU sends a read signal along the control bus to memory
- The content of the specified memory location is transferred along the data bus to the CPU. And STORED IN REGISTERS
Decode stage
The CU looks up the instruction in the CPU’s instruction set.
Execute stage
The CU coordinates the actions of the other components of the CPU to carry out the operation. If an arithmetic or logic opeartion required ALU carries it out.
State the fetch-decode-execute cycle
Fetch: The next instruction to be executed is transferred from RAM to CPU
Decode: The CU decodes the instruction by looking it up in the CPU’s instruction set
Exectue: The CU carries out the instruction. It instructs the ALU of any necessary calculations.
If they ask: how program instructions stored in memory are processed by the CPU
Then state the fetch-decode-execute cycle
Primary storage
- Volatile
- Short term
- Directly accessed by the CPU
- Limited storage capacity (500MiB to 8GiB)
Secondary storage
- Non-volatile
- Long-term
- Programs and data must be transferrerd to main memory in order to be accesed by the CPU
- Large storage capacity (4TiB)
How primary and secondary storage work together
- When a user opens a program it is loaded from secondary storage to main memory
- Any data files that are opened for use in that application are also loaded into main memory
- WHen the user saves a file, it is transferred from main memory to secondary storage
- When the application is closed, it is removed from main memory
Write data in Magnetic storage
an electromagnet in the read-write head magnetises the surface of the platter to one of the two polarities: north-south or south-north. These represent 1 or 0
Read data in Magnetic storage
the read-write head detects the magnetic state of the platter
Write data in Solid-state storage
an electrical current is applied to the transistor. This forces electrons through a barrier, trapping them in pools. A full pool represents 0 and an empty pool represents 1.
Read data in Solid-state storage
a small voltage is applied. If the electron pool is empty, the transistor turns on and a 1 is read out. If it is full, the transistor does not turn on and a 0 is read out
Write data in Optical storage
a laser is used to brurn the surface of the disk , changing its form to become more reflective or less reflective. Reflective areas are called lands, and less reflective areas are called pits. A land represents 1 and a pit 0
Read data in Optical storage
a laser beam is shone onto the surface of the disk. A pit reflects light more dimly than a land. The amount of light refleced off the surface is detected by a light sensor and translated into 1s and 0s
Magnetic storage used in
-Internal/external hard drives
- Tape drives