1 / 31

EE365 Adv. Digital Circuit Design Clarkson University Lecture #9 Math Units ROMs

EE365 Adv. Digital Circuit Design Clarkson University Lecture #9 Math Units ROMs. Topics. Comparators Adders Multipliers ROMs. Lect #9. Rissacher EE365. 4-bit comparator. EQ_L. Equality Comparators. 1-bit comparator. Lect #9. Rissacher EE365. 8-bit Magnitude Comparator. Lect #9.

badru
Download Presentation

EE365 Adv. Digital Circuit Design Clarkson University Lecture #9 Math Units ROMs

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. EE365 Adv. Digital Circuit Design Clarkson University Lecture #9 Math Units ROMs

  2. Topics • Comparators • Adders • Multipliers • ROMs Lect #9 Rissacher EE365

  3. 4-bit comparator EQ_L Equality Comparators • 1-bit comparator Lect #9 Rissacher EE365

  4. 8-bit Magnitude Comparator Lect #9 Rissacher EE365

  5. Other conditions Lect #9 Rissacher EE365

  6. X Y Cin S Cout 0 0 0 0 0 0 0 1 1 0 0 1 0 1 0 0 1 1 0 1 1 0 0 1 0 1 0 1 0 1 1 1 0 0 1 1 1 1 1 1 Adders • Basic building block is “full adder” • 1-bit-wide adder, produces sum and carry outputs • Truth table: Lect #9 Rissacher EE365

  7. Full-adder circuit Lect #9 Rissacher EE365

  8. Ripple adder • Speed limited by carry chain • Faster adders eliminate or limit carry chain • 2-level AND-OR logic ==> 2n product terms • 3 or 4 levels of logic, carry look-ahead Lect #9 Rissacher EE365

  9. 74x2834-bit adder • Uses carry look-ahead internally Lect #9 Rissacher EE365

  10. “generate” “half sum” carry-in from previous stage “propagate” Lect #9 Rissacher EE365

  11. Ripple carry between groups Lect #9 Rissacher EE365

  12. Look-ahead carry between groups Lect #9 Rissacher EE365

  13. Subtraction • Subtraction is the same as addition of the two’s complement. • The two’s complement is the bit-by-bit complement plus 1. • Therefore, X – Y = X + Y + 1 . • Complement Y inputs to adder, set Cin to 1. • For a borrow, set Cin to 0. Lect #9 Rissacher EE365

  14. Full subtractor = full adder, almost Lect #9 Rissacher EE365

  15. Multipliers • 8x8 multiplier Lect #9 Rissacher EE365

  16. Full-adder array Lect #9 Rissacher EE365

  17. Faster carry chain Lect #9 Rissacher EE365

  18. Read-Only Memories Lect #9 Rissacher EE365

  19. Why “ROM”? • Program storage • Boot ROM for personal computers • Complete application storage for embedded systems. • Actually, a ROM is a combinational circuit, basically a truth-table lookup. • Can perform any combinational logic function • Address inputs = function inputs • Data outputs = function outputs Lect #9 Rissacher EE365

  20. Logic-in-ROM example Lect #9 Rissacher EE365

  21. 4x4 multiplier example Lect #9 Rissacher EE365

  22. Internal ROM structure PDP-11 boot ROM (64 words, 1024 diodes) Lect #9 Rissacher EE365

  23. Two-dimensional decoding ? Lect #9 Rissacher EE365

  24. Larger example, 32Kx8 ROM Lect #9 Rissacher EE365

  25. Today’s ROMs • 256K bytes, 1M byte, or larger • Use MOS transistors Lect #9 Rissacher EE365

  26. EEPROMs, Flash PROMs • Programmable and erasableusing floating-gate MOS transistors Lect #9 Rissacher EE365

  27. Typical commercial EEPROMs Lect #9 Rissacher EE365

  28. EEPROM programming • Apply a higher voltage to force bit change • E.g., VPP = 12 V • On-chip high-voltage “charge pump” in newer chips • Erase bits • Byte-byte • Entire chip (“flash”) • One block (typically 32K - 66K bytes) at a time • Programming and erasing are a lot slower than reading (milliseconds vs. 10’s of nanoseconds) Lect #9 Rissacher EE365

  29. Microprocessor EPROM application Lect #9 Rissacher EE365

  30. ROM control and I/O signals Lect #9 Rissacher EE365

  31. Next time • Latches • Flip Flops • Clocking Lect #9 Rissacher EE365

More Related