Chapter 43 - Adders and D-type flip-flops Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Is it possible to output the results of a binary addition or subtraction?

A

» Yes with the right combination of gates

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

What is a half adder?

A

» An adder performs binary addition and subtraction

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

What is the purpose of a half adder?

A

» Performs addition of 2bits

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

How many inputs and outputs does a half adder produce?

A

» Takes an input of 2 bits of A and B and outputs results S and carry C

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

What gates does a half-adder consist of?

A

» XOR gate
» AND gate

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

What does S represent?

A

» The sum and is equal to A XOR B

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

What does C represent?

A

» Represents the Carry and is equal to A AND B

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

What are the disadvantages of a half adder?

A

» Can only add one bit
» No third input so cannot use the carry from a previous addition to add n bit numbers

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

If A and B was both 1, what is the value of S and C in a half adder?

A

» S = 0
» C = 1

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

What is a full adder?

A

» Consists of 2 half adders to add three bits together including the inputs A and B and a Carry bit

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

How many inputs and output does a full adder have?

A

» Has 3 inputs, A, B, and C(in)
» 2 outputs, the SUM(S) and C(out)

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

What gates does the full adder consist of?

A

» 2 XOR GATES
» 2 AND GATES
» 1 OR GATE
» 2 half adders and 1 OR

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

What is the boolean logic of S and C(out) in a full adder?

A

» S = (A XOR B) XOR C(in)
» C(out) = ((A XOR B) AND C ) OR ( A AND B)

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

What does concatenating full adders do?

A

» Can be connected to make n full adders
» Can input the carry bit into a subsequent adder along with the 2 new inputs

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

How can you simply add the adders together?

A

» Draw a diagram, with A0, B0, S0 and so on
» Then simply add the values and where appropriate carry a single bit

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

What is a flip flop?

A

» An elemental sequential logic circuit that can store on bit and flip between 2 states, 0 and 1

17
Q

» How many inputs does a D - Type flip flop have?

A

» 2 inputs one called D
» Other one called clock signal input

18
Q

What is the clock?

A

» Or also known as the oscillator is another type of sequential circuit that changes state at regular time intervals

19
Q

Why is the clock needed?

A

» Needed to synchronise the change of state of flip flop circuit

20
Q

What is the clock perod?

A

» The time between the 2 rising edge

21
Q

What is the clock width?

A

» The width between the rising edge, and falling edge

22
Q

When can the D- type flip flop only change states?

A

» Changes on the rising edge of of the clock signal

23
Q

What does the D stand for in D-type flip flop?

A

» D stands for Data or Delay

24
Q

What does it mean by a positive edge triggered flip flop?

A

» Can only change the output value from 1 to 0

25
Q

What happens when the clock is not a positive edge?

A

» The input value is held and does not change

26
Q

Why is a D-type flip flop important?

A

» Can be used as a memory cell to store the state of a bit

27
Q

When does the output Q take a new value?

A

» When the value at D has changed at the point of a clock pulse
» This means the clock pulse will freeze or store the input value of D until the next clock pulse

28
Q

What are the uses of the D-type flip flops?

A

» Creating registers and counters
» Used for intermediate storage needed using arithmetic operations

29
Q

What is Static RAM?

A

» RAM that is created using several D-Type flip flops

30
Q

» What are the advantages of SRAM?

A

» Much faster then DRAM - Dynamic RAM

31
Q

What are the disadvantages of SRAM?

A

» More expensive then DRAM

32
Q

What is SRAM and DRAM used for?

A

» SRAM used for cache memory
» DRAM used for main memory

33
Q

How many flip flops are required to store 8 - bits?

A

» 8 flip flops

34
Q

Describe how the clock signal in a D type flip flop works?

A

» Clock signal is a regular steady pulse used by a CPU to time operations
» Output Q can only be altered at the beginning of a clock signal
» Change to Q will only occur if D is in a different state to what it was at the start of the previous clock signal

35
Q

What binary operation is performed by adders?

A

» Addition

36
Q

Explain what a Full adder circuit does

A

» This circuit consists of 2 half adders, and is called a full adder.
» It has 3 inputs called A, B and C(in), A and B are the inputs from the computer, and C(in) is the carry bit.
» This logic circuit produces the sum of A, B and Cin using XOR gates, the sum is then stored in a seperate memory location.
» C, out is the carry bit and in the next fuller adder it will be represented as Cin, C, out is the carry bit from the 3 inputs of A, B and Cin