Computer architecture Flashcards

1
Q

What are the main components of a computer?

A

the central processing unit;
the memory;
the input/output devices

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

What does the CPU do?

A

Sets up input/output devices and then the interrupt, so you don’t have to continuously connect to the I/O device.

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

What is the CPU made up of?

A

The CPU contains a small number of registers, most of which are general-purpose which contain things that the program is using right now.
Among the general purpose registers are a few of which are special-purpose which are preallocated (r13,14,15).

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

What does ALU mean?

A

Arithmetic Logic Unit

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

What does the ALU do?

A

Performs operations between two input registers, putting the result in an output register. Simple but quick.

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

What is a binary bit?

A

0 or 1

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

What is a byte?

A

8 bits

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

How many bytes is a word?

A

2, 4 or 8 bytes.

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

What does the memory store?

A

The memory stores programs and data.

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

What do load and store instructions do?

A

A load instruction transfers a word from memory to a register, while a store instruction transfers a word from a register to memory.

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

What does ldr r1, [r8] do?

What does str r3, [r6] do?

A

load r1 from memory address in r8

store r3 to memory address in r6

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

What does the control unit do?

A

The control unit fetches instructions from memory, as

determined by the program counter register.

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

Example of branches?

A

b delay @ unconditional branch to label
bne delay @ conditional branch to label
bl printf @ branch to label and link
delay:

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

What is a stack?

A

Data structure where you can only remove or put an item on the top using PUSH and POP functions.
You can’t POP from an empty stack
You can’t PUSH onto a full stack

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

Input/output devices are connected by busses that have:

A

∙ control lines that carry commands;
∙ address lines that carry addresses;
∙ data lines that carry data

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