tez fatmasaricaphdthesis

98
CURRENT-MODE CMOS SEQUENTIAL MULTIPLE-VALUED LOGIC CIRCUITS by Fatma Sarıca B.S., Electronics and Communication Engineering, Istanbul Technical University, 2001 M.S., Electronics Engineering, Boğaziçi University, 2004 Submitted to the Institute for Graduate Studies in Science and Engineering in partial fulfillment of the requirements for the degree of Doctor of Philosophy Graduate Program in Electronics Engineering Boğaziçi University 2012

Upload: sueleyman-erkan

Post on 20-Dec-2015

43 views

Category:

Documents


4 download

DESCRIPTION

PHD Thesis

TRANSCRIPT

Page 1: Tez FatmaSaricaPhDThesis

CURRENT-MODE CMOS SEQUENTIAL MULTIPLE-VALUED LOGIC CIRCUITS

by

Fatma Sarıca

B.S., Electronics and Communication Engineering, Istanbul Technical University, 2001

M.S., Electronics Engineering, Boğaziçi University, 2004

Submitted to the Institute for Graduate Studies in

Science and Engineering in partial fulfillment of

the requirements for the degree of

Doctor of Philosophy

Graduate Program in Electronics Engineering

Boğaziçi University

2012

Page 2: Tez FatmaSaricaPhDThesis

ii

CURRENT-MODE CMOS SEQUENTIAL MULTIPLE-VALUED LOGIC CIRCUITS

APPROVED BY:

Prof. Avni Morgül …………………

(Thesis Advisor)

Prof. Günhan Dündar …………………

Prof. Ali Toker …………………

Prof. Oğuzhan Çiçekoğlu …………………

Assist. Prof. Faik Başkaya …………………

DATE OF APPROVAL: 02.03.2012

Page 3: Tez FatmaSaricaPhDThesis

iii

ACKNOWLEDGEMENTS

I would like to express my sincere gratitude to my thesis supervisor, Prof. Avni

Morgül for his invaluable guidance, patience, motivation, advice and contributions

throughout this study. His guidance helped me in all the time of research and writing of

this thesis. It was really a pleasure for me to work with him.

I would like to thank Prof. Günhan Dündar and Prof. Ali Toker for their insightful

comments, valuable suggestions, and serving my thesis committee.

I am also thankful to Prof. Oğuzhan Çiçekoğlu and Assist. Prof. Faik Başkaya as

being part of my thesis committee.

My deepest gratitude goes to my mother, for her care and support throughout my life;

this dissertation is simply impossible without her. I have no suitable word that can fully

describe her everlasting love to me.

I would like to express my heart-felt gratitude to my family, Kemal and Berat, for

they bring meaning to my life.

Page 4: Tez FatmaSaricaPhDThesis

iv

ABSTRACT

CURRENT-MODE CMOS SEQUENTIAL MULTIPLE-VALUED

LOGIC CIRCUITS

The use of circuits with more than two logic levels, named as Multiple-Valued Logic

(MVL) circuits, have a potential for reducing chip area consumed by interconnection

wiring and functional units in Very-Large Scale Integration (VLSI). Many logical and

arithmetic functions have been shown to be more efficiently implemented with multiple-

valued logic in terms of number of operations, gates, transistor count and signal lines etc.

However, in spite of their potential advantages, developments in multi-valued systems are

not satisfactory. It is still a complicated task to design a system for processing a signal in a

multi-valued manner despite considerable effort. Multi-valued logic circuits can be

designed in current mode or voltage mode. Due to the limited supply voltages, higher

radices could not be obtained using voltage mode circuits. On the other hand, current mode

circuits have the advantages of current scaling, copying and sign changing with a simple

current mirror, but unlike binary logic circuits, they are not self-restored. In this study,

current-mode sequential logic circuits are designed and analyzed. Multiple-valued

counterparts of the well-known flip-flop structures are discussed and a new type of flip-

flop circuit, named AB, is proposed. The proposed circuit is used in various counter and

random sequential circuit designs. Circuit schematics and simulation results are presented.

In addition, a multiple-valued and binary counter designs that are using D-type flip-flops

(the only flip-flop that has the same output equations for both MVL and binary) are

compared in terms of various VLSI design criteria.

Page 5: Tez FatmaSaricaPhDThesis

v

ÖZET

AKIM-MODLU CMOS ARDIŞIL ÇOK DEĞERLİ MANTIK

DEVRELERİ

İkiden fazla mantık seviyesine sahip devreler, Çok Değerli Mantık (ÇDM) devreleri,

çok büyük çapta tümleştirilmiş devrelerde, ara bağlantılar ve fonksiyonel kısımlar

tarafından harcanan kırmık alanını azaltma potansiyeline sahiptirler. Birçok mantık ve

aritmetik fonksiyonun işlem sayısı, kullanılan kapı ve transistör adedi gibi açılardan ÇDM

devreleri ile daha etkin bir biçimde gerçekleştirilebileceği gösterilmiştir. Bununla birlikte,

potansiyel faydalarına rağmen çok seviyeli sistemlerdeki gelişmeler tatmin edici değildir.

Dikkate değer çabalara rağmen, bir sinyali çok değerli bir şekilde işleme için bir sistem

tasarlamak halen karmaşık bir iştir. ÇDM devreleri akım-modlu veya gerilim-modlu olarak

gercekleştirilebilirler. Sınırlı besleme gerilimleri nedeniyle, gerilim-modlu devreler

kullanılarak yüksek tabanlar elde edilememiştir. Diğer taraftan, akım-modlu devreler basit

bir akım aynası kullanarak akım ölçekleme, kopyalama ve işaret değiştirme avantajlarına

sahiptirler, fakat ikili mantık devrelerinin aksine, kendi akım seviyelerini düzenleyemezler.

Bu çalışmada, akım-modlu ardışıl mantık devreleri tasarlandı ve analiz edildi. Bilinen iki-

durumlu devrelerin çok değerli karşılıkları tartışıldı ve yeni bir iki-durumlu devre yapısı

olarak AB iki-durumlu devresi önerildi. Önerilen devre farklı sayıcı tasarımlarında ve

rastgele bir ardışıl devre tasarımında kullanıldı. Devre şemaları ve benzetim sonuçları

sunuldu. Buna ek olarak, D-tipi iki-durumlu (ÇDM ve iki seviyeli mantık devreleri için

aynı çıkış denklemine sahip tek iki-durumlu) devre kullanılarak tasarlanan çok değerli ve

iki seviyeli sayıcı devreleri çeşitli çok büyük capta tümleştirme kriterlerine göre

karşılaştırıldı.

Page 6: Tez FatmaSaricaPhDThesis

vi

TABLE OF CONTENTS

ACKNOWLEDGEMENTS ......................................................................................... iii

ABSTRACT ................................................................................................................ iv

ÖZET .......................................................................................................................... v

LIST OF FIGURES ..................................................................................................... viii

LIST OF TABLES ...................................................................................................... xii

LIST OF SYMBOLS ................................................................................................... xiv

LIST OF ACRONYMS/ABBREVIATIONS ............................................................... xvi

1. INTRODUCTION ................................................................................................ 1

1.1. Literature Survey ......................................................................................... 2

1.2. Outline of the Thesis .................................................................................... 4

2. MULTIPLE-VALUED LOGIC ALGEBRA ......................................................... 6

2.1. Definitions for Multiple-Valued Algebra ...................................................... 7

2.2. Basic Multi-Valued Circuit Elements .......................................................... 8

2.3. CMOS Current-Mode Binary/MVL Encoding and Decoding ....................... 11

2.4. Multiple-Valued Operators .......................................................................... 14

2.4.1. Functional Comleteness of Multiple-Valued Algebra ..................... 23

2.5. Statistical Mismatch Analysis ...................................................................... 25

2.5.1. MOS Transistor Mismatch Model .................................................. 25

3. SEQUENTIAL MVL CIRCUITS ......................................................................... 28

3.1. Multiple-Valued Latch ................................................................................. 29

3.2. Multiple-Valued Flip-flops .......................................................................... 34

3.2.1. RS-Type Multistable ...................................................................... 34

3.2.2. D-type Multistable ......................................................................... 35

3.2.3. JK-Type Multistable ...................................................................... 36

Page 7: Tez FatmaSaricaPhDThesis

vii

3.2.4. T-Cyclic Multistable ...................................................................... 37

4. NOVEL SEQUENTIAL CURRENT-MODE CMOS MULTIPLE-VALUED

AB FLIP-FLOP .................................................................................................... 39

4.1. Counter Design Using AB Flip-Flop ............................................................ 43

4.1.1. 1-Digit Modulo-4 Synchronous Counter Design ............................ 43

4.1.2. 2-Digit Modulo-16 Synchronous Counter Design ........................... 45

4.1.3. 2-Digit Modulo-16 Ripple Counter Design .................................... 50

4.2. Design of an Arbitrarily Selected State Diagram Using AB Flip-Flop .......... 52

5. COMPARISON OF A MULTIPLE-VALUED AND BINARY CIRCUIT ............ 62

6. CONCLUSION AND FURTHER STUDY ........................................................... 69

6.1. Further Studies ............................................................................................ 71

REFERENCES ............................................................................................................ 73

Page 8: Tez FatmaSaricaPhDThesis

viii

LIST OF FIGURES

Figure 2.1. Addition operation in current-mode MVL. ........................................... 9

Figure 2.2. n-type and p-type current mirrors. ........................................................ 10

Figure 2.3. Multiplying a current by a constant k. ................................................... 10

Figure 2.4. Current redirecting circuit. .................................................................... 10

Figure 2.5. Using MVL circuits in binary designed systems. .................................. 11

Figure 2.6. Current comparator circuit. ................................................................... 12

Figure 2.7. Encoder circuit. .................................................................................... 13

Figure 2.8. Decoder circuit. .................................................................................... 13

Figure 2.9. Complement operator. .......................................................................... 14

Figure 2.10. Truncated difference operator. .............................................................. 15

Figure 2.11. Lower threshold circuit. ........................................................................ 16

Figure 2.12. Window literal operator. ....................................................................... 17

Figure 2.13. Clockwise cyclic operator. .................................................................... 18

Figure 2.14. min circuit introduced in [69]. .............................................................. 19

Figure 2.15. Multi-input min circuit [52]. ................................................................. 20

Figure 2.16. max circuit introduced in [69]. .............................................................. 21

Page 9: Tez FatmaSaricaPhDThesis

ix

Figure 2.17. Multi-input max circuit [48]. ................................................................ 22

Figure 3.1. Block diagram of a sequential circuit. ................................................... 28

Figure 3.2. Current-mode CMOS quaternary latch circuit. ...................................... 30

Figure 3.3. Restoration stage. ................................................................................. 31

Figure 3.4. 8-level latch circuit based on level restoration circuit of reference

[84]. ..................................................................................................... 33

Figure 3.5. Input, output and clock signal waveforms of simulated 8-level latch

circuit. .................................................................................................. 34

Figure 4.1. Block diagram of the AB flip-flop. ....................................................... 40

Figure 4.2. A and B input signals for the AB flip-flop. ........................................... 41

Figure 4.3. Clock and Q output signals for the AB flip-flop. ................................... 41

Figure 4.4. Layout of AB flip-flop. ......................................................................... 42

Figure 4.5. Counting diagram of 1-digit modulo-4 counter. .................................... 43

Figure 4.6. 1-digit modulo-4 synchronous counter block diagram. .......................... 44

Figure 4.7. 1-digit modulo-4 synchronous counter clock and output signals. .......... 45

Figure 4.8. Counting diagram of 2-digit modulo-16 counter. .................................. 46

Figure 4.9. 2-digit modulo-16 synchronous counter block diagram. ........................ 49

Figure 4.10. 2-digit modulo-16 synchronous counter clock and output signals. ........ 49

Figure 4.11. Clock signal generator circuit for 2-digit modulo-16 ripple counter. ..... 50

Page 10: Tez FatmaSaricaPhDThesis

x

Figure 4.12. 2-digit modulo-16 ripple counter block diagram. .................................. 51

Figure 4.13. Clock signals for the first and second flip-flop of 2-digit modulo-16

ripple counter. ...................................................................................... 51

Figure 4.14. 2-digit modulo-16 ripple counter output signals. ................................... 52

Figure 4.15. State diagram of the new sequential circuit. .......................................... 53

Figure 4.16. Block diagram of the new sequential circuit. ........................................ 57

Figure 4.17. x and clock signal inputs of the new sequential circuit. ......................... 58

Figure 4.18. Q1 and Q2 outputs for the new sequential circuit. .................................. 58

Figure 4.19. Binary equivalent circuit of the same new sequential circuit. ................ 61

Figure 5.1. Multiple-valued D-type flip-flop. .......................................................... 63

Figure 5.2. Counting diagram for 1-digit modulo-8 multiple-valued and 3-bit

modulo-8 binary counter. ..................................................................... 63

Figure 5.3. Block diagram of 1-digit modulo-8 multiple-valued counter. ................ 64

Figure 5.4. Output and clock signal waveforms for 1-digit modulo-8 counter

circuit. .................................................................................................. 65

Figure 5.5. Layout of 1-digit modulo-8 counter. ..................................................... 65

Figure 5.6. Binary XOR. ........................................................................................ 66

Figure 5.7. Binary D flip-flop. ................................................................................ 66

Figure 5.8. 3-bit modulo-8 binary counter. ............................................................. 67

Page 11: Tez FatmaSaricaPhDThesis

xi

Figure 5.9. Layout of 3-bit modulo-8 counter. ........................................................ 68

Page 12: Tez FatmaSaricaPhDThesis

xii

LIST OF TABLES

Table 2.1. Current levels of multi-valued current-mode signals. ............................ 8

Table 2.2. Truth table for complement operator. ................................................... 14

Table 2.3. Truth table for lower and upper threshold operations. ........................... 16

Table 2.4. Truth tables of clockwise cyclic and counter clockwise cyclic

operators. ............................................................................................. 17

Table 2.5. Truth table for min operator. ................................................................. 19

Table 2.6. Truth table for max operator. ................................................................ 21

Table 2.7. Truth table of a 4-valued, 2-variable example function. ........................ 23

Table 2.8. Rearranged truth table of the given example function. .......................... 24

Table 3.1. General transition table of R-S type multistable. ................................... 35

Table 3.2. General transition table of D- type multistable. ..................................... 36

Table 3.3. General transition table of J-K type multistable. ................................... 37

Table 3.4. General transition table of T-cyclic type multistable. ............................ 38

Table 4.1. General transition table of the AB flip-flop. .......................................... 40

Table 4.2. Power and delay measurements of AB flip-flop. ................................... 42

Table 4.3. Performance of the MVL flip-flop circuits. ........................................... 43

Page 13: Tez FatmaSaricaPhDThesis

xiii

Table 4.4. Possible flip-flop input values for specified present-state and next-

state values of 1-digit modulo-4 counter. .............................................. 44

Table 4.5. Minimization maps for the 2-digit modulo-16 counter. ......................... 46

Table 4.6. Possible flip-flop input values for specified present-state and next-

state values of 2-digit modulo-16 counter. ............................................ 47

Table 4.7. Possible flip-flop input values for specified present-state and next-

state values of the new sequential circuit. ............................................. 54

Table 4.8. Minimization maps of first AB flip-flop for the new sequential circuit. .. 55

