{"title":"关于布尔函数在内容可寻址存储器上的实现","authors":"Ron M. Roth","doi":"10.1109/JSAIT.2023.3279333","DOIUrl":null,"url":null,"abstract":"Let \n<inline-formula> <tex-math>$[q\\rangle $ </tex-math></inline-formula>\n denote the integer set \n<inline-formula> <tex-math>$\\{0,1, {\\ldots },q-1\\}$ </tex-math></inline-formula>\n and let \n<inline-formula> <tex-math>${{\\mathbb {B}}}=\\{0,1\\}$ </tex-math></inline-formula>\n. The problem of implementing functions \n<inline-formula> <tex-math>$[q\\rangle \\rightarrow {{\\mathbb {B}}}$ </tex-math></inline-formula>\n on content-addressable memories (CAMs) is considered. CAMs can be classified by the input alphabet and the state alphabet of their cells; for example, in binary CAMs, those alphabets are both \n<inline-formula> <tex-math>${{\\mathbb {B}}}$ </tex-math></inline-formula>\n, while in a ternary CAM (TCAM), both alphabets are endowed with a “don’t care” symbol. This work is motivated by recent proposals for using CAMs for fast inference on decision trees. In such learning models, the tree nodes carry out integer comparisons, such as testing equality \n<inline-formula> <tex-math>$(x=t$ </tex-math></inline-formula>\n ?) or inequality \n<inline-formula> <tex-math>$(x\\le t$ </tex-math></inline-formula>\n ?), where \n<inline-formula> <tex-math>$x\\in [q\\rangle $ </tex-math></inline-formula>\n is an input to the node and \n<inline-formula> <tex-math>$t\\in [q\\rangle $ </tex-math></inline-formula>\n is a node parameter. A CAM implementation of such comparisons includes mapping (i.e., encoding) \n<inline-formula> <tex-math>$t$ </tex-math></inline-formula>\n into internal states of some number \n<inline-formula> <tex-math>$n$ </tex-math></inline-formula>\n of cells and mapping \n<inline-formula> <tex-math>$x$ </tex-math></inline-formula>\n into inputs to these cells, with the goal of minimizing \n<inline-formula> <tex-math>$n$ </tex-math></inline-formula>\n. Such mappings are presented for various comparison families, as well as for the set of all functions \n<inline-formula> <tex-math>$[q\\rangle \\rightarrow {{\\mathbb {B}}}$ </tex-math></inline-formula>\n, under several scenarios of input and state alphabets of the CAM cells. All those mappings are shown to be optimal in that they attain the smallest possible \n<inline-formula> <tex-math>$n$ </tex-math></inline-formula>\n for any given \n<inline-formula> <tex-math>$q$ </tex-math></inline-formula>\n.","PeriodicalId":73295,"journal":{"name":"IEEE journal on selected areas in information theory","volume":"4 ","pages":"379-392"},"PeriodicalIF":0.0000,"publicationDate":"2023-08-07","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"On the Implementation of Boolean Functions on Content-Addressable Memories\",\"authors\":\"Ron M. Roth\",\"doi\":\"10.1109/JSAIT.2023.3279333\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Let \\n<inline-formula> <tex-math>$[q\\\\rangle $ </tex-math></inline-formula>\\n denote the integer set \\n<inline-formula> <tex-math>$\\\\{0,1, {\\\\ldots },q-1\\\\}$ </tex-math></inline-formula>\\n and let \\n<inline-formula> <tex-math>${{\\\\mathbb {B}}}=\\\\{0,1\\\\}$ </tex-math></inline-formula>\\n. The problem of implementing functions \\n<inline-formula> <tex-math>$[q\\\\rangle \\\\rightarrow {{\\\\mathbb {B}}}$ </tex-math></inline-formula>\\n on content-addressable memories (CAMs) is considered. CAMs can be classified by the input alphabet and the state alphabet of their cells; for example, in binary CAMs, those alphabets are both \\n<inline-formula> <tex-math>${{\\\\mathbb {B}}}$ </tex-math></inline-formula>\\n, while in a ternary CAM (TCAM), both alphabets are endowed with a “don’t care” symbol. This work is motivated by recent proposals for using CAMs for fast inference on decision trees. In such learning models, the tree nodes carry out integer comparisons, such as testing equality \\n<inline-formula> <tex-math>$(x=t$ </tex-math></inline-formula>\\n ?) or inequality \\n<inline-formula> <tex-math>$(x\\\\le t$ </tex-math></inline-formula>\\n ?), where \\n<inline-formula> <tex-math>$x\\\\in [q\\\\rangle $ </tex-math></inline-formula>\\n is an input to the node and \\n<inline-formula> <tex-math>$t\\\\in [q\\\\rangle $ </tex-math></inline-formula>\\n is a node parameter. A CAM implementation of such comparisons includes mapping (i.e., encoding) \\n<inline-formula> <tex-math>$t$ </tex-math></inline-formula>\\n into internal states of some number \\n<inline-formula> <tex-math>$n$ </tex-math></inline-formula>\\n of cells and mapping \\n<inline-formula> <tex-math>$x$ </tex-math></inline-formula>\\n into inputs to these cells, with the goal of minimizing \\n<inline-formula> <tex-math>$n$ </tex-math></inline-formula>\\n. Such mappings are presented for various comparison families, as well as for the set of all functions \\n<inline-formula> <tex-math>$[q\\\\rangle \\\\rightarrow {{\\\\mathbb {B}}}$ </tex-math></inline-formula>\\n, under several scenarios of input and state alphabets of the CAM cells. All those mappings are shown to be optimal in that they attain the smallest possible \\n<inline-formula> <tex-math>$n$ </tex-math></inline-formula>\\n for any given \\n<inline-formula> <tex-math>$q$ </tex-math></inline-formula>\\n.\",\"PeriodicalId\":73295,\"journal\":{\"name\":\"IEEE journal on selected areas in information theory\",\"volume\":\"4 \",\"pages\":\"379-392\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2023-08-07\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"IEEE journal on selected areas in information theory\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://ieeexplore.ieee.org/document/10210208/\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"IEEE journal on selected areas in information theory","FirstCategoryId":"1085","ListUrlMain":"https://ieeexplore.ieee.org/document/10210208/","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
On the Implementation of Boolean Functions on Content-Addressable Memories
Let
$[q\rangle $
denote the integer set
$\{0,1, {\ldots },q-1\}$
and let
${{\mathbb {B}}}=\{0,1\}$
. The problem of implementing functions
$[q\rangle \rightarrow {{\mathbb {B}}}$
on content-addressable memories (CAMs) is considered. CAMs can be classified by the input alphabet and the state alphabet of their cells; for example, in binary CAMs, those alphabets are both
${{\mathbb {B}}}$
, while in a ternary CAM (TCAM), both alphabets are endowed with a “don’t care” symbol. This work is motivated by recent proposals for using CAMs for fast inference on decision trees. In such learning models, the tree nodes carry out integer comparisons, such as testing equality
$(x=t$
?) or inequality
$(x\le t$
?), where
$x\in [q\rangle $
is an input to the node and
$t\in [q\rangle $
is a node parameter. A CAM implementation of such comparisons includes mapping (i.e., encoding)
$t$
into internal states of some number
$n$
of cells and mapping
$x$
into inputs to these cells, with the goal of minimizing
$n$
. Such mappings are presented for various comparison families, as well as for the set of all functions
$[q\rangle \rightarrow {{\mathbb {B}}}$
, under several scenarios of input and state alphabets of the CAM cells. All those mappings are shown to be optimal in that they attain the smallest possible
$n$
for any given
$q$
.