Computer Architecture Flashcards

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

What is Von Neumann architecture?

A

A computer whose programs and data it uses is stored in the same memory

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

Describe the fetch-execute cycle

A

An instruction is brought from the RAM.
It is then decoded by the CU to find out what to do with the instruction
The instruction is then carried out

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

What is the purpose of the CPU?

Central Processing Unit

A

To continuously process instructions and data that are inputted by repeatedly carrying-out the FE cycle

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

What is the function of the ALU?

A

Carries out the mathematical and logical operations (e.g. AND, OR, NOT) and compares values held in registers

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

What is the function of the CU?

A
  • Coordinates all of the CPU’s actions in the FE cycle
  • Decodes all instructions
  • Sends and receives control signals to fetch and write data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the function of the clock?

A

It regulates the speed and timing of all signals and computer functions

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

What are the registers in the CPU?

A

PC
MAR
MDR
ACC
CIR

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

What is the purpose of the registers?

A

They are very small, fast memory locations that temporarily store memory addresses, instructions and data

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

What does the CIR do?

A

Holds the instruction currently being executed

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

What does the MDR do?

A

Holds data or a program instruction after it is stored/fetched from memory

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

What does the ACC do?

A

Where the ALU stores its results (from its operations)

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

What is the PC?

A

Holds the memory address of the next instruction to be executed

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

What are the seven steps in the FE cycle?

A
  1. The memory address held in the PC is copied into the MAR
  2. The PC is incremented. It now holds the address of the next instruction
  3. The processor sends a signal across the address bus to the memory address held in the MAR
  4. The instruction/data held in that memory address is sent along the data bus to the MDR
  5. The instruction/data in the MDR is copied into the CIR
  6. The instruction/date held in the CIR is decoded and then executed (results held in ACC)
  7. The process repeats
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What three factors affect CPU performance?

A

Clock speed
Cache size
Number of cores

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

How does clock speed affect CPU performance?

A

One tick of the clock counts as one FE cycle.
So the faster the clock, the more ticks there are, the more FE cycles there are

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

How does the number of cores affect CPU performance?

A
  • A CPU can contain multiple cores, with each core processing one operation per clock cycle
  • A dual/quad-core can perform two/four operations simultaneously therefore more clock cycles
17
Q

Why might a computer with a dual-core not necessarily be faster than a single-cored computer?

A

If the software used is only written for one core, additional cores may be redundant

18
Q

What is cache memory?

A

It is a small amount of very fast memory that can be accessed faster than RAM

RAM is further away from the processor than cache

19
Q

What are the benefits of cache?

A

Makes the CPU more efficient as less time is spent waiting for data to be transferred

20
Q

Which is (theoretically) faster?
1) A dual-core processor running at 3.2GHz with 4MB of cache memory

2) A dual-core processor running at 2.7GHz with 4MB of cache memory

3) A single-core processor running at 3.2GHz with 2MB of cache memory

4) A quad-core processor running at 1.5GHz with 8MB of cache memory

A

1) 2 x 3.2 GHz = 6.4 GHz + 4MB
2) 2 x 2.7 = 5.4GHz + 4MB
3) 1 x 3.2 GHZ = 3.2GHZ + 2MB
4) 4 x 1.5GHZ = 6GHz + 8MB

Therefore 1 is fastest

But 4 is slightly slower with more cache/cores so it could be faster

21
Q

What is an embedded system?

A

Used to control the function of electronic devices that don’t need a full OS since they perform specific tasks. Their input is also frequently controlled by a switch/button

22
Q

What are some examples of embedded systems?

A

Air conditioning, microwaves, vending machines, lighting systems

23
Q

What is an NIC?

A

Hardware required to be able to access any network

Can be wireless or use an Ethernet cable to connect

24
Q

What is a MAC address?

A

A unique, hexadecimal, static ID number assigned to every NIC used in network devices

Static = It does not change

25
Q

What is a MAC address format?

A

12 character (6 byte) hexadecimal address
e.g. 30-A5-BD-6F-CF-63

26
Q

What do the first three bytes of a MAC address tell us?

A

Makes up the unique manufacturer code
30-A5-BD-6F-CF-63

27
Q

What do the last three bytes of a MAC address tell us?

A

Makes up the unique serial code of that specific device
30-A5-BD-6F-CF-63

28
Q

What is an IP address?

A

A static or dynamic address allocated to each device. It can be assigned by a router

Internet Protocol

29
Q

What is a router?

A

A device for connecting network-connected devices together to form a network

They collect knowledge of available routes to transmit data and then determine the most suitable route for sending data.

30
Q

Where do routers ‘sit’ in a network?

A

Between local networks and the Internet to join them together with the public IP address from the Internet and the private IP address from the local network

31
Q

What is an ISP?

A

Assigns the IP address for your network

Internet Service Provider?