660 likes | 908 Views
COMBINATIONAL LOGIC DESIGN PRACTICES. COMBINATIONAL LOGIC DESIGN PRACTICES. DOCUMENTATION TIMING DECODERS ENCODERS THREE-STATE DEVICES MULTIPLEXERS XOR GATES AND PARITY CIRCUITS COMPARATORS. DOCUMENTATION. WHAT? SPECIFICATION: INTERFACE, FUNCTION HOW? BLOCK DIAGRAM SCHEMATIC DIAGRAM
E N D
COMBINATIONAL LOGIC DESIGN PRACTICES • DOCUMENTATION • TIMING • DECODERS • ENCODERS • THREE-STATE DEVICES • MULTIPLEXERS • XOR GATES AND PARITY CIRCUITS • COMPARATORS
DOCUMENTATION • WHAT? • SPECIFICATION: INTERFACE, FUNCTION • HOW? • BLOCK DIAGRAM • SCHEMATIC DIAGRAM • TIMING DIAGRAM • STRUCTURED LOGIC DEVICE DESCRIPTION • CIRCUIT DESCRIPTION
BLOCK DIAGRAMS • INPUTS, OUTPUTS • FUNCTIONAL MODULES • DATA PATHS • CONTROL SIGNALS
BUS • COLLECTION OF TWO OR MORE RELATED SIGNALS • SLASH AND NUMBER: NUMBER OF SIGNALS
SIGNAL NAMES • WELL CHOSEN NAMES CONVEY INFORMATION
SIGNAL ACTIVE LEVELS • ACTIVE HIGH • ACTIVE LOW • ASSERTED WHEN AT THE ACTIVE LEVEL • DEASSERTED (NEGATED) WHEN NOT AT THE ACTIVE LEVEL
NAMING CONVENTION • ACTIVE HIGH: GO, PAUSE, READY • ACTIVE LOW: GO~, PAUSE.L, /READY, ETC.
ACTIVE LEVELS FOR PINS • INVERSION BUBBLE: ACTIVE LOW • NO INVERSION BUBBLE: ACTIVE HIGH
COMBINATIONAL LOGIC DESIGN PRACTICES • DOCUMENTATION • TIMING • DECODERS • ENCODERS • THREE-STATE DEVICES • MULTIPLEXERS • XOR GATES AND PARITY CIRCUITS • COMPARATORS
CIRCUIT TIMING • TIMING DIAGRAM • RELATIONSHIPS AMONG INTERNAL SIGNALS • REQUIREMENTS ON EXTERNAL SIGNALS • CAUSALITY • DELAY TIMING TABLE • DELAYS RANGE: MINIMUM, MAXIMUM, TYPICAL • PROPAGATION DELAY (tHL, tLH,…)
TIMING SPECIFICATIONS • MAXIMUM: HOW DID THEY MEASURE IT? • TEMPERATURE (25 °C, 40 °C, …) • CAPACITIVE LOAD (0 pF, 50 pF, …) • VCC (3.3V, 5V, …) • TYPICAL • IDEAL? • MINIMUM • WORK FOR ZERO DELAY? • TEMPERATURE, LOAD, VCC, …
TIMING ANALYSIS • COMPLEX FOR LARGE CIRCUITS • CAD TOOLS HELP, BUT: • NEED TO UNDERSTAND WHAT THE RESULTS ARE • OFTEN MANY CONTROLS NEED TO KNOW HOW TO TEST
COMBINATIONAL LOGIC DESIGN PRACTICES • DOCUMENTATION • TIMING • DECODERS • ENCODERS • THREE-STATE DEVICES • MULTIPLEXERS • XOR GATES AND PARITY CIRCUITS • COMPARATORS
DECODERS • MULTIPLE INPUT, MULTIPLE OUTPUT CIRCUIT THAT CONVERTS CODED INPUTS TO CODED OUTPUTS • INPUT AND OUTPUT CODES ARE DIFFERENT • ONE-TO-ONE MAPPING
BINARY DECODERS • n-TO-2n DECODERS • ACTIVATE EXACTLY ONE OF 2n OUTPUTS BASED ON n-BIT INPUTS
CASCADING BINARY DECODERS • 74x138 HAS BOTH ACTIVE HIGH AND ACTIVE LOW ENABLE INPUTS • WITH TWO 138s WE CAN ENABLE OR THE OTHER USING THE MSB
COMBINATIONAL LOGIC DESIGN PRACTICES • DOCUMENTATION • TIMING • DECODERS • ENCODERS • THREE-STATE DEVICES • MULTIPLEXERS • XOR GATES AND PARITY CIRCUITS • COMPARATORS
ENCODERS • MULTIPLE INPUT, MULTIPLE OUTPUT CIRCUIT THAT CONVERTS CODED INPUTS TO CODED OUTPUTS • OUTPUT CODE HAS FEWER BITS • ONE-TO-ONE MAPPING
BINARY ENCODER • 2n-TO-n ENCODER • INPUT: 1-OUT-OF-2n CODE • OUTPUT: n-BIT BINARY CODE
BINARY ENCODER Y0=I1+I3+I5+I7 Y1=I2+I3+I6+I7 Y2=I4+I5+I6+I7
COMBINATIONAL LOGIC DESIGN PRACTICES • DOCUMENTATION • TIMING • DECODERS • ENCODERS • THREE-STATE DEVICES • MULTIPLEXERS • XOR GATES AND PARITY CIRCUITS • COMPARATORS
THREE-STATE DEVICES • ENABLE - DEVICE “FLOATS” • FLOATS = HIGH IMPEDANCE STATE = = HI-Z STATE = DISCONNECTED STATE
MULTIPLE SOURCES ON THREE-STATE PARTY LINE • MULTIPLE THREE-STATE DEVICES CAN SHARE SINGLE LINE • FIGHTING • DEAD TIME
STANDARD THREE-STATE BUFFERS • HYSTERESIS? • BUFFERS • TRANSCEIVERS
COMBINATIONAL LOGIC DESIGN PRACTICES • DOCUMENTATION • TIMING • DECODERS • ENCODERS • THREE-STATE DEVICES • MULTIPLEXERS • XOR GATES AND PARITY CIRCUITS • COMPARATORS
MULTIPLEXERS • DIGITAL SWITCH
THREE-STATE MUXES • DISABLED OUTPUT HI-Z INSTEAD OF 0: • 74x151 74x251 • 74x153 74x253 • 74x157 74x257
EXPANDING MUXES • EXPAND THE NUMBER OF BITS MULTIPLE 74x151s… • FANOUT • EXPAND THE NUMBER OF SOURCES
DESIGN EXAMPLE • CREATE A MUX-DEMUX SYSTEM FOR A 2-BIT BUS • 4 2-BIT INPUTS TO 4 2-BIT OUTPUTS • USE STANDARD TTL CHIPS FROM BOOK