Computer organisation and architecture Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

what is a computer system?

A

it is any device which is able to take a set of inputs and process them into useful outputs

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

What is a bus?

A

they consist of a series of wires that transfer data signals between internal components

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

what are the main components of a cpu

A
  • processor
  • main memory
  • address, control and data buses
  • I/O controllers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are I/O controllers used for?

A
  • peripherals cannot directly connect to the CPU
  • I/o controller acts as an interface between the device and the computer
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what is a device driver?

A

it is the software that interacts directly with the I/O controller

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

What are the tasks of an I/O controller

A
  • The controller converts the signals received from a peripheral device into a format the computer can process, and vice versa
  • It receives I/O requests from the CPU, and then sends device-specific control signals to the device it is controlling
  • It also manages the data flow to and from the device, freeing the CPU to get on with other tasks
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the control bus used for?

A

it is used to send control signals between each I/O controller and the processor, and between the processor and memory

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

What is the use of the data bus?

A

sends data between CPU components

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

What is the use of the address bus?

A

it sends memory addresses from the processor to CPU components

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

the system bus comprises of three different buses

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

What do control signals consist of ?

A
  • Memory read
  • Memory write
  • Bus request
  • Bus grant
  • Clock
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does the “memory read” control signal do?

A

causes data from the addressed location to be placed on the data bus

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

What does the “memory write” control signal do?

A

causes data on the data bus to be written into the addressed location

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

What does the “Bus request” control signal do?

A

indicates that a device is requesting use of the data bus

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

What does the “Bus Grant” control signal do?

A

indicates that the CPU has granted access to the data bus

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

What does the clock do?

A

it is used to synchronise operations

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

Memory is divided up into equal units called …

A

Words

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

Properties of the data bus

A
  • it is bi-directional as data can be sent both ways along the bus
  • the width of the data bus is defined by the amount of wires it contains
  • if the data bus is the Same width as a computer word, data can be transferred in a single operation
    • bus width affects overall system performance
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Properties of address bus

A
  • carries the address of a memory location in one direction from the processor to I/O controllers and memory
  • the width determines the maximum possible memory addresses of the system
    • a 32-bit bus can carry 232 addresses
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

properties of main memory?

A
  • stores data and instructions that are to be processed
  • the number of memory addresses is constrained by the width of the address bus
  • each address can store a fixed number of bits determined by the type of processor
    • smallest addressable unit is a word
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What is the stored program concept

A
  • it is when computers are designed to allow data and instructions to be stored
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

How does the stored program concept work

A
  • Machine code instructions are loaded into main memory to be executed by the processor
    • the instructions are fetched one at a time and executed immediatley by the processor in a sequential order
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

How does the von Neumann architecture use the stored program concept

A
  • instructions and data are stored in a common main memory and transferred using a single shared bus
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

properties of Harvard architecture

A
  • different sized memory spaces and word lengths can be used for data and instructions
  • commonly used in embedded systems performing specialist functions rather than general purpose machines
    • used when speed takes over priority over the complexities of design
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

What is the role of the arithmetic logic unit (ALU)?

A
  • performs arithmetic , logical and shit operations on data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

What is the control unit?

A

it is the part of the processor that coordinates the activity of all other components

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

How does the control unit function?

A
  • each instruction is accepted and decoded
  • separate steps such as fetching the address of data, and fetching the data itself from memory are identified
    • each step is synchronised with a regular pulse from the system clock
28
Q

What is the system clock

A

A series of ON/OFF signals are used to synchronise the operations of the processor components

  • actions are usually carried out on the rising edge of the clock
    • actions take a fixed number of cycles to complete
29
Q

use of general purpose registers

A
  • rather than writing data back to slow memory it can temporarily be stored in the super-fast processor registers
  • processor is then able to access and re-use these results in subsequent calculations
30
Q

how are instructions executed?

A
  • carrying out sequences of programming instructions requires many different snippets of information
  • the processor has to temporarily hold the current instruction to be executed
  • it has to hold the address of the data that it needs, and the data itself
  • it has to keep track of the address of the next instruction to be executed
31
Q

Program Counter (PC)

A

Holds the memory address of the next instruction to be executed

32
Q

Current Instruction Register (CIR)

A

Holds the current instruction

33
Q

Memory Address Register (MAR)

A

holds the address in memory where the processor is required to fetch or store data from or to

34
Q

Memory Buffer Register (MBR)

A

temporarily holds data moving between the processor and main memory

35
Q

Status Register (SR)

A

Holds information about the current state of operations. it is used to set flags or to detect error conditions

36
Q

what occurs at the Fetch stage of the CPU cycle

A
  1. address of the next instruction transferred from PC to MAR
  2. PC is incremented by 1
  3. instruction stored in location addressed by MAR is transferred to MBR
  4. instruction transferred from MBR to CIR
37
Q

What occurs at the Decode state of the CPU cycle

A
  1. Instruction in CIR is decoded
  2. additional data, if required by the instruction is fetched from memory
  3. and passed to registers
