Chapter 4 Processor fundamentals Flashcards

(32 cards)

1
Q

Stored program concept

A

instructions and data are stored in same memory space// main memory

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

Components of Von Neumann Architecture

A

-Buses, Registers, CPU , CU, ALU, IAS, System Clock

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

General Purpose registers

A

-hold temporary data when performing operations
-used for any purpose
-can be used by most intrustions

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

Special Purpose registers

A

-Hold status of a prgram
-Specialised for Specific use
-can only be used by certain instructions

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

Program Counter

A

-Holds address of the next instruction to be loaded
-Is incremented once an instruction has been carried out

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

Memory Address Register

A

-stores memory address of memory location currently being read from or written too (where dtaa is being fetched from)

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

Memory Data Register

A

-Holds data feteched from address in MAR
-Data is copied into CIR

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

Current Instruction Register

A

-Holds data from MDR
-holds instruction currently being decoded/executed

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

Index Register

A

-stores value that is added to an address to make another address

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

CU

A

-synchronissies actions of other components in CPU
-Sends/receives control signals along control bus
-manages the execution of instructions/ decodes an instructions opcode during FE cycle
-controls communications between components in CPU
-types of signals it transfers- interrupts, timing, read and write

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

Status Register

A

-stores flags from results of logic arithmetic operations//interrupt flags
-contains bits, can be indvidually set or cleared depending on operation

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

Immidiate Access Store

A

-Holds data/programs currently in use
-Voltile memory
-has fast access times

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

System Clock

A

-synchronises computer operations using timing signals
-allows operations to proceed in correct order/sequence
-keeps track of date and time

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

How data is transferred between componenets

A

-system clock gives out signals sent on the control bus this synchronises the other system components
-CU initialises data transfer, generates signals sent on the control bus to other components

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

Roles of buses

A

Data bus-carries data between devices, buffer or components

Address Bus-carries address where data is going or will be written to or read from

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

Number of cores

A

-each core processes one clock instruction per clock pulse
-more cores means more sequences of instructions of instructions can be carried out simultaneously
-multiple instructions can be executed per clock pulse
-decreased time taken to complete task

Issues
-software may not be designed for multiple cores, one core will be left idle
-memory access speed wont match speed of cores causing delays
-may be other differences, amount of RAM

13
Q

Bus Width

A

allow transfer of more data each time

14
Q

Clock Speed

A

-Each instruction is carried out on clock pulse
-clock speed dictates the rate at which instructions are being run
-Faster clock speed = more instructions can be run per unit second

15
Q

Cache

A

-higher capacity means it can store higher amount of frequently used instructions for faster access
-fast memory access as close to CPU
-stores frequently used intruction/data
-more cache means more instructions can be transferred faster, less swapping between RAM and cache
-prevents CPU idling while waiting for data

16
Q

Quality of RAM

A

-more applications can reside in main memory simultaneously
-saves/decreases disk access time

17
Q

Ports

A

-purpose to provide connections to peripherals and provide interface between computer and other devices

USB//COM port
-faster data transfer speed
-universal standard
-1 bit transferred at at a time
-can be asynchrounous and synchronous
-USB-3 full duplex other wise half duplex

HDMI
-digital interface
-transmits high quality audio and video
-supports copy protection

VGA
-analog interface
-transmits video only
-prone to signal degration over long cables

Display Port
-digital inteface
-supports higher resolutions
-both video and audio

18
Q

Fetch Execute Cycle

A

-PC stores address of next instruction to be fetched + contents are incremented each cycle
-MAR hold address of where data is fetched from (from where data will be read to or written from)
-MDR holds data from address at MAR
-instruction from MDR copied to CIR for decoding and execution

Notation
-[PC] <– [PC] + 1
-MAR<–[PC]
-MDR<– [[MAR]]
-CIR <–[MDR]

19
Q

Stages of FE cycle

A

-next address to be fetched is stored in PC
-this address copied to MAR using address bus
-instruction in that address is copied from main memory to MDR using data bus
-instruction copied from MDR to CIR
-Instruction decoded by CIR (intoopcode and operand)
-processor executes instruction
-address in PC is incremented

20
Q

Interups

A

Purpose
-to send signal from device/process
-seeking attention of processor

Causes of Software Interupts
-division by zero//runtime error
-attempt to access invalid memory location
-array index out of bounds
-stack overflow
-buffer overflow

Causes of Hardwere interupts
-printer out of paper
-keyboard key press
-power failiure

21
Interrupt servicing
-Interupt flag raised by interrupt register -register checked for start/end of FE cycle (before it begins/after it execution stage) -Type and source of intterupt identified -priority is checked against current process, if lower FE continues -If higher contents of register stored in stack -address of appropiate ISR called to handel inteerupt (loaded to PC) -once ISR finishes ,checks for further interrupts (if found cycle repeats) -otherwise loads data from stacks back into registers and continues with previous process
22
First Pass (create symbol table)
-reads assembly language instructions, adds new symbolic addresses to symbol table -removes comments and white space -reads assembly language program 1 line at a time -checks the opcode is in the instruction set -adds label to symbol table
22
Second Pass
-Generates object/machine code -reads assembly program one line at a time
23
Instruction groups
Data movement - moves data between addresses or other locations Input/Output of Data-takes input from user, outputs char of binary number Arithmetic operations- perform addition or substraction unconditional/conditional instructions -moves to another instruction compare instruction- compares result to value All types of addressing load contents of given/calculated address to accumulator
24
Immidiate addressing
operand is the data
25
direct addressing
-operand holds memory address of data -addresses address given by operand
26
Indirect Addressing
-address from address in operand plus contents of index register
27
Relative Addressing
-the address to be used is an offset number of locations away relative to address of current location -allows for relocatable code , all target addresses can be specified by base address