1 / 32

Combinational Logic Design

Combinational Logic Design. Digital Computer Logic Kashif Bashir http://www.taleem.greatnow.com Email: kashif@pafkiet.edu.pk. Module Outline. Combinational Circuits Design Topics Analysis Procedure Design Procedure Decoders Encoders Multiplexers Binary Adders Binary Subtraction

geona
Télécharger la présentation

Combinational Logic Design

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Combinational Logic Design Digital Computer Logic Kashif Bashirhttp://www.taleem.greatnow.com Email: kashif@pafkiet.edu.pk

  2. Module Outline • Combinational Circuits • Design Topics • Analysis Procedure • Design Procedure • Decoders • Encoders • Multiplexers • Binary Adders • Binary Subtraction • Binary Adder-subtractors • Binary Multipliers • Decimal Arithmetic

  3. Combinational Circuits • The outputs are a function of the present set of inputs only • The inside of a combinational circuit is made of logic gates • Combinational logic circuits are important components of digital systems • Each output can be thought of as a function of all the inputs – if there are m outputs and n inputs then there are m boolean functions, one describing each output

  4. Combinational Logic Circuit n Inputs m Outputs Combinational Circuits

  5. Design Topics - Design Hierarchy • Uses divide and conquer approach • Break the circuit into smaller pieces called blocks • If a block is too large break it up into still smaller blocks • At each level or hierarchy we have a representation of the blocks such as block diagram, gates, circuits • Benefits • Reusability of blocks • Quicker design completion • Easier to verify and isolate problems

  6. Figure 3-2

  7. Diagrams Representing the Hierarchy for Figure 3-2

  8. Design Topics - Computer Aided Design • Digital Design of real world systems has become too complex to be done by hand alone • Digital design tools or software helps in creating design and verify it • Uses Hardware Description languages such as VHDL, Verilog • Computer Aided Design Tools exist for: • Schematic Capture • Simulation of Design • Verification • Synthesis • Etc.

  9. Design Topics - Top Down Design • Ideally deign is top down which means the design is specified at very high levels of abstraction as text along with constraints on cost, performance size, reliability, etc. • Then the design is repeatedly divided into smaller and smaller blocks and implemented with these blocks • In order to obtain reusability and to make maximum reuse of predefined modules, often portions of the design are performed bottom-up

  10. Analysis Procedure • Derivation of Boolean Functions • Derivation of the Truth Table • Logic Simulation

  11. Design Procedure • From the specifications of the circuit, determine the required number of inputs and outputs and assigned a letter symbol to each • Derive the truth table that defined the relationship between inputs and putouts • Obtain the simplified Boolean functions for each output as a function f the input variables • Draw the logic diagram • Verify the correctness of the design

  12. Some Design Examples • BCD to Excess-3 code converter • BCD to Seven Segment Decoder

  13. BCD to Excess-3 code converter

  14. BCD to Excess-3 code converter K-Maps

  15. BCD to Excess-3 code converter Logic Diagram

  16. Decoder Combinational Logic Circuit n Inputs 2n Outputs Decoders • n to 2n decoder - a combinational logic circuit that converts binary information from the n coded inputs to a maximum of 2n unique outputs • Also called the n-to-m line deciders for example: • 2-to-4 line decoder • 3-to-8 line decoder

  17. Decoder Diagrams

  18. Decoder with Enable Input

  19. Decoder Expansion • Can use smaller decoders to build bigger decoders. • e.g. using two 2-4 decoders we can build a 3-8 decoder or using two 3-8 decoders we can build a 4-16 decoder

  20. Combinational Circuit Implementation using Decoder • A n-input decoder generates the minterms corresponding to a boolean function of n-variables • Can use the outputs of a decoder along with an OR gate to implement a Boolean function in SOP form

  21. Combinational Circuit Implementation using Decoder

  22. Encoder Combinational Logic Circuit 2n Inputs n Outputs Encoders • Performs the inverse operation of a decoder • Has 2n or fewer input lines and n output lines • The output generates the binary code corresponding to the input value

  23. Examples of Encoders • Octal to Binary Encoder • Priority Encoder

  24. Priority Encoder

  25. MULTIPLEXER Combinational Logic Circuit 2n Inputs 1 Output n Selection Lines Multiplexers • A multiplexer is a combinational circuit that selects binary information from one of many input lines and directs the information to a single output line

  26. MULTIPLEXER Combinational Logic Circuit Function table D0 S1 S0 Output D1 4 Inputs Output 0 0 D0 D2 0 1 D1 1 0 D2 D3 1 1 D3 S0 S1 4-to-1-Line Multiplexer

  27. Building MUXes

  28. Building MUXes • A MUX can be built using transmission gates • Mutiplexer blocks can be combined in parallel with common selection and enable lines to perform selection on multi-bit quantities

  29. Implementing Boolean Functions Using MUX • Any Boolean function of n-variables can be implemented using a MUX with n selection lines • A more efficient method is using a MUX with n-1 selection lines. • Let us take a look at each method

  30. Example of Implementing Boolean Functions Using MUX

  31. Example of Implementing Boolean Functions Using MUX

  32. Demultiplexers • Performs the inverse operation of a multiplexer • A combinational circuit that receives input from a single line and transmits it to one of 2n possible output lines • The selection of the specific output is controlled by the bit combination of n selection lines • Same as a Decoder with an enable – how?

More Related