Comp2- Machine architecture Flashcards

1
Q

Which unit in the processor does calculations and whats it made of?

A

Arithmetic logic unit

made of circuits.

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

What calculations does the arithmetic logic unit do? (5)

A

adding, subtraction, fixed point and floating point arithmetic, Boolean logic, shift operations.

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

What does the program control unit do.

A

fetches program instructions from memory, decodes them and executes them one at a time.

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

Whats in the program control unit?

A

Instruction decoder, Program counter, Current instruction register , control circuits and the status register.

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

What are registers?

A

fast memory locations inside the processor(or I/O controller) they can be dedicated or general purpose.

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

How are general purpose registers accessed?

A

through instructions such as LOAD,STORE and ADD.

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

What does the stack point (SP) dedicated register do?

A

points to a stack holding return addresses, procedure or function parameters, and local variables, accessed when a procedure or function is called.

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

What does the program counter (PC) dedicated register do?

A

points to the next instruction to be fetched and executed.

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

What does the status register (SR) dedicated register do?

A

Holds conditional codes to indicate the outcome of operations. eg sign,zero, overflow,carry flags are set accordingly . (a series of bits, one for each flag.)

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

What does the accumulator (ACC) dedicated register do?

A

holds the result of the current set of calculations, eg ADD #36 , adds 36 to the contents of the accumulator.

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

how are general purpose registers labeled?

A

R0, R1, etc

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

What does the current instruction register(CIR) do/hold?

A

holds the current instruction to be executed while it is decoded and executed.

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

What does the memory address register(MAR) do/hold?

A

holds the address of the memory location currently being accessed by the processor.

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

What does the memory buffer register(MBR) do/hold?

A

holds the data item being transferred to or from the memory location currently being accessed.

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

what is a general purpose register?

A

a register not assigned a specific role by the processor designer, programmers may use them.

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

what is a dedicated register?

A

a register assigned a specific role by the processor designer. programmers may use some but not all dedicated registers.

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

What does the clock do?

A

each cycle of it triggers one step in the fetch execute cycle.

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

what do the control circuits do?

A

send the control signals down the control bus, eg read , write.

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

How does clock speed effect performance?

A

A higher clock speed means more instructions can be fetched and executed every second.

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

how does word length effect performance

A

the bigger the word length , the bigger the operands results can be accommodate. if the result exceeds the word length extra processing must be done to split operands and results across different registers which slows it down.
word length in the MAR and PC effects how much addressable memory there is.

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

what is clock speed

A

the clock speed of a processor is the frequency in MHz or GHz at which the processor executes instructions.

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

what is word length

A

The number of digits in a binary word.

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

what is bus width

A

The number of signal wires/ lines allocated to a bus.

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

how does memory bus width effect performance

A

More addressable memory.

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

how does data bus width effect performance

A

More bits of data can be transferred along the bus in one go which should improve performance as less cycles have to happen to transfer the same amount of data.

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

What is a multicore processor and how does it effect performance?

A

More then one microprocessor on the same chip. with multiple cores (processors) multiple tasks can be run at once or a single task can be split among many cores.

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

What is cache memory and how does it improve performance?

A

Cache memory is a small amount of very fast SRAM located near/on the processor core. When a memory location is accessed a whole chunk of nearby data is loaded into the cache, it takes advantage that the next bits needed are in the next memory addresses.

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

What is pipelineing?

A

While one instruction is being executed the next is being fetched.

29
Q

how does instruction set improve performance?

A

Using more complex instructions means less instructions need to be run which means less FE cycles. more instructions mans more bits need to be used for the op-code.

30
Q

why is their a limit on clock speed?

A

At a faster speed increases heat which becomes a big problem at high frequencies because the heat cant be removed quick enough.

31
Q

Define instruction set.

A

The set of bit patterns or binary code for the machine operators that a processor has been designed to perform.

32
Q

What is the op-code?

A

The part of the machine code instruction that denotes the machine code operation eg ADD

33
Q

what is a operand?

A

The part of the machine code instruction that represents a single item of binary data or the address of a single item of binary data.

34
Q

Steps of the fetch execute cycle using register transfer notation?

A

MAR

35
Q

How do you increase processing power? (4)

A

Multi core processor
increased cache size
pipelining
More complex instruction set

36
Q

Define microprocessor

A

CPU but dosnt include the memory its just the processing part of the chip.

37
Q

Whats the stored program concept?

