Generate a clock pulse clk inp outp

Slides:



Advertisements
Similar presentations
State-machine structure (Mealy)
Advertisements

Synchronous Sequential Logic
Analysis of Clocked Sequential Circuits
Counters. In class excercise How to implement a “counter”, which will count as 0,3,1,4,5,7,0,3,1,…… Q2Q1Q0D2D1D
Registers and Counters. Register Register is built with gates, but has memory. The only type of flip-flop required in this class – the D flip-flop – Has.
Latches CS370 –Spring 2003 Section 4-2 Mano & Kime.
FSM examples.
8.4 Counters NextReturn Any clocked sequential circuit whose state diagram contains a single cycle is called a counter. The number of states in the cycle.
Logic Design Fundamentals - 3 Discussion D3.2. Logic Design Fundamentals - 3 Basic Gates Basic Combinational Circuits Basic Sequential Circuits.
Registers VHDL Tutorial R. E. Haskell and D. M. Hanna T2: Sequential Logic Circuits.
RIPPLE COUNTERS A register that goes through a prescribed sequence of states upon the application of input pulses is called a counter. The input pulses.
Flip-Flops Module M10.2 Section 7.1. D Latch Q !Q CLK D !S !R S R X 0 Q 0 !Q 0 D CLK Q !Q Note that Q follows D when the clock in high, and.
Sequential Circuits and Finite State Machines Prof. Sin-Min Lee
Latches Section 4-2 Mano & Kime. Sequential Logic Combinational Logic –Output depends only on current input Sequential Logic –Output depends not only.
Logic Design Review – 3 Basic Sequential Circuits Lecture L14.3 Verilog.
Ring Counter Discussion 11.3 Example 32.
Shift Registers Lecture L6.6 Section Bit Shift Register.
Registers and Shift Registers Discussion D8.2. D Flip-Flop X 0 Q 0 ~Q 0 D CLK Q ~Q D gets latched to Q on the rising edge of the clock. Positive.
Lessons from last lab: 1.Many had the “# skipping” problem 2.Most assumed there was something wrong with their code 3.How does one check their code? 4.SIMULATE!!
Sequential Circuit Introduction to Counter
A.Abhari CPS2131 Registers A register is a group of n flip-flops each of them capable of storing one bit of information There are two types of registers:
Registers and Counters
Digital Systems I EEC 180A Lecture 15 Bevan M. Baas Tuesday, November 20, 2007.
A State Element “Zoo”.
Registers and Counters
Asynchronous Counter © 2014 Project Lead The Way, Inc.Digital Electronics.
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
Block Diagram of 4518 Dual BCD Counter The 4518 Dual BCD Counter has two BCD counters. Each counter is similar to the other. Each counter has a master.
Asynchronous Counters with SSI Gates
Registers & Counters M. Önder Efe
Registers CPE 49 RMUTI KOTAT.
1 Registers and Counters A register consists of a group of flip-flops and gates that affect their transition. An n-bit register consists of n-bit flip-flops.
Rabie A. Ramadan Lecture 3
2017/4/24 CHAPTER 6 Counters Chapter 5 (Sections )
Princess Sumaya Univ. Computer Engineering Dept. Chapter 6:
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 17 Dr. Shi Dept. of Electrical and Computer Engineering.
Counters. November 5, 2003 Introduction: Counters  Counters are circuits that cycle through a specified number of states.  Two types of counters: 
Registers and Counters by Dr. Amin Danial Asham. References  Digital Design 5 th Edition, Morris Mano.
Digital Design Lectures 11 & 12 Shift Registers and Counters.
Flip Flops 3.1 Latches and Flip-Flops 3 ©Paul Godin Created September 2007 Last Edit Aug 2013.
ENG241 Digital Design Week #8 Registers and Counters.
Registers and Counters Chapter 6. Digital Circuits 2 Clocked sequential circuits a group of flip-flops and combinational gates connected to form a feedback.
REGISTER A register is a group of flip-flops. Each flip- flop is capable of storing one bit of informa­ tion. An n-bit register consists of a group of.
Counters. In class excercise How to implement a “counter”, which will count as 0,3,1,4,5,7,0,3,1,…… Q2Q1Q0D2D1D
Assignment 8 solutions 1) Design and draw combinational logic to perform multiplication of two 2-bit numbers (i.e. each 0 to 3) producing a 4-bit result.
Digital Logic Design.
Fibonnaci Sequence Generator and Testbench in VHDL Michael Larson.
Registers and Counters
CEC 220 Digital Circuit Design Latches and Flip-Flops Monday, March 03 CEC 220 Digital Circuit Design Slide 1 of 19.
Counters Computer Organization I 1 June 2010 © McQuain, Feng & Ribbens JK Flip-flop The JK flip-flop takes two data inputs and updates its.
SYEN 3330 Digital SystemsJung H. Kim 1 SYEN 3330 Digital Systems Chapter 7 – Part 2.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Flip Flops 3.1 Latches and Flip-Flops 3 ©Paul Godin Created September 2007 Last Edit Aug 2013.
Counters and registers Eng.Maha Alqubali. Registers Registers are groups of flip-flops, where each flip- flop is capable of storing one bit of information.
1 Registers A register is a group of n flip-flops each of them capable of storing one bit of information There are two types of registers: parallel and.
Registers and Counters Discussion D8.1. Logic Design Fundamentals - 3 Registers Counters Shift Registers.
1 Lecture #15 EGR 277 – Digital Logic Reading Assignment: Chapter 5 in Digital Design, 3 rd Edition by Mano Example: (Problem 5-17 from Digital Design,
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
Supplement on Verilog FF circuit examples
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
EKT 221 : Digital 2 COUNTERS.
Sequential Logic Counters and Registers
FIGURE 5.1 Block diagram of sequential circuit
D Flip-Flop.
Shift Registers.
Digital Logic & Design Dr. Waseem Ikram Lecture No. 34.
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Switching Theory and Logic Design Chapter 5:
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Outline Registers Counters 5/11/2019.
Presentation transcript:

Generate a clock pulse clk inp outp Modify the “debounce” circuit to create the output shown above. Write a testbench and simulate.

4-bit Shift register q3 q2 q1 q0 Data_in clk reset D Q clk reset D Q clk reset D Q clk reset D Q clk reset clk reset Serial data in the form of a string of bits is fed into the left-most flip-flop via data_in. At each clock pulse whatever is at data_in is moved to q3, the old value at q3 goes to q2, the old value at q2 got to q1 and the old value at q1 goes to q0. Note that all data values are shifted simultaneously on the same rising edge of the clock. Code this circuit and write a testbench to simulate.

More Problems Design a 2-bit “funny” counter using two DFF’s with outputs q1 and q0 where q1 is the most-significant bit. This counter will count in the following order: 2, 1, 3, 0, and then repeat. Derive the logic equations for d1 and d0 ( the inputs to the DFF’s ) Draw a logic diagram for this 2-bit counter Write the Verilog code and testbench Simulate Write a Verilog program and testbench for an 8-bit shift register. Simulate. Write a Verilog program and testbench for 3-bit down counter that counts down from 7 to 0 and then wraps back to 7. Simulate.

Johnson Counter q3 q2 q1 q0 Data_in clk reset D Q clk reset D Q clk reset D Q clk reset D Q clk ~Q reset clk reset Assume that q [3:0] = 0000 at the start. Make a table to show what the outputs q [3:0] will be after each clock pulse for the next 8 clock pulses.