2.3 Hardware Flashcards

1
Q

what us a cpu

A

an electronic device that takes input, processes the data and produces an output

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is a microprocessor

A

the terms microprocessor and cpu and interchangeable, you usually find them as an integrated circuit on a single microship

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what are the components in a CPU (9)

A

Control Unit
Program Counter
Memory Adress Registers
Memory data register
Arithmetic logic unit
Accumulator
Current Instruction register
cache
decode unit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what is the role of a control unit

A

coordinates all cpu activities
direct flow of data between cpu and other components ie RAM in both directions so full duplex
coordinates and communicates with all parts of the cpu, all 9 parts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what is the role of the program counter

A

holds the adress of the next instruction to execute or the adress to jump to, the control unit copies the adress from the PC into the MAR, if the contents of that location is an instruction it goes to the CIR and if its data then it goes to the MDR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what is the role of the MAR

A

the memory address register stores the address of the memory location where data is to be fetched or written to
sends adress to random access memory down the adress buss which is one direction, to the RAM,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what is the role of the MDR

A

used to temporarily store one item of data to be fetched or written to memory, all data from main memory must travel down the data bus and pass through the MDR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what is the role of the current instruction register

A

holds the current instruction to be register, if the MDR is holding an instruction its copied to the CIR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what is the ALU

A

arithmetic logic unit, does arithmetic operations on fixed and floating point numbers like add substract mutiply and divide, along with binary shift bitwise operations and boolean logic operations so AND OR NOT XOR and comparison

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what is the accumulator

A

of of many general purpose registers in modern CPUS which stores control info and data such as the data produces by the ALU and its calculations for temporary and super quick retrieval

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what are the buses between the CPU and main memory RAM

A

adress bus
control bus
data bus

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what does the adress bus do

A

its uni directional, from the processor to RAM, responsible for carrying memory adresses that identify where data needs to be fetched from which location or written to which location

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

what does the data bus

A

bi directional, responsible for carrying the 1s and 0s which make up the information

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

what does control bus do

A

bi directional, responsible for carrying control and command signals from and to every component of the cpu, so sends signals to control how data moves around the CPU

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

what is fixed program computer

A

a computer where the program is not changeable without rewiring or redesigning and can only perform tasks which it is programmed to do, fo example a calculator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

what is a stored program computer

A

a computer where the program is changeable without rewriring or redesigning so it can perform different tasks rather than one specific task

17
Q

who is Jon Von Neuman

A

a mathematicitian and physicist who described the first ever design for modern computers which had stored programming

18
Q

what is von neuman architecture

A

a computer consisting of a CPU with a control unit, ALU, a register consisting of a program counter/ MDR/ MAR/ Accumulator, a clock and a cache

19
Q

what does a clock do

A

provides a pulse at a constant rate to syncronise components

20
Q

what is a cache

A

a small amount of temporay memory making it easier for the computer to fetch data that is commonly used, so it stories copies of data and instructions so its easier to fetch from rather than from RAM

21
Q

descibe a fetch-decode-execute cycle in a von neuman computer (5)

A
  • the program counter is checked, which is holding the memory adress for the next instruction
  • holds the memory adress of the data that needs to be fetched or written to and is brought to the MAR
  • the memory data register holds the data adress, while the control unit now decodes and figures out what to do with the data
  • the adres in the program counter is now incremented by one, now pointing to the next instruction
  • now depending on the data, if can either be executed in the CIR, or written back to RAM, or the control unit jumps to another instruction
22
Q

describe a full fetch decode execute cycle in a normal computer (8)

A

Fetch
- the program counter is check for the next address of the instruction
- the memory address is copied into the MDR
- the control unit sends a read signal down the control bus to the main memory
- the main memory now knows that the data needs to be read so it sends the data down the data bus to the MAR
- the program counters address is now incrementedso it points to the next instruction
- the contents of the MAR are now copied to the instruction register (IR or CIR)
Decode
- the instruction register now sends the instruction to the decode unit where the instruction is decoded
Execute
- The instruction is carried out based on the data recieved, this could be fetching new data, writing to main memory, being copied into the ALU due to it being a logical/ arithmatic instruction

23
Q

what factors affect the speed and performance of a computer

A

the clock speed
the cache size
the amount of cores

24
Q

how does the clockspeed affect perfomance

A

the clockspeed dictates how many cycles are executed persecond, so GHz would be 1 giga hertz per second, so a billion instructions executed per second, the higher the clockspeed, the higher the amount of instructions, the faster the performance

25
how does cache size affect performance
the cache stores temporary data which has been fetched or written to recently, if the cache size is bigger then the cpu does not need to fetch as much from the main memory so it can be faster
26
how does core quantity affect performance
a core is a cpu with its own registers, alu, accumulator control unit etc, so with maybe 3 cores, a computer can run more programs than 1 core would at the same time
27
what are the drawbacks of multiple cores
cores have to communicate with each other which can take time and power, some programs arent built to make maximum use of multiple cores
28
what is an instruction set
a set of machine code, ie 0101 for multiply, which are machine specific and cannot work on other machines, which are used to execute instructions
29
how do computers and humans read instruction sets
for example 0101 MULT 0011 SUBT 0010 HLT the binary would be the machine code read by the cpu to execute an instruction and the MULT part would be mneumonics making it easier for the human to read, the foundation of low level programming language called assembly language for example the computer could ask 0001 * 0011 this would be 1 x 3, so the computer would use 0101
30
what are embedded systems
computer systems with a dedicated function within a larger mechanical system
31
what are the characteristics of embedded systems
low cost PER UNIT small size low power consumption rugged operating range
32
what are some examples of embedded systems
traffic lights electro cardiogram hospital stuff factor equipment domestic appliances