Day 7 Flashcards

1
Q

Describe the data path

A

Registers are connected to the ALU to form a data-path, over which the data flow. The basic operation of the data path consists of selecting one or two registers, having the ALU operate on them, and stroing the result in some register.

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

Describe the control unit

A

The control unit is responsible for fetching instructions from main memory and determining their type. The arithmetic logic unit performs operations such as addition and Boolean AND needed to carry out the instructions.

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

What is a bus?

A

A bus is a collection of parallel
wires used to connect the components of a computer.

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

Describe the idea behind the latch?

A
  • latch is a combinational circuit used to “save” memory.*
  • It is composed of two NOR gates, inputs : S-set, R-reset, Q and Q’.*
  • while S=R=0, the values of Q and Q’ are saved.*
  • If S=1 R=0 -> Q=1 Q’=0*
  • If S=0 R=1 -> Q=0 Q’=1*
  • If S=R=1 we have a problem - inconsistency.*
  • We use a clock to control the sensitivity of the circuit to S and R.*
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Describe the idea behind flip flops

A

Flip Flops are used when we want to have the circuit sensitive only at the shift of the clocks from 1 to 0 or from 0 to 1.

It uses the delay of the inverter in order to do so.

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

Describe the order of operations on A and B

On which input(A or B) does a one-regiter-operation being executed?

A
  • A comes first. For instance, Sub -> A-B
  • one-register-operation is done on B
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which instructions are being executed for each instruction in T0-T2?

What should you write on test?

A
  • fetch & execute
  • On test, T0-T2: fetch
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Note: refering to memory is done using a bus different from that of the CPU, thus we can perform two operations simultaneuosly.

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

Mention a very important point about A

A

A has no output. It is used merely to save the value of some register before having a computation to be stored in C. C of course has an output.

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

Solve “swap Ra,Rb”

Solve “shc Ra,Rb,Rc”

using only A,C

Recall: MA,MD are not used for temporary computations.

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

Just recall

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

What are the 11 control signals?

A

C=B, INC4, AND, OR, ADD, NOT, SUB, SHR, SHL, SHC, SHRA

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

When do we use wait?

A

after reading from memory, we need to wait for the operation to be completed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
  • Explain ld control signal.
A
  • save on n last 5 bits of some register.
  • Decr - n=n-1
  • Goto6 - repeat T6 until n = 0.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are combinational circuits?

A

A circuit with multiple inputs and multiple outputs in which the outputs are uniquely determined by the current inputs. Note: not all circuits act this way; circuits containing memory elements may well generate outputs that depend on stored values as well as the input variables.

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

What is a multiplexer?

A

A circuit with 2^n inputs, one data output and n control inputs that select one of the data inputs

17
Q

What is a decoder?

A

A circuit that takes an n-bit number as input and uses it to select exactly one of the 2^n output lines.

18
Q

What is a comparators?

A

compares two input words

19
Q

Describe the computation of CON

A
20
Q

Recall all exercises

A
21
Q

CONin is always connected to..

A

CON

22
Q

read again add with 2 buses and 3 buses

A
23
Q

Recall

A
24
Q

Recall the structure of the 2-bus Microarchitecture

A
25
Q

Recall the structure of 3-bus microarchitecture

A
26
Q

Explain

A

if not edge triggered, PC might stay sensitive even after PC has changed to be PC=PC+4. Causing an additional assignment.