Mixed Logic - ECE 2020

2y ago
15 Views
2 Downloads
252.24 KB
7 Pages
Last View : 1m ago
Last Download : 3m ago
Upload by : Kaleb Stephen
Transcription

Mixed LogicIntroductionMixed logic is a gate-level design methodology used in industry. It allows a digital logic circuit designerto separate the functional description of the circuit from its physical implementation. For example,consider the function:F A·BThis is a functional description. Two possible physical implementations are listed below, one using aNAND gate and inverters, the other using a NOR gate and inverters (note that we represent the NORusing the DeMorgan equivalent):ABNANDFABNORFBoth of the above circuits implement the same function, but are different physical implementations.Which is easier to read? Ideally, the implementation of the circuit should not affect your ability to figureout what the circuit does. The goal of mixed logic design is to:1. Separate what the circuit does from how it does it ; and2. support self-documenting circuits.AnalysisBefore getting into the details of how to design a mixed-logic circuit, let us modify the circuit of thepreceeding example to see how mixed-logic notation works. Using mixed-logic notation, the above circuits are now illustrated as:ABNANDFABNORFNote the vertical bars in both circuits. They do not represent physical circuit elements (e.g. logicalinverters) – they are simply a form of notation. To read a circuit using mixed logic notation:1. Ignore all bubbles on logic gates and inverters. This means(a) Read all gates in terms of the underlying gate body that is drawn. For example, in both casesabove, read the NAND and NOR as AND gates ; and(b) ignore all physical inverters.2. Wherever you see a vertical bar with a bubble, take the complement.1

Thus when reading the circuit left to right, a bar should exist everywhere that a complement exists inthe corresponding logic equation. By not worrying about every physical inversion, it is much easier toread the function implemented by the circuit.Many students make the mistake of interpreting the vertical bars as physical inverters. The vertical barsare just a form of notation to indicate where complements occur in the underlying function.In both examples above, A is complemented yielding A. Ignoring all physical inverters and treatingboth logic gates as an AND, the output of the gate is AB. Inverting the output by the vertical bar afterthe logic gates results in AB.DesignMixed logic design is based on the key observation of DeMorgan’s theorem: logical operations haveequivalencies when their inputs and outputs are inverted. DeMorgan’s square, shown below, illustratesthe equivalencies of the four basic gate types.invert outputinvert 011ORAB0001101110000111Inverting the output of the gate moves horizontally in the square. Moving vertically is accomplished byinverting all gate inputs (turning the truth table upside down).Each of the four fundamental gate types has both an AND-based and OR-based functional equivalency,based on DeMorgan’s theorem. You have already seen this for NAND and NOR gates, but it applies toAND and OR gates as well. While it may seem counterintuitive to draw an AND gate as an OR bodywith inverted inputs and outputs, this variation makes mixed logic design possible.2

Design Example 1Design a logic circuit for the functionF A (B · C)If implemented in a straightforward manner using traditional gate symbols, its implementation would be:ABFCWhat if we wanted to implement it using just NAND gates? Or only NAND and NOR gates? Or anyother constraint on what logic gates are used for the physical implementation? The basic design rulesfor implementing a mixed logic design are:1. All logic operations in the function (sum and product) become gate bodies in the circuit. Drawthe circuit using just AND and OR gates where sum and product terms occur.2. Draw vertical bars in the circuit where all complements in the logical function occur.3. Now depending on your design constraints, substitute for the AND and OR gates whatever gatesyou wish to use (NAND/NOR/AND/OR) using the appropriate equivalent body (AND/OR, asshown in DeMorgan’s square). In other words,(a) implement all OR operations in the logical function using the OR equivalency of the logicgate of your choice ; and(b) implement all AND operations in the logical function using the AND equivalency of thelogic gate of your choice.4. Draw bubbles on all the vertical bars.5. All bubbles in the circuit should be paired so that they cancel out. A bubble may be paired with:(a) another bubble on a logic gate ; or(b) a bubble on a vertical bar.The vertical bars with bubbles do not represent physical devices (like physical inverters). They arejust a form of notation to represent a logical complement in the underlying function. Anywhere apairing of a bubble is not possible, place a physical inverter.Now your circuit implementation is complete.To illustrate mixed logic design, we will implement the function above four different ways: using NANDgates and inverters, NOR gates and inverters, AND gates and inverters, and OR gates and inverters.First, draw the circuit graphically (this is not a physical implementation), using AND/OR gates for theoperations and the vertical bars for the complement. As a reminder, F A (B · C).3

