Systems Architecture Flashcards

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

What is the stored program concept?

A

The idea of a memory unit storing data or programs.
Therefore, more versatile as a singular machine could store different programs for different tasks.
This concept allowed for the creation of general purpose machines.

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

What does the Von Neumann architecture consist of?

A

A processor.
A memory unit that communicates with processor.
Connections (buses) for I/O devices.
Secondary storage saving/backing up data.

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

What does the processor do?

A

Executes program instructions to process data.
Handles main memory and I/O operations.

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

How does the processor access program instructions and data? Hint (TFD)

A

The instructions and data are transferred from secondary to main memory.
They can then be fetched, decoded and executed/processed.
Data can also be provided by I/O devices via I/O controllers.

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

What is cache memory?

A

Fast access M that stores most frequently used data/instructions.
It is located on the processor.

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

What is main memory?

A

Stores data/instructions while they are being processed. (RAM/ROM)

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

What are I/O controllers?

A

Devices that help with communications between peripheral devices and the control unit.

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

What are buses?

A

Connections that transfer data and signals between components in a computer.

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

What is the address bus?

A

Either reads or writes data to a memory location.
Is undirectional, one way connection from P to M and I/O C.
Allows the processor to establish a connection with an addressable ‘unit’, whether its a memory location or I/O controller.

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

What is the data bus?

A

Data is transferred to and from the P, M and I/O C.
It is bi-directional, it allows two-way connection between internal components of the system.

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

What is the control bus?

A

Sends control signals to manage and orchestrate operations in a computer system.
Including exchanging status signals between components of the computer system, and transmitting clock signals required for the coordination of operations.
It is also bi-directional.

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

What determines how much data can be transferred along the data bus or address bus?

A

The width of the bus (no. parallel lines).
If width is n bits then 2ⁿ bits can be transferred at a time.

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

What can the control bus be used for? Hint (RASS)

A

Request communication between units.
Acknowledge a request.
Specify the data type being transferred via the other buses.
Sync the communication between components using the clock pulses.

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

What are some examples of control signals? Hint (RWRGBIC)

A

M read: Puts data from a M location onto the data bus.
M write: Stores data from the data bus to a M location.
Bus request: Signifies a component needs access to a bus.
Bus grant: Signifies component is informed it can use a bus.
Bus busy: Signifies bus is not available (in use)
Interrupt request: Signifies an error has occurred an requires attention of CPU.
Clock signals: C bus supplies components with clock pulses.

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

What is the ALU?

A

It’s responsible for all arithmetic calculations and logic operations.

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

What is the control unit?

A

Organises the sequence in which program instructions are executed and decodes them.
It controls communications within the computer with control signals.

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

What tasks does the control unit carry out? Hint (RW-D-O-A)

A

Uses C signals to enable data to be read and written to main M.
Decodes instructions to know what needs to be done (ALU, storing etc.)
Organises micro-operations in order for the instruction to carry out.
Uses C signals to determine which ALU operation will carry out.

18
Q

What does the clock do?

A

Synchronises the operation of the processors components.
Each operation carried out takes a number of clock “cycles”.

19
Q

How does the clock do its job?

A

Generating regular pulses that emit a signal that oscillates between a low (0) and high (1) state.

20
Q

What is a rising and falling edge (clock)?

A

Rising edge - changing from a low (0) to a high (1) state.
Falling edge - changing from a high (1) to a low (0) state.

21
Q

How is one clock cycle found?

A

The time taken between two sequential rising edges is called the clock period and it corresponds to one clock cycle.

22
Q

How is the clock speed calculated?

A

Clock speed (Hz) = 1 / clock period (s)

23
Q

What does a program being ‘ready’ mean (CPU)?

A

The program instructions have been translated into machine code.
The program instructions have been loaded (from secondary storage) into the main M (RAM).

24
Q

Describes what happens in the fetch part of the fetch-execute cycle.

A

Contents of the PC are copied to the MAR. MAR copies address to address bus.

C unit instructs a M read operation so that M location is transferred to the P. The instruction is then transferred and saved to the MDR via the data bus.

Contents of MDR are copied to CIR.

25
Q

What happens in the decode part of the fetch-execute cycle?

A

C unit splits instruction in CIR into operand and opcode to determine the type of instruction to be carried out.

26
Q

What does the “memory read” control function do?

A

Puts data from a M location onto the data bus.

27
Q

What does the “memory write” control function do?

A

Stores data from the data bus to a M location.

28
Q

What does the “bus request” control function do?

A

Signifies a component needs access to a bus.

29
Q

What does the “bus grant” control function do?

A

Signifies component is informed it can use a bus.

30
Q

What does the “bus busy” control function do?

A

Signifies bus is not available (in use)

31
Q

What does the “interrupt request” control function do?

A

Signifies an error has occurred that requires attention of CPU.

32
Q

How does a compiler work?

A

It takes the source code as a whole and translates it into machine code.
This machine code can then be run at any time.

33
Q

How does an interpreter work?

A

It translates one line of code at a time and then executes it.
It does not produce an executable file.

34
Q

What are advantages of using an interpreter?

A

Errors are found quickly as the interpreter halts at an erroneous line.
Minimal storage: lines are not stored after translation.

35
Q

What are disadvantages of using an interpreter?

A

Interpreted programs run slower.
The program has to be interpreted every time to be run.
They do not produce an executable file that can be distributed.

36
Q

What are advantages of a compiler?

A

Compiled programs run quickly as they are already translated.
Provides an executable file.

37
Q

What are disadvantages of a compiler?

A

They don’t find errors.
There must be available memory to hold the data.
The program must all be recompiled if a change is made.

38
Q

How does having more cache memory improve performance?

A

More instructions can be stored in cache memory.
This increases the probability of a cache hit.
Fewer fetches from main memory.

39
Q

What are advantages of Harvard architecture?

A

Reduces bottleneck of data buses as instruction and data can be accessed simultaneously.
Instruction memory can be made exclusively ROM to prevent the program being hacked.

40
Q

What is the role of interrupts?

A

To suspend the currently executing program.
So that a device that requires the attention of the processor can be serviced.

41
Q

Why must the contents of registers be saved before servicing an interrupt?

A

So that the currently running task can be returned to.
As the interrupt will clear register values.