Computers Flashcards
What are the components of the CPU?
- Control Unit (CU)
- Decoder
- Clock
- Cache
- Registers
- Buses
- Arithmetic Logic Unit (ALU)
What is the main function of the CPU?
Fetch-Decode-Execute cycle
What does the CU do?
- Controls all other components
- Contains the decoder
What does the decoder do?
Interprets instructions and tell ALU what operations to carry out
What does the clock do?
Controls the rate at which program instructions are carried out (cycles)
What is cache?
Very fast RAM
What do the registers do?
- Memory locations
- Some perform special functions in the FDE cycle
What do the buses do?
Carry electrical signals between:
- components in the CPU
AND
- the CPU and other components on the motherboard
What does the ALU do?
Performs arithmetic and logical operations
What registers are used in the FDE cycle? What do they do?
PAMM
- Program Counter: holds the address of the next instruction to be fetched
- Accumulator: stores the result of calculations done by the CPU
- Memory Data Register (MDR): a temporary store (buffer) for anything copied from memory
- Memory Address Register (MAR): holds the address of the memory locations currently being read (fetched) or written to
What happens during the fetch process?
- the CU sends a ‘read’ signal to the RAM on the CONTROL BUS
- uses the ADDRESS BUS to send signals, specifying the required memory location in the RAM
- contents are transferred TO the CPU along the DATA BUS
- the CONTROL BUS manages the information flow between components
What buses are used during the fetch?
(CAD C)
- Control Bus
- Address Bus
- Data Bus
- Control Bus
What is cache memory?
- Very fast memory (usually within the processor itself)
- Speeds up processing by storing recently or frequently used instructions so they don’t have to be fetched from main memory (which is much slower)
- As cache becomes larger, it becomes harder to find data so is slower so cache is split into different levels
- Too expensive to replace RAM in personal computers
Why is secondary storage needed?
- Stores programs and data PERMANENTLY
- Used to transfer stored data between computers
Average size of magnetic storage capacity?
1 terabyte
How is the data encoded in magnetic storage?
Encoded as opposing magnetic polarities on the surface of the disc by electromagnets in the read-write heads
How is magnetic storage read?
The discs spin and read-write heads move across the disc
How is digital data stored in optical storage?
By etching pits onto the surface of the disc
How is optical storage read?
When the light from a laser hits the:
- LANDS it is reflected back to a detector (1)
BUT
- PITS scatter the light away so no light is detected (0)
What is solid-state memory?
NAND flash memory
How is data stored in solid-state memory?
- Consists of floating gate transistors (that don’t lose their state when power is switched off)
- At first all transistors are charged (set to 1)
- When a save operation begins, current is blocked to some transistors (setting them to 0)
What makes up an embedded system?
- Processor
- Memory
- Input and Output Interfaces