Balanced- Ternary Logic for Improved and Advanced Computing

Balanced- Ternary Logic for Improved and Advanced Computing

Shamshad Ahmad et al, / (IJCSIT) International Journal of Computer Science and Information Technologies, Vol. 5 (4) , 2014, 5157-5160 Balanced- Ternary Logic for Improved and Advanced Computing Shamshad Ahmad, Mansaf Alam Deptt. Computer Science, JMI, New Delhi. Abstract:Logical Systems are the essence of our computing of information, there is no difference between “signed” and machines. They determine the design, understanding and “unsigned” numbers when signed numbers are represented most importantly the performance of the compuuting in this logic. To further add to its beauty, the amount of machines. Contemporary and traditional binary logic is way conditional instructions, using this logic, decrease twice too old and limited in application and scope. This paper is which necessarily improves the performance and simplifies meant to present balanced ternary logic as the most suitable logical system for our modern computing machines in terms things. of performance, simplicity, cost and the future prospects that Special proofs and arguments in the paper shall further it can bestow upon our modern computing machines. The embark upon the efficiency, simplicity, versatility and paper also deals with the fundamental logical gates and overall supremacy of ternary logic over any other proposed operations in balance ternary logic. logic. What if the fundamentals of our machines has better accordance with the Nature and informal human thinking? INTRODUCTION: We need not worry; ternary logic has such advantages as For decades we have been using computing machines well. Using three different states, it can, on the fundamental which work on the concept of fundamental switches having level itself have states referring to ‘True’ ‘False’ and only two possible states often represented by - 0 and 1, or interestingly ‘Unknown’[7] which is very relevant to ON and OFF.[1] We have witnessed innumerable informal human thinking. Moreover, in terms of versatility, advancements and improvements in the realm of these balanced ternary logic, with a clever designing, can also devices but none to have so strong an impact so as to provide an economical space for the conventional binary question this fundamental property of our “modern” logic as well [12]. computers itself. Consequently, we have been working and improving upon the same binary logic based systems which BALANCED TERNARY LOGIC: has obvious limits. Balanced ternary logic is a non-binary, multi-valued logic This paper, however, presents another logical system, and special case of ternary logic in which the PT is balanced ternary logic for our computing machines and its represented as PBT where PBT ={1,0,-1}, though, for advantages over any other proposed logic. shorthand, we use PBT ={+, 0, -}It is noteworthy that (φ) Modern computing devices based on binary logic are simple states and that their representation as symbols implement Boolean logic in which the fundamental and integral values carries no physical significance. Here, components of the internal circuitry are required to have we define ‘Trit’ as the name given to the basic unit of only two differentiable states φ1 φ2 [2]from where it gets information in a balanced ternary logic based machine. We the title as base-2 as well. Binary logic became popular due also define ‘tryte’ for our purpose as a collection of six trits to the presence of simple and readily available two state capable of holding 729 unique values. switches and also extensive works on the same logic and I - Complexity: machines. Based on two state-logic, modern computers Besides it other numerous advantages, ternary logic turns lack various aspects expected from a good logical system out to be the least complex logic for computing. A which we could recover in our machines by implementing proposed method for measuring complexity, CL of a logic balanced ternary logic. would be by examining the maximum number of Any logical system can have an associated power set PL to information represented by fixed n number of φ for any hold elements {φ1, φ2, φ3,..., φn} where n(PL) gives the base particular logic. Clearly, the logical system representing the bL of that particular logic. Likewise, (balanced) ternary least number of information using n φ would be least logic, also called “flip-flap-flop”[4] may be associated with economical and would be the most complex. Conversely, a power set defined as PBT to hold elements as PBT = {φ1, the logical system that would represent the highest number φ2, φ3} and has n(PT)=3 which is ultimately bBT. This one of information for n number of φ would win and will be the extra state φ and the fact that bBT =3, make balanced most simple (least complex) and most economical [6] of all ternary logic, the supreme logic. the proposed logics and will have a base equal to b. This paper is essentially a work on balanced ternary logic; Let N number of numerical information be represented by we will see how it has an essential advantage over other any logical system with base b. We can define a function possible logics including binary logic as well. The paper f(b) to find N to give the maximum possible number of also defines the basic logical gates, the basic logical setups information that could be represented using n φ. for this logic and also simple arithmetical operations. f (b) = b ^ (n /b ) Balanced ternary logic has the least hardware complexity Clearly, f(b), at the highest value of N, would correspond to [5] and thus economical [6]. Unlike binary representation the base b of most efficient logic. It is seen that with every www.ijcsit.com 5157 Shamshad Ahmad et al, / (IJCSIT) International Journal of Computer Science and Information Technologies, Vol. 5 (4) , 2014, 5157-5160 possible value of constant n, the f(b) for b>1 has the Here, we however rely upon the integral values of the highest corresponding to b=3 only, which is in fact the base elements of PBT for a better visualization and understanding of ternary logic. It is feasible to restrict all the values of b of ternary representation. The further simplicity of the to be a positive whole number as the value of b has to be a balanced-ternary representation is evident in arithmetical counting number only. To verify our result, we find the operations based on balanced ternary logic. solution to f(b)’=0 for b>1 Addition of two ternary numbers can be easily performed The solution to the above function is e, the base of natural using the below mentioned ternary adders. Another special logarithm which again rounds off to the nearest integer feature of ternary logic is that subtraction can also be three or bBT. performed like addition only that the number to be subtracted will have original value but with every d inverted. Thus in balanced ternary logic the most widely performed operations become simple. Converting numbers represented in balanced ternary from positive to negative is easily achieved by inverting every dn to dn’, also referred to as inversion, as shown in the table below. D D’ D D’ + - - + 0 0 0 0 - + + - Table:1 Inversion operation on trits in balanced ternary. Fig:1 Plot for describing the effective b along with Understanding Balanced Ternary Arithmetic: highlighted f(b) of similar multi-valued logic. Having shown that balanced-ternary logic is the best possible logical system for modern computing devices in II – Information Handling and Representation: terms of simplicity and performance, we will try to set up Now that it had been established that balanced ternary logic the basic idea of fundamental logical gates. Though earlier is the most ‘economical’ and the ‘simple’ logic for modern attempts have been made to define the fundamental logic computing devices, we consider the fundamental purpose gates like AND and OR as in Kleene and Łukasiewicz logic of computers- information. As stated earlier, PBT = {+, 0, -} [12][8]; however, we have proposed our own TAND and which is just a simple representation for φ for balanced TOR logics which we have found to be more practical, ternary and that it has no physical significance. However, mathematically rationale and symmetrical with balanced- this representation under balanced ternary logic shall have ternary logic. We have assumed that 0 state might possess deep impact upon our understanding and the design of any either of + and – and that the result of implementing any particular machine itself. logic gate must be as precise as possible. The latter Most of computing is all dealing with information, assumption rules out that we might simply put 0 for every essentially represented by φ and inferred as numbers to resultant trit. Also, in designing these gates, have assumed perform actions over them. Therefore, a good and simple that + and – are just the negation of each other both in way of handling and representation of information becomes application and logical understanding. Here, we have crucial. defined the truth tables for these logical gate that are more As per fundamentals, a 16-bit microcomputer with on- consistent with the arithmetical operations and board memory cannot access more than 65 Kilobytes of mathematical rationale based on our assumptions. memory directly. However, a similar microcomputer with memory based on (balanced) ternary logic can directly I-TERNARY ‘OR’ (TOR) : access as much as 43 Mbytes of equivalent memory which Ternary OR gate implements logical disjunction. The is a gain of more than 656 times of memory capacity [10]. resultant outputs on implementing the proposed TOR gate Also every binary representation of numbers should have a has been shown in the following truth table. Though, it is reserved piece of explicit information to differentiate just a co-incidence that if none of the inputs is 0, and if + is between “signed” and ”unsigned” number, balanced treated as binary 1 and – as binary 0, we get a OR truth ternary, however, provides more compact way of table similar to binary logic’s, we can exploit it for binary representing numerical information without such explicit logic as well.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    4 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us