基于可逆逻辑的比较器树的设计

H. Thapliyal, N. Ranganathan, R. Ferreira
{"title":"基于可逆逻辑的比较器树的设计","authors":"H. Thapliyal, N. Ranganathan, R. Ferreira","doi":"10.1109/NANO.2010.5697872","DOIUrl":null,"url":null,"abstract":"The ex<inf>i</inf>sting design of reversible n-bit binary comparator that compares two n-bit numbers is a serial design [1] having the latency of O(n). In this work, we present a new reversible n-bit binary comparator based on binary tree structure that has the latency of O(log<inf>2</inf>(n)). The reversible designs are based on a new reversible gate called the TR gate, the improved quantum cost of which is also derived in this work. In the proposed reversible binary tree comparator each node consists of a 2-bit reversible binary comparator that can compare two 2-bit numbers x(x<inf>i</inf>, x<inf>i</inf>−1) and y(y<inf>i</inf>, y<inf>i</inf>−1), to generate two 1-bit outputs Y and Z. Y will be 1 if x(x<inf>i</inf>, x<inf>i</inf>−1)> y(y<inf>i</inf>, y<inf>i</inf>−1), and Z will be 1 if x(x<inf>i</inf>, x<inf>i</inf>−1)&#60;y(y<inf>i</inf>, y<inf>i</inf>−1). After careful analysis, we modified the logic equations of Y = x<inf>1</inf> ȳ1 ⨁ kx<inf>0</inf>ȳ<inf>0</inf> and Z =x̄<inf>1</inf>y<inf>1</inf> ⨁ kx̄<inf>0</inf>y<inf>0</inf> to Y = x<inf>1</inf>ȳ<inf>1</inf> ⨁ kx<inf>0</inf>ȳ<inf>0</inf> and Z = x̄<inf>1</inf>y<inf>1</inf> ⨁ kx̄<inf>0</inf>y<inf>0</inf>, respectively. The replacement of + operator with ⨁ operator without affecting the functionality of the design helped us in reversible mapping of the equations of Y and Z on the third output of the TR gate which is R=AB̄ ⨁ C. Further, TR gate can also efficiently generate functions such as x<inf>0</inf>ȳ<inf>0</inf> and x̄<inf>0</inf>y<inf>0</inf>. In the proposed reversible binary comparator, the leaf nodes will consist of 2-bit reversible binary comparators. Each internal node (2-bit reversible binary comparator) of the binary tree receives the partial comparison results from the left and the right children and propagates the 2-bit output of the comparison to its parent. Finally, the root node which is also a 2-bit reversible binary comparator generates the 2-bit result of the comparison of the n-bit numbers x and y to evaluate whether x>y or x&#60;y. The 2-bit result of the root node are passed to the reversible output circuit designed from a Toffoli gate and 4 NOT gates to generate three signals O<inf>0</inf>(x&#60;y), O<inf>1</inf>(x>y) and O<inf>2</inf>(x=y).","PeriodicalId":254587,"journal":{"name":"10th IEEE International Conference on Nanotechnology","volume":"42 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2010-08-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"75","resultStr":"{\"title\":\"Design of a comparator tree based on reversible logic\",\"authors\":\"H. Thapliyal, N. Ranganathan, R. Ferreira\",\"doi\":\"10.1109/NANO.2010.5697872\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"The ex<inf>i</inf>sting design of reversible n-bit binary comparator that compares two n-bit numbers is a serial design [1] having the latency of O(n). In this work, we present a new reversible n-bit binary comparator based on binary tree structure that has the latency of O(log<inf>2</inf>(n)). The reversible designs are based on a new reversible gate called the TR gate, the improved quantum cost of which is also derived in this work. In the proposed reversible binary tree comparator each node consists of a 2-bit reversible binary comparator that can compare two 2-bit numbers x(x<inf>i</inf>, x<inf>i</inf>−1) and y(y<inf>i</inf>, y<inf>i</inf>−1), to generate two 1-bit outputs Y and Z. Y will be 1 if x(x<inf>i</inf>, x<inf>i</inf>−1)> y(y<inf>i</inf>, y<inf>i</inf>−1), and Z will be 1 if x(x<inf>i</inf>, x<inf>i</inf>−1)&#60;y(y<inf>i</inf>, y<inf>i</inf>−1). After careful analysis, we modified the logic equations of Y = x<inf>1</inf> ȳ1 ⨁ kx<inf>0</inf>ȳ<inf>0</inf> and Z =x̄<inf>1</inf>y<inf>1</inf> ⨁ kx̄<inf>0</inf>y<inf>0</inf> to Y = x<inf>1</inf>ȳ<inf>1</inf> ⨁ kx<inf>0</inf>ȳ<inf>0</inf> and Z = x̄<inf>1</inf>y<inf>1</inf> ⨁ kx̄<inf>0</inf>y<inf>0</inf>, respectively. The replacement of + operator with ⨁ operator without affecting the functionality of the design helped us in reversible mapping of the equations of Y and Z on the third output of the TR gate which is R=AB̄ ⨁ C. Further, TR gate can also efficiently generate functions such as x<inf>0</inf>ȳ<inf>0</inf> and x̄<inf>0</inf>y<inf>0</inf>. In the proposed reversible binary comparator, the leaf nodes will consist of 2-bit reversible binary comparators. Each internal node (2-bit reversible binary comparator) of the binary tree receives the partial comparison results from the left and the right children and propagates the 2-bit output of the comparison to its parent. Finally, the root node which is also a 2-bit reversible binary comparator generates the 2-bit result of the comparison of the n-bit numbers x and y to evaluate whether x>y or x&#60;y. The 2-bit result of the root node are passed to the reversible output circuit designed from a Toffoli gate and 4 NOT gates to generate three signals O<inf>0</inf>(x&#60;y), O<inf>1</inf>(x>y) and O<inf>2</inf>(x=y).\",\"PeriodicalId\":254587,\"journal\":{\"name\":\"10th IEEE International Conference on Nanotechnology\",\"volume\":\"42 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2010-08-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"75\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"10th IEEE International Conference on Nanotechnology\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/NANO.2010.5697872\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"10th IEEE International Conference on Nanotechnology","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/NANO.2010.5697872","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 75

摘要

现有的可逆n位二进制比较器比较两个n位数的设计是串行设计[1],延迟为O(n)。在这项工作中,我们提出了一种基于二叉树结构的可逆n位二进制比较器,其延迟为O(log2(n))。可逆设计基于一种新的可逆栅极,称为TR栅极,本文还推导了其改进的量子成本。在所提出的可逆二叉树比较器中,每个节点由一个2位可逆二进制比较器组成,该比较器可以比较两个2位数字x(xi, xi−1)和y(yi, yi−1),生成两个1位输出y和Z。当x(xi, xi−1)> y(yi, yi−1)时y为1,当x(xi, xi−1)<y(yi, yi−1)时Z为1。经过仔细分析,我们将Y = x1ȳ1 kx0ȳ0和Z =x ' 1y1 ` ` ` kx ` ` 0y0的逻辑方程分别修改为Y = x1ȳ1 ` ` kx0ȳ0和Z =x ' ' 1y1 ` ` ` kx ` 0y0。在不影响设计功能的情况下,用+算子代替了+算子,这有助于我们在TR门的第三个输出R=AB²c上可逆地映射Y和Z方程。此外,TR门还可以有效地生成x0ȳ0和x²Y等函数。在提出的可逆二进制比较器中,叶节点将由2位可逆二进制比较器组成。二叉树的每个内部节点(2位可逆二进制比较器)接收来自左子节点和右子节点的部分比较结果,并将比较的2位输出传播给其父节点。最后,根节点也是一个2位可逆二进制比较器,生成n位数字x和y比较的2位结果,以评估x>y还是x<y。根节点的2位结果传递给由一个Toffoli门和4个非门设计的可逆输出电路,产生三个信号0(x<y), O1(x>y)和O2(x=y)。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Design of a comparator tree based on reversible logic
The existing design of reversible n-bit binary comparator that compares two n-bit numbers is a serial design [1] having the latency of O(n). In this work, we present a new reversible n-bit binary comparator based on binary tree structure that has the latency of O(log2(n)). The reversible designs are based on a new reversible gate called the TR gate, the improved quantum cost of which is also derived in this work. In the proposed reversible binary tree comparator each node consists of a 2-bit reversible binary comparator that can compare two 2-bit numbers x(xi, xi−1) and y(yi, yi−1), to generate two 1-bit outputs Y and Z. Y will be 1 if x(xi, xi−1)> y(yi, yi−1), and Z will be 1 if x(xi, xi−1)<y(yi, yi−1). After careful analysis, we modified the logic equations of Y = x1 ȳ1 ⨁ kx00 and Z =x̄1y1 ⨁ kx̄0y0 to Y = x11 ⨁ kx00 and Z = x̄1y1 ⨁ kx̄0y0, respectively. The replacement of + operator with ⨁ operator without affecting the functionality of the design helped us in reversible mapping of the equations of Y and Z on the third output of the TR gate which is R=AB̄ ⨁ C. Further, TR gate can also efficiently generate functions such as x00 and x̄0y0. In the proposed reversible binary comparator, the leaf nodes will consist of 2-bit reversible binary comparators. Each internal node (2-bit reversible binary comparator) of the binary tree receives the partial comparison results from the left and the right children and propagates the 2-bit output of the comparison to its parent. Finally, the root node which is also a 2-bit reversible binary comparator generates the 2-bit result of the comparison of the n-bit numbers x and y to evaluate whether x>y or x<y. The 2-bit result of the root node are passed to the reversible output circuit designed from a Toffoli gate and 4 NOT gates to generate three signals O0(x<y), O1(x>y) and O2(x=y).
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信