Executes program instructions in order to run applications.
2
New cards
What is main memory comprised of?
* RAM * ROM
3
New cards
What is the role of main memory?
To store program instructuions and frequently used data
4
New cards
How does storing data and instructions in main memory over secondary storage help the running of the computer?
Main memory is usually much faster than secondary storage so storing in main memory helps the processor to execute instructions quickly
5
New cards
what is a bus?
series of parallel wires that connects internal components of a computer system, allowing signals to be passed between them.
6
New cards
what are the three examples of buses?
* address bus * control bus * data bus
7
New cards
what is the number of wires a bus have called?
its ‘width’
8
New cards
how do buses transmit data?
parallel data transmission
9
New cards
what does the width of a bus have a direct relationship to?
the number of bits that can be transferred simultaneously by the bus
10
New cards
what is the role of the address bus?
to transport memory addresses, specifying where data is to be sent to or retrieved from
11
New cards
what does increasing the width of the address bus do?
increases the range of addresses that it can specify
12
New cards
what does increasing the range of specifiable addresses do?
increases the computers amount of addressable memory
13
New cards
what does adding a single wire to the address bus do?
doubles the number of addressable memory locations
14
New cards
what is an addressable memory location?
a portion of memory that can be accessed by its address
15
New cards
what happens if there are not enough adressess
some portions of memory go unused
16
New cards
what does the data bus do?
sends data and instructions to and from difference components of the computer system.
17
New cards
what does increasing the width of the data bus do?
increases the volume of data that can be transferred over the bus at any one time
18
New cards
what does the control bus do?
* used to carry control signals that regulate the operation of the computer system * also carries the computer’s clock signal
19
New cards
what are I/O controllers?
hardware that control the communication of data between the processor and external hardware devices
20
New cards
what are some examples of I/O devices?
* keyboards * mice * monitors
21
New cards
what is the key fact about Harvard architecture?
processor will use two separate main memory locations: one for instructions and another for data
22
New cards
What can Harvard architecture take advantage of that Von Neumann cannot?
Its memory can be read only memory if they do not want instructions to be altered
23
New cards
what is harvard architecture used in?
embedded systems like digital signal processing (DSP)
24
New cards
what is von ==neumann== architecture?
both instructions and data are stored together in the same memory
25
New cards
how does von neumann architecture perform in comparison to harvard architecture? why?
* often perform worse than * same buses have to be shared for fetching both instructions and data
26
New cards
what is von neumann architecture used in everyday?
general purpose systems like laptops and smartphones
27
New cards
what is a computer that uses the stored program concept?
“serially fetching and executing machine code instructions stored in main memory by a processor that performs arithmetic and logical operations”
28
New cards
what does the s**tored program concept an**d the way that it stores program instructions in main memory allow?
one set of instructions to be switched out for another.
29
New cards
what does ALU stand for?
Arithemetic Logic Unit
30
New cards
rwhat is the tole of the ALU?
to perform arithmetic and logic operation
31
New cards
what are the operations the ALU performs?
mathematical operations like addition, logic operations include AND, OR and XOR.
32
New cards
what is the role of the control unit?
controlling the various components of the processor and the fetch-execute-cycle
33
New cards
what is the role of a register?
small storage locations used to hold temporarily with high read and write speeds
34
New cards
what are the two types of registers?
* general purpose * special purpose
35
New cards
what are the five types of special register?
* program counter * current instruction register' * memory address register * memory buffer register * status register
36
New cards
what is the role of the program counter?
to hold the memory address of the next instruction to be executed in the fetch-execute cycle
37
New cards
what is the role of the current instruction register?
to hold the instruction that is currently being executed by the processor
38
New cards
what are general purpose registers role?
storage for any data that is required by instructions during execution
39
New cards
what are special purpose registers used for?
storage of specific information
40
New cards
what are the types of special purpose registers?
* program counter * current instruction register * memory address register * memory buffer register * status register
41
New cards
what is the role of a program counter?
to hold the memory address of the next instruction to be executed in the fetch-execute cycle
42
New cards
what is the role of the current instruction register?
to hold instruction that is currently being executed by the processor
43
New cards
what is the role of a memory address register?
to store the memory address of memory location that is to be read from or written to
44
New cards
what is the role of the memory buffer register?
to hold the memory location that has been read from or data that is to be stored
45
New cards
what is the status registers?
to contain a number of bits, the values of which can change to indicate the occurrence of an interrupt
46
New cards
what is the role of a clock?
generates a timing signal which changes a regular frequency
47
New cards
what is the signal of a clock used to do?
synchronise communication between the components of the processor and the rest of the computer system
48
New cards
what is the fetch-decode-execute cycle?
a continuous cycle performed by the processor
49
New cards
what happens in the fetch stage of the fetch-decode-execute cycle?
* next instruction to execute is retrieved from main memory * the content of the PC is copied to the MAR * content of MAR transferred to main memory by the address bus * instruction is sent from main memory to the MBR by the data bus * PC is incremented by one * content of the MBR is copied to the CIR
50
New cards
what happens in the decode stage of the fetch-decode-execute cycle?
* content of the CIR is decoded by the CU * decoded instruction is split into two parts: opcode and operands
51
New cards
what happens in the execute stage of the fetch-decode-execute cycle?
* any data required by the instruction that isn’t present in registers is fetched * instruction is carried out * results of any calculations are stored in general purpose registers or main memory
52
New cards
what happens between each execute stage and fetch stage of the cycle?
contents of the status register is checked for changes that could signify occurrence of an interrupt
53
New cards
what is a processors instruction set?
group of instructions that it can carry out
54
New cards
why may the instructions for one processor not be compatible with other processors?
each type of processor has its own instruction set
55
New cards
what are instructions usually stored in?
machine code
56
New cards
what are the two parts of machine code instructions?
* opcode * one or more operands
57
New cards
what does opcode specify?
the type of operation that is to be carried out
58
New cards
what are operands?
the pieces of data on which the operation is performed
59
New cards
what is one bit in a machine code instruction usually assigned to?
the addressing mode in use
60
New cards
what are the two types of addressing mode?
* immediate * direct
61
New cards
what happens in immediate addressing?
value specified in the operand is to be treated as the actual value
62
New cards
what is an example of immediate addressing?
if the operand were 18, the value used by the operation would be 18
63
New cards
what happens in direct adressing?
the value specified in an operand signifies a memory address
64
New cards
what is an example of direct addressing?
if the operand were 18, the value to be used by the operation would be whatever the content of the memory location 18 is
65
New cards
what is a logical shift?
operation performed on binary numbers which involves shifting all the bits in a number a specified number of positions to the left or right
66
New cards
what does performing a logical left shift do (once)?
double it
67
New cards
what does performing a logical right shift do (once)?
half it
68
New cards
what is an interupt?
a signal sent to the processor by another part of the computer requesting the attention of the processor
69
New cards
what is an example of a hardware interupt?
the computer’s I/O controller informing the processor that the mouse has been moved or that a keyboard key has been pressed
70
New cards
what are some examples of interrupts that software can send?
unexpected errors like:
* division by 0 * stack overflow
71
New cards
how is an interrupt detected?
a change in the content of the status register between the execute and fetch stages of the fetch-execute cycle
72
New cards
how can interrupts be handled?
using the vectored interrupt method
73
New cards
what happens during the vectored interrupt method? what is this called?
* the processor stops executing the current program and places the content of its registers onto the system stack
* aka saving the “volatile environment”
74
New cards
what happens, when dealing with an interrupt, once the volatile environment is saved?
loads the appropriate interrupt service routine
75
New cards
what is an appropriate interrupt service routine?
a series of instructions for handling the interrupt that is specific to the type of interrupt
76
New cards
what happens, when dealing with an interrupt, once the processor finishes executing the interrupt service routine?
restores the volatile environment from the system stack and resumes execution of any programs that were running before the interrupt
77
New cards
what are the six factors that can effect the processor’s performance?
* multiple cores * cache memory * clock speed * word length * address bus width * data bus width
78
New cards
how does the number of cores a processor has affect the performance of the processor?
* each core performs its own fetch-execute cycle independently of others * different applications can be allocates different cores
79
New cards
what is a processor’s cache?
* small portion of incredibly fast memory * read and write speeds far higher than HDD and SSDs
80
New cards
what is cache used for?
storing frequently used information and reduces time wasted in fetching the same information from main memory again and again
81
New cards
how does the amount of cache affect the processor’s performance?
the more information it can store and the more time it can save fetching information from main memory
82
New cards
what does a processor’s clock speed relate to?
the frequency of pulses generated by the system clock
83
New cards
how does a higher clock speed affect the processor?
the higher the frequency, the more cycles of the fetch-execute cycle cycle can be completed in the same period of time
84
New cards
what happens if the computer’s clock speed is increased too far?
errors can occur
85
New cards
what is a word?
group of bits that is treated as a single unit by a processor
86
New cards
what can words be used to represent?
* instructions * data
87
New cards
what is the length of a word?
the number of bits that are assigned to it
88
New cards
how does a higher word length effect the performance of the processor?
higher word lengths allow for more bits to be transferred and manipulated as a single unit
89
New cards
what is the width of a bus?
the number of parallel wires that make up the bus
90
New cards
how does increasing the width of the address bus help the computer perform?
* increases the range of addresses it can specify * increasing the computer’s amount of addressable memory
91
New cards
how does increasing the width of the data bus help the computer perform?
* increases the volume of data that can be transferred over the bus at any one time * processor can fetch more data in one cycle * reduces the number of cycles required to fetch large volumes of data
92
New cards
what is a barcode?
printed diagrams that consist of light and dark portions
93
New cards
what do barcodes contain? what is used to read this?
* information * computer
94
New cards
what are the two main types of barcode?
* 1D * 2D
95
New cards
how do 2D and 1D barcodes differ in terms of amount they contain?
2D barcodes contain more information in the same amount of space
96
New cards
how do 2D and 1D barcodes differ in terms of processing?
2D barcodes require more processing in order for the information to be extracted
1. mirror directs light onto printed barcode' 2. light reflected by barcode passes through lens 3. light is incident on the photodiode 4. electrical charge measured and processed to form digital signal 5. represents content of a barcode
100
New cards
what portions of a barcode reflect the most light?