EE24C Digital Electronics Projects

Slides:



Advertisements
Similar presentations
Registers and Counters
Advertisements

Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
EE2420 – Digital Logic Summer II 2013
Sequential Circuits A Basic sequential circuit is nothing but a combinational circuit with some feedback paths between its output and input terminals.
Digital Digital: Chapter 8. Sequential Logic Design Practices 1 Chapter 8. Sequential Logic Design Practices.
CMPUT Computer Organization and Architecture II1 CMPUT329 - Fall 2003 TopicJ: Counters José Nelson Amaral.
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.
Contemporary Logic Design Sequential Case Studies © R.H. Katz Transparency No Chapter #7: Sequential Logic Case Studies 7.1, 7.2 Counters.
Registers & Counters Registers. Shift Registers: Counters:
Shift Registers and Shift Register Counters
Logic and Computer Design Fundamentals Registers and Counters
Sequential PLD timing Registers Counters Shift registers
Digital Logic Design Lecture 24. Announcements Homework 8 due today Exam 3 on Tuesday, 11/25. – Topics for exam are up on the course webpage.
Sistemas Digitais I LESI - 2º ano Lesson 8 - Sequential Design Practices U NIVERSIDADE DO M INHO E SCOLA DE E NGENHARIA Prof. João Miguel Fernandes
Sequential Circuit Introduction to Counter
REGISTER A Register is a group of binary storage cells suitable for holding binary information. A group of flip-flops constitutes a register, since each.
Unit 12 Registers and Counters Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
Sequential Circuit  It is a type of logic circuit whose output depends not only on the present value of its input signals but on the past history of its.
A presentation on Counters
Registers and Counters
Chapter 1_4 Part II Counters
Flip-Flop Applications Registers.  a register is a collection of flip-flops  basic function is to hold information  a shift register is a register.
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
EE345: Introduction to Microcontrollers Register and Counters Prof. Ahmad Abu-El-Haija.
Registers and Counters
ECE 301 – Digital Electronics Flip-Flops and Registers (Lecture #15)
Counters Clocked sequential circuit whose state diagram contains a single cycle. Modulus – number of states in the cycle. Counters with non-power of 2.
1 Shift Registers. –Definitions –I/O Types: serial, parallel, combinations –Direction: left, right, bidirectional –Applications –VHDL implementations.
Lecture 10 Topics: Sequential circuits Basic concepts Clocks
Registers and Counters
Last Mod: March 2014  Paul R. Godin Shift Registers Registers 1.1.
CHAPTER 12 REGISTERS AND COUNTERS
Registers & Counters M. Önder Efe
CHAPTER 6 MODULAR SQUENTIAL CIRCUITS & APPLICATIONS
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.
Digital Design: Principles and Practices
Counter Application (Part B) By : Pn Siti Nor Diana Ismail CHAPTER 3.
Synchronous Counters with SSI Gates
SEQUENTIAL CIRCUITS Component Design and Use. Register with Parallel Load  Register: Group of Flip-Flops  Ex: D Flip-Flops  Holds a Word of Data 
2017/4/24 CHAPTER 6 Counters Chapter 5 (Sections )
Princess Sumaya Univ. Computer Engineering Dept. Chapter 6:
EE365 Adv. Digital Circuit Design Clarkson University Lecture #12 Registers and Counters.
Counters By Taweesak Reungpeerakul
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 17 Dr. Shi Dept. of Electrical and Computer Engineering.
7-6 단일 레지스터에서 Microoperation Multiplexer-Based Transfer  Register 가 서로 다른 시간에 둘 이상의 source 에서 data 를 받을 경우 If (K1=1) then (R0 ←R1) else if (K2=1) then.
 Counters are sequential circuits which "count" through a specific state sequence. They can count up, count down, or count through other fixed sequences.
ENG241 Digital Design Week #8 Registers and Counters.
Chap 5. Registers and Counters. Chap Definition of Register and Counter l a clocked sequential circuit o consist of a group of flip-flops & combinational.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Chapter 1_4 Part III more on … Counters Chapter 1_4 Part III more on … Counters.
Registers Page 1. Page 2 What is a Register?  A Register is a collection of flip-flops with some common function or characteristic  Control signals.
Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –
Sequential logic circuits
CHAPTER 6 Sequential Circuits’ Analysis CHAPTER 6 Sequential Circuits’ Analysis Sichuan University Software College.
Synchronous Counter with MSI Gates
Digital Electronics Electronics Technology Landon Johnson Shift Registers.
Digital Fundamentals Tenth Edition Floyd Chapter 9.
EE121 John Wakerly Lecture #9
Counters.
Digital System Design using VHDL
Chapter 6 – Digital Electronics – Part 1 1.D (Data) Flip Flops 2.RS (Set-Reset) Flip Flops 3.T Flip Flops 4.JK Flip Flops 5.JKMS Flip Flops Information.
Chap 5. Registers and Counters
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.
CHAPTER 14 Digital Systems. Figure 14.1 RS flip-flop symbol and truth table Figure
1 CHAPTER 12 REGISTERS AND COUNTERS This chapter in the book includes: Objectives Study Guide 12.1Registers and Register Transfers 12.2Shift Registers.
CSE 370 – Winter Sequential Logic-2 - 1
Switching Theory and Logic Design Chapter 5:
Digital Logic Department of CNET Chapter-6
Digital Logic Department of CNET Chapter-6
Week 11 Flip flop & Latches.
Presentation transcript:

EE24C Digital Electronics Projects Counters and Registers

Definitions A synchronous circuit is a sequential circuit whose input/output changes are synchronized by a reference signal called clock signal. Basic synchronous circuits include: Counters (sequential circuits configure in a specific form in order to count clock ticks). Registers (for elementary storage and shift operations) Random-Access Memories (RAMs) for Read/write operations.

Basic Synchronous Circuits Characteristics: Clocked by stable clock signal (crystal oscillator) Set of input and output data lines Set of control signals Can be described using FSMs Can be implemented using basic synchronous cells (DFFs and JKFFs). Exist as MSI (medium scale integrated) circuits. Their designs often require the use of some combinational elements.

Parallel Load Register Characteristics: A n-bit parallel load register is an ordered set of n FFs that are used to store n-bit word. It has n-bit input and n-bit Output Data A set of control signals: Load (LD), Clear (CLR)

Figure: N-bit parallel register. Inputs: X = (xn-1, xn-2,…x0), xi{0,1} LD, CLR {0,1} Outputs: Z = (zn-1,…, z0) zi {0,1} State: S = (Sn-1, …, S0), Si{0,1} Figure: N-bit parallel register. Function: State Transition and Output functions

How can we design a n-bit register from the specification given previously? By analyzing the specification, it appears that DFFs can be used in order to implement the Load operation. The outputs of the register change according to the values of the two control signals LD and CLR  Use of a MUX We must avoid the condition LD = CLR=1.

4-Bit parallel Register: Parallel load registers exist in different MSI flavors.

Multibit registers and latches 74x175

8-bit (octal) register 74x374 3-state output Active on a high level.

Other octal registers 74x273 asynchronous clear 74x377 clock enable

Octal latch 74x373 Register vs. latch, what’s the difference? Output enable Latch-enable input “C” or “G” Register vs. latch, what’s the difference? Register: edge-triggered behavior Latch: output follows input when G is asserted

Shift Registers There are many situations in digital systems design where it’s useful to be able to shift the contents of a register to the left or the right. A right-shift operation changes the register states as follows: (0, zn-1, zn-2, ……..z1)  (zn-1, zn-2, ………..z1, z0), A left shift performs the transformation: (zn-2, ………..z1, z0,0)  (zn-1, zn-2, ………..z1, z0)

We have different configurations: A shift register is an n-bit register with a provision for shifting its stored data by one bit position at each clock ticks. We have different configurations: Serial-in/Serial-out shift register Serial-in/Parallel-out shift register (for serial-to-parallel conversion) Parallel-in/Serial-out shift register (for parallel-to-serial conversion)

A register organized to allow left- or right-shift operations of this kind is called a shift register. The following shows a block diagram of a universal registers with load and shift features.

The high-level specification of the universal register is given as follows

More details about the control signals:

The following figure shows a 4-bit bidirectional shift register

Serial-in, serial-out

Serial-to-parallel conversion Use a serial-in, parallel-out shift register

Parallel-to-serial conversion Use parallel-in, serial-out shift register mux

Do both Parallel-in, parallel-out shift register

“Universal” shift register 74x194 Shift left Shift right Load Hold

One stage of ’194

Counters A counter is a simple sequential machine designed to cycle through a predetermined sequence of p distinct states S0, S1,…..Sp-1 in response to pulses on an input line. The p states usually represent k consecutive numbers; the state transitions can be thus described by the expression Si+1  Si + 1 (modulo k). (Si = s(t) and Si+1 = s(t+1) Each input pulse increments the state by 1; the machine can therefore be viewed as counting the input pulses. Counters come in many different varieties depending on the number codes used, the modulus p, and the timing mode (synchronous or asynchronous)

State diagram of a modulo-p counter:  

Counter specification:

Type of counter (up or down): The simplest counters can be obtained by minor modifications of an ordinary register or a shift register. The next figure shows a modulo-16 binary counter composed of four JK flip-flops. This circuit counts the pulses on the count enable line. Note that the output of each flip-flop may alter the state of its right neighbour, so that the "carry" signal ripple through the counter from left to right. This type of counter is therefore called ripple counter (asynchronous) counter.

Figure: A modulo-16 ripple counter: (a) logic diagram; (b) symbol.

A counter is basically a serial-input parallel-output device A counter is basically a serial-input parallel-output device. As in the case of shift registers, it can be useful to have a parallel load capability. Another refinement that is occasionally useful is to permit the counter to be decremented as well as incremented (Up-Down counter). Counters are also available whose modulus can be altered by means of modulus-select control lines; such counters are frequently termed programmable.

The specification of a binary counter with parallel in puts is given as follows:

An illustration of a modulo-16 binary counter of this type is given in the figure below. A modulo-16 binary counter with parallel input.

A parallel-load up/down counter 74x163 MSI 4-bit counter A parallel-load up/down counter

Counter operation Free-running 16 Count if ENP and ENT both asserted. Load if LD is asserted (overrides counting). Clear if CLR is asserted (overrides loading and counting). All operations take place on rising CLK edge. RCO is asserted if ENT is asserted and Count = 15.

Free-running 4-bit ’163 counter “divide-by-16” counter

Modified counting sequence Load 0101 (5) after Count = 15 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 5, 6, … “divide-by-11” counter

Another way Clear after Count = 1010 (10) trick to save gate inputs Clear after Count = 1010 (10) 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 0, 1, 2, 3, … “modulo-11” or “divide-by-11” counter

Counting from 3 to 12

Cascading counters RCO (ripple carry out) is asserted in state 15, if ENT is asserted.

Decoding binary-counter states