1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.

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.
Dr. ClincyLecture1 Appendix A – Part 2: Logic Circuits Current State or output of the device is affected by the previous states Circuit Flip Flops New.
Sequential Circuits A Basic sequential circuit is nothing but a combinational circuit with some feedback paths between its output and input terminals.
Half Adder Sum = X’Y+XY’ = X  Y Carry = XY YXYXYX  YYYX  XX XOR XNOR.
Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present.
The Control Unit: Sequencing the Processor Control Unit: –provides control signals that activate the various microoperations in the datapath the select.
Logic and Computer Design Fundamentals Registers and Counters
ENGIN112 L27: Counters November 5, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 27 Counters.
CS370 Counters. Overview °Counter: A register that goes through a prescribed series of states °Counters are important components in computers. °Counters.
Sequential Circuit Introduction to Counter
Introduction Flip-flops are synchronous bistable devices. The term synchronous means the output changes state only when the clock input is triggered. That.
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:
What is shift register? A shift register is a digital memory circuit found in calculators, computers, and data-processing systems. Bits (binary digits)
Registers and Counters
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.
Counters  A counter is a device which stores (and sometimes displays) the number of times a particular event or process has occurred, often in relationship.
Unit 12 Registers and Counters Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
A presentation on Counters
SEQUENTIAL CIRCUITS USING TTL 74XX ICS
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Chapter 1_4 Part II Counters
EE345: Introduction to Microcontrollers Register and Counters Prof. Ahmad Abu-El-Haija.
Registers and Counters
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
EE24C Digital Electronics Projects
Last Mod: March 2014  Paul R. Godin Shift Registers Registers 1.1.
Registers & Counters M. Önder Efe
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
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 )
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.
1 Registers & Counters Logic and Digital System Design - CS 303 Erkay Savaş Sabancı University.
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.
Sequential Logic Circuit
Sequential logic circuits
CHAPTER 6 Sequential Circuits’ Analysis CHAPTER 6 Sequential Circuits’ Analysis Sichuan University Software College.
Registers and Counters
COUNTERS Why do we need counters?
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Chap 5. Registers and Counters
Chapter 1_0 Registers & Register Transfer. Chapter 1- Registers & Register Transfer  Chapter 7 in textbook.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
3 BIT DOWN COUNTER SUBJECT: DIGITAL ELECTONICS CODE: COLLEGE: BVM ENGINEERING COLLEGE COLLEGE CODE:008 ELECTRONICS & TELECOMMUNICATION DEPT.
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.
Logic Design (CE1111 ) Lecture 6 (Chapter 6) Registers &Counters Prepared by Dr. Lamiaa Elshenawy 1.
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.
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
Registers and Counters
EKT 221 : Digital 2 COUNTERS.
Sequential Logic Counters and Registers
3.2 Shift Register Basic shift register function
Shift Registers.
Registers and Counters Register : A Group of Flip-Flops. N-Bit Register has N flip-flops. Each flip-flop stores 1-Bit Information. So N-Bit Register Stores.
COE 202: Digital Logic Design Sequential Circuits Part 4
29-Nov-18 Counters Chapter 5 (Sections ).
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
Computer Architecture and Organization: L02: Logic design Review
Registers.
Digital Logic Department of CNET Chapter-6
Digital Logic Department of CNET Chapter-6
Outline Registers Counters 5/11/2019.
Registers and Counters
Week 11 Flip flop & Latches.
Digital Electronics and Logic Design
Presentation transcript:

1 Sequential Circuits Registers and Counters

2 Master Slave Flip Flops

Types of Sequential Circuits Two types of sequential circuits: Synchronous: The behavior of the circuit depends on the input signal at discrete instances of time (also called clocked) Asynchronous: The behavior of the circuit depends on the input signals at any instance of time and the order of the inputs change 3

Master-Slave Flip-Flop The rising edge of the clock loads new data into the master, while the slave continues to hold previous data. The falling edge of the clock loads the new master data into the slave. 4 At C = 1, Master is Enabled and Slave is disabled C = 0, Slave is enabled and Master is disabled Y Q y C C Q MasterSlave

5 Registers

