Hardware Flashcards
What are embedded systems?
An embedded system is a computer system built within a larger device.
Three examples of an embedded system
Washing machine, digital camera and GPS systems
What is the task of the embedded system?
It includes both hardware and software and its purpose is to control the device and to allow a user to interact with it. They tend to have one, or a limited number of tasks that they can perform.
What are the advantages of embedded systems?
Their limited number of functions means they are cheaper to design and build.
They tend to require less power. Some devices run from batteries.
They do not need much processing power. They can be built using cheaper, less powerful processors.
What is the Von Neumann architecture?
data and instructions are both stored as binary digits
data and instructions are both stored in primary memory
What are the 6 main CPU components?
The central processing unit (CPU) consists of six main components:
control unit (CU) arithmetic logic unit (ALU) registers cache buses clock
What are the 3 functions of the control unit?
The CU provides several functions:
it fetches, decodes and executes instructions
it issues control signals that control hardware
it moves data around the system
What are the 2 main functions of the Arithmetic Logic Unit?
The ALU has two main functions:
It performs arithmetic and logical operations (decisions). The ALU is where calculations are done and where decisions are made.
It acts as a gateway between primary memory and secondary storage . Data transferred between them passes through the ALU.
What are registers?
Registers are small amounts of high-speed memory contained within the CPU.
What does the program counter do?
program counter - holds the memory address of the next instruction to be fetched from primary memory
What does the memory address register do?
memory address register (MAR) - holds the address of the current instruction that is to be fetched from memory, or the address in memory to which data is to be transferred
What does the memory data register do?
memory data register (MDR) - holds the contents found at the address held in the MAR, or data which is to be transferred to primary memory
What does the Accumulator do?
accumulator (ACC) – holds the data being processed and the results of processing
What does the current instruction register do?
current instruction register (CIR) - holds the instruction that is currently being decoded and executed
What is cache?
Cache is a small amount of high-speed random access memory (RAM) built directly within the processor. It is used to temporarily hold data and instructions that the processor is likely to reuse.
What is the clock?
The CPU contains a clock which is used to coordinate all of the computer’s components. The clock sends out a regular electrical pulse which synchronises (keeps in time) all the components.
What is clock speed?
The frequency of the pulses is known as the clock speed. Clock speed is measured in hertz. The higher the frequency, the more instructions can be performed in any given moment of time.
What is a bus?
A bus is a high-speed internal connection. Buses are used to send control signals and data between the processor and other components.
What are the three buses?
Three types of bus are used:
Address bus - carries memory addresses from the processor to other components such as primary memory and input/output devices.
Data bus - carries the actual data between the processor and other components.
Control bus - carries control signals from the processor to other components. The control bus also carries the clock’s pulses.
What is the fetch decode and execute cycle?
In the fetch part of the cycle, instructions and data are moved from the random access memory to the central processing unit. In the execute part of the cycle, the control unit decodes or interprets the instructions and decides what action to perform. These instructions are then carried out.
Factors that affect CPU’s peformance
clock speed
cache size
number of cores
How does Clock speed effect the CPU’s performance?
The higher the clock speed, the greater the number of instructions and some can be overclocked to make them run at higher clock speed than the factory set rate = lead to overheating + shortening of life + crashing or permanent damage to the system. You need a high performance cooling system are needed