An Optimized Design of Reversible Sequential Digital Circuits

Similar documents
A Beginning in the Reversible Logic Synthesis of Sequential Circuits

An Extension to DNA Based Fredkin Gate Circuits: Design of Reversible Sequential Circuits using Fredkin Gates

A New Reversible TSG Gate and Its Application For Designing Efficient Adder Circuits

Module 3: Floyd, Digital Fundamental

Counters and Decoders

Lecture 8: Synchronous Digital Systems

AN IMPROVED DESIGN OF REVERSIBLE BINARY TO BINARY CODED DECIMAL CONVERTER FOR BINARY CODED DECIMAL MULTIPLICATION

Asynchronous Counters. Asynchronous Counters

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

ASYNCHRONOUS COUNTERS

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

DIGITAL COUNTERS. Q B Q A = 00 initially. Q B Q A = 01 after the first clock pulse.

Digital Logic Design Sequential circuits

Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng

To design digital counter circuits using JK-Flip-Flop. To implement counter using 74LS193 IC.

Contents COUNTER. Unit III- Counters

Lesson 12 Sequential Circuits: Flip-Flops

COMPARATIVE ANALYSIS OF 4-BIT AND 8-BIT REVERSIBLE BARREL SHIFTER DESIGNS USING REVKIT

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

ENEE 244 (01**). Spring Homework 5. Due back in class on Friday, April 28.

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

WEEK 8.1 Registers and Counters. ECE124 Digital Circuits and Systems Page 1

Upon completion of unit 1.1, students will be able to

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute 5. LECTURE: REGISTERS AND RELATED

So far we have investigated combinational logic for which the output of the logic devices/circuits depends only on the present state of the inputs.

Sequential Logic. (Materials taken from: Principles of Computer Hardware by Alan Clements )

CHAPTER IX REGISTER BLOCKS COUNTERS, SHIFT, AND ROTATE REGISTERS

DEPARTMENT OF INFORMATION TECHNLOGY

CHAPTER 11 LATCHES AND FLIP-FLOPS

Memory Elements. Combinational logic cannot remember

Chapter 8. Sequential Circuits for Registers and Counters

Design Example: Counters. Design Example: Counters. 3-Bit Binary Counter. 3-Bit Binary Counter. Other useful counters:

SEQUENTIAL CIRCUITS. Block diagram. Flip Flop. S-R Flip Flop. Block Diagram. Circuit Diagram

CHAPTER 11: Flip Flops

Flip-Flops and Sequential Circuit Design. ECE 152A Winter 2012

Flip-Flops and Sequential Circuit Design

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

Sequential Logic Design Principles.Latches and Flip-Flops

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute. 2nd (Spring) term 2012/2013

Systems I: Computer Organization and Architecture

EE 42/100 Lecture 24: Latches and Flip Flops. Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad

Counters & Shift Registers Chapter 8 of R.P Jain

Theory of Logic Circuits. Laboratory manual. Exercise 3

Counters. Present State Next State A B A B

The components. E3: Digital electronics. Goals:

Microprocessor & Assembly Language

Keywords Quantum logic gates, Quantum computing, Logic gate, Quantum computer

Lecture-3 MEMORY: Development of Memory:

Chapter 7. Registers & Register Transfers. J.J. Shann. J. J. Shann

Let s put together a Manual Processor

Counters are sequential circuits which "count" through a specific state sequence.

Flip-Flops, Registers, Counters, and a Simple Processor

ECE380 Digital Logic

Operating Manual Ver.1.1

BINARY CODED DECIMAL: B.C.D.

Wiki Lab Book. This week is practice for wiki usage during the project.

Asynchronous counters, except for the first block, work independently from a system clock.

Engr354: Digital Logic Circuits

Digital Fundamentals

Take-Home Exercise. z y x. Erik Jonsson School of Engineering and Computer Science. The University of Texas at Dallas

(Refer Slide Time: 00:01:16 min)

Chapter 9 Latches, Flip-Flops, and Timers

Decimal Number (base 10) Binary Number (base 2)

