We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6
Novel BCD Adders and Their Reversible Logic
Implementation for IEEE 754r Format
Himanshu Thapliyal, Saurabh Kotiyal and M.B Srinivas
Center for VLSI and Embedded System Technologies, International Institute of Information Technology, Hyderabad-500019, India *Department of Computer Engineering, SIT, Kukas, Jaipur, India ([email protected], [email protected], [email protected])
Abstract Since, the decimal arithmetic is getting significant
attention; specifications for it have recently been added IEEE 754r is the ongoing revision to the IEEE 754 to the draft revision of the IEEE 754 standard for floating point standard and a major enhancement to Floating-Point Arithmetic. IEEE 754r is an ongoing the standard is the addition of decimal format. This revision to the IEEE 754 floating point standard [2,3]. paper proposes two novel BCD adders called carry Some of the major enhancements so far incorporated skip and carry look-ahead BCD adders respectively. are the addition of 128-bit and decimal formats. Furthermore, in the recent years, reversible logic has Furthermore, three new decimal formats are described, emerged as a promising technology having its matching the lengths of the binary formats. These applications in low power CMOS, quantum computing, have led to the decimal formats with 7, 16, and 34- nanotechnology, and optical computing. It is not digit significands, which may be normalized or possible to realize quantum computing without unnormalized. In the proposed IEEE 754r format, for reversible logic. Thus, this paper also paper provides maximum range and precision, the formats merge part the reversible logic implementation of the conventional of the exponent and significand into a combination BCD adder as the well as the proposed Carry Skip field, and compress the remainder of the significand BCD adder using a recently proposed TSG gate. using densely packed decimal encoding [2,3]. It is Furthermore, a new reversible gate called TS-3 is also anticipated that, once the IEEE 754r Standard is finally being proposed and it has been shown that the approved, hardware support for decimal floating- proposed reversible logic implementation of the BCD point arithmetic on the processors will come into Adders is much better compared to recently proposed existence for financial, commercial, and Internet-based one, in terms of number of reversible gates used and applications. Still, the major consideration while garbage outputs produced. The reversible BCD implementing BCD arithmetic will be to enhance its circuits designed and proposed here form the basis of speed as much as possible. the decimal ALU of a primitive quantum CPU. Furthermore, researchers like Landauer have shown that for irreversible logic computations, each bit of 1. Introduction information lost, generates kTlog2 joules of heat energy, where k is Boltzmann’s constant and T the Nowadays, the decimal arithmetic is receiving absolute temperature at which computation is significant attention as the financial, commercial, and performed [4]. Bennett showed that kTln2 energy Internet-based applications cannot tolerate errors dissipation would not occur, if a computation is carried generated by conversion between decimal and binary out in a reversible way [5], since the amount of energy formats. Furthermore, a number of decimal numbers, dissipated in a system bears a direct relationship to the such as 0.110, cannot be exactly represented in binary, number of bits erased during computation. Reversible thus, these applications often store data in decimal circuits are those circuits that do not lose information format and process data using decimal arithmetic and reversible computation in a system can be software [1]. The advantage of decimal arithmetic in performed only when the system comprises of eliminating conversion errors also comes with a reversible gates. These circuits can generate unique drawback; it is typically 100 to 1,000 times slower output vector from each input vector, and vice versa, than binary arithmetic implemented in hardware. that is, there is a one-to-one mapping between input
Proceedings of the 19th International Conference on VLSI Design (VLSID’06)
Figure 5. TSG Gate working Singly as a Reversible Full Adder 5. Reversible Logic Implementation of BCD Adders 5.2 Novel Reversible TS-3 Gate The proposed reversible TS-3 gate is a 3*3 two In order to implement the reversible logic design of the through gate as shown in Fig. 6. It can be verified conventional and the proposed BCD adders, some of from that in TS-3 gate, the input pattern corresponding the basic concepts of the reversible logic are discussed. to a particular output pattern can be uniquely determined. 5.1. Basic Reversible Gates There are number of a existing reversible gates in literature such as Fredkin gate [6,7,8], Toffoli Gate (TG) [6,7] and the New Gate (NG) [8]. Since, the major reversible gate used in designing the BCD adders is TSG gate, hence only the TSG gate is discussed in this section. 5.1.1. TSG Gate Figure 6. Proposed 3 *3 Reversible TS-3 Gate Recently, a 4 * 4 one through reversible gate called TS gate “TSG” is proposed [12]. The reversible TSG gate The proposed TS-3 gate can be used to implement any is shown in Fig. 4. The TSG gate can implement all Boolean function, since its third output can work as a Boolean functions. One of the prominent functionality three input XOR gate. Further, the proposed gate will of the TSG gate is that it can work singly as a be of great help in avoiding the fan out problem, since reversible Full adder unit. Fig.5 shows the two its inputs are directly passed as output. implementation of the TSG gate as a reversible Full adder. A number of reversible full adders were proposed in [15,16,17,18]. The full adder designed 6. Reversible Logic Implementation of using TSG in Fig. 5 requires only one reversible gate Conventional BCD Adder (one TSG gate) and produces only two garbage outputs (Garbage output refers to the output that is not used for Figure 7 shows the reversible implementation of the further computations. In other words, it is not used as a conventional BCD using the reversible TSG gates. For primary output or as an input to other gate.). It is optimized implementation of the BCD adder; New shown that the full-adder design in Fig. 5 using TSG Gate (NG) is also used for producing the best gate is better than the existing full-adder designs [12]. optimized BCD adder. Recently the reversible implementation of the conventional BCD adder is proposed in [11]. The BCD adder using the TSG gate is found to be much better than the architecture proposed in [11]; both in terms of number of reversible gates and garbage outputs produced. The proposed BCD adder architecture in Fig. 7 using TSG gates uses
Proceedings of the 19th International Conference on VLSI Design (VLSID’06)
Carry Skip BCD Adder The proposed Carry Skip Adder is further been modified to make it more suitable for reversible logic implementation. Fig. 8 shows the block diagram of the carry skip adder block constructed with TSG gates and Figure 8. Reversible Logic Implementation of Fredkin gates (F). The three Fredkins in the middle of the Proposed Carry Skip BCD Adder Fig. 8 are used to perform the AND4 operation. This will generate the block propagate signal ‘P’. The single The proposed reversible implementation of the FG in the right side of Fig. 8 performs the AND-OR Carry Skip BCD adder is still better, compared to the function while in conventional logic, the carry skip reversible logic implementation of the conventional block in Fig.3 uses the AND-OR gate combination to BCD adder proposed in [11], in terms of reversible create the carry skip logic. gates used. A comparative analysis of the BCD adders is shown in Table 1. Furthermore, the time saving in In the proposed carry Skip adder, the FG propagates the proposed reversible carry skip BCD adder is the block’s carry input ‘Cin’ to the next block if the significant compared to [11]. This is due to carry block propagate signal ‘P’ is one ; otherwise, the skipping and this feature was not available in the most significant full adder carry ‘C4’ is propagated to reversible BCD adder of [11], since it was a mere the next block. The traditional carry skip AND-OR conventional BCD adder. logic in Fig.3 and the carry skip logic in Fig. 8 do not have equivalent truth tables, but it must be noted that the Fredkin carry skip logic more faithfully adheres to
Proceedings of the 19th International Conference on VLSI Design (VLSID’06)