Presentation is loading. Please wait.

Presentation is loading. Please wait.

Logic Design (CE1111 ) Lecture 6 (Chapter 6) Registers &Counters Prepared by Dr. Lamiaa Elshenawy 1.

Similar presentations


Presentation on theme: "Logic Design (CE1111 ) Lecture 6 (Chapter 6) Registers &Counters Prepared by Dr. Lamiaa Elshenawy 1."— Presentation transcript:

1 Logic Design (CE1111 ) Lecture 6 (Chapter 6) Registers &Counters Prepared by Dr. Lamiaa Elshenawy 1

2 Outlines  Finite State Machine  Registers  Shift Registers  Ripple Counters  Synchronous Counters 2

3 Finite State Machine  What is a finite state machine?  A finite state machine (FSM) is a tool used to design sequential logic circuits  FSM can be described by 1. A set of input events, a set of output events, and a set of states 2. State equation ( a function that maps states and input to output) 3. State table 4. State diagram 3

4 Finite State Machine 4 FSM Mealy State machine Moore State machine Mealy model: the output is a function of both the present state and the input Moore model: the output is a function of only the present state George H. Mealy (December 31, 1927– June 21, 2010) is an American mathematician and computer scientist who invented the Mealy machine Edward Forrest Moore (November 23, 1925–June 14, 2003 in) is an American professor of mathematics & computer science, the inventor of the Moore machine

5 Finite State Machine 5

6 6 Mealy model Moore model

7 Registers  What is a register? 1. A register is a group of flip ‐ flops, each one of which shares a common clock and is capable of storing one bit of information 2. An n ‐ bit register consists of a group of n flip ‐ flops capable of storing n bits of binary information 3. A register consists of flip ‐ flops & combinational gates 4. Flip ‐ flops hold binary information & combinational gates determine how the information is transferred into the register 7

8 Registers 8 Four-bit register

9 Registers 9  When the load input is 1, the data at the four external inputs are transferred into the register with the next positive edge of the clock  When the load input is 0, the outputs of the flip ‐ flops are connected to their respective inputs  The feedback connection from output to input is necessary because a D flip ‐ flop does not have a “no change” condition Four-bit register with parallel load

10 Shift Registers  What is a shift register? 1. A shift register is register that is capable of shifting the binary information held in each cell to its neighboring cell 2. A shift register consists of a chain of flip ‐ flops in cascade, with the output of one flip ‐ flop connected to the input of the next flip ‐ flop 3. All flip ‐ flops receive common clock pulses, which activate the shift of data from one stage to the next 10

11 Shift Registers 11 Four-bit shift register

12 Shift Registers 12

13 Counters  What is a counter? 1. A counter is essentially a register that goes through a predetermined sequence of binary states 2. Gates in the counter are connected in such a way to produce the prescribed sequence of states 3. Although counters are a special type of register, it is 4. common to differentiate them by giving them a different name 13

14 Counters 14 Counters Ripple Counter Synchronous Counter Ripple counter: counter inputs of flip ‐ flops are triggered by clock pulses & other flip ‐ flop outputs Synchronous counter: counter inputs of all flip ‐ flops receive the common clock

15 Ripple Counters 15 Four-bit ripple binary counter

16 Synchronous Counters 16 Four-bit binary synchronous counter

17 Synchronous Counters 17 Four-bit up-down binary counter  When the up input is 1, the circuit counts up  When the down input is 1 and the up input is 0, the circuit counts down  When the up and down inputs are both 0, the circuit does not change state and remains  When the up and down inputs are both 1, the circuit counts up (the up input has priority over the down input)

18 18

19 Important Websites 1. http://www.electronics- tutorials.ws/sequential/seq_5.html http://www.electronics- tutorials.ws/sequential/seq_5.html 2. https://www.youtube.com/watch?v=2gqsf9N9N_Y https://www.youtube.com/watch?v=2gqsf9N9N_Y 3. https://www.youtube.com/watch?v=6fVbJbNPrEU https://www.youtube.com/watch?v=6fVbJbNPrEU 4. https://www.youtube.com/watch?v=bqfPZXEuyuc https://www.youtube.com/watch?v=bqfPZXEuyuc 5. http://www.allaboutcircuits.com/textbook/digital/c hpt-11/synchronous-counters/ http://www.allaboutcircuits.com/textbook/digital/c hpt-11/synchronous-counters/ 6. https://www.google.com/search?q=shift+register+i cs&safe=active&source=lnms&tbm=isch&sa=X&ve d=0ahUKEwjLpN- XoZPMAhXHlxoKHQzyBw8Q_AUIBygB&biw=1152&b ih=525#imgrc=QKkv82TO_7P1JM%3A https://www.google.com/search?q=shift+register+i cs&safe=active&source=lnms&tbm=isch&sa=X&ve d=0ahUKEwjLpN- XoZPMAhXHlxoKHQzyBw8Q_AUIBygB&biw=1152&b ih=525#imgrc=QKkv82TO_7P1JM%3A 19


Download ppt "Logic Design (CE1111 ) Lecture 6 (Chapter 6) Registers &Counters Prepared by Dr. Lamiaa Elshenawy 1."

Similar presentations


Ads by Google