Modeling Sequential Elements with Verilog. Prof. Chien-Nan Liu TEL: ext: Sequential Circuit

Chapter 2 Logic Gates and Introduction to Computer Architecture

Master/Slave Flip Flops

EXPERIMENT 8. Flip-Flops and Sequential Circuits

SN54/74LS192 SN54/74LS193

CS311 Lecture: Sequential Circuits

NOTE: The Flatpak version has the same pinouts (Connection Diagram) as the Dual In-Line Package.

DATA SHEET. HEF40193B MSI 4-bit up/down binary counter. For a complete data sheet, please also download: INTEGRATED CIRCUITS

CHAPTER 3 Boolean Algebra and Digital Logic

Latches, the D Flip-Flop & Counter Design. ECE 152A Winter 2012

Design Verification & Testing Design for Testability and Scan

Combinational Logic Design Process

IE1204 Digital Design F12: Asynchronous Sequential Circuits (Part 1)

Digital Controller for Pedestrian Crossing and Traffic Lights

Gray Code Generator and Decoder by Carsten Kristiansen Napier University. November 2004

Digital Electronics Detailed Outline

1.1 The 7493 consists of 4 flip-flops with J-K inputs unconnected. In a TTL chip, unconnected inputs

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

CpE358/CS381. Switching Theory and Logical Design. Class 10

A New Paradigm for Synchronous State Machine Design in Verilog

Lab 1: Study of Gates & Flip-flops

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

Chapter 5. Sequential Logic

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

EE360: Digital Design I Course Syllabus

Digital Logic Elements, Clock, and Memory Elements

Lecture 10 Sequential Circuit Design Zhuo Feng. Z. Feng MTU EE4800 CMOS Digital IC Design & Analysis 2010

Obsolete Product(s) - Obsolete Product(s)

SN54HC191, SN74HC191 4-BIT SYNCHRONOUS UP/DOWN BINARY COUNTERS

Napier University. School of Engineering. Electronic Engineering A Module: SE42205 Digital Design

6-BIT UNIVERSAL UP/DOWN COUNTER

Fig1-1 2-bit asynchronous counter

LAB #4 Sequential Logic, Latches, Flip-Flops, Shift Registers, and Counters

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 OUTCOME 3 PART 1

Transcription:

Proceedings of NCET-2013, Bareily An Optimized Design of Reversible Sequential Digital Circuits Pradeep Singla 1, Aakash Gupta 2, Ashutosh Bhardwaj 3, Pulkit Basia 4 1,3,4 Department of Electronics and Communication Engineering, 2 Deptt. Of Computer Science Sonipat Institute of Engineering & Mgmt. 1 pradeepsingla7@gmail.com 2 aakashgarg1987@gmail.com 3 ashu22bhardwaj@gmail.com 4 pulkitbasia1292@gmail.com Abstract- In the today s era, reversible logics are the promising technology for the designing of low power digital logic system having major application in the field of nanotechnology, quantum computation, DNA and other low power digital circuits. Reversible logics provide zero power dissipation (Ideally) in the digital operations. There are numbers of circuit designed by the reversible logics and sequential circuits have their own importance in the digital systems. In this paper authors provides a optimized approach and optimized design for the sequential circuit ( counter as an example) by using the MUX gate ( a reversible gate) which provides the better results against the previous designs discussed in the literature. The proposed design has lower quantum cost, garbage output, constant input and total number of logical calculations performing by the design. Keywords Reversible Logics, Quantum Cost, Garbage Output, Counter, Total Logical Calculations I. INTRODUCTION Energy dissipation is one of the important considerations in hardware design. Reversible logic was primarily related to energy when in 1961 Landauer states that losing of a bit in digital circuits causes an smallest amount of heat dissipation and the theoretical limit of heat dissipation for losing of one bit computation would be KTln2 [1] where K is Boltzmann s constant and T is the temperature. In 1973 Bennett proved that KTln2 energy would not dissipate from a system as long as system allows the reproduction of the inputs from the observed outputs [2].Zero energy dissipation would be possible only if the network consist of reversible gates. In a reversible circuit input vector can be uniquely recovered from the output vector and here is one to one correspondence between inputs and outputs. Energy dissipation can be reduced if computation becomes information-lossless [3].The idea of reversible computing comes from the Thermodynamics, which taught us the benefits of reversible process over irreversible process. These circuits can generate unique output vector from each input vector and vice versa [4]. Reversible logic synthesis of reversible sequential logic differs from combinational logic in that the output of the logic device is dependent not only on the present inputs to the device, but also on past inputs. In this paper we are synthesising on sequential logics by using reversible gates and the paper provides the optimized design of 3 bit synchronous and asynchronous counter in terms of garbage outputs, number of total calculations, quantum cost[5]. The reversible MUX gate and Feynman gate is used for designing the J-K flip-flop which is an essential component of 3 bit counter. The numeral results are shown later. This paper presents following prospective: Section ll describe the background of the reversible logic and the conditions for the reversibility. Different reversible gate structure is also discussed in the same section. In Section III, we have discussed basic necessities of counter and its following types. In section IV, we have proposed design of three bit reversible synchronous and asynchronous counter. In the Section V, we have described numerical results of proposed reversible synchronous and asynchronous counter.

