1.1 Characteristics of Contemporary Processors Flashcards
What is processor responsible for?
processor is responsible for processing data and executing the instructions of programs.
What does ALU stand for and what is it responsible for?
It stands for Arithmetic logic unit and is responsible for :
- ->Calculations
- ->logical bitwise operations,
- ->comparisons between values
- ->shifting binary patterns
What is decoding?
Instrcution gets splited to Opcode and operand which are analyzed to determine what needs to be done.
What is Control unit responsible for?
- -> It uses control signals to enable data to be read from and written to the main memory
- -> It decodes every instruction
- -> It organizes the sequence of micro-operations
- -> It uses control signals to determine the operation the ALU
What are the three buses?
- -> Address bus
- ->Data bus
- -> Control bus
What is adress bus used for?
the address bus is used to specify the address of a memory location to either read data or write data to that memory location.
What is data bus used for?
The data bus is used to transfer data and instructions to and from the processor and the other units of a computer system.
What is control bus used for?
The control bus is used to send control signals that manage the operations inside the computer
Give the 5(6) registers used in fetch-decode-execute cycle and their functions?
- Program counter (PC): holds the current instruction
- Current instruction register(CIR): holds the current instruction
- Status register(SR): stores information about the result of the last instruction that the ALU executed. Finds errror or exception in process
- Memory adress register(MAR): Temporarily holds the address of the memory location
- Memory data register(MDR): Temporarily holds the data that are read or writtien from the main memory
- accumulator: Stores the result of any calculation processed by the ALU.
Explain the fetch-decode-execute cycle detailed
Fetch Stage
1.The program counter (PC) keeps the address of the next instruction to be executed.
- The contents of the PC are copied to the memory address register (MAR).
- Once the address of the instruction is placed on the address bus, the control unit instructs a memory read operation to allow the contents of the memory location to be transferred to the processor.
- The instruction that is stored at the address is transferred by the data bus to the processor, and is saved in the memory data register (MDR).
- The contents of the memory data register (MDR) are copied to the current instruction register (CIR).
Decode Stage
6.The control unit decodes the instruction to operand and opcode in CIR
Execution Stage
7.The instruction is executed.
What are the factors affecting computer performance and how they do it?
1.Multiple Cores
The more cores a computer has, the more instructions it can execute at the same time.
2.Cache
Storing instructionsn that are oftenly used in cache reduces the amount of time it takes to access that instruction and pass it to a CPU core.
- clock speed
The greater the clock speed, the faster instructions are carried out and synchronized. - Instruction pipelining
Pipelining is the process where each part of the processor works at the same time, fetching the next instruction while executing the last one. This causes the computer to avoid overwriting data and avoiding internal components being idle which means instructions are executed at a faster rate, which in turn improves processor performance.
Types of proccesor?
- CISC
- RISC
- Graphic processing unit (GPU)
Differences between CISC and RISC
CISC
- ->Large number of complex, variable length instructions
- ->Instructions can take several clock cycles to be executed.
- ->Compound addressing modes
- ->Emphasizes hardware over software
- ->Makes efficient use of RAM
RISC
- ->small number of simple, fixed-length instructions
- ->One instruction is executed per clock cycle.
- ->Limited addressing modes
- ->Emphasizes software over hardware.
- ->Use a lot RAM, which can cause system bottlenecks
What does GPU do and used for?
–>GPUs are designed for parallel processing
–>Used in graphics, video rendering, gaming and machine learning applications
What are the two computer architectures and what are they?
- Von neumann
- -> both instructions and data are loaded into the same memory unit. - Harvard
- -> Harvard architecture keeps instructions and data in separate memories.