Table 4.9. Minimization maps of second AB flip-flop for the new sequential

circuit. ................................................................................................... 56

Table 4.10. Possible flip-flop input values for specified present-state and next-

state values of new sequential circuit for the binary JK flip-flop. ........... 59

Table 5.1. Flip-flop input values for specified present-state and next-state values

of 1-digit modulo-8 counter using D-type flip-flop. .............................. 64

Table 5.2. Power and delay measurements of modulo-8 counters. ......................... 68

Page 14: Tez FatmaSaricaPhDThesis

xiv

LIST OF SYMBOLS

[a,b] Closed interval with boundaries a and b

, c cb ba a c-valued upper, lower threshold operation on a at value b

Ap Parameter p-associated area statistical variation parameter

Cox Oxide capacitance of a MOS transistor

D Total distance of an index from other indices

Ib Reference current

KP SPice process transconductance parameter

n Number of variables

r Radix

Sp Parameter p-associated distance statistical variation parameter

thu Upper threshold operation

thl Lower threshold operation

VGS/DS (Gate/drain)-to-source voltage of a MOS transistor

VTO SPice zero-bias threshold voltage parameter of a MOS transistor

<x> Restored value of x to a predefined logic level

x+ , x- Successor and predecessor operators a bx Window literal for interval [a,b]

yx→ , yx← Clockwise and counter clockwise operators

x Complement of x

∆x Variation in x

∈ Member of

, . Min operator

, + Max operator

β Transconductance of a MOS transistor

γ SPice body-bias parameter of a MOS transistor

λ Effective modulation parameter of a MOS transistor

Page 15: Tez FatmaSaricaPhDThesis

xv

µ Mobility

φ SPice surface potential parameter of a MOS transistor

Ξ Truncated difference operator

σ/σ2 Standard deviation/variance of a given parameter

Page 16: Tez FatmaSaricaPhDThesis

xvi

LIST OF ACRONYMS/ABBREVIATIONS

CCWC Counter Clockwise Cyclic

CMOS Complementary Metal Oxide Semiconductor

CWC Clockwise Cyclic

IC Integrated Circuit

LSD Least Significant Digit

LTA Loser-Takes-All

MOS Metal Oxide Semiconductor

MSD Most Significant Digit

MVL Multiple-Valued Logic

VLSI Very Large Scale Integration

WTA Winner-Takes-All

Page 17: Tez FatmaSaricaPhDThesis

1

1. INTRODUCTION

The growth in the IC industry showed an exponential trend over the last decades.

As the number of transistors per unit area increases, the industry has faced some new

problems. The major problem that the industry must solve to maintain this growth is the

interconnections (both on chip and between chips) and the routing of these

interconnections. The silicon area that used for these interconnections may be greater than

that used for the active logic elements [1].

The use of circuits with more than two logic levels has been offered as a solution to

these interconnection problems. Such circuits, named as Multiple-Valued Logic (MVL)

circuits, have a potential for reducing chip area consumed by interconnection wiring and

functional units in Very-Large Scale Integration (VLSI) [2]. Applying signals having more

than two levels to a single wire reduces the number of wires for the same range of data,

and this reduction results in a decrease in number of required IC pins. As the

interconnection length and number of wires used is reduced, the space between any two

wires increases without increasing the total silicon area, leading to a decrease in resistance

and capacitance of contacts and interconnections, and the interconnection delay can be

greatly decreased [3].

However, in spite of their potential advantages, developments in multi-valued

systems are not satisfactory. It is still a complicated task to design a system for processing

a signal in a multi-valued manner despite considerable effort. Difficulties start with the

implementation of the functional basic set and go on with simplification of logic

expressions [4].

Multi-valued logic circuits can be designed in current mode or voltage mode. Due to

the limited supply voltages, higher radices cannot be obtained using voltage mode circuits.

On the other hand, current mode circuits have the advantages of current scaling, copying

and sign changing with a simple current mirror, but unlike binary logic circuits, they are

not self-restoring.

Page 18: Tez FatmaSaricaPhDThesis

2

1.1. Literature Survey

In 1921, Post [5] gave a definition of n-valued logic that was a generalization of the

usual 2-valued logic. Later, Webb [6] and Rosenbloom [7] made studies on development of

Post algebras and their properties. Attempts for realizing multi-valued switching circuits

became visible a couple of decades after Post’s definition.

Until 1950’s, switching circuit theory has concentrated mainly on two-valued logic

systems. The main reason of this interest is that logical devices are two-state and the

mathematical model –Boolean algebra- cannot be extended to other integer-valued logic

systems. The idea of building systems from multistable devices appears in 1950’s. Berlin

[8], Lee and Chen [9], and Lowenschuss [10] have made first studies about non-binary

switching systems. Hartmanis [11] suggested that in some respects linear systems built

from multistable devices maybe superior to the conventional two-state systems and their

practical implementation is feasible.

In 1960’s, researchers studied to devise a set of basic functions and to develop

algebra such that functions of arbitrary complexity may be represented in terms of simple

algebraic combinations of the basic functions. Allen and Givone [12] and Vranesic et al.

[4] introduce a minimization technique for multiple-valued logic systems. Minimization is

an important topic in multiple-valued logic and researchers are still studying to find new

algorithms.

In 1970’s, sequential multi-valued logic has attracted great attention. Researchers

have focused their attention on the determination of general excitation tables and input

equations for different type multistables. General next-state equation of a JK-type

multistable first introduced by Wojcik [13], and extended for arbitrary radix by Acha and

Huertas [14]. T-cyclic type multistable was introduced by Acha and Huertas [15], D type

by Huertas and Acha [16], and RS type by Acha and Huertas [17]. Wills [18] made a

detailed analysis about R-flop triggering modes. Several design examples are introduced

by Sintonen [19] and Mouftah and Jordan [20]. Ternary flip-flop and sequential circuit

designs based on modification of device threshold voltages and hybrid designs were

introduced by Prosser et al. [21], Wu and Prosser [22], and Webb et al. [23] in later years.

Page 19: Tez FatmaSaricaPhDThesis

3

Many logical and arithmetic functions have been shown to be more efficiently

implemented with multiple-valued logic, i.e. fewer operations, gates, transistors, signal

lines, etc. are required. Multiplier circuits introduced by Kawahito [24-25], Chan et al.

[26], Tanno et al. [27], Chu and Current [28], Hanyu and Kameyama [29], Ishizuka et al.

[30], Tagaki et al. [31], Herrfeld and Hentschke [32], adder circuits by Wakui and Tanaka

[33], Manzoul et al. [34], Radanovic and Syrzycki [35], Mingoto [36], PLA’s by Pelayo et

al. [37], decoders by Prieto et al. [38] are some examples.

As the technology approaches to minimum dimension, we need an alternative way to

achieve high-density memories. Multiple-valued logic is the way of encoding multiple

states of information in a single memory cell. In 1980’s quaternary ROMs are introduced

by Adlhoch [39], Rich et al. [40], etc. and quaternary logic used in processor design.

Various current mode and voltage mode memory circuits introduced by Cilingiroglu and

Ozelci [41], Lee and Gulak [42], Current [43] and latch circuits by Current [44-46], can be

found in the literature. Main advantage of these latch circuits is that they are not only

holding the output current, but also restoring the output current level to a predefined logic

levels. This property helps in solving one of the main problems of current-mode CMOS

MVL circuits.

In 1990’s, similarities between multiple-valued logic and fuzzy logic were

recognized. Min/max circuits are the basic building blocks in both multi-valued logic and

fuzzy logic. Conventional min/max circuits accept two input values and produce an output.

Although they have compact structures and their performance is quite well, only two input

values become a problem when we have an array of input values. Lazzaro et al. [47]

offered a solution to this problem by winner-take-all circuits. This type of circuits selects

the maximum of the currents applied to its inputs. This circuit was improved by the

researchers Baturone et al. [48], Ota and Wilamowski [49], Patel and DeWeerth [50],

Sekerkiran and Cilingiroglu [51], Huang et al. [52], Günay and Sánchez-Sinencio [53],

Wilamowski and Jordan [54], Carvajal et al. [55], Aksin [56], Pojanasuwanchai et al. [57],

Keawconthai et al. [58], Yotingoravong et al. [59], Nia et al. [60], and high speed, high

precision current/voltage mode winner/loser-take-all circuits were produced.

Page 20: Tez FatmaSaricaPhDThesis

4

Today, almost every type of binary logic circuits can be realized as multiple-valued

approach like adder/multiplier circuits [24-35], memory circuits [41-43], sequential circuits

[13, 20-22, 61-62], decoders/encoders [38, 63], current/voltage comparators [64],

programmable devices [37] and etc. and some of these circuits can be compatible with

their binary counterparts.

1.2. Outline of the Thesis

The current study is an attempt to close the gap in the sequential multiple-valued

logic design area. Current-mode CMOS circuits are chosen for the implementation of the

circuits due to their potential advantage of higher radix implementation and realizing

algebraic sum operation with no cost on system design.

In this section, the idea of multiple-valued logic is explained and its development

over decades is discussed. Several MVL applications of combinational and sequential logic

are introduced.

In the next section, basic multiple-valued logic elements and combinational logic

operator designs are introduced. Encoding and decoding operations that performs binary-

to-MVL and MVL-to-binary conversions are presented. Functional completeness of MVL

algebra and mismatch analysis is discussed.

The third section focuses on sequential circuits and multiple-valued latch circuits.

Input-output equations of well-known binary flip-flops, and their multiple-valued logic

counterparts, input-output relations and truth tables are introduced.

The fourth section introduces a new flip-flop circuit, called AB flip-flop. It is a two-

input single- output MVL flip-flop circuit with successful state transitions for all the input-

output current combinations. Input-output equations and simulation results are studied

carefully and the flip-flop circuit is used in several synchronous and asynchronous counter

circuit design. In addition, a totally random state equation is realized using this flip-flop

and binary JK flip-flops, the total area consumption of the circuits are compared.

Page 21: Tez FatmaSaricaPhDThesis

5

The fifth section is about comparison of multi-valued and binary sequential logic

according to various VLSI design criteria (power consumption, transistor count, etc).

D-flip-flop (the only flip-flop that has the same input-output equation for binary and

multiple-valued logic) is chosen for the realization to ensure a fair comparison.

Last section concludes the study and compares the outcomes of the study with the

current literature.

Page 22: Tez FatmaSaricaPhDThesis

6

2. MULTIPLE-VALUED LOGIC ALGEBRA

Digital binary systems use just two logic symbols, “0” and “1” to represent all

information. Since the real world is not binary, we cannot surely claim that using two

values is an optimum choice. In 1921, Post [5] gave a definition of r-valued logic that was

a generalization of the usual 2-valued logic. In 1970’s, circuit level realizations of r-valued

logic become apparent in the literature as voltage mode ternary circuits.

For the last couple of decades multiple-valued logic circuits became more visible in

the literature and in commercial products. These circuits have the potential advantage of

reducing the number and complexity of interconnection wires because multiple-valued

signals carry more information on a single line. As an example, consider the decimal

number ‘255’, which can be represented as ‘11111111’ in binary logic and as ‘3333’ in

quaternary logic. Designing the circuit as 4-valued rather than binary, at least decreases the

number of digits to its half.

Multiple-valued circuits can be realized as voltage-mode or current-mode,

depending on the operation and complexity of the circuit. On voltage-mode circuits, the

information is transferred by voltage levels. Ternary circuits are better candidates for

voltage-mode realization, especially for the circuits using dual supply voltages and signed

digit arithmetic. Maximum allowable radix of the voltage-mode designs are determined by

the supply voltage. As the technology developed, chip densities have increased and only

very little power can be dissipated per cell to avoid the chip from overheating. That makes

supply voltage levels critical in circuit designs. In addition, for portable electronic devices,

battery life is directly related to power consumption, which makes low power design a very

important criteria for analog and digital integrated circuits. Since power consumption of

the circuit is related to the square of the supply voltage, reduction of the supply voltage is

the first choice for reducing power consumption, leading into reducing dynamic range of

the voltage-mode signal. As a result, we have limited radix at voltage-mode. Using

transistors having variable threshold voltages can be thought as a solution for voltage mode

designs but it is still limited with quaternary logic levels.

Page 23: Tez FatmaSaricaPhDThesis

7

On current-mode realizations of multiple-valued logic circuits, the information is

transferred by current levels, that are integer multiples of a reference current. Current-

mode circuits allow higher radix than voltage-mode circuits, which makes them preferable

to voltage-mode ones as we need to increase the system speed and the information content

of the current carrying wires. The main advantage of the current-mode multi-valued

circuits is the simplicity of the addition operation. This basic and most used operation of

logic design can be performed simply by connecting signal lines into a single node,

resulting in a reduced number of active devices in the circuit. (every single addition

operation in binary logic design requires 20 transistors). In addition, currents can be

copied, scaled and algebraically sign-changed with a simple current mirror. However,

current-mode circuits have larger static power consumption and unlike binary circuits, they

are not self-restoring. Cascaded stages will result a deviation from the predefined output

levels, and it is necessary to restore the output to its original level.

2.1. Definitions for Multiple-Valued Algebra

An r-valued, n-variable function can be defined as 𝑓(𝑋), where 0 1 1{ , ,..., }nX x x x −=

and each ix takes on values from the set {0,1,..., 1}R r= − . Then, the function is mapping

: nf R R→ , which means there are ( )nrr possible different functions [65]. For example, if

r=2 and n=2, there are 16 possible functions and if r=3 and n=2, then there are 19683

possible functions.

Consider an r-valued n-digit number 1 2 1 0...n na a a a− − . It represents the number

1 2 01 2 0...n n

n na r a r a r− −− −+ + +

(2.1)

in decimal number system. Here, r=2 for binary, r=3 for ternary, and r=4 for the

quaternary cases.

In this study, due to its potential advantages, current mode circuits are chosen for the

realization of the multi-valued circuits. The reference current level, Ib, is chosen as 5µA

and increases with its integer multiples as shown in Table 2.1.

Page 24: Tez FatmaSaricaPhDThesis

8

Table 2.1. Current levels of multi-valued current-mode signals.

Logic Level Current Level

0 0A

1 5µA

2 10µA

3 15µA

The indicated current levels can be deviate from their original values due to some

variations in active element dimensions, power supplies, technology parameters, etc., and

unlike binary voltage-mode circuits, the variation on the output signal is carried to the next

stages. This deviation can be tolerated and output can be detected correctly for a range of

value that is called noise margin [1, 66]. Including the existence of current deviations from

their original values, logic levels can be defined as follows,

0, 2.51, 2.5 7.52, 7.5 12.53, 12.5

I AA I A

lA I AA I

µµ µµ µµ

< ≤ <= ≤ < ≤

(2.2)

where l is the logic level and I is the current. As it can be understood from the equation, the

noise margin is ±Ib/2. Unlike voltage mode binary circuits, variations in the output current

carried over stages, which cause accumulated error. For this reason, output current level of

multi-valued circuits need regeneration operation before the signal exceeds the noise

margin, that is called level restoration, which is explained in detail in later chapters.

2.2. Basic Multi-Valued Circuit Elements

Choosing current-mode circuits in realization of multi-valued logic has some

advantages as discussed before. In this section, brief description of mostly used current-

mode basic circuit elements will be introduced.

Page 25: Tez FatmaSaricaPhDThesis

