Computer Architecture + Organisation Flashcards
What is the control unit?
- Coordinates the CPU activities inside and outside the CPU
- Directs flow of data between the CPU and otherh devices
- In charge of the fetch execute decode cycle
- Sends read and write requrests to the memory through bus grants and interrupt requests
What is the status register?
- Contains information about the state of the processor
- Individual bits are read or written by the machine code instructions executing on the processor
- These bits are flags which are set on or off and are checked at any points
What is the clock in a CPU?
- Electronic unit that synchronsies related components y generating pulses at a constant rate
- Measured in Hertz
- Clock speed is the frequency at which the internal clock generates pulses
- The higher the clock rate the faster the performace of the CPU
What is the ALU?
- Arithmetic Logic Unit
- Perform arithmetyic and logical operations on data
- Operations = + - X /
- Logic = XOR, AND, ect
- Bitewise shifts operations left and right
- Often uses general purpose reisters to temporarily hold the results of calculations
What are general purpose registers?
- Tiny area off extremly fast memory locateed in the processor
- Data or control information is stored
- Can hold temp data for concurrent calculations
- The more registers the faster the CPU can operate
What is the PC?
- Program counter
- Holds the address of the next instruction to be executed
- Could be the next instruction in a sequence of instructions
- If the current instuction is a command to retrive data from the memory
- Very close relationship with the MAR (memory adress register)
What is the MAR?
Holds the address of memory location of
- Data
- INstructions
- Data to be fetched or where data needs to be written
Sends these address to memory down the address bus
What is the MBR?
- Memory buffer register
- Store the data which is read from or written to memory
- All data must travel from memory must pass through the data buse and through the MBR
What is the CIR?
- Curent instruction register
- Contents of MBR copied to the CIR
- Contains the operator and operands to make an instruction
What is the Von Neumenn archecture?
- Shared memory space for instructions and data
- Instructions and data are stored in the same format
- Single control unit following a linear Fetch, Decode and Execute cycle
- Registers are used as fast access to instructions and data
What is the Havard Architecture?
- Instruction and data are stored seperated in different memorty units
- Using its own buses
- Reading and writing data can be done simultaniously with fetching an instruction
- Used by RISC
What happns in the fetch part of the FDE cycle?
What is the decode part of the FDE cycle?
What is the execute part of the FDE cycle?
How does the CU effect CPU performance?
- CU relies on a clock
- The faster the clock the faster actions can be carried out on the CPU
- This generated more heat meaning coolings are needed
How does cache effect CPU performance?
- Cache in the MDR is memory
- Which stores frequenctly accesed data
- This means a fetch isnt required to find that data saving time and resources
- The more caching memory the more efficient and quicker the CPU can be
How does core count increase CPU
- the amount of cores
- The increase on simultanious proccesses that can be carried out
What is a barcode reader?
- Used to read barcodes on products
- Trackng items and medical records
- Linear and 2D QR codes exsist
How does a pen style barcode reader work?
- Light source with a photodiode place in the barcode
- The diode measures the intensity of light reflected back as it passes over ther barcode
- Generates a waveform
- Dark bars absorbed
- White bars reflect the light
- The wave form is then translated in a digital format
- This then is coded in and looked up