module 2: Basic Computer Architecture and Principles of Operation Flashcards

(30 cards)

1
Q

Briefly describe the function of the following components of a computer:
a. ALU

b. Register array

c. Control Unit

d. Primary Memory

e. Input / Output Unit

A

a: Arithmatic Logic unit; performs arithmatic or logical operations

b: a group of memory circuits used to store binary data

c: igital circuitry that coordinates all activities in the processor

d: memory accessible by the processor e.g. RAM, ROM, Casche

e. allows data/ signal transfer between ‘external’ devices and the processor/ memory

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

What is a bus?

Describe what it is (physical structure) and what it does.

A

the communications path that connects the CPU to the other components

a set of ‘wires’ that carry bits to different registers

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

Name the 3 components of a system bus and describe their function.

(clue: what is the direction)

(+1 point: middle bus mentions what it transfers)

A

address bus: unidirectional bus that transmits memory addresses

data bus: bidirectional bus that transfers data to and from memory.
Transfers data, instructions, operand addresses

control bus: a bidirectional bus that times and decodes instructions with clock signals

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

what is the IR and what does it do

A

Instruction register: holds the current instruction to be decoded

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

what is the PC and what does it do

A

Program Counter: holds the next address to be fetched from memory

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

what is the MAR and what does it do

A

memory address register: Holds address of operand to be fetched from memory

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

what is the Accumulator and what does it do

A

Data register that holds an output of ALU

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

what is the Address Latch and what does it do

A

temporarily holds the address that is being fetched via the address bus

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

what is the Data buffer and what does it do

A

temporarily holds the data that is being read from memory via data bus

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

There is a control signal called R/W . What do the symbols R, W and the (bar symbol) mean?

Describe the function of this control signal with records to primary memory.

A

R = read
W = write

the bar = not: signal is Active-low

so when the bar is over the W, the signal is low and it will do a write operation otherwise, it will do a read operation

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

What is an instruction set? (give an example of an instruction within the instruction set)

A

a predefined set of instructions that a processor can perform

e.g. ADD (add to accumulator)

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

In binary, the MSB refers to:
e. The number of bits in memory
a. The ‘rightmost’ bit
d. The largest bit that is a ‘1’
c. The ‘leftmost’ bit
b. The first bit that is a ‘1’

A

c. The ‘leftmost’ bit

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

Non-integer numbers are stored in computers as:
b. Floating point numbers
c. Hexadecimal
a. Fractions
d. Octal
e. ASCII

A

b. Floating point numbers

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

The devices or software that can convert non-textual data to binary and back are called:
c. Modems
b. Assemblers
e. Simulators
a. Accumulators
d. Codecs

A

d. Codecs

a hardware or software tool that compresses and decompresses digital media, like video and audio, to make files smaller for easier storage and transmission, and then restores them for playback or editing

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

Data addressing modes are the ways in which:
a. The binary addresses are converted to integers
e. The calculations are carried out
b. The operands can be accessed by the processor
c. The address is transferred to the data bus
d. The processor accesses the instructions

A

b. The operands can be accessed by the processor

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

When the data to be processed is contained in the next byte(s) of the program code, it is called:
c. Implied addressing
e. Program decoding
a. Programmed data
b. Internal addressing
d. Immediate addressing

17
Q

In _______________ format, the low-order byte of the data is stored first.

A

little endian

18
Q

The binary address 1010 0001 0100 1111 when represented in hexadecimal would be:
e. F81B h
b. F41A h
a. A14F h
d. B18F h
c. 1092B h

19
Q

In relative program addressing mode, a constant called an offset added to the _________________.

A

Program Counter
PC register
PC

  • relative
    • instruction specifies a value (positive or negative) that is added to the PC register
    • causes the program to move forward or backward a certain number of bytes
20
Q

A signed integer is stored in memory as 1010 1010. The value of this integer in decimal is:
86
-42
-170
-86
170

21
Q

The part of the processor that does the computation (e.g. adding of numbers) is called the:
a Accumulator
b Instruction Decoder
c Primary Memory
d ALU
e Program Counte

22
Q

The system bus consists of three separate buses, which are:

a Data bus

b Control bus

c Binary bus

d I/O bus

e Address bus

23
Q

Clock signals are needed to:
To keep track of how long processor has been running
To work out the speed of all components
To find the most efficient operation
Synchronise the actions of different components of the system
To keep track of what time it is

A

Synchronise the actions of different components of the system

24
Q

What the processor does continuously from the time it is switched on till it is switched off is:

the boot sequence
the fetch-decode-execute cycle
the I/O process
the computation process
the duty cycle

A

the fetch-decode-execute cycle

25
An instruction set is: The process of reading an instruction into the processor The number of instructions in a program The current instruction that is being executed The set of operations that a processor can perform The number of bits in the instruction register
The set of operations that a processor can perform
26
Which of the following is NOT true about computer memory? It is normally organised in bytes It only contains binary data Each memory location has an address The Read/ Write signal line is used to transfer data It is a place to store information
The Read/ Write signal line is used to transfer data
27
The Program Counter (PC) Contains the number of operands to be fetched Stores the number of instructions in a program Add the numbers in a program Stores the results of computation Contains the address of the next instruction to be fetched
Contains the address of the next instruction to be fetched
28
When an instruction is being executed: The opcodes are sent to the accumulator The timing and control unit generates a series of control signals The instruction is transferred from memory to the instruction register The program counter is decremented The decoder interprets signals on the data bus
The timing and control unit generates a series of control signals
29
An instruction for the processor can be broken into two parts, the __________ tells it what to do and the ________ specifies what to do it with. Hint: Both answers start with the same letter.
Answer 1: opcode operation Answer 2: operand
30
The execution of an instruction can be broken down into smaller steps. These steps are defined in the ________ run by the Control Unit.
microcode microprogram