ABFCNow using the above as a starting point, design it using just NAND gates and inverters.1. Implement the AND and OR operations of the circuit using the corresponding equivalencies ofthe NAND gate.ABFC2. Draw a bubble on each inversion bar.ABFC3. All bubbles in the circuit should be paired so that they cancel out. A bubble may be paired with:(a) another bubble on a logic gate ; or(b) a bubble on a vertical bar.Insert physical inverters where necessary to make this happen.ABFCYou’re done! You’ve now implemented the circuit using 2 NAND gates and 3 inverters, which requires14 transistors (4 each for the NAND gates, 2 each for the inverters). The circuit is also self-documenting,in that by ignoring the inverters and bubbles on the gates and just paying attention to the vertical barsand the underlying gate body, you can easily read off the function being implemented.The figure below shows 4 different circuit implementations of this function, each using a different typeof gate (NAND, NOR, AND, OR). All circuits implement the same function. The first is the examplethat you just saw. Also shown with each circuit is the transistor count for that particular implementation.4

ABFNAND (14)FNOR (14)FAND (18)FOR (14)CABCABCABCNote that three of the four circuits have similar transistor counts, while the AND-based implementationrequires more. Why would you choose a particular implementation? There are three general reasons.1. To reduce transistor count.2. Component reuse. Prior to the development of programmable logic, digital circuit boards wereimplemented entirely with chips (integrated circuits, or ICs) that would have a fixed number ofgates on them. For example, an IC called a 7400 is a “quad 2-input NAND gate.” It has 4 NANDgates on it that can be wired up to other ICs. If the designer had one spare NAND gate unallocatedon an IC, she may choose to fit it into a circuit design rather than add another chip to the circuitboard. While this is not used as much in practice today, many “real-world” design projects todayoften require re-designing or reverse engineering older circuit implementations that have usedsuch techniques.3. More component reuse. Today, technologies such as programmable devices, field-programmablegates arrays (FPGAs), and very-large scale integrated circuits (VLSI), allow very high densitylogic programming on individual chips. At this level of density, logic design is typically doneusing software development tools, and designers typically have libraries of parts pre-designed forparticular sub-circuits or functional implementations.Design Example 2Consider implementing the functionF (A B) · (C D)using just NOR gates.Again, the form of the functional expression is independent of implementation. First represent the function graphically:5

ABFCDWhile not an implementation, this circuit shows the logical combination of the inputs that yields theappropriate output. The bars represent where an inversion of the signal is required, and correspond tothe complementing bars in the actual function. This basic structure remains unchanged regardless of thegate types used to implement it.To realize an implementation using NOR gates, again follow the mixed-logic design procedure. First,replace all the gates with the AND/OR equivalency for the NOR gate. Second, place vertical bars withbubbles where each complement should occur. Third, add inverters where necessary so that all bubblesare paired up. Your final implementation should look like:you can draw an inverterlike this if you wish .ABNORNORCDFNORThere is no reason why we are constrained to using one particular type of gate. The circuit below implements the same function using NAND gates for the OR terms and NOR gates for the AND terms.ABNANDNORCDFNANDDesign Example 3Here’s another example, showing a circuit implemented with just NOR gates using mixed-logic notation.ABFCD6

