Qs I got wrong Flashcards

1
Q

Explain how a logic component which takes in n inputs and outputs m outputs can be seperated into similar components

A

Combinatorial lofic component comtinuously computes the outputs from inputs alone

for a component
f: B^n -> B^m we can define
fi: B^n -> B

therefore
f(x) = f0(x) || f1(x) || … || fm-1(x)

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

What are the two key things an FSM machine will do during a clock cycle

A

compute r = w(Q,x)
an output

and
Q’ = g(Q,x)
a next state

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

Why must an FSM’s clock cycle be limited by the critical path

A

Because if the clock cycle ends before the output pr the next state is calculated the fsm will malfunction

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

why does the program counter not have to be addressable as a general purpose register

A

the program counter does have a special purpose but that can be realised by addressing it as a GPR
but it does not have to be done that way as it has specific instructions

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

Why is it harder to alter the ISA than the associated micro architecture

A

the ISA is exposed to the software unlike the micro arch
so altering ISA potentially impiles altering software along with compiler os etc

while micro arch doesn’t

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

when will a hardware interrupt be handled

A

Hardware interrupts are asynchronous with the fde cycle so can occur at any time and the processor will check for interrupts at the start of the fetch and so the hardware interrupt will be handled then

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

define a buffer overflow

A

data is written beyond the bounds of the buffer allowed for memoyr

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

why is an address base and size for a program not enough to stop all cases of buffer overflow

A

is the address is beyond the bounds of the array but within the buffer allocated.

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

in ARM v7 A what is the pc also known as

A

r15

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

in ARM V7 A what is j

A

an unconditional branch

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

When checking how many bits are needed to store an instruction what are the key things to remember

A

the off set of an address if applicable
if its byte addressable only find out the capacity in bytes not bits

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

Explain how CPU read from memory in synchronuous busses

A

CPU sends memory address
signals read request
waits fied amount of clock cycles
CPU copies data off bus
CPU removes read request signals

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

Explain how CPU read from memory in asynchronuous busses

A

CPU send memory address
signals read request
CPU signals ready
waits until memory signals read
CPU copies of bus
CPU removes read request

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