Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章 (Chapter 58) 伏 者潛藏也 道紀章 (Chapter 14) 道無形象, 視之不可見者曰 夷
Fuw-Yi Yang2 Text Book: Digital Design 4th Ed. Chap 6 Registers and Counters 6.1 Registers 6.2 Shift Registers 6.3 Ripple Counters 6.4 Synchronous Counters 6.5 Other Counters 6.6 HDL for Registers and Counters
Fuw-Yi Yang3 Text Book: Digital Design 4th Ed. Chap Registers A register is a group of flip-flops, each one of which is capable of storing one bit of information. An n-bit register consists of a group of n flip-flops capable of storing n bits of binary information. In addition to the flip-flops, a register may have combinational gates that perform certain data-processing tasks. In its broadest definition, a register consists of a group of flip-flops together with gates that affect their operation.
Fuw-Yi Yang4 Text Book: Digital Design 4th Ed. Chap Registers A counter is essentially a register that goes through a predetermined sequence of binary states.
Fuw-Yi Yang5 Text Book: Digital Design 4th Ed. Chap Registers Four-bit register. Load data through I 0 ~I 3 If some bits must be left unchanged, how to do it ? See next page
Fuw-Yi Yang6 Text Book: Digital Design 4th Ed. Chap Registers A Four-bit register with parallel load
Fuw-Yi Yang7 Text Book: Digital Design 4th Ed. Chap Shift Registers A register capable of shifting the binary information held in each cell to its neighboring cell, in a selected direction is called a shift register.
Fuw-Yi Yang8 Text Book: Digital Design 4th Ed. Chap Shift Registers Four-bit shift register
Fuw-Yi Yang9 Text Book: Digital Design 4th Ed. Chap Shift Registers Serial transfer from register A to Register B Timing and example see next page
Fuw-Yi Yang10 Text Book: Digital Design 4th Ed. Chap Shift Registers Serial transfer from register A to Register B Timing and example see next page
Fuw-Yi Yang11 Text Book: Digital Design 4th Ed. Chap Shift Registers Serial addition by serial adder (another example --next page)
Fuw-Yi Yang12 Text Book: Digital Design 4th Ed. Chap Shift Registers Serial adder (how to design input equations --next page)
Fuw-Yi Yang13 Text Book: Digital Design 4th Ed. Chap Shift Registers
Fuw-Yi Yang14 Text Book: Digital Design 4th Ed. Chap Shift Registers Four-bit universal shift register (details --next page)
Fuw-Yi Yang15 Text Book: Digital Design 4th Ed. Chap Shift Registers
Fuw-Yi Yang16 Text Book: Digital Design 4th Ed. Chap Ripple Counters
Fuw-Yi Yang17 Text Book: Digital Design 4th Ed. Chap Ripple Counters
Fuw-Yi Yang18 Text Book: Digital Design 4th Ed. Chap Ripple Counters
Fuw-Yi Yang19 Text Book: Digital Design 4th Ed. Chap Ripple Counters
Fuw-Yi Yang20 Text Book: Digital Design 4th Ed. Chap Ripple Counters State diagram of a decimal BCD counter (circuits next page)
Fuw-Yi Yang21 Text Book: Digital Design 4th Ed. Chap Ripple Counters
Fuw-Yi Yang22 Text Book: Digital Design 4th Ed. Chap Ripple Counters
Fuw-Yi Yang23 Text Book: Digital Design 4th Ed. Chap Synchronous Counters Binary Counter by example Up-Down Counter by example BCD Counter by example Binary Counter with parallel load
Fuw-Yi Yang24 Text Book: Digital Design 4th Ed. Chap Synchronous Counters Count enable: another way is to control the clock
Fuw-Yi Yang25 Text Book: Digital Design 4th Ed. Chap Synchronous Counters Two ways to achieve a BCD counter using a counter with parallel load
Fuw-Yi Yang26 Text Book: Digital Design 4th Ed. Chap Other Counters Counter with unused states Ring Counter Johnson Counter
Fuw-Yi Yang27 Text Book: Digital Design 4th Ed. Chap Other Counters — unused states Counter with unused states Ring Counter Johnson Counter
Fuw-Yi Yang28 Text Book: Digital Design 4th Ed. Chap Other Counters — unused states Counter with unused states Ring Counter Johnson Counter
Fuw-Yi Yang29 Text Book: Digital Design 4th Ed. Chap Other Counters — ring counter Only one flip- flop is set. n flip-flop n states.
Fuw-Yi Yang30 Text Book: Digital Design 4th Ed. Chap Other Counters — Johnson counter n flip-flop 2n states.
Fuw-Yi Yang31 Text Book: Digital Design 4th Ed. Chap Other Counters — Johnson counter
Fuw-Yi Yang32 Text Book: Digital Design 4th Ed. Chap HDL for Registers and Counters