Thanks to mixed-logic notation, it is relatively easy to extract the implemented function. Reading thecircuit from left to right, ignoring all bubbles, and complementing where vertical bars occur:F (A (B · C)) · ((B · C) D)The fact that this implementation includes only NOR gates neither changes nor distorts the behavior ofthe circuit. Not the common subexpression ((B · C) used in two places in the circuit. When bubbles areadded to an output wire that is used in multiple places (fanout 1), multiple bubbles on the “consumerend” must be added to match the bubble on the “producer-end.” This can be seen when this circuit isre-implemented using just NAND gates.ABFCDSummaryIn summary, mixed logic design:1. Decouples the functional behavior of a circuit from its physical implementation ;2. supports self-documenting circuits ;3. provides a simple process to re-implement a circuit using different gate types.7

The goal of mixed logic design is to: 1. Separate what the circuit does from how it does it ; and 2. support self-documenting circuits. Analysis Before getting into the details of how to design a mixed-logic circuit, let us modify the circuit of the preceeding example to see how mixed-logic notation works. Us

Related Documents:

Electrical & Computer Engineering Student Affairs Office ece.ucsd.edu . ECE 174. ECE 175A: ECE 175B* Year 4: ECE 171B* ECE 172A* DESIGN. PROF. ELECTIVE: PROF. ELECTIVE. TECH. ELECTIVE: TECH. ELECTIVE. MACHINE LEARNING & CONTROLS DEPTH *Pick one of ECE 171B, 172A or 175B to complete the 4th Depth course requirement.

ECE 429: Audio Electronics ECE 461: Introduction to VLSI ECE 466: RF and Microwave Integrated Circuits ECE 468: Advanced Analog CMOS Circuits and Systems ECE 469: High Speed Integrated Electronics . Computer Design and Computer Engineering Concentration Requirements . ECE 401: Advanced Computer Architecture Two of the following .

Dynamic Logic Dynamic Circuits will be introduced and their performance in terms of power, area, delay, energy and AT2 will be reviewed. We will review the following logic families: Domino logic P-E logic NORA logic 2-phase logic Multiple O/P domino logic Cascode logic

MOSFET Logic Revised: March 22, 2020 ECE2274 Pre-Lab for MOSFET logic LTspice NAND Logic Gate, NOR Logic Gate, and CMOS Inverter Include CRN # and schematics. 1. NMOS NMOSNAND Logic Gate Use Vdd 10Vdc. For the NMOS NAND LOGIC GATE shown below, use the 2N7000 MOSFET LTspice model that has a gate to source voltage Vgs threshold of 2V (Vto 2.0).File Size: 586KB

Digital Logic Fundamentals Unit 1 – Introduction to the Circuit Board 2 LOGIC STATES The output logic state (level) of a gate depends on the logic state of the input(s). There are two logic states: logic 1, or high, and logic 0, or low. The output of some gates can also be in a high-Z (high impedance) state, which is neither a high

categorical and hypothetical syllogism, and modal and inductive logic. It is also associated with the Stoics and their propositional logic, and their work on implication. Syllogistic logic and propositional logic led later to the development of predicate logic (or first order logic, i.e. the foundational logic for mathematics)

11. ECE 6020 Multirate Systems 2 0 0 4 3 12. ECE 6021 Adaptive Signal Processing 2 0 0 4 3 13. ECE 6022 Optical Broadband Access Networks 2 0 0 4 3 14. ECE 6023 RF MEMS 3 0 0 0 3 15. CSE 6051 Information and Network Security 3 0 0 0 3 3. ECE 5011 Advance

know not: Am I my brother's keeper?” (Genesis 4:9) 4 Abstract In this study, I examine the protection of human rights defenders as a contemporary form of human rights practice in Kenya, within a broader socio-political and economic framework, that includes histories of activism in Kenya. By doing so, I seek to explore how the protection regime, a globally defined set of norms and .