Hardware Elements Flashcards
The order sequence for Interupts
• The sequence of events is :
- Interrupt is raised
- Current CPU instruction is completed
- Contents of internal registers are stored in (pushed onto) the stack
- The memory address of the ISR is found and transfer controlled
- ISR is run
- Internal register contents are restored (popped) from the stack
- Original process continues from where it was stopped
NON-MASKABLE INTERRUPT (NMI)
• Isthe highest-priority interrupt capable of interrupting all software and non-vital hardware devices.
• Dedicated line on the control bus which interrupts the processor and cannot be ignored
• The NMI is not commonly used and usually only used to verify if a serious error or unrecoverable error has occurred or stop all operations because of a failure.
• For example, when you press Ctrl+Alt+Del when the computer freezes or stops responding a NMI is sent to the CPU.
100%
What is a CPU?
•part of the computer that executes instructions o constructed from millions of transistors
•tiny pieces of silicon that will not conduct electricity if a low voltage is applied to them, but can conduct at higher voltage
• known as semi-conductors.
What are the three components of. a CPU?
A CPU has three main components:
• the Arithmetic and Logical Unit (ALU)
• the Control Unit
• Registers
• Modern CPUs are integrated circuits (ICs) which combine these three components on a single silicon chip.
What is ALU on CPU?
• carries out the mathematical functions
• addition, subtraction, multiplication and division
• works in conjunction with the other components of the CPU to run many complex processes
• A multi-core CPU can contain more than one ALU
What is control unit on CPU?
•The Control Unit regulates the flow of information through the processor.
•receives, decodes, stores results and manages execution of data that flows through the CPU.
•determines how and when data is processed
•ensures that it is sent to the correct components of the computer
What is registers on CPU?
Registers
•small pieces of memory located inside the CPU
•thought of as the hardware version of a variable in software
• The CPU contains a number of special-purpose registers
••General Purpose Registers••
o store any transient data required by the program.
• Eg when a program is interrupted its state
• the value of the registers such as the program counter, instruction register or memory address register - may be saved into the general purpose registers
• ready for recall when the program is ready to start again.
• In general the more registers a CPU has available, the faster it can work.
What are CPU characteristics?
Characteristics of a CPU
•bit width
•clock cycles
•execution cores
bit width
•how many bits it processes in a single instruction or transports across the processor’s internal circuits (or busses in a single cycle.
• generally a multiple of 8
•it is possible for the registers and the busses to have different widths
•more bits means more processing capability and more speed
•Current processors use 64 bits.
What are device drivers?
•When a manufacturer creates a new piece of hardware they will create a piece of software that talks to the operating system and passes data to and from the peripheral.
• pieces of software are called device drivers