9

• Sum: The main advantage of current-mode implementation of multiple-valued

circuits is its zero cost summation operation. Connecting current branches with a

node simply performs an addition operation, y = x1 + x2 +…..+ xn, (algebraic sum) as

shown in Figure 2.1.

Figure 2.1. Addition operation in current-mode MVL.

Addition operation in voltage mode binary circuits need an XOR and AND operator

which has 20 transistors in total.

• Constant: Constant logic level determining the logic steps is generated by

enhancement mode p-type or n-type transistors depending on whether sourcing or

sinking action are desired. In this study, the reference current level is chosen as 5µA.

• Current mirror: Mirror circuits are used to produce the replicas of input currents.

They can be designed as n-type or p-type as shown in Figure 2.2. These circuits are

used to provide fan-out greater than one, because current-mode CMOS logic allows

fan-out of only one. In addition, by rearranging transistor dimensions, any current

value in the design can be multiplied by a constant k (called the scale factor), as

shown in Figure 2.3 and their direction (sign) can be changed as shown in Figure 2.4

xn x1

y

...... x2

Page 26: Tez FatmaSaricaPhDThesis

10

Figure 2.2. n-type and p-type current mirrors.

Iref I1

(W/L) k*(W/L)

VDD

Iref

(W/L) k*(W/L)

I1

Figure 2.3. Multiplying a current by a constant k.

VDD

II

Figure 2.4. Current redirecting circuit.

• Switch: It is an n-type or p-type transistor. Gate terminal of the transistor is

controlled by a voltage signal, and the current can flow when the switch is ON.

Page 27: Tez FatmaSaricaPhDThesis

11

2.3. CMOS Current-Mode Binary/MVL Encoding and Decoding

Multiple-valued logic has many theoretical advantages -its potential to increase the

functional density of metal-limited digital integrated circuit layouts by reducing the

number of signal interconnections required is the most promising one- but it is not widely

used because MVL circuits do not provide overwhelmingly advantageous characteristics,

in general. However, overall system characteristics may be improved using specific MVL

circuits in specific applications.

Using the multiple-valued logic circuits as a part of a total design needs on-chip

conversion from binary voltage signals to multiple-valued current-mode signals -encoding-

and from multiple-valued current-mode signals to binary voltage signals -decoding- as

shown in Figure 2.5.

Encoder Binary OUT

Binary IN

r-valued current-mode

circuitsDecoder

Figure 2.5. Using MVL circuits in binary designed systems.

There are compact and accurate designs of encoder and decoder circuits using

current comparator circuits. Current comparator [64], or current threshold detector, circuits

are key components in current-mode multiple-valued logic design as shown in Figure 2.6.

The circuit introduced in Figure 2.6 is the simplest form of current-comparator

circuits. Input diode-connected NMOS-PMOS transistor pair produces the threshold

current. This reference current is mirrored to output as Ith, and input current is mirrored to

output as Iin. The output of the comparator circuit is at logical HIGH voltage (output node

has the same potential with power supply) when the input current is less than the threshold

current and at logical LOW voltage (output node has the same voltage with the ground)

when the input current is greater than the threshold current as shown in Equation 2.3.

Applying the input current over PMOS transistor mirror, and threshold current over

NMOS, produces the inverted version of output voltages, if needed.

Page 28: Tez FatmaSaricaPhDThesis

12

in tho

in th

High if I IV

Low if I I<

= ≥

(2.3)

Iin

VDD

Ith

Vo

Figure 2.6. Current comparator circuit.

Performance limitations of the current comparator will determine the threshold

circuits’ ability to discriminate between different input current levels. A large gain is

desired to provide a sharp comparator transition and greater noise margin.

Encoding operation for MVL signals is simply converting the voltage-mode binary

signals to current-mode multiple-valued signals. An example for the encoder circuit can be

found in [63] and shown in Figure 2.7. This circuit accepts the 2-bit binary input and

produces a 1-digit quaternary output for quaternary conversion operation. For the n-bit

input signal, the circuit can produce 2n levels output current. The diode connected NMOS-

PMOS pair produces a base current and it is reflected to the output with the coefficient 2k

where k= {0,1,…,n-1}. Binary input bits are applied to the gates of the NMOS transistors to

enable the current contrubute to the output current, Iout. Choosing the number of logic

levels of MVL circuit as a power of 2 makes encoding and decoding easier and systematic.

Page 29: Tez FatmaSaricaPhDThesis

13

VDD

I 2I

MSB

LSB

Iout

Figure 2.7. Encoder circuit.

Once the binary signal encoded to its MVL counterpart and processed in a MVL

circuit, it needs to be decoded again for the rest of the system. Decoding operation is based

on current comparison. Multiple-valued input current compared with the (n-1) reference

currents to produce 2log n binary voltage signals as shown in Figure 2.8. Output voltage

levels of (n-1) comparator outputs are converted to a binary output using an appropriate

combinational logic block.

Iin

VDD

MSB

LSB

B_

A+BC______

AB

C

0.5I 1.5I 2.5I

2I

Figure 2.8. Decoder circuit.

Page 30: Tez FatmaSaricaPhDThesis

14

2.4. Multiple-Valued Operators

In addition to basic circuit elements explained in the previous section, we need to

define multi-valued operators for the MVL circuit design and synthesis. Some of the

operators are extensions of binary logic, and some of them are defined for multiple-valued

logic. Definitions of some MVL operators, especially those useful for the rest of the study,

are as follows:

Definition 2.1. The complement (negation, inversion) operator is defined as:

1x r x= − −

(2.4)

where Rx ∈ . The operation can be simply realized by using a current mirror as shown in

Figure 2.9, ensures the truth table given in Table 2.2.

Table 2.2. Truth table for complement operator.

x 0 1 2 3

x 3 2 1 0

x

x

(r-1)

Figure 2.9. Complement operator.

Definition 2.2. The truncated difference [67] operator is defined as:

Page 31: Tez FatmaSaricaPhDThesis

15

0x ky if x ky

z x kyotherwise

− ≥= Ξ =

(2.5)

Truncated difference operator serves a basis for many other multiple-valued

operators. Implementation of the circuit requires an n-type current mirror similar to those

used in complement operation, except the inputs are applied as y and x respectively with

the scale factor of k as shown in Figure 2.10.

y

z

x

1 : k

Figure 2.10. Truncated difference operator.

Definition 2.3. The lower and upper threshold operators are main building blocks for

MVL circuits and can be defined as:

if : |

0 otherwisel

z z x yth x

y≤

=

(2.6)

z if : |

0 otherwiseu

z x yth x

y≥

=

(2.7)

where Rzyx ∈,, . Several implementations of the threshold literal circuits can be found in

the literature. For the realization of the latter circuits in these study, circuits from [68] are

chosen for their full current-mode, fast and reliable structures. Truth table for the threshold

literal operations (assuming z=r-1=3) are given in Table 2.3 and the lower threshold

circuit is given in Figure 2.11.

Page 32: Tez FatmaSaricaPhDThesis

16

In order to realize the upper threshold circuit, interchanging the x and y inputs of

lower threshold circuit is enough.

Table 2.3. Truth table for lower and upper threshold operations.

lth uth

y

x 0 1 2 3

y

x 0 1 2 3

0 3 3 3 3 0 3 0 0 0

1 0 3 3 3 1 3 3 0 0

2 0 0 3 3 2 3 3 3 0

3 0 0 0 3 3 3 3 3 3

y x z

thl

Figure 2.11. Lower threshold circuit.

Definition 2.4. The window literal operator [12] is defined as:

1 if 0 otherwise

a b r a x bz x

− ≤ ≤= =

(2.8)

Lower threshold and upper threshold circuits are special cases of window literal

operation. In order to realize a lower threshold, we can set the value of a=0, and for an

upper threshold realization b=r-1. Using these properties, window literal –literal, in short–

circuit can be realized as cascading the lower threshold and upper threshold circuits

respectively as shown in Figure 2.12.

Page 33: Tez FatmaSaricaPhDThesis

17

x a-0.5xb+0.5 r-1

z

Figure 2.12. Window literal operator.

Definition 2.5. The cyclic operator takes the input value, and shifts it with the

specified amount of current. If the shift operation is performed as addition of the specified

amount to the input value, then it is called clockwise cyclic operation. If the shift operation

is performed as subtraction of the specified amount from the input value, then it is called

counter-clockwise cyclic operation.

, if 1 , :

, y x y x y r

clockwise cyclic CWC xx y r otherwise

→ + + ≤ −= + −

(2.9)

, if 0 , C :

, y x y x y

counter clockwise cyclic CWC xx y r otherwise

← − − ≥= − +

(2.10)

Truth tables for clockwise cycling and counter-clockwise cycling circuits are given

in Table 2.4. Realization of the clockwise cyclic circuit from [69] is given in Figure 2.13.

Table 2.4. Truth tables of clockwise cyclic and counter clockwise cyclic operators.

CWC CCWC

y

x 0 1 2 3

y

x 0 1 2 3

0 0 1 2 3 0 0 3 2 1

1 1 2 3 0 1 1 0 3 2

2 2 3 0 1 2 2 1 0 3

3 3 0 1 2 3 3 2 1 0

Page 34: Tez FatmaSaricaPhDThesis

18

yxrr-0.5

VDD

x y

Figure 2.13. Clockwise cyclic operator.

For design simplicity, successor and predecessor operators can be defined as a

special cases of CWC and CCWC operators for y=1.

: ( 1) modsuccessor x x r+ = +

(2.11)

: ( 1) modpredecessor x x r− = −

(2.12)

Definition 2.6. The min operator [5] takes the input values, and produces an output

that is equal to the minimum of the input values, as follows:

( ) ( ), , .min x y AND x y x y= =

(2.13)

where ,x y R∈ . The truth table of the min operator is given in Table 2.5.

There are various examples for the realization of the min circuit that can be found in

the literature. An example can be found in [69] that needs only 4 transistors. The operation

of the circuit is depending on truncated difference operation as follows:

Page 35: Tez FatmaSaricaPhDThesis

19

( ) ( )z x x y

y y x= Ξ Ξ= Ξ Ξ

(2.14)

Table 2.5. Truth table for min operator.

y

x 0 1 2 3

0 0 0 0 0

1 0 1 1 1

2 0 1 2 2

3 0 1 2 3

Realization of the min circuit is introduced in Figure 2.14. Performance of the circuit

is quite well and the circuit is totally level independent, which is a desired property for

multiple-valued logic designs. The main drawback of the circuit is it allows only two input

variables. Whenever the number of input variables increases, the circuit needs to be

cascaded which increases the transistor count, power consumption and delay considerably.

x y y

z

Figure 2.14. min circuit introduced in [69].

When we speak about large array of input values, Winner-Takes-All (WTA) and

Loser-Takes-All (LTA) circuits are used for choosing the max/min of the input signals.

Winner-take-all circuit is introduced by Lazzaro [47] with a primitive building block

whose computation is continuous in time and no clock signal is needed. Several WTA and

LTA circuits are developed and reported [48-52, 54, 56-59, 70] in the literature after

Page 36: Tez FatmaSaricaPhDThesis

20

Lazzaro’s primitive structure. They have increased speed and resolution. A detailed

comparison of WTA circuits can be found in [53].

For the rest of the this study, LTA structured min circuit that has multi-input single-

output [52] is used whenever the min operation is needed. Transistor-level circuit

schematic is introduced in Figure 2.15.

x y

min(x,y,...)

VDD

Ibias

Figure 2.15. Multi-input min circuit [52].

Definition 2.7. The max operator takes the input values, and produces an output that

is equal to the maximum of the input values.

( ) ( ), , max x y OR x y x y= = +

(2.15)

where ,x y R∈ . Truth table of the max operator is given in Table 2.6.

There are various examples for the realization of the max circuit that can be found in

the literature. An example can be found in [69]. The operation of the circuit depends on the

truncated difference operation as follows:

( )z x y x= + Ξ

(2.16)

Page 37: Tez FatmaSaricaPhDThesis

21

Table 2.6. Truth table for max operator.

y

x 0 1 2 3

0 0 1 2 3

1 1 1 2 3

2 2 2 2 3

3 3 3 3 3

Realization of the circuit is introduced in Figure 2.16. With the appropriate selection

of PMOS transistor dimensions, operation of the circuit can be totally level independent.

The main drawback of the circuit is it allows only two input variables.

x y

z

VDD

Figure 2.16. max circuit introduced in [69].

When a large array of input values is desired, Winner-Takes-All (WTA) circuits are

the best candidates to realize max circuits. In this study, a WTA structured max circuit

chosen from [48] is used, as shown in Figure 2.17. It has a very compact structure. Every

single increase in number of input variable needs three transistors only.

Page 38: Tez FatmaSaricaPhDThesis

22

VDD

x ymax(x,y,...)

. . .

Figure 2.17. Multi-input max circuit [48].

From the definitions stated above, min and max are two-element (or multi-input),

others are unary (single input) operators. The operators obey Boolean algebra axioms with

2r ≥ . The min and max operators are commutative, associative, absorptive, and

distributive [71].

Definition 2.8. A k-valued product term is given by

{0,1,.., }

: ( )k ii n

P g x k∈

=

(2.17)

where, g(xi) refers to a unary operator such as cyclic, literal, etc. and ‘

’ refers to min

operator over the unary operators.

Definition 2.9. A multiple-valued combinational function can be expressed in terms

of product as:

0 1( , ,..., )n jj R

f x x x P∈

=

(2.18)

Page 39: Tez FatmaSaricaPhDThesis

23

where, ‘

’ refers to max operator.

Under these given definitions, functional completeness of the multiple-valued

algebra is discussed in the next session.

2.4.1. Functional Comleteness of Multiple-Valued Algebra

An r-valued algebra is said to be functionally complete if it is possible to describe

any n-variable fuction as an expression made up of constants, variables and defined

operations. In binary logic, there are a limited number of operators, it is relatively easy to

define a useful functionally complete algebra. In a multiple-valued logic system, the

number of possible functions increases with the double exponential expression, resulting in

a rapid increase in the total number of operators.

Post [5] showed that a minimal or a complete MVL algebra can be formed from only

one two-element operator and one unary operator, for example, min/max and complement

or min/max and cyclic.

Consider the truth table of 4-valued, 2-variable function given in Table 2.7.

Table 2.7. Truth table of a 4-valued, 2-variable example function.

x2

x1 0 1 2 3

0 0 0 0 2

1 1 1 1 2

2 1 1 3 2

3 3 3 3 3

It can be expressed in terms of two-valued and unary operators such that:

Page 40: Tez FatmaSaricaPhDThesis

24

0 0 3 3 1 1 0 0 1 1 1 1 1 1 2 2 1 1 3 31 2 1 2 1 2 1 2 1 2 1 2

2 2 0 0 2 2 1 1 2 2 2 2 2 2 3 31 2 1 2 1 2 1 2

3 3 0 0 3 3 1 1 3 3 2 2 3 3 3 31 2 1 2 1 2 1 2

( , ) 2. . 1. . 1. . 1. . 2. .

1. . 1. . . 2. .

. . . .

f x x x x x x x x x x x x

x x x x x x x x

x x x x x x x x

= + + + +

+ + + +

+ + + +

(2.19)

where, ‘.’ denotes the min operation and ‘+’ denotes the max operation. To express the

