CompSci - Organisation & Architecture

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/29

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

30 Terms

1
New cards

Define Processor.

Executes instructions.

2
New cards

Define main memory.

Contains RAM and ROM

→ Store instructions and frequently used data.

→ Faster than secondary storage ; ROM and RAM enables fast processor.

3
New cards

Buses?

Series of parallel wires that connect internal components.

Number of parallel wires = WIDTH

  • Width has direct relationship to number of bits that can be transferred simultaneously.

4
New cards

A____ Bus?

Address Bus

Transports memory addresses.

Increase bus width → Increases range of addresses (Addressable memory increases too)

Add single wire → Doubles number of addressable memory locations.

Addressable memory location - Portion of memory that can be accessed by address.

IF not enough locations, some memory can be unused.

5
New cards

Define data bus.

Sends data and instructions

Increases volume of data that can be transferred over the bus at any one time.

6
New cards

C____ Bus

Control Bus

carries control signals and clock signals

7
New cards

I/O Controllers?

Hardware that controls communication of data between processor and xternal hardware.

8
New cards

WHat are the two types of architecture?

Harvard and Von Neumann

  • Both ways of setting up processor access to main memory.

9
New cards

Explain H____ Architecture?

Harvard

Two separate main memory locations → Instructions + Data

  • Each piece of main memory has different characteristics. (E.g. memory used for instructions could be read-only)

  • Used in embedded systems such as digital signal processing.

10
New cards

V__ N______ Architecture?

Von Neumann

Instructions and data stored in same memory

  • Performs worse + Buses shared.

  • Used for general-purpose systems like laptops and smartphones.

11
New cards

What is the Stored Program Concept?

serially fetching and executing machine code instructions stored in main memory by a processor that performs arithmetic and logical operations

Early computers were made to run one specific program

But with this concept, it allows for instructions to be switched out with another, enabling modern computing of the present day to run different applications simultaneously.

<p>serially fetching and executing machine code instructions stored in main memory by a processor that performs arithmetic and logical operations</p><p>Early computers were made to run one specific program</p><p>But with this concept, it allows for instructions to be switched out with another, enabling modern computing of the present day to run different applications simultaneously.</p>
12
New cards

What do processors contain? Explain each.

  • ALU Arithmetic Logic Unit
    → Performs arithmetic and logic operations

  • CU Control Unit
    → Controls components of processor (FDE as well)

  • Registers
    → Small storage for temporary data, high read write speeds.

13
New cards

General Purpose Vs. Special purpose R______? Examples?

General Purpose Registers store any data for instruction to be executed.

Special Purpose Registers are assigned to store specific information.

<p>General Purpose Registers store any data for instruction to be executed.</p><p>Special Purpose Registers are assigned to store specific information.</p>
14
New cards

What does the processor have to synchornise its components?

System Clock

  • Timing signal set at frequency to synchronise communication between processor components.

15
New cards

Explain Fetch Execute Cycle.

Fetch:

  • Contents of PC copied to MAR

  • MAR → Main memory

  • Main Memory → MBR (Via bus)

  • PC +1

  • MBR → CIR

Decode:

  • Content of CIR decoded by Control unit

  • Split into opcode and operand

Execute:

  • Any remaining data fetched

  • Instruction executed

  • Calculations stored in main memory or general purpose registers.

Checks for interrupts in Status register.

<p>Fetch:</p><ul><li><p>Contents of PC copied to MAR</p></li><li><p>MAR → Main memory</p></li><li><p>Main Memory → MBR (Via bus)</p></li><li><p>PC +1</p></li><li><p>MBR → CIR</p></li></ul><p></p><p>Decode:</p><ul><li><p>Content of CIR decoded by Control unit</p></li><li><p>Split into opcode and operand</p></li></ul><p></p><p>Execute:</p><ul><li><p>Any remaining data fetched</p></li><li><p>Instruction executed</p></li><li><p>Calculations stored in main memory or general purpose registers.</p></li></ul><p></p><p>Checks for interrupts in Status register.</p><p></p>
16
New cards

What is an instruction set

Group of instructions for processor.

  • May not be compatible with other processors.

17
New cards

What is machine code stored as?

Opcode or Operands.

Opcode: Operation to be carried out

Operand: Data on which operation is performed.

18
New cards

What is a bit usually assigned to? Explain.

Usually assigned to addressing modes.

2 types:

  • Immediate (Actual value)

  • Direct (Memory Address)

19
New cards

What is an interrupt?

signal that requests attention of processor.

  • Detected as change in status register.

20
New cards

True or False: Software can also send interrupts.

True; Division by zero or stack overflow For example.

21
New cards

How are interrupts handled?

Using vectored interrupt method.

  • Stops executing program

  • Sends register contents onto system stack

  • referred to as saving the “volatile environment”

  • Loads appropriate interrupt service routine (Series of instructions specific for interrupt)

  • Restores volatile environment and continues with program.

22
New cards

What affects processor performance?

1 - Number of cores

  • Directly affects processor, each core can work independently.

2 - Cache Memory

  • Reduces time wasted fetching data from main memory

  • Caches stores frequently used data.

3 - Clock Speed

  • Frequency of pulses → Components can work faster in synchronisation with eachother.

4 - Word Length

  • Group of bits treated as single unit by processor

  • Represents both instructions and data.

  • Higher word length means more bit can be transferred and manipulated as a single unit.

5 - Address bus Width

  • More data can run simultaneously

  • Increases range of addresses

  • Adding single wire doubles number of addressable memory locations

6 - Data Bus width

  • Increases volume of data transferred at once

  • Reduces number of cycles required to fetch large volumes of data.

23
New cards

2D Vs. 1D Barcodes

2D → more information in same space as 1D BUT more processing

24
New cards

What do barcode readers contain?

Laser light source, lens, photodiodes, and mirror

1 - Mirror reflect light onto diode which turns it into electrical charge.

2 - Charge can be measured and processed to form digital signal.

25
New cards

what do the light portions of a barcode do?

Reflects the most light.

26
New cards

What can Barcode have?

Error detection and prevention methods such as parity bits or check digits.

if Barcode fails to scan it scans again until 100%

This occurs 1000s of time in a second so no delay for humans.

27
New cards

Describe Digitial cameras?

Contain lens that focuses light onto sensor.

  • Path of light is regulated by shutter.

Two Sensors: CMOS and CCD

Cells each represent a pixel

  • Their charges are each measured and converted into digital value.

Colour Cameras:

  • Multiple cells for each pixel

  • Each have filter to only allow specific wavelengths.

  • enables separate image for each colour before being combined.

28
New cards

What is a filter used in digital cameras?

Bayer Filter

Produces closer approximation of what human eye is seeing.

29
New cards

Explain Laser printer.

Prints whole pages at a time.

  • Contains Laser light source, mirror, drum, toner roller, fusers.

1 - When printed a paper, toner is positively charged.

2 - laser is directed at toner, where it hits becomes discharged. → Leaves impression of page.

3 - Toner roller dispenses negatively charged toner onto drum.

4 - Opposite charges attract and paper is heated by fusers, putting toner onto paper.

Applies same process with FOUR different colour (CYMK) → Cyan, Yellow, Magenta and Black.

30
New cards

Explain RFID

Transfers information wirelessly between tag and reader.

Contains chip that acts as antenna.

When tag is scanned → emits radio wave

Antenna reads wave and induces power to power chip.

Chip emits own radio wave., containing information held on chip

Wave is picked up by reader which decodes information.