Lecture 3 - Combinatorial and Sequential Circuits Flashcards

NOTE: NEED TO REFER TO SLIDES AS IT IS MAINLY IMAGES

1
Q

What are combinational circuits?

A
  • Everything is a combination of AND, OR, NOT gates (or just NAND gates, or just NOR gates)
  • There are no feedback loops!
  • There is no memory, every output line is a simple function of its inputs
  • Arbitrarily complex circuits can be built from AND/OR/NOT gates
  • The output will only depend on the input lines (after some propagation delay)
    REFER TO SLIDES FOR TRUTH TABLES
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is De Morgans Law for NOT (A OR B) and NOT(A AND B)

A

NOT (A OR B): NOT A AND NOT B
NOT(A AND B): NOT A OR NOT B

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

What is a decoder?

A

A decoder takes two inputs and splits it into four outputs where one is set to high (set to 1) based on the combination of two inputs. This is tyically when x1 = 0 and x0 = 0. REFER TO SLDIES

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

What is an encoder?

A

Takes four inputs and outputs 2 outputs, the idea is to take one of the four inputs which are mutually exclusive and convert it to binary code on the output lines

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

What is a multiplexer?

A

It can take to two of more inputs based on what it is connected to (ie for a cpu you can have load, add, sub, clear, etc) and then output a value based on that

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

What is a demultiplexer?

A

It takes one input and has several outputs

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

What is a half-adder?

A

It essentially adds two single bit binary numbers together, where it produces a sum bit and a carry bit. Think of it this was if I wanted 1 in binary that is just 1 so the sum is 1 and the carry is 0. Now if i had both a = 1 and b = 1, this is 2, therefore the sum = 0 and there is a carry of 1

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

What is an adder?

A

Addition of 3 bit inputs results in a 2 bit output

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

What needs to be considered when doing a full adder with n stages?

A

You get something called a ripple carry, which is the carry-out from each adder “ripples” into the carry-in of the next adder, hence the name “ripple carry adder. REFER TO SLIDES - but if i have 4 full adders you first need to consider the delay, the longest path is 3 and there are 4 adders hence a delay of 12 is necessary. But you dont need a carry for the lowest bit at 0 typically and so instead you ground it.

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

What is a tri-state (tri-state buffer)?

A

A tri state (also known as a tri state buffer is used to allow multiple devices to share the same output line without interfere using either the high or low states to determine what can and cannot pass. It takes a signal (or a high on the circuit) to change what is and isnt allowed through

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

What is a feedback loop?

A
  • This will allow to “trap” a single bit of information
  • It is the smallest instance of a memory cell
  • Required functions:
    – Change the bit (set to 1 or reset to 0)
    – Read the current bit value
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Understanding memory…

A

REFER TO SLIDES

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

Memory - What happens if R,S are both set to 1, then reset to 0?

A

*Uncontrolled oscillation
*That’s is why this state is illegal

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

What is an RS latch/flip flop

A

Essentially it takes two input S and R and outputs Q and NOT Q, based on the inputs it will do 1 of 4 things: hold previous state, reset Q to 0, set Q to 1 or be invalid. REFER TO SLDIES AND NOTE THAT A LATCH AND FLIP-FLOP DIFFER IN THE WAY ITS TRIGGERED

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

What is a D latch/flip flop

A

Is a simplified version of an RS flip-flop, which takes a clock input a d input and will output either Qn (previous state), 0 or 1

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

What is a JK flip flop?

A

REFER TO SLIDES

17
Q

What is a register?

A
  • Several flip-flops can be combined into one register.
  • An n-bit register is a group of n binary storage cells (flip-flops).
  • Registers are classified according to the number of bits of storage and operating mode:
    – parallel in – parallel out (PIPO) ç standard, this is what we’ll use
    – parallel in – serial out (PISO)
    – serial in – parallel out (SIPO)
    – serial in – serial out (SISO)
    – universal (control signals for either serial or parallel op.)
  • Registers are commonly used as temporary storage in a processor.
    – They are faster and more convenient than main memory.
    – More registers can help speed up complex calculations.
18
Q

KMAPS

A

GO OVER THEM