equation in more readable form, ‘.’ sign can be dropped and ‘ jix ’ notation can be used for

the literal operation ‘ j jix ’. In order to minimize this huge expression, we can rewrite the

truth table under the definition of some properties of literal circuits [72].

Property: Let a and b be constants such that ba ≤ and ,a b R∈ . Then

1 2 1 2 2( )i j i j ja x b x a x x b x⋅ + ⋅ = ⋅ + + ⋅

(2.20)

Using this property we can rewrite the function of Table 2.7 as Table 2.8. For clarity

in reading, 0 values are not shown. The ‘X’ values in the table are don’t cares that are

created by the help of the property given above. The ‘+’ sign denotes the max operation.

The rest of the minimization is similar to the Karnaugh map minimization technique in

binary logic.

Table 2.8. Rearranged truth table of the given example function.

x2

x1 0 1 2 3

x2

x1 0 1 2 3

x2

x1 0 1 2 3

0 X 0 2 0

1 1 1 1 X + 1 2 + 1

2 1 1 X X 2 X 2 2 3

3 X X X X 3 X X X X 3 3 3 3 3

Combining these three tables, the output function can be found as:

Page 41: Tez FatmaSaricaPhDThesis

25

1 3 3 3 3 3 2 3 2 21 2 1 2 1 1 2( , ) 1. 2.f x x x x x x x= + + +

(2.21)

There are several studies in the literature about the minimization of multiple-valued

circuits [12, 65, 73-74], but it is still hard to minimize complicated functions efficiently.

2.5. Statistical Mismatch Analysis

Mismatch is the process that causes time-independent random variations in physical

quantities of identically designed devices. Mismatching is a limiting factor in general-

purpose analog signal processing, but especially in multiplexed analog systems, digital-to-

analog converters, reference sources, etc [75]. Characterization and simulation of MOS

transistor mismatch is important. Mismatch models include two terms: (i) a size dependent

and (ii) a distance dependent term. The distance dependent term can be compensated

through layout techniques, and is consequently less critical for precise analog design [76].

2.5.1. MOS Transistor Mismatch Model

Although, there are studies in the literature [77] that claims alpha-power law model

(ID~(VGS-VT)α) should be applied for the current technology with 1.2α , some others [78]

claim that square-law model ( 2α = ) is still accurate. Assuming that a transistor is

operating in the saturation region, the drain current will be expressed as follows:

2( )2D GS TI V Vβ

= −

(2.22)

where

n oxWCL

β µ=

(2.23)

and

( )T TO SBV V Vγ φ φ= + + −

(2.24)

Page 42: Tez FatmaSaricaPhDThesis

26

GSV and SBV are the gate-to-source and gate-to-bulk potentials respectively, φ is the surface

potential and γ is the body-bias parameter of a MOS transistor. Mismatch that can be

observed between the parameters of a group of equally designed transistors is the result of

several random processes which occur during every fabrication phase of the devices. Any

variations in these parameters of two matched transistors would cause a difference in the

currents of equally biased transistors. The physical causes for variations in these

parameters are fixed oxide charges, depletion charges, edge roughness, variations in

substrate doping, oxide thickness and mobility values. Variations in any parameter may

have systematic and random causes. Topography of the layout and gradients in oxide

thickness and wafer doping cause systematic variations in the parameters along a wafer

and among different batches [79]. On the other hand, random, local variations in physical

properties of the wafer cause mismatch between closely placed transistors. Non-uniform

distribution of dopants in the substrate and fixed oxide charges are responsible for local

zero-bias threshold voltage mismatches whereas variations in substrate doping is the only

cause for γ mismatch. The mismatch in the current factor β is due to edge roughness and

local mobility variations [76, 80-81]. A mathematical analysis for the matching of MOS

transistors was carried out by several researchers. The mismatch in a parameter is modeled

by a normal distribution with zero mean. Moreover, the variance of the distribution for

mismatches in the zero-bias threshold voltage, substrate factor and current factor

coefficient can be expressed as [76, 80],

( )2

2 2 2TO

TO

VTO V x

AV S D

WLσ ∆ = +

(2.25)

( )2

2 2 2x

AS D

WLγ

γσ γ∆ = +

(2.26)

( ) ( ) ( ) ( ) ( ) 22 2 2 2 22 2

2 2 2 2 2ox n

ox nx

AW L CS D

W L C WLβ

β

σ β σ σ σ σ µβ µ

∆= + + + = +

(2.27)

where , , , , ,TO TOV VA A A S Sβ γ β and ,Sγ are process related constants, W and L are the length

and width of the transistors, and xD is the spacing between the matched transistors.

Page 43: Tez FatmaSaricaPhDThesis

27

Hence, the output current can be expressed as a function of mismatches, and the

variance can be calculated as;

2 2 22 2 2 2out TO

out out outI V

TO

I I IV γ βσ σ σ σ

γ β∆

∂ ∂ ∂= + + ∂∆ ∂∆ ∂∆

(2.28)

Using these definitions of mismatch and analysis result of previous studies [82],

logic level of 5µA is found suitable for the rest of the study. Simulations of the circuits

used in this study show us that choosing Ib=5µA allows us ±2.5µA error, that is enough for

keeping the current at the predefined logic level. As the reference current minimized,

increasing the number of logic levels becomes harder, since the output needs to reach the

restoration circuit before it exceeds the allowable noise margin.

Page 44: Tez FatmaSaricaPhDThesis

28

3. SEQUENTIAL MVL CIRCUITS

Discussion about logic circuits can be divided into two classes; combinational logic

and sequential logic. Combinational logic has the property that the output of the circuit is

related directly to its present input signals by some Boolean expressions at any time

instant. This property also holds true for multiple-valued logic circuits. Operators defined

in the previous chapter produce outputs at any instant of time that are entirely dependent to

the inputs at that time and obey the rules of Post algebra.

For the sequential logic case, the outputs depend not just on the current values of the

inputs, but also on the past values of the outputs. In other words, sequential logic circuits

have memory in addition to their combinational parts as shown in Figure 3.1.

CombinationalCircuit

Memory

OutputsInputs

Figure 3.1. Block diagram of a sequential circuit.

The combinational circuit in the block diagram can be the circuits introduced in the

previous chapter, or new circuits that can be defined specifically for the given function. For

the memory part of the sequential design, we need multiple-valued storage elements that

hold and feedback the outputs to the input. This memory may be a latch circuit.

There are two main types of sequential circuits, namely: asynchronous and

synchronous. Whenever an external signal controls the timing of the circuit, it has been

called synchronous (clocked). For the asynchronous case, the output changes as soon as the

input changes.

Page 45: Tez FatmaSaricaPhDThesis

29

The memory elements used in clocked sequential circuits are called flip-flops. A flip-

flop is capable of storing 1-bit information for the binary case and 1-digit information for

the multiple-valued case. Flip-flop circuits can hold their states as long as the power

delivered until they are directed by an input clock signal to switch the states. The number

of inputs they process and the relationship between the input and output signals determines

the type of the circuit.

Flip-flops circuits can be realized using multiple-valued logic circuits. Huertas and

Acha [14-15, 17] defined the next-state equations of T-cyclic, RS, and JK multistables.

Studies about implementation of these flip-flops can be found in the literature but they are

very limited. Some of these studies are made by fuzzy logic researchers. There are

similarities between fuzzy logic and multiple-valued logic. In fuzzy logic, the output is not

represented as true or false, instead a membership function used to indicate the level of

truth. Fuzzy logic allows for set membership values between the range [0, 1]. Dividing the

range [0, 1] into some number of values is fundamentally similar to multiple valued logic

[62, 83].

In designing multiple-valued sequential logic circuits, it is important to have suitable,

uncomplicated and inexpensive storage elements (memory cells).

3.1. Multiple-Valued Latch

In order to realize a multiple-valued sequential circuit, multiple-valued storage

elements are needed. The core of these elements are latch circuits that are capable of

storing 1-digit information at a time. There are several latch circuits in the literature, most

of them are realized as ternary or quaternary voltage mode [43, 45-46]. When designing

ternary circuits, it is reasonable to choose ternary voltage-mode latch circuit, especially

with the dual supply voltage. For the quaternary case, as the technology shrinks the supply

voltage, latch circuits tend to use FETs that have different threshold levels.

In this study, current-mode multiple-valued circuits used. In literature, the only

current-mode multiple-valued latch circuit -to the best of our knowledge- is the one

proposed by Current [44] as shown in Figure 3.2.

Page 46: Tez FatmaSaricaPhDThesis

30

Iin

clk

A B C

clk

B CA

VDD

Mn1

Mp1 Mp2 Mp3

Mn2 Mn3

__

Mpass1 Mpass2

Iout

Mref1

Mref2

Irg

Figure 3.2. Current-mode CMOS quaternary latch circuit.

In this circuit, there are two phases of operation, namely SETUP (logically High

clock signal) and HOLD (logically Low clock signal). When the clock signal ‘clk’ is high

the diode connected input transistor receives the input current Iin, and in response generates

a voltage VGS1 that that is coupled to the Mn1…Mn3 transistors through Mpass1 pass

transistor. So, the input current is mirrored by the three NMOS transistors Mn1…Mn3. Mni-

Mpi transistor pairs form the quantizer portion of the latch, composed of three current

comparators. The current comparators’ thresholds are set to detect input currents of logical

values of 1, 2, and 3 by adjusting the W/L ratios of three PMOS transistors Mp1…Mp3.

Output of the each comparator circuit falls into logical LOW state whenever the input

current exceeds the threshold of the comparator. In addition, output of each comparator

circuit drives a standard CMOS inverter (voltage-mode binary output). The labeled inverter

outputs drive pass transistors with the same label. The pass transistors let the appropriate

quantity of current to the feedback summing node to form the regenerated current Irg when

activated. This regenerated circuit mirrored to the output to form the output current Iout.

When the clock signal ‘ clk ’ is high, the latch circuit performs the HOLD operation and the

circuit isolated from the input current Iin. The high clk signal turns on the Mpass2 transistor

and connects the generated current to the quantizer output. Since the quantizer and Irg are

in a positive feedback loop, the regenerated current, Irg, and the output current, Iout, remain

stable at the value of the previous input current.

Since the circuit performs both latching and restoring operation, positive feedback

does not cause any oscillation in the output current. The only problem with this circuit is, it

Page 47: Tez FatmaSaricaPhDThesis

31

needs ‘r-1’ quantizing transistor pairs and ‘r-1’ regenerating transistors. As the radix

increase in the design, this increases the number of active elements dramatically. On the

other hand, since every single quantizer set to a predefined current level, the power

consumption of the circuit increasing significantly as the radix increases.

Due to the these drawbacks of Current’s circuit [44], a new latch circuit is proposed

and used in this study as shown in Figure 3.3.This circuit is based on Morgul and Temel’s

level restoration circuit [84], The level restoration sets the current level to a predefined

logic level. The restoration circuit is obtained by cascading restoration stages of Figure 3.3.

ri-0.5rixi-1 xi-1xi

<x >i

Figure 3.3. Restoration stage.

The number of restoration stages is calculated by

2# log 1of cascaded stages r= −

(3.1)

i.e., three stages are necessary for 8-level design. Assume that ‘xi’ is the input current of ith

stage and ‘< xi >’ is the restored value of that stage. Every single stage performs the upper

threshold operation to calculate the restored output as follows:

0.5

rii ri

x x−

< >=

(3.2)

where,

Page 48: Tez FatmaSaricaPhDThesis

32

/ 2iir r=

(3.3)

Then, the following quantities are used to obtain the intermediate restored value:

1 1 1

22 1 2 2

1

[mod( / 2)], ( )

[mod( / 2 )], ( ) . . .

[mod( / 2 )]kk k

x x r x x x

x x r x x x

x x r−

< >= = − < >

< >= = − < >

< >=

(3.4)

and total restored current can be found by summing up the individual restored outputs:

2log 1

1

r

ii

x x−

=

< >= < >∑

(3.5)

Holding and storing operation in current-mode is not as easy as in the voltage-mode

operation. The main idea of current-mode latch circuit is obtaining the current in SETUP

mode and storing as long as the HOLD signal is available. Storing operation needs a

continuous feedback of the output signal to the input, which feeds the error back too. In

order to get rid of feeding the error back, a restoration circuit can be used. However, using

a latch circuit that has its own restoration property is even better.

Adding two pass transistors stimulated by clk and clk signals turns this level

restoration circuit into a latch circuit with restoration property. Logical HIGH clock signal

implies the SETUP mode, which enables the input pass transistor and the input current is

regenerated at the output. Logical LOW clock signal implies the HOLD cycle, which

enables the pass transistor at the feedback path and allows the output behave as an input

signal. Since every input signal is regenerated, the output error is not accumulated. Input,

latched output and clock signal waveforms of the simulated latch circuit are shown in

Figure 3.4.

Page 49: Tez FatmaSaricaPhDThesis

33

Iin=X

clk

VDD

VDD

Iout

Ib

clk__

0.5Ib2Ib1.5Ib

<x>

4Ib3.5Ib

<x1> <x2> <x3>

X X1

X2

Figure 3.4. 8-level latch circuit based on level restoration circuit of reference [84].

Page 50: Tez FatmaSaricaPhDThesis

34

Figure 3.5. Input, output and clock signal waveforms of simulated 8-level latch circuit.

3.2. Multiple-Valued Flip-flops

Flip-flops are circuits that have two stable states (in binary logic) and can be used to

store state information. Output of flip-flop circuits depend on their input(s) with some

equation. In multiple-valued logic, input-output equations are complicated.

3.2.1. RS-Type Multistable

The set-reset flip-flop is the basic flip-flop structure in the binary logic. It has two

inputs, namely Reset (R) and the Set (S). The characteristic equation for the binary flip-flop

is as follows:

1nQ S RQ+ = +

(3.6)

Page 51: Tez FatmaSaricaPhDThesis

35

and R=S=‘logic 1’ state is undefined and usually avoided. Similar to the binary reset-set

(RS) type flip-flop, multiple-valued RS flip-flops have undefined transition states. The

next-state equation of a multiple-valued RS-type flip-flop is given as follows [17]:

11 1 1

11

( )r

i r i r i rn n

iQ i S R Q

−− − −

+=

= ⋅ + ⋅∑

(3.7)

where S and R are set and reset inputs respectively and Qn indicates the present-state, Qn+1

is the next-state. The general transition table for r=4 is shown in Table 3.1.

Table 3.1. General transition table of R-S type multistable.

RS

Qn 00 01 02 03 10 11 12 13 20 21 22 23 30 31 32 33

0 0 - - - 0 1 - - 0 1 2 - 0 1 2 3

1 0 - - - 1 1 - - 1 1 2 - 1 1 2 3

2 0 - - - 1 1 - - 2 2 2 - 2 2 2 3

3 0 - - - 1 1 - - 2 2 2 - 3 3 3 3

3.2.2. D-type Multistable

In order to eliminate the undesired condition of indeterminate state in the binary RS

flip-flop, input is applied directly to S input and its compliment is applied to the R input.

Operation of the D-type multiple-valued flip-flop is same as the binary case. The next-state

equation defined in [16] is given as follows:

1nQ D+ =

(3.8)

where D is the flip-flop input and it is valid for the binary case too. General transition table

of the D-type multiple-valued flip-flop is shown in Table 3.2.

Page 52: Tez FatmaSaricaPhDThesis

