the basics of logic design Flashcards
the basics of logic design
electronics inside a modern computer are ___________
digital
digital electronics
operate with only two voltage levels of interest: high and low
signals are logically either:
asserted: true or 1
deasserted: false or 0
values 0 and 1 are
complements/inverses
combinational logic blocks
don’t contain memory
output: depends on the current input
logic blocks with memory
output: can depend on both the input and the state
state of the logic block
value stored in memory
logic block with n entries will have a truth table with ___ entries
2^n
OR operator
logical sum
A + B
AND operator
logical product
A · B
unary operator NOT
Ā
identity law
A + 0 = A and A · 1 = A
zero and one laws
A + 1 = 1 and A · 0 = 0
inverse laws
A + Ā = 1 and A · Ā = 0
commutative laws
A + B = B + A and A · B = B · A
associative laws
A + (B + C) = (A + B) + C and A · (B · C) = (A · B) · C
distributive laws
A · (B + C) = (A · B) + (A · C) and A + (B · C) = (A + B) · (A + C)
DeMorgan’s laws
(i) (A ∪ B)’ = A’ ∩ B’
(ii) (A ∩ B)’ = A’ ∪ B’
gates
implement basic logic functions
all logic functions can be constructed with only a single gate type, if that
gate is inverting
NOR and NAND gates
inverting gates
decoders
type of logic blocks used in building larger components
most common type of decoder
has an n-bit input and 2^n outputs, where only one output is asserted for each input combination
encoder
preforms the inverse function of a decoder
multiplexor
basic logic function
also called selectors because the output is one of the inputs selected by a control
multiplexor has __ inputs and they are:
3
two data values + selector
selector value
or control value
determines which of the inputs becomes the output
a multiplexor with n inputs will need ________ selector inputs
log…?
multiplexor consists of __ parts which are:
3
a decoder that generates n signals
an array of n AND gates
a single large OR gate
In a multiplexor, what is the purpose of the array of gates?
each gate combines one of the inputs with a signal from the decoder
In a multiplexor, what is the purpose of the OR gate?
incorporates the outputs of the AND gates
canonical form
every input is either true or a complemented variable, and there are only two levels of gates-AND and OR- with a possible inversion of the final output
two-level representation
logic function written in canonical form
types of two-level representation
sum of products: logical sum of products (terms using the AND operator)
product of sums: the opposite
only those truth table entries for which the function is true generate terms in the equation
we can use the relationship between a ___________ and a _____________
to generate a gate-level implementation of any set of logic functions
truth table
two-level representation
in a logic table each column represents a different ____________
logic function
programmable logic array (PLA)
a structured logic element composed of a set of inputs and corresponding input complements and two stages of logics
stages of logic in PLAs
- generates product terms of the inputs and input complements -> an array of AND gates that form a set of minterms
- generates sum terms of the product terms -> an array of OR gates, each of which forms a logical sum of any number of the product terms
minterms
a set of logic inputs joined by conjunction; the product terms from the first logic stage of the PLA; each product term can consist of any of the inputs or their complements
AND plane
size of the AND gate array
OR plane
size of the OR gate array
a row in the PLA corresponds to _______
each entry where the output is true, because it requires a product term
each output =
a potential row of OR gates in the second stage