Computer Organization & Architecture Flashcards

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

What is Main Memory used for?

A

RAM and ROM

Used to store program instructions and frequently used data.

Faster than secondary storage - helps processor execute faster.

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

What are Buses?

What is a bus width?

Name the three main buses:

A

Series of parallel wires, connecting internal components together. They allow signals to be passed.

The number of wires in a bus is called the width. The width of a bus is directly proportional to the number of bits transferrable simultaneously.

Three main buses: Address Bus; Data Bus; Control Bus

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

What is the purpose of the Address Bus?

What is the effect of increasing it’s width?

A

Used to transport memory addresses - specifies where data is to be sent / retrieved from.

Increasing the width will increase the range of addresses it can specify - further increases amount of addressable memory.

Addition of 1 wire doubles the number of addressable memory locations.
- 1 wire = 2 locations
- 3 wires = 8 locations

Addressable memory location -> portion of memory which can be accessed by its address

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

What is the Data Bus?

A

Sends data and instructions to and from different components in the system.

Increasing width of data bus increases volume of data transferable simultaneously.

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

What is the control bus?

A

Used to carry control signals which regulate system operation
Clock speed and signal is transferred along the control bus.

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

What I/O controllers?

A

Pieces of hardware which control the communication of data between the processor and external hardware.

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

Describe Harvard architecture.

A

Computer using two seperate memory locations
- one is used for instructions, the other for data.

Enables giving each piece of memory different characteristics - instructions location being Read-Only - instructions can’t be altered.

Used mainly in embedded systems - digital signal processing.

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

Explain Von Neuman architecture

A

Both instructions and data are stored together in memory - performs worse than Harvard - shared buses.

Used in everyday general-purpose machines.

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

What are devices using the Stored Program Concept known as?

A

“Serially fetching and executing machine code instructions stored in main memory by a processor that performs arithmetic and logical operations”.

Allows for one set of instructions to be swapped out for another.
Based on Von Neuman or Harvard.

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

What are the 3 main components of a CPU?

A

Arithmetic Logic Unit
- performs logic operations (OR, AND etc.)

Control Unit
- controls various components of CPU. Controls fetch-execute cycle.

Registers
- small storage locations for temporary data.

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

Name the special purpose registers and their uses.

A

PC - Program counter - holds memory adress of next instruction in FE cycle

CIR - Current Instruction Register - holds instruction currently being executed.

MAR- Memory Address Register - holds memory address of memory location that is to be read from / written to.

MBR- Memory Buffer Register AKA MDR- Memory Data Register - holds contents of memory location read from / data to be stored

Status Register - contains no. bits - values can change (indicates occurance of interrupt)

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

What happens in the Fetch stage of the FE cycle?

A

Next instruction to execute is frtched from main memory

1 - content of PC copied to MAR
2 - content of MAR transferred to main memory via address bus
3 - instruction sent from Main Memory to MBR via data bus
4 - PC incremented by 1
5 - content of MBR copied to CIR

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

What happens in the Decode stage of the FE cycle?

A

1 - content of CIR decoded by Control Unit
2 - decoded insteuction split into opcode and operands.

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

What happens in the Execute stage in the FE cycle?

A

1 - data required by instruction fetched
2 - instruction carried out
3 - results of calculations stored in GP registers or main memory

Status register then checked for interrupts before moving back to execute stage

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

What is Opcode?

What is Operands?

A

Opcode - Specifies the operation to carry out.

Operands - Data on which the operation is performed.

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

What is the processors instruction set?

A

Group of instructions that a processor can carry out. - not compatable with all processors.

Instructions usually stored in machine code consisting of opcode and operands

Opcode - specifies type of operation to be carried out
Opprrands - pieces of data on which operation is performed.

17
Q

What are addressing modes?

A

One bit inside machine code usually assigned to the addressing mode in use - intermediate or direct.

Intermediate - value specified in opperand to be treated as the actual value.

Direct - value specified in operand signifies memory address, not value.

18
Q

What is logical shifting?

A

Operation performed with binary numbers which involves shifting all the bits in a number (doubling or halving) specified number of positions to the right / left

Logical shift to ledt by 3 bits - add 3 0’s to to end of number

19
Q

What are interrupts

A

Signal sent to processor by another component requesting attention. - can also be software.

20
Q

What happens when the processor recieves an interrupt?

A

Status register changes between execution and fetch in the FE cycle.

They are handeled by vectored interrupt method.
- Processor stops current program and places one of registers on system stack - saving the ‘volatile environment’.
- loads appropriate input service routine - series of instructions for handling specific interrupt.
- restores volatile environment & resumes execution

21
Q

What factors affect the performance of the processor.

A

Number of cores - each core can do an FE cycle

Cache memory - fast memory - reduces data travel time

Clock speed - more FE cycles in same timeframe

Word length - word is group of bits treated as single unit - length of word is number of bits assigned

Address bus width - increases number of addresses that can be specified

Data bus - increase volume of data transferred at a time