36

Table 3.2. General transition table of D- type multistable.

D

Qn 0 1 2 . . . r-2 r-1

0 0 1 2 . . . r-2 r-1

1 0 1 2 . . . r-2 r-1

2 0 1 2 . . . r-2 r-1

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

r-2 0 1 2 . . . r-2 r-1

r-1 0 1 2 . . . r-2 r-1

3.2.3. JK-Type Multistable

The JK flip-flop is a refinement of the RS flip-flop in that the undefined case of the

RS flip-flop is defined in JK. The J and K inputs behave like S and R inputs. The operation

of the flip-flop in binary case is defined as:

1 ( )( )n n n n nQ J Q K Q JQ KQ+ = + + = +

(3.9)

Since 0xx = equation does not hold true for the multiple-valued case. The operation

of the JK-type multiple-valued flip-flop [13-14] is represented by the next-state equation as

follows:

1n n nQ J Q K Q J K+ = ⋅ + ⋅ + ⋅

(3.10)

where J and K are inputs and Qn is output. General transition table for r = 4 is shown in

Table 3.3.

Page 53: Tez FatmaSaricaPhDThesis

37

Table 3.3. General transition table of J-K type multistable.

JK

Qn 00 01 02 03 10 11 12 13 20 21 22 23 30 31 32 33

0 0 0 0 0 1 1 1 1 2 2 2 2 3 3 3 3

1 1 1 1 0 1 1 1 1 2 2 2 2 3 2 2 2

2 2 2 1 0 2 2 1 1 2 2 1 1 3 2 1 1

3 3 2 1 0 3 2 1 0 3 2 1 0 3 2 1 0

3.2.4. T-Cyclic Multistable

Binary T-type flip-flop is the single-input version of the binary JK flip-flop. This

definition does not apply for the multiple-valued case. The T-cyclic multistable operation

is defined by the next-state equation [15]:

1

T

n nQ Q →+ =

(3.11)

where the clockwise cyclic operation defined in Equation (2.7) is employed as:

( mod )T

n nQ Q T R→ = +

(3.12)

Here, Qn indicates the present-state where Qn+1 is the next-state. In addition, T is toggle

input value and R is radix. General transition table of the T-cyclic multiple-valued flip-flop

is shown in Table 3.4.

Page 54: Tez FatmaSaricaPhDThesis

38

Table 3.4. General transition table of T-cyclic type multistable.

T

Qn 0 1 2 . . . r-2 r-1

0 0 1 2 . . . r-2 r-1

1 1 2 3 . . . r-1 0

2 2 3 4 . . . 0 1

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

r-2 r-2 r-1 0 . . . r-4 r-3

r-1 r-1 0 1 . . . r-1 r-2

Page 55: Tez FatmaSaricaPhDThesis

39

4. NOVEL SEQUENTIAL CURRENT-MODE CMOS MULTIPLE-

VALUED AB FLIP-FLOP

Flip-flops are well known circuits in designing sequential logic circuits. In the

previous chapter, well known flip-flop structures and their input-output equations for

multiple-valued logic were introduced.

For the binary case, JK flip-flop is the most versatile of the basic flip-flops. It has

two inputs, and can perform the functions of the RS flip-flop and has the advantage that

there are no undefined states. It can also act as a T flip-flop to accomplish a toggling action

if J and K inputs are tied together.

For multiple-valued logic, JK flip-flop has the input-output equation

1n n nQ J Q K Q J K+ = ⋅ + ⋅ + ⋅ where K and nQ are complements of K and nQ . Realizing

the complement operation takes cost as indicated previous chapters. The current, ( 1). br I−

must constantly flow to obtain a complement of any input or output value. That results

2 ( 1). br I× − current flowing every single JK flip-flop operation, which makes this flip-flop

unable to meet the expectations about the power consumption and that the practical

implementation.

In this study, a new flip-flop structure is proposed as a starting point. The new

structure is named AB flip-flop due to its A and B inputs. The input-output equation of the

proposed flip-flop is as follows:

1n nQ A BQ+ = +

(4.1)

As it can be seen from the equation, it has no complement operation which makes it

advantageous over other flip-flops. State transition table of the AB flip-flop is given in

Table 4.1, and it is clear that the flip-flop can successfully change its state from one to

other for any input combination.

Page 56: Tez FatmaSaricaPhDThesis

40

Table 4.1. General transition table of the AB flip-flop.

AB

Qn 00 01 02 03 10 11 12 13 20 21 22 23 30 31 32 33

0 0 0 0 0 1 1 1 1 2 2 2 2 3 3 3 3

1 0 1 1 1 1 1 1 1 2 2 2 2 3 3 3 3

2 0 1 2 2 1 1 2 2 2 2 2 2 3 3 3 3

3 0 1 2 3 1 1 2 3 2 2 2 3 3 3 3 3

The flip-flop equation can be rewritten in terms of mostly used operators as follows:

1 ( , ( , ))

max( ,min( , ))

n n

n

Q OR A AND B Q

A B Q

+ =

=

(4.2)

which indicates that for the realization of the flip-flop circuit a min circuit is needed to

perform AND operation, a max circuit to perform OR operation, and a latch circuit to

HOLD the current state Qn. The block diagram for the circuit realization is illustrated in

Figure 4.1.

MaxQA

Latch

Min

Q

B

Figure 4.1. Block diagram of the AB flip-flop.

In order to realize the circuit at transistor level, the min circuit introduced in Figure

2.15, the max circuit introduced in Figure 2.17, and the latch circuit introduced in Figure

3.3 is used. The latch circuit performs timing of the flip-flop circuit. Pass transistors of the

latch circuit are stimulated by opposite phase voltage-mode binary clock signals.

Page 57: Tez FatmaSaricaPhDThesis

41

When the input currents A and B shown in figure Figure 4.2 are applied to the AB

flip-flop, with the clock signal shown in Figure 4.3, the resulting Q output signal shall be

as shown in Figure 4.3. Hspice is used to simulate the circuit with UMC 0.18µm

parameters and full extraction from the layout.

Figure 4.2. A and B input signals for the AB flip-flop.

Figure 4.3. Clock and Q output signals for the AB flip-flop.

Page 58: Tez FatmaSaricaPhDThesis

42

Input signals applied to the AB flip-flop shown in Figure 4.2 are totally random

signals to show the behavior of the flip-flop is consistent with the transition table

introduced in Table 4.1. Magic layout of the flip-flop is shown in Figure 4.4.

Figure 4.4. Layout of AB flip-flop.

Dimensions of the circuit are 34.2µm x 8.64µm and, all the current sources in the

circuit are realized with transistors instead using the ideal ones. Table 4.2 gives a detailed

information about transistor count, power and delay measurements of circuit.

Table 4.2. Power and delay measurements of AB flip-flop.

Transistor count Average power

consumption (µW) Delay (nsec)

AB flip-flop 47 193.45 2.5

There are several multiple-valued flip-flop designs in the literature, most of them are

voltage-mode. The performance of the flip-flop is better than most of them as introduced in

Table 4.3. Also, the flip-flop is designed by using standard CMOS technology, i.e. only n-

type and p-type enhancement-mode transistors, two metal layers, no variable threshold

voltages, etc.

Page 59: Tez FatmaSaricaPhDThesis

43

Table 4.3. Performance of the MVL flip-flop circuits.

Reference Average power

consumption (µW) Delay (nsec)

Quaternary Latch [85] 354.8 2.8

Quaternary D flip-flop [61] 56.19 1.187

NMAX-TG D flip-flop [86] 890 32.2

NMIN-TG D flip-flop [86] 880 20

AB flip-flop 193.45 2.5

4.1. Counter Design Using AB Flip-Flop

The proposed flip-flop can be used in sequential multiple-valued logic circuits

wherever the other type flip-flops find application areas. The most popular design

application of the flip-flop circuits are counter circuits. For this reason, synchronous and

ripple (asynchronous) multiple-valued counter circuits are implemented and simulated

using AB flip-flop circuit.

4.1.1. 1-Digit Modulo-4 Synchronous Counter Design

A new type of flip-flop, AB, is proposed in this study having the advantage of not

including complement operation. Proposed flip-flop circuit is used in designing 1-digit

modulo-4 counter design as an implementation example. The counter is expected to count

as 0, 1, 2, 3, 0,1 …, as shown in Figure 4.5.

Figure 4.5. Counting diagram of 1-digit modulo-4 counter.

0

1

2

3

Page 60: Tez FatmaSaricaPhDThesis

44

Using this counting diagram, the truth table of 1-digit modulo-4 counter can be

generated as shown in Table 4.4. In this table, Qn+1 indicates the next-state value of Qn flip-

flop output. Using the possible input values of the counter circuit, A and B input equations

can be defined as:

1

0nA Q

B

→==

(4.3)

where 1nQ → indicates 1-level clock-wise cycling – successor- operation. Using these

equation, the block diagram of the counter circuit can be formed as shown in Figure 4.6.

Table 4.4. Possible flip-flop input values for specified present-state and next-state values of

1-digit modulo-4 counter.

Qn Qn+1 A B

0 1 1 X

1 2 2 X

2 3 3 X

3 0 0 0

where ‘X’ is considered as ‘don’t care’ for multiple-valued logic signals. At the high clock

phase AB flip flop calculates the next-state and at the low clock phase it holds the

calculated output. Since the counter output is fed back to input, another latch circuit has to

be used for stability.

Figure 4.6. 1-digit modulo-4 synchronous counter block diagram.

Page 61: Tez FatmaSaricaPhDThesis

45

The counter circuit is realized using the AB flip-flop circuit given in Figure 4.1, the

4-valued version of latch circuit given in Figure 3.3, and the clock-wise cyclic circuit given

in Figure 2.13. Logic step is selected as 5μA, and the maximum current that identifies the

logic level-3 is 15μA. Applied clock function and resulting counter output current is shown

in Figure 4.7.

Figure 4.7. 1-digit modulo-4 synchronous counter clock and output signals.

4.1.2. 2-Digit Modulo-16 Synchronous Counter Design

Another example of synchronous logic design is modulo-16 counter. For the binary

case, the counting operation needs 4-bits the circuit counts as 0000, 0001,…, 1110, 1111.

In order to design modulo-16 counter circuit using 4-valued logic circuits, 2-digits are

needed and the circuit counts as 00,01,,…,32,33 as shown in Figure 4.8.

Page 62: Tez FatmaSaricaPhDThesis

46

Figure 4.8. Counting diagram of 2-digit modulo-16 counter.

Using the counting diagram in Figure 4.8, the truth table of 2-digit modulo-16

counter can be generated as shown in Table 4.6. In this table, Q1,n+1 and Q2,n+1 indicates the

next-state values of least significant digit and most significant digit flip-flop outputs

respectively. The information from the truth table can be transferred into the maps as

shown in Table 4.5 to perform the necessary minimizations.

Table 4.5. Minimization maps for the 2-digit modulo-16 counter.

A1 B1 Q1 Q2

0 1 2 3 Q1 Q2

0 1 2 3

0 1 2 3 0 0 0 0 0 0

1 1 2 3 0 1 0 0 0 0

2 1 2 3 0 2 0 0 0 0

3 1 2 3 0 3 0 0 0 0

A2 B2

Q1 Q2

0 1 2 3 Q1 Q2

0 1 2 3

0 0 0 0 1 0 0 0 0 0

1 0 0 0 2 1 1 1 1 0

2 0 0 0 3 2 2 2 2 0

3 0 0 0 0 3 3 3 3 0

00 01 02

03

10

11

12 13 20 21

22

23

30

31

32 33

Page 63: Tez FatmaSaricaPhDThesis

47

Table 4.6. Possible flip-flop input values for specified present-state and next-state values of

2-digit modulo-16 counter.

Q2,n Q1,n Q2,n+1 Q1,n+1 A1 B1 A2 B2

0 0 0 1 1 X 0 X 0 1 0 2 2 X 0 X 0 2 0 3 3 X 0 X 0 3 1 0 0 0 1 X

1 0 1 1 1 X 0 1

1,2,3 X

1 1 1 2 2 X 0 1

1,2,3 X

1 2 1 3 3 X 0 1

1,2,3 X

1 3 2 0 0 0 2 X

2 0 2 1 1 X 0 1 2

2,3 2,3 X

2 1 2 2 2 X 0 1 2

2,3 2,3 X

2 2 2 3 3 X 0 1 2

2,3 2,3 X

2 3 3 0 0 0 3 X

3 0 3 1 1 X

0 1 2 3

3 3 3 X

3 1 3 2 2 X

0 1 2 3

3 3 3 X

3 2 3 3 3 X

0 1 2 3

3 3 3 X

3 3 0 0 0 0 0 0

Page 64: Tez FatmaSaricaPhDThesis

48

Minimization maps of Table 4.5 can be used to obtain the necessary minimum input

expressions. The equations related to four inputs of two AB flip-flops are as follows:

11 1

1

3 3 12 1 2

0 22 1 2

0

A Q

B

A Q Q

B Q Q

=

=

= ⋅

=

(4.4)

Here, 11→Q and 1

2→Q indicates successor operation and 3

13Q and 2

10Q are window

literal operations. In general 31

3Q operation is logically equal to “detect if 31 ≥Q or not”,

and 21

0Q operation is logically equal to “detect if 21 ≤Q or not”. Because of this reason,

upper and lower threshold operations can be used instead of window literal operation.

Threshold operations require half the transistor count and less complicated than the literal

operation.

Using the input-output equations related to AB flip-flops, the block diagram of the 2-

digit modulo-16 synchronous counter can be designed as shown in Figure 4.9.

The counter circuit is realized using the AB flip-flop circuit given in Figure 4.1, 4-

valued version of latch circuit in Figure 3.3, clock-wise cyclic circuit given in Figure 2.13,

min circuit of Figure 2.15, threshold circuits given in Figure 2.11. Applied clock function,

resulting most significant (IMSD) and least significant (ILSD) counter output currents are

shown in Figure 4.10.

Page 65: Tez FatmaSaricaPhDThesis

49

Figure 4.9. 2-digit modulo-16 synchronous counter block diagram.

Figure 4.10. 2-digit modulo-16 synchronous counter clock and output signals.

Page 66: Tez FatmaSaricaPhDThesis

50

4.1.3. 2-Digit Modulo-16 Ripple Counter Design

In synchronous counter design, the input clock signal is applied to all clock inputs of

all flip-flops. On the other hand, for the ripple counters only first flip-flop is triggered by

clock signal and the others are triggered by the output of the previous flip-flops.

The 2-digit modulo-16 synchronous counter design, which is presented in the

previous section, can also be realized as ripple counter. The clock signal of the second AB

flip flop (producing most significant digit –MSD) is produced by the first flip-flop circuit.

When the least significant digit of the counter reaches to logic level-3, a clock signal is

produced and applied to the second flip-flop. Detection of logic level-3 operation can

easily be handled by an upper-threshold circuit as shown in Figure 4.11.

In this circuit, x input is the output of the first stage. An inner voltage signal of

threshold circuit becomes high when the input current reaches to logic level-3. This signal

is applied to a simple voltage mode inverter and restored. The restored signal is the

inverted clock signal ( 'clk ) for the second flip-flop. The non-inverted clock signal ( 'clk ) is

obtained by using another inverter as shown in Figure 4.11.

Counting diagram of the ripple counter is same as the synchronous counter given in

