1 / 25

6-5 Microoperation

6-5 Microoperation. An elementary operations performed on data stored in registers or in memory. Transfer Arithmetic Logic: perform bit manipulation on data in register Bitwise AND, Bitwise OR …. Shift. Arithmetic Microoperations. Arithmetic Microoperations.

gays
Télécharger la présentation

6-5 Microoperation

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. 6-5 Microoperation • An elementary operations performed on data stored in registers or in memory. • Transfer • Arithmetic • Logic: perform bit manipulation on data in register • Bitwise AND, Bitwise OR …. • Shift

  2. Arithmetic Microoperations

  3. Arithmetic Microoperations • The control variable X selects the operation, and the control variable K1 loads the result in to R1. Fig. 6.6 Implementation

  4. Logic Microoperations • manipulate the bits stored in a register • consider each bit in register separately

  5. Logic Microoperations • Mask: allow us to deal with some specific bits • R1: 10101101 10101011 (data) • R2: 00000000 11111111 (mask) • 00000000 10101011 <=R1 ←R1^R2

  6. Logic Microoperations • R1: 10101101 10101011 (data) • R2: 11111111 00000000 (mask) • 11111111 10101011 <=R1 ←R1˅R2 • R1: 10101101 10101011 (data) • R2: 11111111 00000000 (mask) • 01010010 10101011 <=R1 ←R1 R2

  7. Shift Microoperations • shift left/shift right • incoming bit/outgoing bit

  8. 6-6 Microoperation on A single Register • Multiplexer-based transfer • if (K1=1) then (R0 ← R1) else if (K2=1) then (R0 ← R2) K1: R0← R1, R0 ← R2

  9. Multiplexer-based transfer

  10. Multiplexer-based transfer • Generalization of Multiplexer selection for n sources

  11. Shift Registers • Serial input (SI) • Serial output (SO)

  12. Shift Register with parallel load

  13. Shift Register with Parallel Load

  14. Bidirectional Shift Register One stage diagram

  15. Bidirectional Shift Register

  16. Ripple counter • Structure similar to ripple adder

  17. Synchronous Binary Counter -Serial gating Fig. 3-52

  18. Synchronous Binary Counter -Parallel gating Four AND gates delay Only one AND gate delay

  19. Up-Down Binary Counter S=0 up counter S=1 down counter Homework #2 (deadline 12/??) Prove it and draw the logic diagram

  20. Binary counter with parallel load It is a case of the up-down counter in the previous slide. (why? what case?) Fig. 6-14

  21. BCD counter • A divide-by-N counter (modulo-N counter) is a counter goes through a repeated sequence of N states Fig. 6-15

  22. Another BCD counter

  23. Modulo 6 counter

  24. Modulo 6 counter

  25. Homework #3 (deadline 1/??/2017 ) • Design a counter with sequence 0,3,2,1,5,4,7 • Run the simulation for the designed circuit by using Quartus II • Deal with the unused state as don’t care • Test (manually) the circuit when the unused state occurs (manual or simulation)

More Related