ECE/CS 352 Digital System Fundamentals© T. Kaminski & C. Kime 1 ECE/CS 352 Digital Systems Fundamentals Fall 2000 Chapter 5 – Part 2 Tom Kaminski & Charles.

Slides:



Advertisements
Similar presentations
Registers and Counters
Advertisements

Registers and Counters
Table 7.1 Verilog Operators.
//HDL Example 6-1 // //Behavioral description of //Universal shift register // Fig. 6-7 and Table 6-3 module shftreg.
1 COMP541 Sequencing and Control Montek Singh Mar 29, 2007.
Registers and Counters
Counters Discussion 12.1 Example 33. Counters 3-Bit, Divide-by-8 Counter 3-Bit Behavioral Counter in Verilog Modulo-5 Counter An N-Bit Counter.
Chapter 7 - Part 2 1 CPEN Digital System Design Chapter 7 – Registers and Register Transfers Part 2 – Counters, Register Cells, Buses, & Serial Operations.
ECE 331 – Digital System Design Counters (Lecture #18)
ENGIN112 L26: Shift Registers November 3, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 26 Shift Registers.
1 COMP541 State Machines – 2 Registers and Counters Montek Singh Feb 8, 2007.
Sequential Circuit Introduction to Counter
KU College of Engineering Elec 204: Digital Systems Design
What is shift register? A shift register is a digital memory circuit found in calculators, computers, and data-processing systems. Bits (binary digits)
Mantıksal Tasarım – BBM231 M. Önder Efe
Registers and Counters
Counters.
Registers and Counters
Chapter 1_4 Part II Counters
EE345: Introduction to Microcontrollers Register and Counters Prof. Ahmad Abu-El-Haija.
ECE2030 Introduction to Computer Engineering Lecture 15: Registers, Toggle Cells, Counters Prof. Hsien-Hsin Sean Lee School of Electrical and Computer.
Figure 7.1. Control of an alarm system. Memory element Alarm Sensor Reset Set OnOff 
Registers & Counters M. Önder Efe
Registers CPE 49 RMUTI KOTAT.
Registers and Counters
Rabie A. Ramadan Lecture 3
P. 4.1 Digital Technology and Computer Fundamentals Chapter 4 Digital Components.
Chapter 6 Registers and Counter
2017/4/24 CHAPTER 6 Counters Chapter 5 (Sections )
Princess Sumaya Univ. Computer Engineering Dept. Chapter 6:
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
EE365 Adv. Digital Circuit Design Clarkson University Lecture #12 Registers and Counters.
Digital Design Lectures 11 & 12 Shift Registers and Counters.
7-6 단일 레지스터에서 Microoperation Multiplexer-Based Transfer  Register 가 서로 다른 시간에 둘 이상의 source 에서 data 를 받을 경우 If (K1=1) then (R0 ←R1) else if (K2=1) then.
1 Registers & Counters Logic and Digital System Design - CS 303 Erkay Savaş Sabancı University.
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.
ECE/CS 352 Digital System Fundamentals© 2001 C. Kime 1 ECE/CS 352 Digital Systems Fundamentals Spring 2001 Chapters 3 and 4: Verilog – Part 2 Charles R.
Digital Logic Design.
1 COMP541 State Machines – 2 Registers and Counters Montek Singh Feb 11, 2010.
Digital Electronics.
Digital System Design using VHDL
ECE/CS 352 Digital System Fundamentals© T. Kaminski & C. Kime 1 ECE/CS 352 Digital Systems Fundamentals Spring 2001 Chapter 4 – Part 4 Tom Kaminski & Charles.
SYEN 3330 Digital SystemsJung H. Kim 1 SYEN 3330 Digital Systems Chapter 7 – Part 2.
Lecture #27 Page 1 ECE 4110–5110 Digital System Design Lecture #27 Agenda 1.Counters Announcements 1.Finish reading Wakerly sections 8.1, 8.2, 8.4, 8.5.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Dr. Shi Dept. of Electrical and Computer Engineering.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
Lab5-1 張明峰 交大資工系 Lab 5: FSM and BCD counters Implement the vending machine of lab 2 A two-digit BCD counter –two BCD counters –can load data in parallel.
CHAPTER 14 Digital Systems. Figure 14.1 RS flip-flop symbol and truth table Figure
Chapter 35 Sequential Logic Circuits. Objectives After completing this chapter, you will be able to: –Describe the function of a flip-flop –Identify the.
1 Modeling Synchronous Logic Circuits Debdeep Mukhopadhyay Associate Professor Dept of Computer Science and Engineering NYU Shanghai and IIT Kharagpur.
Shift Register Counters
Digital Design: With an Introduction to the Verilog HDL, 5e M. Morris Mano Michael D. Ciletti Copyright ©2013 by Pearson Education, Inc. All rights reserved.
Supplement on Verilog FF circuit examples
Figure 8.1. The general form of a sequential circuit.
Registers and Counters
FIGURE 6.1 Four‐bit register
EKT 221 – Counters.
Prof. Hsien-Hsin Sean Lee
EKT 221 : Digital 2 COUNTERS.
Digital System Design Review.
Analog-to-Digital Converters
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
FSM MODELING MOORE FSM MELAY FSM. Introduction to DIGITAL CIRCUITS MODELING & VERIFICATION using VERILOG [Part-2]
FIGURE 10.1 Rectangular‐shape graphic symbols for gates
6. Registers and Counters
Switching Theory and Logic Design Chapter 5:
Digital Logic Department of CNET Chapter-6
Digital Logic Department of CNET Chapter-6
14 Digital Systems.
Presentation transcript:

ECE/CS 352 Digital System Fundamentals© T. Kaminski & C. Kime 1 ECE/CS 352 Digital Systems Fundamentals Fall 2000 Chapter 5 – Part 2 Tom Kaminski & Charles R. Kime

ECE/CS 352 Digital System Fundamentals Chapter 4 Page 2 Counters

ECE/CS 352 Digital System Fundamentals Chapter 4 Page 3 Counter Basics: Divide by 2

ECE/CS 352 Digital System Fundamentals Chapter 4 Page 4 Divide Clock Frequency by 2

ECE/CS 352 Digital System Fundamentals Chapter 4 Page 5 Ripple Counter

ECE/CS 352 Digital System Fundamentals Chapter 4 Page 6 Ripple Counter (Continued)

ECE/CS 352 Digital System Fundamentals Chapter 4 Page 7 Ripple Counter (Continued)

ECE/CS 352 Digital System Fundamentals Chapter 4 Page 8 Ripple Counter (Continued)

ECE/CS 352 Digital System Fundamentals Chapter 4 Page 9 Ripple Counter (Continued)

ECE/CS 352 Digital System Fundamentals Chapter 4 Page 10 Ripple Counter (Continued)

ECE/CS 352 Digital System Fundamentals Chapter 4 Page 11 Ripple Counter (Continued)

ECE/CS 352 Digital System Fundamentals Chapter 4 Page 12 Synchronous Counters

ECE/CS 352 Digital System Fundamentals Chapter 4 Page 13 Synchronous Counters (Continued)

ECE/CS 352 Digital System Fundamentals Chapter 4 Page 14 Synchronous Counters (Continued)

ECE/CS 352 Digital System Fundamentals Chapter 4 Page 15 Synchronous Counters – Serial Gating When a two-input AND gate is used for each stage of the counter with a “ripple- like” carry, this is referred to as serial gating. As the size of the counter increases the delay through the combinational logic increases roughly in proportion to n, the number of stages.

ECE/CS 352 Digital System Fundamentals Chapter 4 Page 16 Synchronous Counters – Parallel Gating When a multiple-input ( >2) AND gates are used for each stage of the counter with logic dedicated to each stage or to a group of stages, this is referred to as parallel gating. It resembles carry lookahead in an adder. As the size of the counter increases the delay through the combinational logic increases roughly in proportion to n/m, the number of stages/the group size.

ECE/CS 352 Digital System Fundamentals Chapter 4 Page 17 Design: Synchronous BCD

ECE/CS 352 Digital System Fundamentals Chapter 4 Page 18 Synchronous BCD (Continued) Use K-Maps to minimize the next state function:

ECE/CS 352 Digital System Fundamentals Chapter 4 Page 19 Synchronous BCD (Continued) The minimized circuit:

ECE/CS 352 Digital System Fundamentals Chapter 4 Page 20 Synchronous BCD (Continued)

ECE/CS 352 Digital System Fundamentals Chapter 4 Page 21 Synchronous BCD (Continued)

ECE/CS 352 Digital System Fundamentals Chapter 4 Page 22 Synchronous BCD (Continued)

ECE/CS 352 Digital System Fundamentals Chapter 4 Page 23 Counter with Parallel Load

ECE/CS 352 Digital System Fundamentals Chapter 4 Page 24 Counting Modulo N

ECE/CS 352 Digital System Fundamentals Chapter 4 Page 25 Counting Modulo 7

ECE/CS 352 Digital System Fundamentals Chapter 4 Page 26 Counting Modulo 7, Asyn.Clear DON’T DO THIS! Referred to as a “suicide” counter!

ECE/CS 352 Digital System Fundamentals Chapter 4 Page 27 Counting Modulo 7, Preset 9

ECE/CS 352 Digital System Fundamentals Chapter 4 Page 28 Timing Sequences

ECE/CS 352 Digital System Fundamentals Chapter 4 Page 29 Counter Decoder Example

ECE/CS 352 Digital System Fundamentals Chapter 4 Page 30 Ring Counter

ECE/CS 352 Digital System Fundamentals Chapter 4 Page 31 Johnson Counter (Switch-Tail) BCBC

ECE/CS 352 Digital System Fundamentals Chapter 4 Page 32 Verilog for Registers and Counters Register – same as flip-flop except multiple bits: reg[3:0] Q; input[3:0] D; CLK or posedge RESET) begin if (RESET)Q <= 4'b0000; else Q <= D; end Shift Register – use concatenate: Q <= {Q[2:0], SI}; Counter – use increment/decrement: count <= count + 1; or count <= count - 1

ECE/CS 352 Digital System Fundamentals Chapter 4 Page 33 Verilog Description of Left Shift Register // 4-bit Shift Register with Reset // (See Figure 5-3) module srg_4_r_v (CLK, RESET, SI, Q,SO); input CLK, RESET, SI; output [3:0] Q; output SO; reg [3:0] Q; assign SO = Q[3]; CLK or posedge RESET) begin if (RESET) Q <= 4'b0000; else Q <= {Q[2:0], SI}; end endmodule

ECE/CS 352 Digital System Fundamentals Chapter 4 Page 34 Verilog Description of Binary Counter // 4-bit Binary Counter with Reset // (See Figure 5-10) module count_4_r_v (CLK, RESET, EN, Q, CO); input CLK, RESET, EN; output [3:0] Q; output CO; reg [3:0] count; assign Q = count; assign CO = (count == 4'b1111 && EN == 1'b1) ? 1 : 0; CLK or posedge RESET) begin if (RESET) count <= 4'b0; else if (EN) count <= count + 1; end endmodule