Figure 4.8. Since the second stage is triggered by the first stage output, combining two 1-

digit modulo-4 counters with the clock signal generator circuit of Figure 4.11 results a 2-

digit modulo-16 ripple counter as given in Figure 4.12.

x(r-1-0.5)*Ib

VDD

clk’

clk’__

Figure 4.11. Clock signal generator circuit for 2-digit modulo-16 ripple counter.

Page 67: Tez FatmaSaricaPhDThesis

51

Figure 4.12. 2-digit modulo-16 ripple counter block diagram.

The counter circuit is realized using the 1-digit modulo-4 synchronous counter

circuit given in Figure 4.6, and clock signal generator circuit given in Figure 4.11. Applied

clock function to the first flip-flop and generated clock function for the second flip-flop is

given in Figure 4.13, resulting most significant (IMSD) and least significant (ILSD) counter

output currents are shown in Figure 4.14.

Figure 4.13. Clock signals for the first and second flip-flop of 2-digit modulo-16 ripple

counter.

Page 68: Tez FatmaSaricaPhDThesis

52

Figure 4.14. 2-digit modulo-16 ripple counter output signals.

4.2. Design of an Arbitrarily Selected State Diagram Using AB Flip-Flop

Counter circuits are important for the sequential logic design where flip-flop

circuits find application areas. The new flip-flop, AB, having the input-output equation

without the complement operation is successfully used in synchronous and ripple counter

designs.

Another design example using the new AB flip-flop is to realize an arbitrarily given

state diagram. For the sake of simplicity, a 16-state sequential circuit which may be

realized by using only two AB flip-flops is preferred. State transitions are randomly

assigned. This new quaternary sequential circuit uses previous outputs and 1-digit 4-level x

input. State diagram of the circuit is given in Figure 4.15. Using this state diagram, truth-

table is formed and introduced in Table 4.7.

Page 69: Tez FatmaSaricaPhDThesis

53

00 32

02

03

10

30

23

22

12 13 20

21

3101

11

33X=3

X=3

X=3

X=3

X=3

X=3X=3

X=0,1,2,3

X=3

X=3

X=3

X=0,1,2,3

X=3X=3X=3

X=3X=2

X=2

X=2

X=2

X=2

X=2X=2

X=2

X=0,1,2

X=2 X1,2X=0,1,2

X=1,2

X=2

X=1

X=1

X=1

X=1

X=1

X=1

X=1

X=1

X=1

X=1

X=0

X=0

X=0

X=0

X=0

X=0 X=0 X=0

X=0

X=0

X=0X=0

Figure 4.15. State diagram of the new sequential circuit.

Page 70: Tez FatmaSaricaPhDThesis

54

Table 4.7. Possible flip-flop input values for specified present-state and next-state values of

the new sequential circuit.

x Q2 Q1 Q2+ Q1+ A1 B1 A2 B2 x Q2 Q1 Q2+ Q1+ A1 B1 A2 B2 0 0 0 1 1 1 0 1 0 2 0 0 3 1 1 0 3 0 0 0 1 1 2 2 1 1 0 2 0 1 3 2 2 0 3 0 0 0 2 1 3 3 2 1 0 2 0 2 3 3 3 0 3 0 0 0 3 1 3 0 3 1 0 2 0 3 3 0 0 0 3 0 0 1 0 1 1 1 0 1 0 2 1 0 3 1 1 1 3 0 0 1 1 1 2 2 1 1 1 2 1 1 3 2 2 1 3 1 0 1 2 1 3 3 2 1 1 2 1 2 3 3 3 1 3 1 0 1 3 1 3 0 3 1 1 2 1 3 3 1 0 1 3 1 0 2 0 0 1 1 0 0 0 2 2 0 0 1 1 2 0 0 0 2 1 1 2 2 1 0 1 2 2 1 1 2 2 2 0 1 0 2 2 1 3 3 2 0 1 2 2 2 2 3 3 2 0 2 0 2 3 1 3 0 3 0 1 2 2 3 2 2 0 2 0 2 0 3 0 0 1 1 0 0 0 2 3 0 0 1 1 3 0 0 0 3 1 1 2 2 1 0 1 2 3 1 1 2 2 3 0 1 0 3 2 1 3 3 2 0 1 2 3 2 2 3 3 3 0 2 0 3 3 1 3 0 3 0 1 2 3 3 3 3 0 3 0 3 1 0 0 2 1 1 0 2 0 3 0 0 0 1 1 0 0 0 1 0 1 2 2 2 1 2 0 3 0 1 0 2 2 0 0 0 1 0 2 2 3 3 2 2 0 3 0 2 0 3 3 0 0 0 1 0 3 2 3 0 3 2 0 3 0 3 0 0 0 0 0 0 1 1 0 2 1 1 0 2 0 3 1 0 0 1 1 1 0 0 1 1 1 2 2 2 1 2 1 3 1 1 0 2 2 1 0 0 1 1 2 2 3 3 2 2 1 3 1 2 0 3 3 1 0 0 1 1 3 2 3 0 3 2 1 3 1 3 0 1 0 1 0 0 1 2 0 0 1 1 0 0 0 3 2 0 0 1 1 2 0 0 1 2 1 1 2 2 1 0 1 3 2 1 0 2 2 2 0 0 1 2 2 2 3 3 2 0 2 3 2 2 0 3 3 2 0 0 1 2 3 2 3 0 3 0 2 3 2 3 0 2 0 2 0 0 1 3 0 0 1 1 0 0 0 3 3 0 0 1 1 3 0 0 1 3 1 1 2 2 1 0 1 3 3 1 0 2 2 3 0 0 1 3 2 2 3 3 2 0 2 3 3 2 0 3 3 3 0 0 1 3 3 2 3 0 3 0 2 3 3 3 0 3 0 3 0 0

Page 71: Tez FatmaSaricaPhDThesis

55

For the implementation of the circuit, we use two AB flip-flops. In the Table 4.7, x

is a 4-valued input current, Q2 and Q1 are current state outputs of the AB flip-flops and also

used as inputs. Q2+ and Q1+ are the calculated next state output levels and A1, B1, A2, B2

are the flip-flop inputs.

The information from the truth table can be transferred into the maps as shown in

Table 4.8 and Table 4.9 to perform the necessary minimizations.

Table 4.8. Minimization maps of first AB flip-flop for the new sequential circuit.

A1 Q2Q1 x 00 01 02 03 10 11 12 13 20 21 22 23 30 31 32 33

0 1 2 3 0 1 2 3 0 1 2 3 0 1 2 3 0

1 1 2 3 0 1 2 3 0 1 2 3 0 1 2 3 0

2 1 2 3 0 1 2 3 0 1 2 3 0 1 2 3 0

3 1 2 3 0 1 2 3 0 1 2 3 0 1 2 3 0

B1

Q2Q1 x

00 01 02 03 10 11 12 13 20 21 22 23 30 31 32 33

0 0 1 2 3 0 1 2 3 0 1 2 3 0 1 2 3

1 0 1 2 3 0 1 2 3 0 1 2 3 0 1 2 3

2 0 0 0 0 1 1 1 1 2 2 2 2 3 3 3 3

3 0 0 0 0 1 1 1 1 2 2 2 2 3 3 3 3

Using this truth table, we obtain the input functions of the first flip-flop, by

inspection, as follows (unfortunately there is no known method to simplify the multilevel

logic equations):

11 1

0 1 2 31 1 2

A Q

B x Q x Q

→=

= +

(4.5)

Page 72: Tez FatmaSaricaPhDThesis

56

Using this truth table given in Table 4.9 , we obtain the input functions of the second

flip-flop, by inspection, as follows:

0 1 12 2 1

12 1 2 1

A Q x

B x Q Q

=

=

(4.6)

Table 4.9. Minimization maps of second AB flip-flop for the new sequential circuit.

A2 Q2Q1 x 00 01 02 03 10 11 12 13 20 21 22 23 30 31 32 33

0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0

1 2 2 2 2 2 2 2 2 0 0 0 0 0 0 0 0

2 3 3 3 3 3 3 3 3 0 0 0 0 0 0 0 0

3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

B2

Q2Q1 x

00 01 02 03 10 11 12 13 20 21 22 23 30 31 32 33

0 0 0 0 0 0 1 1 1 0 1 1 1 0 1 1 1

1 0 0 0 0 0 1 1 1 0 1 2 2 0 1 2 2

2 0 0 0 0 0 1 1 1 0 1 2 2 0 1 2 3

3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Using the input-output equations related to AB flip-flops, the block diagram of the

new sequential circuit can be designed as shown in Figure 4.16. Using the min, max,

threshold, cyclic and AB flip-flop circuits introduced before, the new sequential circuit is

simulated for the voltage mode clock and x input currents given in Figure 4.17. Resulting

Q1, and Q2 output currents are shown in Figure 4.18. Reading from the simulation outputs,

high clock signal applied when Q2Q1 is in ‘32’ state and x=0, changes the current state to

‘13’. Similary for this current state and x=1, next state becomes ‘23’ and so on.

Page 73: Tez FatmaSaricaPhDThesis

57

In order to show the reduced circuit complexity advantage of multiple-valued logic,

the same new sequential circuit is implemented in binary mode. Since the proposed circuit

is quaternary, two binary variable is needed to represent every single multiple-valued

variable in the circuit. Thus, binary circuit requires 6 input variables (two of them are to

represent x and four of them are flip-flop outputs) where the multiple valued one needs

only three.

For the implementation, binary JK flip-flops are chosen. Truth table of the circuit

introduced in Table 4.7 can be reproduced for the binary case as shown in Table 4.10.

ABff2

ABff1

max

min

min

upper threshold

lower threshold

CWC

min

A1

B1

A2

B2

lower threshold

minCWC

X

latch

latch

clk clk

clk clkclk clk

latch

latch

clk clk

clk clkclk clk

Q2

Q1

Q2

Q1

Figure 4.16. Block diagram of the new sequential circuit.

Page 74: Tez FatmaSaricaPhDThesis

58

Figure 4.17. x and clock signal inputs of the new sequential circuit.

Figure 4.18. Q1 and Q2 outputs for the new sequential circuit.

Page 75: Tez FatmaSaricaPhDThesis

59

Table 4.10. Possible flip-flop input values for specified present-state and next-state values

of new sequential circuit for the binary JK flip-flop.

x2 x1 Q4 Q3 Q2 Q1 Q4+ Q3+ Q2+ Q1+ J4 K4 J3 K3 J2 K2 J1 K1

0 0 0 0 0 0 0 1 0 1 0 d 1 d 0 d 1 d 0 0 0 0 0 1 0 1 1 0 0 d 1 d 1 d d 1 0 0 0 0 1 0 0 1 1 1 0 d 1 d d 0 1 d 0 0 0 0 1 1 0 1 1 1 0 d 1 d d 0 d 0 0 0 0 1 0 0 0 1 0 1 0 d d 0 0 d 1 d 0 0 0 1 0 1 0 1 1 0 0 d d 0 1 d d 1 0 0 0 1 1 0 0 1 1 1 0 d d 0 d 0 1 d 0 0 0 1 1 1 0 1 1 1 0 d d 0 d 0 d 0 0 0 1 0 0 0 0 0 0 1 d 1 0 d 0 d 1 d 0 0 1 0 0 1 0 1 1 0 d 1 1 d 1 d d 1 0 0 1 0 1 0 0 1 1 1 d 1 1 d d 0 1 d 0 0 1 0 1 1 0 1 1 1 d 1 1 d d 0 d 0 0 0 1 1 0 0 0 0 0 1 d 1 d 1 0 d 1 d 0 0 1 1 0 1 0 1 1 0 d 1 d 0 1 d d 1 0 0 1 1 1 0 0 1 1 1 d 1 d 0 d 0 1 d 0 0 1 1 1 1 0 1 1 1 d 1 d 0 d 0 d 0

. .

. .

. .

. .

. .

. .

. .

. .

. .

1 1 0 0 1 1 0 0 0 0 0 d 0 d d 1 d 1 1 1 0 1 0 0 0 0 0 1 0 d d 1 0 d 1 d 1 1 0 1 0 1 0 0 1 0 0 d d 1 1 d d 1 1 1 0 1 1 0 0 0 1 1 0 d d 1 d 0 1 d 1 1 0 1 1 1 0 0 0 1 0 d d 1 d 1 d 0 1 1 1 0 0 0 0 0 0 1 d 1 0 d 0 d 1 d 1 1 1 0 0 1 0 0 1 0 d 1 0 d 1 d d 1 1 1 1 0 1 0 0 0 1 1 d 1 0 d d 0 1 d 1 1 1 0 1 1 0 0 1 0 d 1 0 d d 0 d 1 1 1 1 1 0 0 0 0 0 1 d 1 d 1 0 d 1 d 1 1 1 1 0 1 0 0 1 0 d 1 d 1 1 d d 1 1 1 1 1 1 0 0 0 1 1 d 1 d 1 d 0 1 d 1 1 1 1 1 1 0 0 1 1 d 1 d 1 d 0 d 0

Page 76: Tez FatmaSaricaPhDThesis

60

After performing the necessary minimizations, J and K input equations of the binary

equivalent sequential circuit can be found as follows:

1

1 2 2 3

2 1

2 2 1 4

3 1 4 1 2 1 2 1 2 1 2 4 1 2

3 1 1 4 2 2 2 1 4 1 2 1 2

4 1 2 1 2

4 1 2 1 2 2 1 2 1 2

1

( ) ( )

( ) ( )

( )

J

K Q x Q

J Q

K x Q Q

J x Q x x Q Q Q Q x x Q x x

K x Q Q Q x x x Q Q Q x x

J x x x x

K x x x x Q x x x x

=

= +

=

=

= + + + +

= + + + + +

= +

= + + +

(4.7)

Using the input-output equations related to JK flip-flops, the block diagram of the

new binary sequential circuit can be designed as shown in Figure 4.19.

This arbitrarily selected circuit aims to show that the proposed flip-flop circuit can

be used in any circuit design. Transistor counts for the multiple-valued and binary design

are nearly the same. The only advantage of the circuit is has less number of nodes that

results less interconnection wiring.

Page 77: Tez FatmaSaricaPhDThesis

61

J1

K1

Q1

Q1

J2

K2

Q2

Q2

J3

K3

Q3

Q3

J4

K4

Q4

Q4

x2 x11

Figure 4.19. Binary equivalent circuit of the same new sequential circuit.

Page 78: Tez FatmaSaricaPhDThesis

62

5. COMPARISON OF A MULTIPLE-VALUED AND BINARY

CIRCUIT

Flip-flop circuits are the primary structures in sequential logic designs. They have

several voltage mode binary types with different input-output relations. Considerable effort

has been spent throughout the years to implement these flip-flops in multiple-valued type.

Most of these studies concentrated on designing D-type flip-flop and designers usually

prefer using variable threshold voltage for the quaternary implementation. As discussed

before, voltage-mode multiple-valued design can not allow higher radices, studies are

limited with quaternary logic levels.

In the previous section, instead of trying to improve the existing flip-flop structures,

a new type of flip-flop is proposed. It has two input variables, A and B, and a single output

and named AB flip-flop due to its input-variables. Main advantage of the flip-flop is its

input output equation does not include inversion operation, which consumes extra power in

MVL design. For this reason, inverse output for the AB flip-flop does not exist.