II. REVERSIBLE LOGIC The logical reversibility means there should be same number of input and outputs i.e. The number of input lines and output lines must be same and there must be one to one mapping between input and output[3].the gate must run forward and backward i.e., the input can also be retrieved from the output, when device obeys these two conditions then the second law of thermodynamics guarantees that it dissipate no heat[4].in the synthesis of reversible circuits nor direct fan out is allowed neither feedback is permitted. A reversible circuit should be designed using minimum number of reversible logic gates. From the point of view of reversible circuit design there are parameter for determining the complexity and performance of circuit, such as garbage output and quantum cost [6]. Some important terms used in reversible logics are as follows; Garbage output[3] -Garbage output refers to the number of unused outputs present in a reversible logic circuit. Quantum cost[5]-quantum cost refers to the cost of circuits in terms of the cost of primitive gates. Total Logical calculation[3] - The Total logical calculation is the count of the XOR, AND, NOT logic in the output circuit. Constant inputs[3] Constant inputs is the number of inputs that are to be maintained constant at either 0 or 1 in order to synthesize the given logical function A. Basic Reversible Logic Gates 1) Feynman Gate: It is a 2X2 Feynman gate having two inputs A and B and two outputs P and Q. The outputs are defined by P=A, Q=A xor B. Quantum cost of a Feynman gate is 1. Figure 1 shows a 2X2 Feynman gate[3][4][5][7] and Table I shows truth table of Feynman gate. Table 1 Figure1. Feynman gate A B C D 0 0 0 0 0 1 0 1 1 0 1 1 1 1 1 0 2) Fredkin Gate: It is a 3X3 Fredkin gate having three inputs A, B and C and three outputs P, Q, and R. The output is defined by P=A, Q= A B xor AC and R= A C xor AB. Quantum cost of a Fredkin gate is 5. Figure 2 shows a 3X3 Fredkin gate [3][4][5][8]. Table II shows truth table of Fredkin Gate. A B C P Q R Figure 2. Fredkin gate 0 0 0 0 0 0 0 0 1 0 0 1 0 1 0 0 1 0 0 1 1 0 1 1 1 0 0 1 0 0 1 0 1 1 1 0 1 1 0 1 0 1 1 1 1 1 1 1

