1.1 Characteristics of Contemporary Processors Flashcards
(27 cards)
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.
Give the differences between two computer architectures
Harvard architecture
–>Harvard architecture both memories can be accessed simultaneously. This minimizes the time for processor waiting while loading or saving data into memory.
–>Harvard architecture each memory can be adapted to meet the needs of a particular system. This makes it difficult to get hacked.
–>Harvard architecture is commonly used in embedded systems.
Von Neumann Architecture
–>Von Neumann architecture uses the same address and data buses for both instructions and data, sharing the same pathways which takes longer time compared to Harvard architecture.
–>von Neumann architecture allows for the instructions and data to be saved in the same memory. This makes it easy to get hacked
–> Von Neumann architecture is commonly used in general purpose computers.
Give examples for input devices?
- ->Keyboard
- ->Webcam
- ->Magnetic stripe reader
- ->Barcode reader
Give examples for output devices
- ->Speakers
- ->Printers
- ->Projector
What does main memory contain?
- -> RAM
- -> ROM
- ->Cache
- ->Registers
- ->Virtual memory
- -> Flash memory
What are the characteristics of RAM?
The characteristics of RAM are:
- ->short-term memory storage space
- ->It is volatile
- ->You can read and write to it
- ->It is quicker to access than secondary storage
What are the characteristics of ROM
The characteristics of ROM are:
- ->It is non-volatile
- ->It is written by the computer manufacturer (so cannot be changed)
- ->Usually stores the BIOS
- ->Smaller capacity than RAM
Differences between RAM and ROM
RAM
- ->Stores data and instructions during processing
- ->Volatile, data lost without power
- ->Read and write
- ->Usually several gigabytes
ROM
- ->Stores boot-up instructions set by the manufacturer
- ->Non-volatile, data remains after power switched off
- ->Read only
- ->A few megabytes in size
What is virtual memory?
Virtual Memory is an area of disk used as an extension of memory, onto which currently running programs and data are copied when memory is full when another task has control of the processor, and then copied back into memory when needed
What is flash memory?
Flash Memory is some microcontrollers use a memory chip to store instructions. Flash memory is non-volatile and can be both written to and read from.