1P3 Digital Circuits Flashcards
How do you solve a circuit for a digital gate?
Plot the characteristic of the bottom item first, and plot the mirror of the top item starting from the supply voltage.
How do you work out the inverter characterstic for a resistor - NMOS combo?
By plotting resistor characterstics on top of the transistor one, and esting the Vds for different values of Vgs.
How are NOR circuits designed?
two transistors in parallele.
How are NAND circuits designed?
two transistors in series.
What limits the speed in NMOS logic?
the parasitic capacitance between the output voltage and the ground. Can take up to 30ns.
How can transistors behave like resistors?
By connecting the gate to the drain so Vds = Vgs.
Leads to a resistance of around 900 ohms
Advantages of using FET as a resistor?
Much smaller on the chip
When is power consumed in a resistor NMOS combo?
When Vin is high, there will be a current on the order of 10mA, large power dissapation.
What is a CMOS inverter?
PMOS and NMOS in series. With drain adjacent to drain. Vin connected to the gate of both.
List the advantages of CMOS logic.
Much better inverter characteristic closer to ideal, almost vertical at 5V.
Due to the nature of intersecting, charactersitics.
Much lower power dissapation, Only dissapated whilst the device is changing state.
Low propogation delay (8 - 50ns)
A + (A.C) =
A
A.(A+C)=
A
A + (B.C…) =
(A+B).(A+C)…
A.(B+notB)=
A
What is the quickest way to find an expression for Y in terms of sum of products? (Boolean algebra)
Write down an expression for Y directly
What is the quickest way to find an expression for Y in terms of product of sums?
find an expression for notY and use demorgans
How to work out a circuit purely using NAND gates?
Write down the Karnaugh map and find the sum-of-products, the use De Morgan to convert this to a NAND based expression.
How to work out a circuit purely using NOR gates?
Write donw simplest sum of products for the inverse of the ouput, use De Morgan to convert.
How do you make a 5 variable Karnaugh map?
Place two 4 variable Karnaugh maps next to one another.
What is a static 1 hazard.
When propogation delays of the logic gates result in in the output switching from 1 to 0 and then back to 1 due to a single change in input.
What is static zero hazard.
When propogation delays of the logic gates result in in the output switching from 0 to 1 and then back to 0 due to a single change in input.
How do you fix a static 1-hazard?
Drawing a Karnaugh map of the ouput and making sure all of the sums of products overlap.
How do you fix a static 0-hazard?
Drawing a Karnaugh map of all the inverse of the ouputs, making sure all of the sums of products overlap.
What is a dynamic hazard?
When a signal changes more than once when it’s supposed just to change once.
What is unit distance codes?
Where only one bit changes at time.
For an 8 bit signed number, what set of numbers represents positive, and what set represents negative (in hex)?
Positive 00 - 7F
Negative 80 - FF
Convert a positive number to a negative number how?
invert all the bits then add 1.
When does 2’s complement overflow?
When the carry into MSB is not equal to the carry out of MSB.
Deliberately ignoring carry out into MSB.
What is Binary Coded Decimal?
When each digit of the decimal number is stored as one 4 bit segment.
How many bits are used for Alphanumeric character codes?
7 bits, first 32 are control codes, rest are upper, lower case letters, numbers and punctuation.
8 bits for an extraa 128 graphics characters.
What is parity?
A form of error detection, sets a particular bit to ensure an even number of bits are always on. Can reject if there are an odd number of bits.
Can only detect 1 bit errors.
What is an S-R bistable?
A set reset bistable, simplest form.
Works except for the case S=R=1.
Q1 = S + not (Q2) = not(not(s).Q2)
Q2 = R + not(Q1) = not(not(R).Q1)
How does a gated SR bistable work?
Can only change state when the gate input is high.