3) MUX Gate : It is a 3X3 MUX gate having three inputs A,B and C and three outputs P,Q, and R. The output is defined by P=A, Q= A xor B xor C and R= A C xor AB. Quantum cost of a MUX gate is 4. Figure 3 shows a 3X3 MUX gate [3]. Table III shows truth table of MUX Gate. TABLE III Figure 3. Mux gate A B C P Q R 0 0 0 0 0 0 0 0 1 0 1 1 0 1 0 0 1 0 0 1 1 0 0 1 1 0 0 1 1 0 1 0 1 1 0 0 1 1 0 1 0 1 1 1 1 1 1 1 III. COUNTER THEORY Counter is a sequential machine constructed with the help of flip-flop. The counting of counter may be ascending, descending or in any manner decided by the designer[9][10].they are generally used in applications like digital alarm clock, managing production quantities, filling fixed quantities, time interval measurement etc..these devices generate binary numbers in a specified counting sequence when triggered by an incoming clock. After each trigger, the counter advances to the next number in the sequence. Counters may be used to generate waveforms of particular patterns and frequencies [10]. There are two kinds of counters in literature as stated below A. Asynchronous counter- In asynchronous counter the output of one flip-flop is feeded to the clock input of another flip-flop[11]. The control clock is input to the first stage. Figure 4 shows three bit asynchronous counter. B. Synchronous counter- Fig 4.Three bit asynchronous counter Synchronous counter is a counter in which same clock pulse is applied to all flip-flops. Synchronous counters can be designed to count up and down in a specific order. They may be used to produce count sequences of nonconsecutive numbers[12]. The count sequence produced by synchronous counters is not dependent on the triggering characteristics of the flip-flops[13]. Figure 5 shows a three-bit synchronous counter where;

J2 = Q1Q0, K2= Q1Q0, J1= Q0, K1= Q0, J0=1, K0=1 Figure 5.Three bit synchronous counter IV PROPOSED REVERSIBLE THREE BIT SYNCHRONOUS AND ASYNCHRONOUS COUNTER The reversible J-K flip flop(as shown in fig.9) is used to implement more complex reversible sequential circuits. Figure 6 shows three bit reversible synchronous counter implemented using J-K flip flop and Figure 7 shows three bit reversible asynchronous counter implemented using J-K flip flop with common clock input. Fig 6. Three bit reversible synchronous counter. Fig 7.Three bit reversible Asynchronous counter In three bit synchronous counter the clock is being passed through Feynman gate when Feynman gate is working in copy mode and another inputs are being fed through Vcc which is positive i.e.; now according to J-K flip flop its working would be in toggle condition, so if it is assumed that flip flop is in reset condition then due to toggle it will change its state to set mode i.e. 1.The cycle will run this way from reset to set & set to reset and so on.

A. Quantum cost- 1). Quantum cost of reversible J-K flip-flop: V. NUMERAL RESULT In reversible J-K flip-flop we have used 4 Mux gate,2 New gate and 4 Feynman gate.now let m is the Quantum cost of Mux gate, n is the Quantum cost of the new gate and F is the Quantum cost of the Feynman gate. so, the Quantum cost(a) of the Reversible J-K flip-flop is Quantum cost(a) = 4m+2n+4F 2) Quantum cost of 3 bit reversible synchronous counter: In three bit reversible synchronous counter we have used 3 reversible J-K flip flop, 1 mux gate and 3 Feynman gate.now let A be Quantum cost of reversible J-K flip-flop, m be the Quantum cost of the mux gate and F is the Quantum cost of Feynman gate. So, the Quantum cost of 3 bit reversible synchronous counter is Quantum cost (C)= 3A+1m+3F = 3(4m+2n+4F)+1m+3F =13m+6n+15F 3) Quantum cost of 3 bit reversible asynchronous counter: In three bit reversible asynchronous counter we have used 3 reversible J-K flip flops and 1 Feynman gate.now let A be Quantum cost of reversible J-K flip-flop and F is the Quantum cost of Feynman gate. So, the Quantum cost of 3 bit reversible asynchronous counter is Quantum cost (ac) = 3A+1F =3(4m+2n+4F) + 1F = 12m+6n+13f B. Total Logical calculation (T) : Assuming α = A two input XOR gate calculation β = A two input AND gate calculation δ = A NOT gate calculation T = Total logical calculation The Total logical calculation is the count of the XOR, AND, NOT logic in the output circuit. For example MUX gate has three XOR gate and two AND gate and one NOT gate in the output expression. Therefore () = 3α+2β+δ.and New gate has two XOR gate and two AND gate and three NOT gate in the output expression.therefore T (N)=2 α+2 β+3 δ 1) Total Logical calculation (T) of reversible J-K flip-flop: In reversible J-K flip-flop we have used 4 Mux gate, 2Newgates and 4 Feynman gate So Total logical calculation of reversible J-K flip-flop is T = 4 (3α+2β+δ)( for MUX gate)+ 4 1α(for Feynman gate) +2(2 α+2 β+3 δ) (for New gate) T (J-k) = 20 α +12 β +10 δ 2) Total Logical calculation (T) of 3 bit reversible synchronous counter: In three bit reversible synchronous counter we have used 3 reversible J-K flip flop, 1 mux gate and 3 Feynman gate.so, Total Logical calculation (T) of 3 bit reversible synchronous counter T =3 x (20 α +12 β +10 δ) +1 (3α+2β+δ) (for MUX gate) + 3 1 α (for Feynman gate) T=66 α +38 β +31 δ 3) Total Logical calculation (T) of 3 bit reversible asynchronous counter: In three bit reversible asynchronous counter we have used 3 reversible J-K flip flops and 1 Feynman gate.so, Total Logical calculation (T) of 3 bit reversible synchronous counter.

