Chapter 43 - Adders and D-type flip-flops Flashcards
Is it possible to output the results of a binary addition or subtraction?
» Yes with the right combination of gates
What is a half adder?
» An adder performs binary addition and subtraction
What is the purpose of a half adder?
» Performs addition of 2bits
How many inputs and outputs does a half adder produce?
» Takes an input of 2 bits of A and B and outputs results S and carry C
What gates does a half-adder consist of?
» XOR gate
» AND gate
What does S represent?
» The sum and is equal to A XOR B
What does C represent?
» Represents the Carry and is equal to A AND B
What are the disadvantages of a half adder?
» Can only add one bit
» No third input so cannot use the carry from a previous addition to add n bit numbers
If A and B was both 1, what is the value of S and C in a half adder?
» S = 0
» C = 1
What is a full adder?
» Consists of 2 half adders to add three bits together including the inputs A and B and a Carry bit
How many inputs and output does a full adder have?
» Has 3 inputs, A, B, and C(in)
» 2 outputs, the SUM(S) and C(out)
What gates does the full adder consist of?
» 2 XOR GATES
» 2 AND GATES
» 1 OR GATE
» 2 half adders and 1 OR
What is the boolean logic of S and C(out) in a full adder?
» S = (A XOR B) XOR C(in)
» C(out) = ((A XOR B) AND C ) OR ( A AND B)
What does concatenating full adders do?
» Can be connected to make n full adders
» Can input the carry bit into a subsequent adder along with the 2 new inputs
How can you simply add the adders together?
» Draw a diagram, with A0, B0, S0 and so on
» Then simply add the values and where appropriate carry a single bit
What is a flip flop?
» An elemental sequential logic circuit that can store on bit and flip between 2 states, 0 and 1
» How many inputs does a D - Type flip flop have?
» 2 inputs one called D
» Other one called clock signal input
What is the clock?
» Or also known as the oscillator is another type of sequential circuit that changes state at regular time intervals
Why is the clock needed?
» Needed to synchronise the change of state of flip flop circuit
What is the clock perod?
» The time between the 2 rising edge
What is the clock width?
» The width between the rising edge, and falling edge
When can the D- type flip flop only change states?
» Changes on the rising edge of of the clock signal
What does the D stand for in D-type flip flop?
» D stands for Data or Delay
What does it mean by a positive edge triggered flip flop?
» Can only change the output value from 1 to 0