Computer Architecture + Organisation Flashcards

1
Q

What is the control unit?

A
  • Coordinates the CPU activities inside and outside the CPU
  • Directs flow of data between the CPU and otherh devices
  • In charge of the fetch execute decode cycle
  • Sends read and write requrests to the memory through bus grants and interrupt requests
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the status register?

A
  • Contains information about the state of the processor
  • Individual bits are read or written by the machine code instructions executing on the processor
  • These bits are flags which are set on or off and are checked at any points
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the clock in a CPU?

A
  • Electronic unit that synchronsies related components y generating pulses at a constant rate
  • Measured in Hertz
  • Clock speed is the frequency at which the internal clock generates pulses
  • The higher the clock rate the faster the performace of the CPU
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the ALU?

A
  • Arithmetic Logic Unit
  • Perform arithmetyic and logical operations on data
  • Operations = + - X /
  • Logic = XOR, AND, ect
  • Bitewise shifts operations left and right
  • Often uses general purpose reisters to temporarily hold the results of calculations
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are general purpose registers?

A
  • Tiny area off extremly fast memory locateed in the processor
  • Data or control information is stored
  • Can hold temp data for concurrent calculations
  • The more registers the faster the CPU can operate
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the PC?

A
  • Program counter
  • Holds the address of the next instruction to be executed
  • Could be the next instruction in a sequence of instructions
  • If the current instuction is a command to retrive data from the memory
  • Very close relationship with the MAR (memory adress register)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the MAR?

A

Holds the address of memory location of
- Data
- INstructions
- Data to be fetched or where data needs to be written
Sends these address to memory down the address bus

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

What is the MBR?

A
  • Memory buffer register
  • Store the data which is read from or written to memory
  • All data must travel from memory must pass through the data buse and through the MBR
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the CIR?

A
  • Curent instruction register
  • Contents of MBR copied to the CIR
  • Contains the operator and operands to make an instruction
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the Von Neumenn archecture?

A
  • Shared memory space for instructions and data
  • Instructions and data are stored in the same format
  • Single control unit following a linear Fetch, Decode and Execute cycle
  • Registers are used as fast access to instructions and data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the Havard Architecture?

A
  • Instruction and data are stored seperated in different memorty units
  • Using its own buses
  • Reading and writing data can be done simultaniously with fetching an instruction
  • Used by RISC
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What happns in the fetch part of the FDE cycle?

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

What is the decode part of the FDE cycle?

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

What is the execute part of the FDE cycle?

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

How does the CU effect CPU performance?

A
  • CU relies on a clock
  • The faster the clock the faster actions can be carried out on the CPU
  • This generated more heat meaning coolings are needed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How does cache effect CPU performance?

A
  • Cache in the MDR is memory
  • Which stores frequenctly accesed data
  • This means a fetch isnt required to find that data saving time and resources
  • The more caching memory the more efficient and quicker the CPU can be
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

How does core count increase CPU

A
  • the amount of cores
  • The increase on simultanious proccesses that can be carried out
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What is a barcode reader?

A
  • Used to read barcodes on products
  • Trackng items and medical records
  • Linear and 2D QR codes exsist
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

How does a pen style barcode reader work?

A
  • Light source with a photodiode place in the barcode
  • The diode measures the intensity of light reflected back as it passes over ther barcode
  • Generates a waveform
  • Dark bars absorbed
  • White bars reflect the light
  • The wave form is then translated in a digital format
  • This then is coded in and looked up
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What is digital camera?

A
  • Contains a Charge-coupled device (CCD) producing high quality images
  • Or a CMOS sensor lower quality images
21
Q

How do digital camera work?

A

1.Shutter opens
2.Light enters the camera
3.An image is projected onto the sensor
4.Each tiny sendsor measures brighness of each pixel and through filters can measure the red, green and blue intensities
5.This is turned into an electrical signal and stored as binary
6.This digital recreated image is greyscale

22
Q

What is a laser printer?

A
  • Works in a similar way to photocopier
  • Produces high quality printing at high speeds
23
Q

How does a laser printer work?