T =3x (20 α +12 β +10 δ) + 1α (for Feynman gate) T=61 α +36 β +30 δ TABLE IV COMPARISON RESULTS Type Design Quantu m cost logical calculation Propose d circuit (Synchronou s counter) Asynchronou s counter 109 66α+38β+31δ 103 61α+36β +30δ Existing one (Synchronou s counter) 122 53α+64β+45δ Asynchronou s counter 115 49α +60β +42δ Where : α = A two input XOR gate calculation β = A two input AND gate calculation δ = A NOT gate calculation VI. CONCLUSION The counter are mostly used for applications like filling fixed quantities, managing production quantities,digital alarm clock, computer memory pointer, time interval measurement. In this paper we have proposed a new improved design of three bit synchronous and asynchronous counter with the help of MUX gate and reversible JK flip-flops. The mux gate has lower quantum cost as compared to the Fredkin gate defined in literature and mux gate can all the operation as do as Fredkin. The numeral results are also shown in the paper with Table IV which shows the optimized results of proposed design against the previous designs of sequential circuits and will provides a new arena to design digital logical systems. VII REFERENCE [1] R. Landauer, Irreversibility and Heat Generation in the Computational Process, IBM Journal of Research and Development, 5, pp.183-191, 1961. [2] C.H. Bennett, Logical Reversibility of Computation, IBM J.Research and Development, pp. 525-532, November 1973. [3] Pradeep singla and Naveen kr. Malik A Cost - Effective Design of Reversible programmable logic array International Journal of Computer Application, volume 41 no. 15, march- 2012. [4] Pradeep Singla and Satyan. Article:Towards the Solution of Power Dissipation in Electronics Systems through Thermodynamics. Proceedings of ETEIC-2012: pp 300-303, April-2012. [5] Pradeep Singla and Naveen Kr. Malik. Article: Reversible Programmable Logic Array (RPLA) using Feynman & MUX Gates for Low Power Industrial Applications. Proceedinggs of ICIAICT-2012,pp 411-419, March 2012. [6] Abu Sadat MD. Sayen and sajib Kumarmitra efficient approach to design low power reversible logic 978-114244-8728-8/11/IEE-2011. [7] R. Feynman, Quantum Mechanical Computers, Optics News, Vol.11, pp. 11 20, 1985. [8] E. Fredkin and T. Toffoli, Conservative logic, Int 1J. Theoretical Physics, Vol.11, pp.219-253,1985. [9] MANO, "Digital Design", Prentice/Hall International, book, 1986. [10] L.Floyd "Digital Fundamental", seven editions, Prentice Hall, book, 2000.

[11] HawraH. Abbas& L Rubial Implementation modified using Fredkin & Feynman logic gates No. 3 scientific 2008 journal of Kerbala University. [12] H. Thapliyal and M. Srinivas, "A beginning in the reversible logic synthesis of sequential circuits," MAPLD International Conference,September 2005. [13] S. Bandyopadhyay, "Nanoelectric implementations of recversible andquantum logic," Supperlattices and Microstructures, vol. 23 Fig 9. Reversible JK Flip Flop