Processors, I/O and storages devices Flashcards
(35 cards)
Describe the fetch stage of the FDE cycle
-Contents of PC copied from PC to MAR
-Address is sent along address bus
-Control unit sends a read signal to main memory along control bus
-Content stored in memory address copied to MDR (sent along data bus)
-PC incremented to next instruction
-Contents of MDR copied to CIR
Describe the decode stage of the FDE cycle
-Instruction held in CIR is decoded by the CU, split into opcode and operand
-Opcode determines type of instruction and hardware needs
-Operand holds either the address of the data (copied to MAR), the actual data (copied to MDR) or the data to be operated on (copied to ALU/ACC)
Describe the execute stage of the FDE cycle
Instruction carried out on the operand
What is the function of the control unit?
-Synchronisation of FDE cycle
-Sends control signals to coordinate movement of data through processor
-Controls buses
- Decodes instuctions
What are registers and why are they needed?
-Temporary storage/memory location inside the CPU, used for a specific purpose
-Needed because they allow fast access to frequently needed data (1), faster that accessing RAM/secondary storage (1)
In what situation may a register value change?
-PC increments during FDE cycle
-Jump instruction from CIR (1), PC changes to address given (1)
What is the function of the program counter?
PC stores address of next instruction, sends this to MAR then increments
What is the function of the memory address register?
MAR stores the memory location of the data to be fetched
What is the function of the memory data register?
-MDR stores the data from memory location specified by MAR
-Acts as buffer
What is the function of the address bus?
Carries the address of the memory location being read from or written to.
(Address bus transfers the memory location to access the data)
What is the function of the data bus?
Carries data between the processor and memory
(Data bus transfers the data from the memory location specified by MAR)
What is the function of the control bus?
Control bus transmits control signals from the control unit
What is the function of the accumulator (at least 5)?
-Holds all input/output
-Holds results of calculations (from the ALU)
-Checked for conditional branching (e.g. BRZ)
-Stores data which has come from the MDR/RAM
-Temporary storage for data being processed / during calculations
-I/O in processor, used as buffer
What is a GPU?
-Specialised electronic circuit for graphics
-Has parallel structure
-Thousands of small but efficient cores
-Can process huge blocks of visual data simultaneously
-However, CPU is general purpose
-SIMD device (Single Instruction, multiple data)
What is meant by CISC?
-Complex instruction set computer
-Each instruction may take multiple cycles
-Single register set
-Many instructions available
-Complicated processor design
-Integrated circuit is expensive
What is meant by RISC?
-Reduced instruction set computer
-Each instruction performs a single task
-Limited number of instructions available
-Complex tasks can only be performed by combining multiple instructions
-Simple processor design (less transistors)
Explain one advantage of RISC over CISC
Programs run faster (1) due to simpler instructions (1)
What is meant by a coprocessor?
-Does floating point arithmetic
-Can do calculations
-So processing is faster
What are the characteristics of Von Neumann architecture?
-Instructions executed in linear sequence
-Single control unit
-One instruction at a time
-FDE cycle
-Instructions and data stored together / in the same format
What is meant by array processing?
-Single instruction multiple data (SIMD)
-Allows same instruction to operate simultaneously on multiple locations / many ALU’s
What is pipelining and how does it improve performance?
-Concurrent processing of multiple instructions
-One instruction can be fetched whilst the previous one is being decoded…
-…and the one before is being executed.
-In case of a branch pipeline is flushed
-Increases throughput
-Prevents idle components
What are the characteristics of Harvard architecture?
-Uses separate memory blocks for instructions and data
-Has separate buses (data and address) for data and instructions
-Has fixed memory sizes for data and instructions
-Instruction memory may be ROM
-Can read/write data and instructions
simultaneously (2024 MS)
How does a magnetic hard drive work?
Works by magnetic patterns being read off platters that mechanically spin at high speeds
Explain a disadvantage of a magnetic hard drive
-Not very portable, as it is susceptible to damage if moved quickly/suddenly due to head coming in contact with platter