Registers Several flip-flops grouped together with a common clock to form a register. Each flip-flop can store one bit of information, A register with n flip-flops can store/load n bits of information (e.g. to store data in the CPU) OR to transferring data between registers is a common operation in digital systems Shift Register: A register that allows each of the flip -flops to pass the stored information to its adjacent neighbour Some of shift registers are: Parallel In parallel out (PIPO) Serial In Serial Out register (SISO) Serial In Parallel Out (SIPO) Parallel In Serial Out (PISO) 6

4-bit register 4-bit register - (PIPO) 7 The common clock input triggers all flip flops on the positive edge of each pulse, and the binary data available at the four inputs are transferred into the register (Loading/ up loading). The four outputs can be sampled at any time to obtain the binary Information stored in the register.

4-bit register (SISO) / Shift register 8 The bits will arrive in serial - one bit at a time The Input is applied to first flip-flop and shifted along one at each clock event

Figure 2.2 illustrates entry of the four bits 1010 into the register. Figure 2.3 shows the four bits (1010) being serially shifted out of the register and replaced by all zeros. 9

10

11

SIPO Register 12 RESET is an input to CLEAR the FF One application of shift registers is converting between “serial data” and “parallel data” Accepts data serially. Outputs of all stages are available simultaneously

PISO Register PISO Register 13 Bits are load simultaneously, but output is Shifted serially.

14 Counters

Counters A counter is essentially a register that goes though a predetermined sequence of binary states. It counts in binary from 0 to 2ⁿ-1, where n is the number of FFs The output value increases by one on each clock cycle After the largest value, the output “wraps around” back to 0 Counters can act as simple clocks to keep track of “time”. They also used to record how many times something has happened or how many steps have been performed in some computation? All processors in the computers contain a Program Counter, or PC to keep track of the instruction currently being executed and after each clock cycle the next instruction will be executed. 15

Classification of counters:  Asynchronous (ripple) counter Up and Down counter  Synchronous counter 16

 Only the first flip-flop is clocked by an external clock. All subsequent flip- flops are clocked by the output of the preceding flip-flop.  It is called ripple-counters because of the way the clock pulse ripples it way through the flip-flops  They also known by Frequency Division (to lower the hertz) 17 Asynchronous (ripple) counter

18 FF0 changes state at the rising edge of each clock pulse, but FF1 changes only when triggered by the rising edge of the (complement of Q signal) output of FF0 (positive edge –triggering) Asynchronous Up counter Timing diagram

Down counter Down counter To convert the above Up Counter to Down counter change the ripple of the clock to be taken from Q of FF0 to trigger FF1 instead of and so on 19

Synchronous Counters All flip-flops are clocked simultaneously by an external clock. Synchronous counters are an example of state machine design because they have a set of states and a set of transition rules for moving between those states after each clocked event 20 complement No change complement No change complement

Random Access Memory (RAM) 21  Stores binary information in groups of bits called words.  The data consists of n lines (for n-bit words). Data input lines provide the information to be stored (written) into the memory, while data output lines carry the information out (read) from the memory.  The address consists of k lines which specify which word (among the 2 k words available) to be selected for reading or writing.  The control lines Read and Write (usually combined into a single control line ) specifies the direction of transfer of the data.  Static RAMs use flip-flops as the memory cells

22 The control lines Read and Write (usually combined into a single control line ) specifies the direction of transfer of the data

H.W The submission has to be by the end of this week H.W The submission has to be by the end of this week Write your full name and the group number on the answer sheet 1- Draw the state diagram of T Flip Flop 2- From the below block diagram of a counter : a) What kind of triggering is used? b)With the aid of timing diagram clarify the sequence of the main states Qs that is possible by this counter assuming their initial states are 0 c)What is the new result if we replace the JK flip flop with the T flip flop in this counter and why? 23

H.W H.W 3- From the following logic circuit draw the timing diagram for ‘Q’. Assume ‘Q’ has an initial value of ‘0’ 24

4- From this circuit find out the boolean expression of the next states of each Flip flop and the output of the circuit (Y), then complete its excitation Table. 5- Write at least 4 pages to highlight the basics definitions and operation of RAM 25