Revision day two - logic design, single cycle, multi cycle, MIPS and C Flashcards

1
Q

Data path

A

performs the data operations as commanded by the program instructions

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

control

A

controls the data path, memory and I/O according to program instructions

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

disadvantages of single cycle

A

speed - the cycle time is the Time for the most complex instruction but the average instruction needs less time

cost - functional units cannot be resused within one instructions execution

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

execution time

A

instruction count x number of cycles per instruction x cycle time

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

fetch step

A

instruction is fetched from memory
increment pc to the next instruction (pc +4)

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

instruction decode

A

retrieve the appropriate values from register files
decode the instruction
create control signals that will accompany the execution
calculate the target address - sign extend the immediate, shift left by 2 (word align) and add to (pc +4)

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

R-format instruction

A
  1. perform arithmetic and store output in ALUOut
  2. write result to correct register
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Store instruction

A
  1. calculate address - 16 bit offset (sign extended) + first register source operand
  2. write to memory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Branch instructions

A
  1. compare operands using ALU subtraction

if 0 - address target is changed to one calculated in step two

else pc register will remain at PC+4

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

RISC

A

reduced instruction set computer

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

CISC

A

complex instruction set computer

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

instruction set architecture

A

the language of the computer

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

features of CISC

A

very few registers
very little memory

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

features of RISC

A

more memory + faster clock frequency
fixed length and fixed format instructions (for easy, fast decoding)

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

big endian

A

the msbyte of the data is placed at the location with the lowest address

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

little endian

A

the least significant byte of the data is placed at the byte with the lowest address

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

how can a word be stored in memory

A
  1. unaligned - placed anywhere
  2. aligned - at an address which is a multiple of the word size
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

memory regions and management in c

A

heap - dynamically allocated memory (managed by the programmer)
stack - for function / method calls (managed by compiler)
static - for data that lives during the whole lifetime of the program (initialised when the process starts

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

extern

A

extends the scope before the definition and to other files

20
Q

static

A

lets it hide from other files

21
Q

what does xor instruction do

A

inverts the bits

22
Q

in a processor with caches, an index is used to

A

locate the data in a direct mapped cache

23
Q

data representation affects what two things

A

circuit complexity
circuit speed

24
Q

name one thing that will not trigger a processor exception

A

cache miss

25
Q

combinational logic

A

logical system whose blocks do NOT contain memory

computes some output given some input

26
Q

sequential logic

A

logical system whose blocks contain memory

hence the output depends on the input and current values in the memory

27
Q

three ways all logical circuits can be built

A

and, or, not
nand
nor

28
Q

decoder

A

a logic block that has n-bits input and 2^n bits output where each output is asserted for each input combination

29
Q

multiplexer (MUX)

A

output is one of the inputs selected by a controller

30
Q

what does a multiplexer consist of

A
  1. detector that generates n different input values
  2. array of n AND gates
  3. one OR gate (that combines the output of the AND gates)
31
Q

32-bit adder

A

a circuit made by connecting 32 adders

32
Q

propagation delay

A

time between input signal change and output signal change at the other end

33
Q

three things that the propagation delay depends on

A
  1. technology
  2. delay through each gate
  3. number of gates driven by gates output
34
Q

asynchronous

A

state of circuit changes whenever input changes
(there is no clock)

35
Q

synchrouous

A

state can only change at times synchronised to an external signal (or clock)

36
Q

edge triggered clock

A

clock scheme in which all changes occur on the clock edge

37
Q

D flip flop

A

a memory element for which an output is equal to the value of the stored state inside the element

for which the internal state is changed only on the clocks edge

38
Q

D latch

A

A memory element for which an output is equal to the value of the stored state inside the element

for which the internal state changes whenever the appropriate input changes and clock is asserted

39
Q

setup time

A

the minimum time that the input to the memory device must be valid before the clock edge

40
Q

hold time

A

a minimum time during which the input must be valid after a clock edge

41
Q

Two details of the FSM

A

synchronised, every change happens in a clock cycle

sequential logic can be described via a FSM

42
Q

glitch

A

when different inputs have different delays

43
Q

Moores law

A

the number of transistors doubles every 18 - 24 months. at the same time the cost of the transistor reduces

44
Q

compiler

A

a program that translates a high level language (C, java) into aa sequence of assembly language statements

45
Q

assembly language

A

a symbolic representation of machine instructions

46
Q

operating system

A

a supervising program that manages all programs in a computer such as
1. basic I/O interaction
2. allocation and memory
3. protection of sharing the computer

47
Q

load instruction

A
  1. calculate address - 16 bit offset (sign extended) + first register source operand
  2. read from memory
  3. store in destination register