38
Q

What occurs at the Execute stage of the CPU cycle

A
  1. instruction is executed by the ALU
  2. registers are used to store intermediate data or results
  3. the result is stored in the accumulator or general purpose register or memory
39
Q

Hows does clock speed affect CPU performance

A
  • the faster the clock speed, the faster a computer can fetch, decode and execute instructions
40
Q

What is cache

A

it is a small amount of super fast memory that stores data that is frequently used by the processor

  • larger and slower than a register, faster and smaller than RAM
  • can improve processing speed
41
Q

Hows does the number of cores affect processor performance

A

more processors can be linked together on a single chip allowing more instructions to be executed simultaneously

42
Q

How does Word length affect performance of a processor

A

the amount of data that the CPU can process simultaneously

43
Q

How does address and data bus width affect processor performance

A
  • increasing the width of the address bus allows more possible memory addresses of the system
    • increasing the width of the data bus allows more data to be transferred in a single operation
44
Q

what is the instruction set of a processor

A

describes the commands a processor can perform. varies depending the processor which is used

45
Q

what is machine code

A

it consists of pure binary and is the only language that the processor is able to understand

46
Q

What does the opcode include

A
  • the actual command for the computer to perform
  • the addressing mode - specifies whether the operand is the actual data, memory address or a register
    *
46
Q

What does the opcode include

A
  • the actual command for the computer to perform
  • the addressing mode - specifies whether the operand is the actual data, memory address or a register
    *
47
Q

What does the operand include?

A
  • one or more items in data that are to be used in the instruction
48
Q

what is the addressing mode

A

specifies which type of data is being used, immediate addressing and direct addressing

49
Q

what is immediate addressing mode

A
  • the operand is the actual value, the addressing mode 00 data is a value, not an address
50
Q

What does direct addressing mode consist of

A
  • the operand in this case is the address of the location in memory of the data to be used
  • the addressing mode 01 specifies that the data is an address not a value
51
Q

how do barcode readers work

A
  • light from a laser is directed at a pattern and a sensor detects the intensity of light that bounces back
  • the black bars will absorb more light giving a binary reading of 0
  • the white bars will reflect giving a binary reading of 1
  • the patterns of 1’s and 0’s create a unique identity
52
Q

What are two common types of barcode systems and what are their uses?

A
  • UPC-A/EAN
    • used in retail and warehousing
  • Code 128
    • Used in transport and shipment tracking
53
Q

What is a benefit of using code 128 over UPC-A/EAN

A

code 128 is able to represent letters and numbers whilst UPC-A/EAN can only represent numeric digits

54
Q

How is a UPC-A/EAN barcode formed?

A
  • long guard bars to show the start and end of the barcode and also central guard bars to distinguish left uniquely from right
  • uses 7 bar elements to form four alternating dark and light bards of varying thicknesses to represent each data between the guard bars
55
Q

UPC-A barcode anatomy

A
56
Q

What are QR codes?

A
  • they are used in 2D barcodes and can be read by smartphones or tablets
  • contain - links to websites, information
  • used in
    • restaurant coupons
    • mobile concert tickets
    • aeroplane tickets
57
Q

How do digital cameras capture data?

A
  • the shutter opens to let light onto a charge-coupled device or complementary metal oxide semiconductor sensor at the back of the lens
  • the intensity of light is measured by millions of tiny sensors arranged in a grid on the sensor
  • light levels for each pixel are represented as binary values
  • this information is now stored as an image in the cameras memory
58
Q

How do digital cameras sense colour?

A
  • RGB filters are used with different sensors in the camera to separate out these wavelengths
  • the intensity of each of these colours falling is measured and stored to produce an RGB value
59
Q

How do laser printers operate?

A
  • a print drum is given a negative static charge
  • a laser shines a reverse image of the page at the drum
  • laser light reverses the charge on the drum
  • toner is charged negatively and sticks to positively charged image
  • toner is transferred from drum to the paper and fused using a heat roller
60
Q

How do Radio Frequency ID systems work? (RFID)

A
  • The powered receiver emits radio frequency energy
  • the transponder antenna in the bank card, mobile phone or tag becomes energised by radio waves
    • the transponder can then send data to the reciever
61
Q

What are the uses of RFID tags?

A
  • security control points or identification of people, animals, goods or valuables
  • shipping and supply chain tracking for goods
  • banking and fast payments
  • as a potential replacement for barcode systems
62
Q

What is a passive and active tag (RFID)?

A
  • a passive transponder have no power source themselves, they rely on the radio waves received for their energy. they need to be placed near the receiver
  • active tags use a larger battery powered beacon which can broadcast its own signal rot receivers up to 300m away. useful for larger items that are not place on a receiver by hand.
63
Q

What is primary storage?

A

it is volatile and usually refers to RAM

64
Q

What is secondary storage?

A

refers to non-volatile storage

  • magnetic storage e.g. HDD
  • optical storage e.g. CD
    • flash memory e.g. SSD