Counter circuits are chosen to be implemented by AB flip-flops as they are the main

application area of sequential logic design. Modulo-4 and modulo-8 counters are

implemented, and an arbitrary selected state diagram is realized using this flip-flop.

In this section, counter circuits using D-type flip-flops are compared in terms of

transistor count, power, area and delay. D-type flip-flops are chosen intentionally, as they

are the only flip-flop type that have the same input-output equation for binary and

multiple-valued logic as follows;

1nQ D+ =

(5.1)

For the comparison, modulo-8 up counter is chosen. Both binary-and MVL

realizations are synchronous, no set and reset inputs. Multiple-valued master-slave D flip-

flop realization is performed using cascaded 8-level latch circuits with opposite phase

clock signals as shown in Figure 5.1.

Page 79: Tez FatmaSaricaPhDThesis

63

Latch Latch Q

clk___

clk clk clk___

D

Figure 5.1. Multiple-valued D-type flip-flop.

The counting diagram of the 1-digit modulo-8 counter is shown in Figure 5.2. First

line of every state correspons to multiple-valued counter and the second line corresponds

to binary counter state.

Figure 5.2. Counting diagram for 1-digit modulo-8 multiple-valued and 3-bit modulo-8

binary counter.

Using this counting diagram, truth table for the MVL counter can be formed as

shown in Table 5.1. By inspection from the table, input-output equation of the multiple-

valued counter using D-type flip-flop can be found as follows:

1D Q→=

(5.2)

0 000

1 001

2 010

3 011

4 100

5 101

6 110

7 111

Page 80: Tez FatmaSaricaPhDThesis

64

Table 5.1. Flip-flop input values for specified present-state and next-state values of 1-digit

modulo-8 counter using D-type flip-flop.

Qn Qn+1 D

0 1 1

1 2 2

2 3 3

3 4 4

4 5 5

5 6 6

6 7 7

7 0 0

Simply, a D-type flip-flop and a clockwise cyclic circuit is enough for the realization

as shown in Figure 5.3.

LatchQ

Latch

CWC

Q

clk___

clk clk clk___

Figure 5.3. Block diagram of 1-digit modulo-8 multiple-valued counter.

The latch circuit and clockwise cyclic circuits are introduced in Figure 3.3 and

Figure 2.13 respectively. The reference current level, Ib, is chosen as 5µA and maximum

input current level is 35µA. The circuit is simulated using Hspice with full extraction from

layout. Simulation results of Q output signal and input clock signal is shown in Figure 5.4.

Page 81: Tez FatmaSaricaPhDThesis

65

Figure 5.4. Output and clock signal waveforms for 1-digit modulo-8 counter circuit.

Magic layout of designed circuit is introduced in Figure 5.5. Circuit dimensions are

44.45µm*17.64µm. There are 91 transistors in the circuit, no variable threshold elements

and only two metal layers are used.

Figure 5.5. Layout of 1-digit modulo-8 counter.

Page 82: Tez FatmaSaricaPhDThesis

66

Designing modulo-8 counter circuit in voltage-mode binary logic using D-flip-flop

requires the input-output equations as follows:

1 1

2 2 1

3 3 2 1( )

D Q

D Q Q

D Q Q Q

=

= ⊕

= ⊕

(5.3)

where ‘ ⊕ ’ denotes the XOR operation and its block diagram is introduced in Figure 5.6.

Binary D-flip-flops are master-slave as shown in Figure 5.7. Block diagram of the binary

counter circuit is introduced in Figure 5.8.

in1

in2

out

Figure 5.6. Binary XOR.

Q_

Q

D

clk

Figure 5.7. Binary D flip-flop.

Page 83: Tez FatmaSaricaPhDThesis

67

D Q

Q_

D Q

Q_

D Q

Q_

clk

Q1

Q2

Q3

Figure 5.8. 3-bit modulo-8 binary counter.

Layout of the circuit, which is drawn using Magic layout program and is given in

Figure 5.9. Circuit dimensions are measured as 35.46µm*33.75µm.

Designing the circuit in binary logic rather than the multiple-valued logic requires

60% increase in transistor count and 44% more circuit area. Detailed comparison of these

two counter circuits can be found in Table 5.2.

Another important point, which is not stated in Table 5.2 is engineering time. Binary

counter circuit given in Figure 5.8 can easily be realized using the D flip-flop block

introduced in Figure 5.7 and XOR block introduced in Figure 5.6. These circuits are using

2-input binary NAND gate and the only thing to do is making necessary connections. On

the other hand, there are not such standard cell libraries for multiple-valued circuits.

Page 84: Tez FatmaSaricaPhDThesis

68

Table 5.2. Power and delay measurements of modulo-8 counters.

Type Transistor count Area Average power consumption

(µW) Delay (nsec)

Multiple-valued counter 91 44.45µm*17.64µm 800 12

Binary counter 148 35.46µm*33.75µm 11.3 0.8

Figure 5.9. Layout of 3-bit modulo-8 counter.

Page 85: Tez FatmaSaricaPhDThesis

69

6. CONCLUSION AND FURTHER STUDY

The use of circuits with more than two logic levels, named as multiple-valued logic

circuits has attracted a great attention over the last couple of decades. It has been offered as

a solution to the interconnection (both on chip and between chips) and routing problems of

the exponentially growing IC industry. However, in spite of their potential advantages,

developments in multi-valued systems are not satisfactory. It is still a complicated task to

design a system for processing a signal in a multi-valued manner despite considerable

effort. Implementation of the functional basic set and simplification of the logic

expressions are still the issues to work on it.

These difficulties made the research areas centered around combinational logic

circuit and its elements. Many useful MVL operators are derived; some of them has

considerably high performance than their binary counterparts. Studies about sequential

logic design always stay in shadow of combinational logic studies since the last decade due

to design complexity and lack of proper minimization algorithms.

In this thesis, current-mode CMOS sequential MVL circuits are discussed and

analyzed. Main building blocks of the sequential logic design, i.e. flip-flops, are studied

and their multiple-valued input-output relations are evaluated. Only the D-type flip-flop

has the same characteristic equation in binary and multiple-valued logic. The rest are

complicated and requires multiple-valued inversion operation, which is not desired in

current-mode MVL designs due to increase in current consumption. For this reason, a new

type of two-input single output MVL flip-flop circuit, named as AB flip-flop, is proposed.

Simulation results of this new flip-flop confirm the input-output currents totally compatible

with the truth table.

Proposed flip-flop is used in various counter designs and found out that, it reduces

the total area consumption and number of active elements compared to its counterparts. It

is also tested in realization of arbitrarily selected state-diagrams, and the results show that

it can be used in any design like other flip-flop structures.

Page 86: Tez FatmaSaricaPhDThesis

70

A new latch and restorer circuit is also realized. There are very few studies about

current-mode latches. Existing ones are either radix-limited or having high delay. The latch

circuit is a necessary element to hold the current-state output of the flip-flop. The new

latch is self-restored, that is, the output of the flip-flop restored at every clock cycle and

there is no current deviation accumulated at the output.

In the last part of the thesis, a detailed comparison is made between multiple-valued

and binary counter circuit. D-type flip-flop is chosen for both designs to ensure the fair

comparison as it has the same input-output equation for both logics. The D-type flip-flop

composed of the proposed latch shows better performance than the most of other D-type

multiple-valued flip-flops in the literature. It has been found out that designing the circuit

in binary logic rather than the multiple-valued logic requires 60% increase in transistor

count and 44% more circuit area for a modulo-8 up-counter. On the other hand, current-

mode multi-valued circuits have constant current consumption, regardless of the switching

activity, which makes the power consumption 80 times higher than the binary one. Another

advantage of binary design over multiple-valued ones is that, the binary circuits have a

standard cell library. Desired system can easily be designed by placing these cells together

and making the necessary connections. For the multiple-valued case, the design procedure

is considerably more difficult. There is no standard cell library and there is no attempt to

build it due to minimization and some other problems.

Mainly, multiple-valued logic is not found out to be superior over binary logic in

every design criteria. It has some positive properties and the negative ones. IC design is

always a tradeoff between many performance characteristics like chip area, power

dissipation, speed, design cost, pin reduction, CAD programs for IC design, etc., that called

VLSI criteria. Multiple-valued circuits and two-valued circuits must not be seen as

competitors. Multiple-valued integrated circuits can present characteristics equivalent or

superior to the corresponding two-valued ones according to some VLSI criteria, and worse

than two-valued ones according to other criteria. The key objective is to carefully examine

the domains, the applications where multiple-valued circuits can be useful in two-valued

world. For this purpose, on chip binary-to MVL encoder circuits can be used to convert the

input signal to MVL current-mode signal. Desired functions can then be performed and the

signal can be re-converted to binary using MVL-to-binary decoder. As long as the standard

Page 87: Tez FatmaSaricaPhDThesis

71

CMOS technology is chosen for the circuit realization, and the radix of MVL circuits are

chosen as power of 2, embedding MVL circuits in binary structure will perform better than

binary only.

6.1. Further Studies

Current-mode CMOS realization of multiple-valued sequential circuits have the

advantage of reduced area consumption and number of active elements on the cost of

increased power dissipation and delay. Increasing the radix makes the power consumption

worse and after a certain level, the circuit becomes infeasible.

The main reason of the dramatically increasing power consumption is the current

mirror circuits. Current mirrors should be used for almost every operator in current-mode

multiple-valued design (truncated difference, threshold etc.) for the operation or sign

changing or replicating the output signal. Unlike the voltage mode circuits, the current-

mode circuits have fan-out capacity of one. Current mirrors are used whenever the replicas

are needed and every single mirroring operation comes with a higher cost especially for the

higher radices.

Further study for the multiple-valued sequential circuits must be concentrated on

reducing these mirrors. Then the power consumption of the circuit can be compatible with

the binary ones. The power consumption of binary circuits increase relatively, as the

supply voltages scale down, since the leakage current becomes significant. In addition,

mirror circuits slow down the total design and mismatch of the dimensions will introduce

the variations from the preset logic level. Designing current-mode circuits that have less

number of mirror circuits will increase the speed and reduce errors on the reference logic

current.

Another problem with the sequential logic is lack of high performance latch circuits.

There are very few studies about current-mode latches. Existing ones are either radix-

limited or having high delays. Although the latch circuit proposed in this thesis and the

master-slave D-type flip-flop composed of the proposed latch shows better performance

from the most of other D-type multiple-valued flip-flops in the literature, they cannot

Page 88: Tez FatmaSaricaPhDThesis

72

compete with their binary counterparts when the power consumption is in question.

Designing a fast and low powered latch circuit, which allows higher radices, will be

another topic of future study.

Power consumption is a general problem for current-mode multiple-valued logic

designs. Voltage-mode multiple-valued designs can be offered as a solution to this

problem. Although they are known to be radix-limited as the supply voltages reduced,

variable threshold transistors can be chosen for the realization of the circuits without

increasing the power supply voltages.

In addition, ternary (3-valued) logic is the smallest and simplest form of multiple-

valued logic and still has the capacity of increasing information density. Ternary voltage

mode designs are worth of notice especially when dual power supply and signed digit

arithmetic operations is used. The proposed AB flip-flop can be realized using ternary

voltage-mode circuits.

Page 89: Tez FatmaSaricaPhDThesis

73

REFERENCES

1. Etiemble, D. and M. Israel, "Comparison of Binary and Multi-Valued ICs According

to VLSI Criteria", Computer, Vol. 21, No. 4, pp. 28-42, 1988.

2. Jain, A. K., R. J. Bolton and M. H. Abd-El-Barr, "CMOS Multiple-valued Logic

Design, Part I: Circuit Implementation", IEEE Transactions on Circuits and Systems-

Fundamental Theory and Applications, Vol. 40, No. 8, pp. 503-514, 1993.

3. Kameyama, M., "Toward the Age of Beyond-Binary Electronics and Systems",

Proceedings of 20th IEEE International Symposium on Multiple-Valued Logic, pp.

162-166, 1990.

4. Vranesic, Z. G., E. S. Lee and K. C. Smith, "A Many-Valued Algebra for Switching

Systems", IEEE Transactions on Computers, Vol. 100, No. 10, pp. 964-971, 1970.

5. Post, E. L., "Introduction to a General Theory of Elementary Propositions",

American Journal of Mathematics, Vol. 43, No. 3, pp. 163-185, 1921.

6. Webb, D. L., "The Algebra of n-Valued Logic", Comptes Rendus Society Science

Varsovie, Vol. 29, pp. 153-168, 1937.

7. Rosenbloom, P. C., "Post Algebras. I. Postulates and General Theory", American

Journal of Mathematics, Vol. 64, No. 1, pp. 167-188, 1942.

8. Berlin, R., "Synthesis of N-valued Switching Circuits", IRE Transactions on

Electronic Computers, No. 1, pp. 52-56, 1958.

9. Lee, C. and W. Chen, "Several Valued Combinational Switching Circuits",

Transactions of the American Institute of Electrical Engineers (Communication and

Electronics), Vol. 75, No.1, pp. 278-283, 1956.

Page 90: Tez FatmaSaricaPhDThesis

74

10. Lowenschuss, O., "Non-binary Switching Theory", IRE National Convention

Record, Vol. 1, pp. 305-317, 1958.

11. Hartmanis, J., "Linear Multivalued Sequential Coding Networks", IRE Transactions

on Circuit Theory, , Vol. 6, No. 1, pp. 69-74, 1959.

12. Allen, C. M. and D. D. Givone, "A Minimization Technique for Multiple-Valued

Logic Systems", IEEE Transactions on Computers, Vol. C-17, No. 2, pp. 182-184,

1968.

13. Wojcik, A., "Multi-valued Asynchronous Sequential Circuits", Proceedings of the 4th

International Symposium on Multiple Valued Logic, 1974.

14. Acha, J. and J. Huertas, "General excitation table for a JK multistable", Electronics

Letters, Vol. 11, No. 25, p. 624, 1975.

15. Acha, J. and J. Huertas, "Master-Slave T-Cyclic Multistable", Annals of the Royal

Spanish Society of Physics and Chemistry (in Spanish), Vol. 71, pp. 93-96, 1975.

16. Huertas, J. and J. Acha, "Synthesis of p-Valued Asynchronous Sequential Circuits by

Using a General Clock Function", Proceedings of the 6th International Symposium on

Multiple Valued Logic, pp. 102-109, 1976.

17. Acha, J. and J. L. Huertas, "On Input and Next-State Equations of the R-S Type M-

Stable", IEEE Transactions on Computers, Vol. 100, No. 7, pp. 759-763, 1976.

18. Wills, M. S., "A Behavioral Model and Triggering Modes for MVL R-flops",

Proceedings of the 8th International Symposium on Multiple Valued Logic, pp. 226-

234, 1978.

19. Sintonen, L., "A Clocked Multivalued Flip-Flop", IEEE Transactions on Computers,

Vol. C-26, No. 3, pp. 292-294, 1977.

Page 91: Tez FatmaSaricaPhDThesis

75

20. Mouftah, H. and I. Jordan, "Design of Ternary COS-MOS Memory and Sequential

Circuits", IEEE Transactions on Computers, Vol. C-26, No. 3, pp. 281-288, 1977.

21. Prosser, F., X. Wu and X. Chen, "CMOS Ternary Flip-Flops and their Applications",