A

A program must be in the main memory to be executed, it is processed by fetching machine code instructions in SEQUENCE from main memory and executing them, ONE AT A TIME, in the processor.

38
Q

Define hardware.

A

Electronic/electrical circuits that a computer is assembled from.

39
Q

Define main memory.

A

memory that can be directly addressed by the processor.

40
Q

What is the von neuman spc?

A

single storage system - for data +programs
2 clock cycles per instruction
gets instruction first then data.
same bus for both.

41
Q

What is the Harvard spc?

A

two memories- one data , one program
1 clock cycle per instruction
separate buses for each
this is better as both things happen at once without competing against each other.

42
Q

What is the main memory mad eof and what does it store?

A

RAM, software(programs) +data

43
Q

What is RAM?

A

Random Access Memory.
volatile-memory lost when no power.
Faster then ROM at reading
can be accessed at any time, or order from any location.

44
Q

What is ROM?

A

Read Only Memory
non-volatile
can be accessed randomly like RAM but cant be easily altered(written to) so its used to store fixed programs such as a pc’s bootstrap program.

45
Q

Whats is PROM?

A

Programmable Read Only Memory

can be edited using high voltage.

46
Q

What is EPROM?

A

Erasable Programmable Read Only Memory

can be edited with UV radiation

47
Q

what is EEPROM(like flash)

A

Electronically Erasable Programmable Read Only Memory

can be edited by a normal pc, but this takes longer then reading.

48
Q

Whats the difference between SRAM and DRAM?

A

SRAM-static RAM - has more capacity

DRAM- dynamic ram - needs more refreshing -slower.

49
Q

two types of flash.

A

NAND type- can rewrite certain parts

NOR type- can rewire certain bytes

50
Q

what is flash?

A

modern EEPROM- fast to erase and rewrite by the computer, is shock resistant its used in phones , cameras etc.

51
Q

Addressable memory?

A

memory that can be directly addressed by the processor.

52
Q

what is a peripheral

A

a computer device that is not part of the cpu, it can be external eq mouse or internal eg cd ROM-drive.

53
Q

What does an I/O controller do?

A

As the processor cant be designed to work with every peripheral, due to different components, clock speeds and voltages. the I/O controller relays the data and instructions to and from the peripheral.
It provides the correct voltages and currents for the system bus and I/O device

54
Q

What 3 parts are in a I/O controller?

A

electronics that interface the controller to the system bus
data,
command and status registers
electronics for sending contol signals to connected devices

55
Q

what is the I/O port?

A

Part of the I/O controller. It is a set of data command and status registers.
it allows exchange of data from the processor to the peripheral.(either one way or 2)

56
Q

what is secondary storage?

A

permanent storage memory, not directly connected to the processor, also called backing store. eq magnetic disk drive.

57
Q

what is a I/O device?

A

a hardware unit that sends or receives data or stores data by communication with the processor/main memory through the I/O controller.

58
Q

Whats the system bus or external bus?

A

the main highway connecting the processor, main memory, and I/O controllers; it is made of the data bus, address bus, and control bus.

59
Q

What is the data bus?

A

bidirectional
typically 32 wires
transports data between the three main components.

60
Q

what is the control bus?

A

bidirectional
typically 8 wires
transports control signal between the three main components.
eq; clock signal, reset signal, check memory read, check memory write, I/O is being addressed not memory?

61
Q

what is the address bus?

A

unidirectional
typically 32 wires
used to address memory and I/O locations.

62
Q

what is parallel connection is buses.

A

multiple wires are used to transmit the info.

63
Q

what is the only component that feeds to the address bus?

A

the processor

64
Q

what controls can go along the control wire?(5)

A

clock signal-for timing
reset signal- to initialize components
memory read- to say the memory is being read from
memory write -to say the memory is being written to
I/O: to indicate to use I/O not main memory if they both have the same memory address.

65
Q

what is a Microcontroller?

A

A complete computer on a single chip. (processor, memory, and I/O)
ued in devises such as mp3 players, where few instructions are needed.

66
Q

what are the two addressing modes?

A

Immediate mode

Direct mode

67
Q

what is immediate addressing mode?

A

The value you want to process is a fixed value(operand) eg ADD #6 , addes 6 to the accumulator

68
Q

what is direct addressing mode?

A

The address of the value you want to process is supplied (operand) eg ADD 6 , addes contents of memory address 6 to the accumulator.