170 likes | 354 Views
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices. Documentation Standards. Chapter Outline. Documentation Standards for digital systems. Digital Circuit Timing and Propagation delay
E N D
ECE 2110: Introduction to Digital SystemsChapter 6Combinational Logic Design Practices Documentation Standards
Chapter Outline • Documentation Standards for digital systems. • Digital Circuit Timing and Propagation delay • Combinational Logic Design Structures :- Decoders- Encoders- Multiplexers- Demultiplexers - EXCLUSIVE OR Gates and Parity Circuits- Adders/ Subtractors- Arithmetic Logic Units ( ALUs)
Documentation Standards • Documentation of a digital system should provide the necessary information for building, testing ,operating , and maintaining the system. • Generally, documentation include: 1) A Specification describes what the circuit is supposed to do. 2) A block diagram showing the inputs, outputs, the main building blocks ( modules) of the system and how they are connected. 3) A schematic diagram showing all the components, their types, and all interconnections. 4) A timing diagram showing the logic signals as a function of time. 5) A Circuit description explaining of the operation of the logic circuit.
Block Diagram • A block diagram should show all inputs and outputs , the building blocks and their function names , and the data flow paths ( the logic signals).- The internal details of each block should not be shown.- Related logic signals are combined together and drawn with a double or heavy line, known as a bus • Example: Min/Max Circuit MIN/MAX X Comparator Y X>Y min(X,Y) Mux A bus is a collection of 2 or more related signal lines. Mux Z Mux max(X,Y)
Basic rules • A block diagram must show the most important system elements and how they work together. • Each block diagram should not be more than 1 page. • Large systems may require additional block diagrams of individual subsystems. (a top-level diagram shows the entire system. • Important control signals and buses should have names. • Flow of control and data should be clearly indicated. • Should not include internal details of each block (generally, NO gate symbols, NO pins).
DeMorgan equivalent symbols Which symbol to use? Answer depends on signal names and active levels.
Signal Names • Signal name: a descriptive alphanumeric label for each input/output signal. • In real system, well-chosen names convey information to readers • A signal name indicates • An action that is controlled (ENABLE, REQUEST, GO, PAUSE) • A condition that it detects such as READY_L, ERROR,… • Data that it carries, such as INBUS[31..0], ADDR[15…0]
Active Levels • Each signal name should have an active-level associated with it. A signal is active-high if it performs the named action or denotes the named condition when it’s HIGH or 1. A signal is active-low if it performs the named action or denotes the named condition when it’s LOW or 0. • The signal is asserted when it is in its active level and negated ( or deasserted ) when its not in its active level. • Different naming conventions for active levels available.
Naming conventions • Active low signal has a suffix of _Las part of the variable name. • Example :- ERROR is active high means there is an error when the signal is HIGH ( logic 1).- READY_L is active low means the data is ready when the signal is LOW ( logic 0).
Example LOW when error occurs Logic Circuit ERROR ERROR1_L HIGH when error occurs Logic Circuit ERROR ERROR_L
Signal name, logic expression, logic equation • A signal name is just a name, an alphanumeric label. • A logic expression combines signal names using switching algebra operators (AND,OR,NOT). • A logic equation is an assignment of a logic expression to a signal name. Describe one signal’s function in terms of other signals. • For example: READY_L, READY are signal names. READY’ is a logic expression. • Equation: DATA=ASEL.A+ASEL’.B Logic expression
Active Levels for Pins • When we draw the outline of a logic symbol, we think of the given logic function as occurring inside that outline. • In logic gates and logic structures the inversion bubble indicates the active level of the signal • Examples:- 2-to- 4 Decoder- EN_L is active low- A and B are active high- Y0_L, Y1_L, Y2_L,Y3_L are active low EN_L EN Y0 Y0_L Y1 Y1_L A A Y2 Y2_L B B Y3 Y3_L
More ways of obtaining AND/OR functions (Generalized AND/OR function). • Four ways of AND function: output is asserted if both of its inputs are asserted. • AND gate (74x08): active-high input/output • NAND gate (74x00): active-high input, active-low output • NOR gate (74x02): active-low input, active-high output • OR gate (74x32): active-low input/output • Four ways of OR function: output is asserted if either of its inputs are asserted. • OR gate (74x32): active-high input/output • NOR gate (74x02): active-high input, active -low output • NAND gate(74x00): active-low inputs, active-high output • AND gate (74x08): active-low inputs/output
Next… • Bubble-to-Bubble logic design • Schematics • Drawing Layouts • Reading Wakerly CH-6.1