发明名称 Binary search pipeline
摘要 Efficient hardware implementations of a binary search algorithm are provided.
申请公布号 US8954661(B2) 申请公布日期 2015.02.10
申请号 US201012944350 申请日期 2010.11.11
申请人 Intel Corporation 发明人 Lines Andrew
分类号 G06F12/00;G06F17/30 主分类号 G06F12/00
代理机构 Blakely, Sokoloff, Taylor & Zafman LLP 代理人 Blakely, Sokoloff, Taylor & Zafman LLP
主权项 1. A circuit configured to perform a search for a key in a sorted list of entries using a plurality of binary search iterations, the circuit comprising: a parallel comparison stage comprising N registers each storing a different respective one of the entries, and parallel comparison circuitry configured to compare the key to each of the entries in the N registers in parallel and generate a parallel comparison result including log2N bits, the parallel comparison result corresponding to log2N binary search iterations to search for the key in the sorted list of entries, wherein N is an integer greater than 1; and a plurality of pipeline stages configured in a pipeline, each of the plurality of pipeline stages comprising: memory storing an orthogonal subset of the entries relative to the subsets of the entries in memories of all others of the plurality of pipeline stages, the memory in each successive pipeline stage having exponentially more storage capacity than an immediately previous pipeline stage and including entries corresponding to a particular one of the binary search iterations; andcomparison circuitry coupled to receive the log2N bits from the parallel comparison stage, the comparison circuitry configured to select an entry of the memory of the pipeline stage based on a respective index including the log2N bits, to generate a comparison result indicating whether the key is greater than or equal to or less than the selected entry of the memory of the pipeline stage and to pass the key and the comparison result to a subsequent pipeline stage, wherein the respective index also includes a bit based on a comparison result received from a previous pipeline stage.
地址 Santa Clara CA US