A
  1. Toner ink is stored in cardriges
  2. Printing software generates a bitmap image
  3. Drum is negativly charged
  4. Laser draws a mirror negative image onto the drum
  5. The laser light causes the ares of the drum it hits to loss their negatuive charge
  6. Drum rotates past toner hoppper
  7. Charged particles of toner are attached to ares of page which have not been lasered
  8. Particles on page are then bonded to the page with combination of heat pressure
24
Q

What is RFID?

A
  • RFID tags store information
  • Used like barcodes to track products
  • Read without line of sight
  • Can pass stored data from the tag to recive
  • Consists of a microchip at the center and antenna for communiocation
25
Q

What are the two types of RFID tags?

A
  • Active tags- larger onboard battery for power
  • Used to track items at greater distancs
  • Passive tags - smaller and cheaper with no onboard battery
  • Provide electromagnet power which energises antenna coil
  • The transponder inside the RFID tag can then send its data
  • Used for smart cards
26
Q

What is drive and media and what are the examples?

A

Drive - The device that reads and writes data from secondary storage
Media - What the data is actually stored on
- Magnetic drive
- Solid state drive
- Optical Drive

27
Q

How does optical drives work

A
  • Reader would shine a laser at the media
  • Processes reflection from media
  • Surface of the disc is burnt by laser forming pits and lands
  • Pits and lands reflect light differently
28
Q

What are the advantages of optical media?

A
  • Cheap
  • Lightweight
  • Portable
29
Q

What are the disadvantages of optical media?

A
  • Slow access times
  • Prone to scratches
30
Q

How does magnetic storage work?

A
  • Extremely high capacity
  • Drive head moves over the surface of a disc
  • Mechanic component will eventually fail
31
Q

What are the advantages of optical media?

A
  • Cheap
  • Large capacity
32
Q

What are the disadvantages of optical media?

A
  • Slow access times
  • Fragile
33
Q

How does SSD works

A
  • Forces electrons into floating gates
  • Causes a charge and a change in state between two oxide layers
  • Which can represent 0’s and 1’s
34
Q

What are the advantages of SSD?

A
  • Durable
  • Fast access times
  • No moving poits
  • No noise
35
Q

What are the disadvantages of SSD?

A
  • high cost
  • Limited read and write storage
36
Q

What is a processor instruction set?

A
  • Set of all instructions that are executable in machine code
  • Which can be executed on a CPU
  • Different CPUs would have different instruciton sets
  • Such as RISC, CISC
37
Q

What is CISC?

A
  • Complex instruction set computer
  • Mostly used on laptops and computers
  • Complex hardware means larger instruction set
  • Meaning any given process ike x*y is likely to have a instruction set resulting in easier coding
  • Greater energy requirement
38
Q

What is RISC?

A
  • Reduced Instruction Set Computing
  • Smaller instruction set so x*y wil cause the compiler to write more lines of machine code
  • Used in mobile devices and tablets
  • Lower energy requirement
39
Q

What are the different types of memory adressing?

A

Intermediate adressing
Direct adressing

40
Q

What is immediate addressing?

A
  • AKA immediate operand
  • When the value in the address is part of the instruction is the actual value to be used
  • Memory does not need to be searched for the values
  • ADD 10 != Add whats in mem location 10
41
Q

What is direct addressing?

A
  • Simple case
  • Address in the memory iis where the value is that should be ued
  • ADD 10 = Go to mem location 10 and add to Accumulator
42
Q

How do you add two values in assembly?

A

ADD r1, r2, r3
(Add value is register 2 and 3 together and store in register1)

43
Q

How do you subtract two values in assembly?

A

SUB r1, r2, #3
(Subtract value in register 2 by 3 and store in register 1)

44
Q

How do you store a value / move a value into a variable?

A

MOV r2,r1
MOV r2, 9
(Move value in register 2 to register 1 and then reassign number 9 to register 2)

45
Q

How do you compare two values in assembly?

A

CMP r1, #3
(Compare the value in register 1 against the number 3)

46
Q

How does interupts play a role in FDE cycle?

A
  • After the task is fetched, decoded and execute
  • Before the computer gets another task interrupts are checked
  • A stack is usedto not interfere with the program counter of the previous task
47
Q

How are stacks used in interrupts?

A
  • Tasks pushed and popped off the stack
  • Allows for previous tasks to be resumed after interups are completed
  • Process is doubled if higher proiority interups are also called
48
Q

What are the different types of interupts?

A