IEE Proceedings, Vol. 135, pp. 266-272, 1988.

22. Wu, X. and F. Prosser, "Ternary CMOS Sequential Circuits", Proceedings of the 18th

International Symposium on Multiple Valued Logic, pp. 307-313, 1988.

23. Webb, J., S. Forbes, J. Wilson and S. Laverty, "Hybrid Higher Radix JK Flipflop

Sequencer with ASIC Implementation Potential", Electronics Letters, Vol. 27, No.

21, pp. 1933-1935, 1991.

24. Kawahito, S., M. Ishida, T. Nakamura, M. Kameyama and T. Higuchi, "High-Speed

Area Efficient Multiplier Design Using Multiple-Valued Current-Mode Circuits",

IEEE Transactions on Computers Vol. 43, No. 1, pp. 34-42, 1994.

25. Kawahito, S., M. Kameyama, T. Higuchi and H. Yamada, "A 32x32-bit Multiplier

Using Multiple-Valued MOS Current Mode Circuits", IEEE Journal of Solid-State

Circuits, Vol. 23, No. 1, pp. 124-132, 1988.

26. Chan, C. F., H. Ling and O. Choy, "A One Volt Four-Quadrant Analog Current

Mode Multiplier Cell", IEEE Journal of Solid-State Circuits, Vol. 30, No. 9, pp.

1018-1019, 1995.

27. Tanno, K., O. Ishizuka and Z. Tang, "Four-Quadrant CMOS Current-Mode

Multiplier Independent of Device Parameters", IEEE Transactions on Circuits and

Systems II: Analog and Digital Signal Processing Vol. 47, No. 5, pp. 473-477, 2000.

28. Chu, W. S. and W. Current, "Quaternary Multiplier Circuit", Proceedings of the 24th

International Symposium on Multiple Valued Logic, pp. 15-18, 1994.

Page 92: Tez FatmaSaricaPhDThesis

76

29. Hanyu, T. and M. Kameyama, "A 200 MHz Pipelined Multiplier Using 1.5V-Supply

Multiple-Valued MOS Current-Mode Circuits with Dual-Rail Source-Coupled

Logic", IEEE Journal of Solid-State Circuits, Vol. 30, No. 11, pp. 1239-1245, 1995.

30. Ishizuka, O., A. Ohta, K. Tannno, Z. Tang and D. Handoko, "VLSI Design of a

Quaternary Multiplier with Direct Generation of Partial Products", Proceedings of

the 27th International Symposium on Multiple Valued Logic, pp. 169-174, 1997.

31. Takagi, N., H. Yasuura and S. Yajima, "High Speed VLSI Multiplication Algorithm

with a Redundant Binary Addition Tree", IEEE Transactions on Computers, Vol.

100, No. 9, pp. 789-796, 1985.

32. Herrfeld, A. and S. Hentschke, "Ternary Multiplication Circuits Using 4-Input Adder

Cells and Carry Look-Ahead", Proceedings of the 29th International Symposium on

Multiple Valued Logic, pp. 174-179, 1999.

33. Wakui, F. and M. Tanaka, "Comparison of Binary Full Adder and Quaternary

Signed-Digit Full Adder Using High-Speed ECL", Proceedings of the 19th

International Symposium on Multiple Valued Logic, pp. 346-355, 1989.

34. Manzoul, M., S. Moorthy and R. Swartwout, "An Improved m-valued Carry Look-

Ahead Adder", Proceedings of the 19th International Symposium on Multiple Valued

Logic, pp. 280-282, 1989.

35. Radanovic, B. and M. Syrzycki, "Current-Mode CMOS Adders Using Multiple-

Valued Logic", Canadian Conference Electrical and Computer Engineering

(CCECE’96), Vol. 1, pp. 190-193, 1996.

36. Mingoto Jr, C., "A Quaternary Half-Adder Using Current-Mode Operation with

Bipolar Transistors", Proceedings of the 36th International Symposium on Multiple

Valued Logic, pp. 15, 2006.

Page 93: Tez FatmaSaricaPhDThesis

77

37. Pelayo, F., A. Prieto, A. Lloris and J. Ortega, "CMOS Current Mode Multivalued

PLAs", IEEE Transactions on Circuits and Systems, Vol. 38, No. 4, pp. 434-441,

1991.

38. Prieto, A., P. Martin-Smith, F. Pelayo and A. Lloris, "The Design of Decoders for Q-

Valued Logic Circuits", Proceedings of the 18th International Symposium on

Multiple Valued Logic, pp. 32-39, 1988.

39. Adlhoch, R., "Quaternary ROM Design Utilizing Variable-Threshold Storage Cells",

Proceedings of the 15th International Symposium on Multiple Valued Logic, 1985.

40. Rich, D. A., K. Naiff and K. Smalley, "A Four-State ROM Using Multilevel Process

Technology", IEEE Journal of Solid-State Circuits, Vol. 19, No. 2, pp. 174-179,

1984.

41. Cilingiroglu, U. and Y. Ozelci, "Multiple-Valued Static CMOS Memory Cell", IEEE

Transactions on Circuits and Systems II: Analog and Digital Signal Processing, Vol.

48, No. 3, pp. 282-290, 2001.

42. Lee, E. K. F. and P. G. Gulak, "Dynamic Current-Mode Multi-Valued MOS Memory

with Error Correction", Proceedings of the 22nd International Symposium on Multiple

Valued Logic, pp. 208-215, 1992.

43. Current, K., "Memory Circuits for Multiple Valued Logic Voltage Signals",

Proceedings of the 25th International Symposium on Multiple Valued Logic, pp. 52-

57, 1995.

44. Current, K., "A CMOS Quaternary Latch", Proceedings of the 19th International

Symposium on Multiple Valued Logic, pp. 54-57, 1989.

45. Current, K., "Voltage-Mode Quaternary Latch Circuit", Electronics Letters, Vol. 30,

No. 23, pp. 1928-1929, 1994.

Page 94: Tez FatmaSaricaPhDThesis

78

46. Current, K., "Ternary Static Latch Circuit", International Journal of Electronics,

Vol. 88, No. 1, pp. 53-58, 2001.

47. Lazzaro, J., S. Ryckebush, M. A. Mahowald, and C. A. Mead, "Winner-Take-All

networks of O (n) complexity", Advances in Neural Information Processing Systems,

Vol. 1, pp. 703–711, 1989.

48. Baturone, I., J. Huertas, A. Barriga and S. Sánchez-Solano, "Current-Mode Multiple-

Input Max Circuit", Electronics Letters, Vol. 30, No. 9, pp. 678-680, 1994.

49. Ota, Y. and B. M. Wilamowski, "Current-Mode CMOS Implementation of a Fuzzy

Min-Max Network", World Congress of Neural Networks, Vol. 2, pp. 480-483,

1995.

50. Patel, G. and S. DeWeerth, "Compact Current-Mode Loser-Take-All Circuit",

Electronics Letters, Vol. 31, No. 24, pp. 2091-2092, 1995.

51. Sekerkiran, B. and U. Cilingiroglu, "A High Resolution CMOS Winner-Take-All

Circuit", IEEE International Conference on Neural Networks, Vol. 4, pp. 2023-2026

1995.

52. Huang, C. Y., C. J. Wang and B. D. Liu, "Modular Current-Mode Multiple Input

Minimum Circuit for Fuzzy Logic Controllers", Electronics Letters, Vol. 32, No. 12,

pp. 1067-1069, 1996.

53. Gunay, Z. S. and E. Sanchez-Sinencio, "CMOS Winner-Take-All Circuits: a

Detailed Comparison", IEEE International Symposium on Circuits and Systems,

ISCAS’97, Vol. 1, pp. 41-44 1997.

54. Wilamowski, B. M. and D. L. Jordan, "A Synchronous High-Speed, High-Accuracy,

Loser-Take-All Circuit", International Joint Conference on Neural Networks,

IJCNN’99, Vol. 4, pp. 2306-2309, 1999.

Page 95: Tez FatmaSaricaPhDThesis

79

55. Carvajal, R., J. Ramirez-Angula and J. Tombs, "High-Speed High-Precision Voltage-

mode MIN/MAX Circuits in CMOS Technology", IEEE International Symposium on

Circuits and Systems 2000, ISCAS 2000, Vol. 5, pp. 13-16, 2000.

56. Aksin, D. Y., "A High-Precision High-Resolution WTA-MAX circuit of O(N)

Complexity", IEEE Transactions on Circuits and Systems II: Analog and Digital

Signal Processing, Vol. 49, No. 1, pp. 48-53, 2002.

57. Pojanasuwanchai, C., C. Wangwiwattana, A. Chaikla, V. Riewruja and P.

Julsereewong, "Fuzzy Multiple-Input Maximum Circuit in Current-Mode", SICE

2003 Annual Conference, Vol. 3, pp. 2990-2994 2003.

58. Keawconthai, S., R. Masuchun, A. Chaikla, V. Riewruja and P. Julsereewong, "An

Analog Current-mode Multiple-Input Max/Min Circuit", 7th International

Conference on Signal Proccessing, ICSP’04, Vol. 1, pp. 507-510 2004.

59. Yotingoravong, C., T. Kamsri, A. Chaikla and V. Riewruja, "High-Speed Multiple-

Input Maximum and Minimum Circuits", IEEE Conference on Electron Devices and

Solid-State Circuits, pp. 453-456, 2005.

60. Nia, S. K., A. Khoei and K. Hadidi, "High Speed High Precision Voltage-Mode

MAX and MIN Circuits", ICECS'06, 13th IEEE International Conference on

Electronics, Circuits and Systems, pp. 272-275, 2006.

61. KS, V. P. and K. Gurumurthy, "Quaternary Sequential Circuits", IJCSNS

International Journal of Computer Science and Network Security, Vol. 10, No. 7, pp.

110, 2010.

62. Maguire, L., T. McGinnity and L. McDaid, "From a Fuzzy Flip-Flop to a MVL Flip-

Flop", Proceedings of the 29th International Symposium on Multiple Valued Logic,

pp. 294-299, 1999.

Page 96: Tez FatmaSaricaPhDThesis

80

63. Current, K. W., "Current-Mode CMOS Multiple-Valued Logic Circuits", IEEE

Journal of Solid-State Circuits,, Vol. 29, No. 2, pp. 95-107, 1994.

64. Freitas, D. A. and K. W. Current, "CMOS current comparator circuit", Electronics

Letters, Vol. 19, No. 17, pp. 695-697, 1983.

65. Tirumalai, P. P. and J. T. Butler, "Prime and Non-Prime Implicants in the

Minimization of Multiple-valued Logic Functions", Proceedings of the 19th

International Symposium on Multiple Valued Logic, pp. 272-279, 1989.

66. Smith, K. C., "The Prospects for Multi-valued Logic: A technology and Applications

View", IEEE Transactions on Computers, Vol. 100, No. 9, pp. 619-634, 1981.

67. Onneweer, S. P. and H. G. Kerkhoff, "High-radix Current-Mode Circuits Based on

the Truncated Difference Operator", Proceedings of the 17th International

Symposium on Multiple Valued Logic, pp. 188-195, 1987.

68. Temel, T., A. Morgul and N. Aydin, "A Novel Signed Higher-Radix Full-Adder

Algorithm and Implementation with Current-Mode Multi-Valued Logic Circuits",

Proceedings of the Euromicro Systems on Digital System Design, pp. 80-87, 2004.

69. Temel, T., Current Mode CMOS Design of Multi-Valued Logic Circuits, Ph. D.

Thesis, Bogazici University, 2002.

70. Serrano, T. and B. Linares-Barranco, "A Modular Current-Mode High-Precision

Winner-Take-All Circuit", IEEE Transactions on Circuits and Systems II: Analog

and Digital Signal Processing, , Vol. 42, No. 2, pp. 132-134, 1995.

71. Miller, D. M. and M. A. Thornton, Multiple Valued Logic: Concepts and

Representations, Morgan & Claypool, 2008.

72. Hassoun, S. and T. Sasao, Logic Synthesis and Verification, Kluwer Academic

Publishers, 2002.

Page 97: Tez FatmaSaricaPhDThesis

81

73. Dubrova, E., Y. Jiang and R. Brayton, "Minimization of Multiple-Valued Functions

in Post Algebra", International Workshop on Logic Synthesis, pp. 1-5, 2001.

74. Jiang, Y. and R. K. Brayton, "Don't Cares and Multi-Valued Logic Network

Minimization", Proceedings of the IEEE/ACM International Conference on CAD,

ICCAD'2000, pp. 520-525, 2000.

75. Pelgrom, M., A. Jochijms and H. Heijns, "A CCD Delay Line for Video

Applications", IEEE Transactions on Consumer Electronics, No. 4, pp. 603-609,

1987.

76. Pelgrom, M. J. M., A. C. J. Duinmaijer and A. P. G. Welbers, "Matching Properties

of MOS Transistors", IEEE Journal of Solid-State Circuits, Vol. 24, No. 5, pp. 1433-

1439, 1989.

77. Sakurai, T. and A. R. Newton, "Alpha-Power Law MOSFET Model and its

Applications to CMOS Inverter Delay and Other Formulas", IEEE Journal of Solid-

State Circuits, Vol. 25, No. 2, pp. 584-594, 1990.

78. Liu, B., Q. Dong, B. Yang, J. Li and S. Nakatake, "Layout-Aware Mismatch

Modeling for CMOS Current Sources with D/A Converter Analysis", Proceedings of

the 12th International Symposium on Quality Electronic Design, pp. 525-532, 2011.

79. Gregor, R. W., "On the Relationship Between Topography and Transistor

Mismatching in analog CMOS Technology", IEEE Transactions on Electron

Devices, Vol. 39, No. 2, pp. 275-282, 1992.

80. Lakshmikumar, K. R., R. A. Hadaway and M. A. Copeland, "Characterization and

Modeling of Mismatch in MOS Transistors for Precision Analog Design", IEEE

Journal of Solid-State Circuits, Vol. 21, No. 6, pp. 1057-1066, 1986.

Page 98: Tez FatmaSaricaPhDThesis

82

81. Lan, M. F. and R. Geiger, "Matching Performance of Current Mirrors with Arbitrary

Parameter Gradients Through the Active Devices", Proceedings of International

Symposium on Circuits and Systems, ISCAS98, Vol. 1, pp. 555-558, IEEE, 1998.

82. Sarica, F., Level Restoration and Optimization of Current Mode CMOS Multi-Valued

Logic Circuits, M.S. Thesis, Bogazici University, 2004.

83. Hirota, K. and K. Ozawa, "The Concept of Fuzzy Flip-Flop", IEEE Transactions on

Systems, Man and Cybernetics, Vol. 19, No. 5, pp. 980-997, 1989.

84. Morgul, A. and T. Temel, "Current-Mode Level Restoration: Circuit for Multi-

Valued Logic", Electronics Letters, Vol. 41, No. 5, pp. 230-231, 2005.

85. Current, K., "Design of a Quaternary Latch Circuit Using a Binary CMOS RS

Latch", Proceedings of the 30th International Symposium on Multiple Valued Logic,

pp. 377-381, 2000.

86. Shim, S., S. Park and S. Hong, "Design of Advanced Multiple-Valued D-FF Using

Neuron-MOS", IJCSNS International Journal of Computer Science and Network

Security,, Vol. 6, No. 9B, p. 118, 2006.