1 / 162

Chapter 4

Chapter 4. Modular Combinational Logic. Decoders. Decoders. n to 2 n decoder n inputs 2 n outputs For each input, one and only one output will be active. Uses: “Minterm generator” Wordline (memory) circuit Code conversion Routing data. 2 to 4 Decoder Example.

benjamin
Download Presentation

Chapter 4

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. Chapter 4 Modular Combinational Logic

  2. Decoders

  3. Decoders • n to 2n decoder • n inputs • 2n outputs • For each input, one and only one output will be active. • Uses: • “Minterm generator” • Wordline (memory) circuit • Code conversion • Routing data

  4. 2 to 4 Decoder Example

  5. 2 to 4 Decoder – Truth Table • 2 to 4 decoder

  6. 2 to 4 Decoder Equations

  7. 2 to 4 Decoder: Circuit

  8. 2 to 4 Decoder: Block Symbol Symbol Circuit

  9. 3 to 8 Decoder Example

  10. 3 to 8 Decoder – Truth Table

  11. 3 to 8 Decoder Equations

  12. 3 to 8 Decoder: Circuit

  13. 3 to 8 Decoder: Block Symbol Symbol Circuit

  14. Design Example

  15. Example • Using only a 3x8 decoder and two-input OR gates, design a logic circuit which implements the following Boolean equation

  16. Solution m2 m4 m5

  17. 2 to 4 Decoder with Enable

  18. 2x4 Decoder with Enable • Enable is abbreviated as EN • EN is called a Control Signal • Control Signals can be • Active High Signal • EN = 1 – Turns “ON” Decoder • Active Low Signal • EN=0 – Turns “ON” Decoder

  19. 2 x 4 Decoder with Active High Enable – Truth Table

  20. 2 to 4 Decoder with Enable Equations

  21. 2 to 4 Decoder with Enable Circuit

  22. 2 to 4 Decoder with Enable Symbol

  23. 2 x 4 Decoder with Active High Enable – Truth Table (Short hand notation) d = don’t care En has “highest” priority. If En=0, we “don’t care” about x1 or x0 because Y=0

  24. 2 x 4 Decoder with Active Low Enable – Truth Table (Short hand notation) d = don’t care En has “highest” priority. If En=1, we “don’t care” about x1 or x0 because Y=0

  25. 2 to 4 Decoder with Active Low Enable Circuit

  26. Design Example

  27. Example • Design a 3x8 decoder using only 2x4 decoders and NOT gates.

  28. Solution “On” when A=0 “On” when A=1

  29. TPS Quiz

  30. Encoders

  31. Encoders • Opposite of a decoder • 2n to n encoder • 2n inputs • n outputs • For each input, the circuit will produce an “encoded” output

  32. Example: 4to 2 Binary EncoderTruth Table Assume only one input high at a time!!

  33. 4 to 2 Encoder Equations

  34. Problems with initial design • Q: How do we tell the difference between an input of all 0’s (i.e. X=0) and X=1? • A: Add another output (IA) that indicates that the input is valid. Let’s make IA active low.

  35. Problems with initial design If IA = 1 => all lines are 0 If IA = 0 => at least one line is 1 • Q: What happens if more than one input is high at the same time? • A: Design a “priority” encoder that will encode the input with the highest priority. • Let’s set X3 with the highest priority, followed by X2, X1, and X0

  36. Example: 4to 2 Priority Binary EncoderTruth Table

  37. Solution 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Y1 Y0

  38. 4 to 2 Priority Encoder Equations

  39. Multiplexer/Data Selectors MUX Very Important Module!!!

  40. Multiplexer(MUX)/Data Selector • N to 1 multiplexer • n data input lines • Log2(n) control inputs • One output • This circuit will “connect” the selected input to the output. The selected input is specified by a decoding of the control inputs.

  41. Example: 4to 1 MUX Truth Table Control Inputs Output Data Inputs d = don’t care / Di = data on input i

  42. 4 to 1 MUX Equation D’s are the DATA inputs, AB are control inputs and called the “select” lines.

  43. 4 to 1 MUX Circuit Control Inputs Data Inputs Output 2x4 Decoder Only a single AND gate will be “ON” at a time.

  44. 4 to 1 MUX Symbol Data Inputs Output Control Inputs

  45. Data and Control Paths Control Path Outputs Logic Data Path Inputs Data Path Outputs Control Path Inputs

  46. MUX Applications

  47. Example • Using a 4x1 MUX, design a logic circuit which implements: We have, Y

  48. Example • Using a 4x1 MUX, design a logic circuit which implements:

  49. Solution

  50. Multibit Multiplexers

More Related