CN205862315U - A kind of CAM structure based on FPGA - Google Patents
A kind of CAM structure based on FPGA Download PDFInfo
- Publication number
- CN205862315U CN205862315U CN201620611327.7U CN201620611327U CN205862315U CN 205862315 U CN205862315 U CN 205862315U CN 201620611327 U CN201620611327 U CN 201620611327U CN 205862315 U CN205862315 U CN 205862315U
- Authority
- CN
- China
- Prior art keywords
- module
- register
- comparator
- module group
- group
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 244000045947 parasite Species 0.000 abstract description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000010276 construction Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000000034 method Methods 0.000 description 1
Abstract
This utility model provides a kind of CAM structure based on FPGA, compares the register module group of data message for storage including one;One for judging the comparator module group whether having data to be compared in register module group, the register module one_to_one corresponding of the comparator module in comparator module group and register module group is also connected, and data to be compared are inputted by the input port of comparator module group;Also include a writing module that will compare data write register module group;One selection module for mask register module group seeking scope;Two MUX modules, the information comparing data is write in register module by one of them MUX module and stores by writing module, the comparator module in comparator module group by the register module of the output of another MUX module and data match to be compared at the address signal of register module group.This utility model can compare input data and all data of Parasites Fauna parallel, improves search efficiency.
Description
Technical field
This utility model relates to data communication technology field, a kind of CAM structure based on FPGA.
Background technology
Along with the fast development of communication technology, in network, the transmission speed of packet is more and more higher, such as, lead at switch
In territory, if using traditional software mode to carry out routeing or MAC table inquiry, speed is slow, it is impossible to ensure data and
Time transmission.
CAM chip has the advantage of parallel search, and the time of inquiry is the most unrelated with the data comprised in CAM so that CAM
It is widely used in a network.But in the project that some are medium and small, especially in the project of FPGA, if outside Cai Yonging
The CAM chip put, the utilization rate of first CAM chip will not be the highest, and next adds cost.
Summary of the invention
Technical assignment of the present utility model is to solve the deficiencies in the prior art, it is provided that a kind of CAM structure based on FPGA.
This utility model solves its technical problem and be the technical scheme is that
A kind of CAM structure based on FPGA, including
One register module group comparing data message for storage, described register module group includes that at least two is posted
Buffer module;
One for judging the comparator module group whether having data to be compared in register module group, comparator module group
There is input port, comparator module group at least two comparator module, the comparator module in comparator module group with deposit
The register module one_to_one corresponding of device module group is also connected, and data to be compared are carried out defeated by the input port of comparator module group
Enter;
Also include
One will be compared the writing module of data write register module group;
One selection module for mask register module group seeking scope, selects module to be connected to comparator module
Group, by the register module inputted in parallel comparand register module group of selection of configuration module, in comparator module group
Comparator module output and the register module information of data match to be compared;
Two MUX modules, the information comparing data is write depositor mould by one of them MUX module by writing module
Storing in block, the comparator module in comparator module group is by the output of another MUX module and data to be compared phase
The register module joined is at the address signal of register module group.
Concrete, writing module includes writing enable, write address port and writing FPDP.
Concrete, register module group comprises even number register module, comparator module group comprises the most accordingly
Even number comparator module, by the input of selection of configuration module, by equal for the register module being connected one by one with comparator module
It is divided at least two parts, with parallel relatively with the register module of a part.
Preferably, register module group includes four register modules, and accordingly, comparator module group includes four comparators
Module, is divided into two parts by the register module being connected one by one with comparator module, often by the input of selection of configuration module
Part includes two register modules, with parallel relatively with two register modules of a part.
A kind of CAM structure based on FPGA of the present utility model compared with prior art produced by provide the benefit that:
This utility model is reasonable in design, simple in construction, can compare input data and all data of Parasites Fauna parallel, and
Unrelated with the size of Parasites Fauna, improve search efficiency.
Accompanying drawing explanation
Accompanying drawing 1 is structure principle chart of the present utility model.
In figure, each label represents:
10, register module group, 20, comparator module group, 30, writing module, 40, select module,
50, a MUX module, the 60, the 2nd MUX module.
Detailed description of the invention
Below in conjunction with the accompanying drawings 1, as a example by the CAM structure figure of a 4x4, to of the present utility model a kind of based on FPGA
CAM structure is described in detail below.
As shown in Figure 1, a kind of CAM structure based on FPGA of the present utility model, its structure includes
One register module group 10 comparing data message for storage, described register module group 10 includes at least two
Individual register module;
One for judging the comparator module group 20 whether having data to be compared in register module group 10, comparator mould
Block group 20 has input port, comparator module group 20 at least two comparator module, the comparator in comparator module group 20
The register module one_to_one corresponding of module and register module group 10 is also connected, and data to be compared are defeated by comparator module group 20
Inbound port inputs.
Described CAM structure also includes
One will be compared the writing module 30 of data write register module group 10;
One selection module 40 for mask register module group 10 seeking scope, described selection module 40 is connected to ratio
Relatively device module group 20, by the register module inputted in parallel comparand register module group 10 of selection of configuration module 40, than
The register module information with data match to be compared is exported compared with the comparator module in device module group 20;
Oneth MUX module 50 and the 2nd MUX module 60, writing module 30 will compare data by a MUX module 50
Storing in information write register module, the comparator module in comparator module group 20 is exported by the 2nd MUX module
With the register module of data match to be compared at the address signal of register module group 10.
Writing module 30 includes writing enable, write address port and writing FPDP.
Register module group 10 includes four register modules, is called register module 1, register module 2, deposits
Device module 3, register module 4;Accordingly, comparator module group 20 includes four comparator module, be respectively compared device module 1,
Comparator module 2, comparator module 3, comparator module 4, by the input of selection of configuration module 40, by register module group 10
In four register modules be divided into two parts, i.e. register module 1 and register module 2 be a part, register module 3
It is a part with register module 4, with parallel comparand register module 1 and register module 2, or register module 3 and posting
Buffer module 4.
Utility model works process:
1) write in CAM and compare data.First pass through the write address port of writing module 30 and write FPDP input wr_
Addr and wr_data, meanwhile, a MUX module 50 writes wr_data according to wr_addr to the register module specified.This mistake
Journey is the write of CAM content.
2) the register module number compared parallel is specified.When sel signal is 1 in selection module 40, enable comparator
Module 1 and comparator module 2, and comparator module 3 and comparator module 4 do not work, data the most to be compared are at depositor mould
Parallel search in block 1 and register module 2.Otherwise, when sel signal is 0, data to be compared are at register module 3 and deposit
Parallel search in device module 4.When register module number is many, select seeking scope can reduce structure power consumption.
3) output match signal.When in comparator module, the output result of any one is 1, match signal is just 1,
Represent in CAM structure, find the data mated.
4) output match_addr signal.2nd MUX module 60 can be determined that according to the output of each comparator module
The numerical value of which register module is equal with data to be compared, thus obtains OPADD.
Last it should be noted that above content is only in order to illustrate the technical solution of the utility model, rather than to this practicality
The restriction of novel protected scope, although this utility model has been made to explain by this detailed description of the invention part, this area
It is to be appreciated by one skilled in the art that the technical solution of the utility model can be modified or equivalent, without deviating from
The spirit and scope of technical solutions of the utility model.
Claims (4)
1. a CAM structure based on FPGA, it is characterised in that include
One register module group comparing data message for storage, described register module group includes at least two depositor
Module;
One for judging the comparator module group whether having data to be compared in register module group, described comparator module group
There is input port, comparator module group at least two comparator module, the comparator module in comparator module group with deposit
The register module one_to_one corresponding of device module group is also connected, and described data to be compared are carried out by the input port of comparator module group
Input;
Also include
One will be compared the writing module of data write register module group;
One selection module for mask register module group seeking scope, described selection module is connected to comparator module
Group, by the register module inputted in parallel comparand register module group of selection of configuration module, in comparator module group
Comparator module output and the register module information of data match to be compared;
Two MUX modules, the information comparing data is write in register module by writing module by one of them MUX module
Storing, the comparator module in comparator module group is by the output of another MUX module and data match to be compared
Register module is at the address signal of register module group.
A kind of CAM structure based on FPGA the most according to claim 1, it is characterised in that said write module includes writing
Enable, write address port and write FPDP.
A kind of CAM structure based on FPGA the most according to claim 1, it is characterised in that in described register module group
Comprise even number register module, described comparator module group comprises even number comparator module the most accordingly, by configuring
Select the input of module, the register module being connected one by one with comparator module is divided at least two parts, to compare parallel
Register module with a part.
A kind of CAM structure based on FPGA the most according to claim 3, it is characterised in that described register module group bag
Including four register modules, described comparator module group includes four comparator module, will by the input of selection of configuration module
The register module being connected one by one with comparator module is divided into two parts, and every part includes two register modules, with parallel
Relatively with two register modules of a part.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201620611327.7U CN205862315U (en) | 2016-06-21 | 2016-06-21 | A kind of CAM structure based on FPGA |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201620611327.7U CN205862315U (en) | 2016-06-21 | 2016-06-21 | A kind of CAM structure based on FPGA |
Publications (1)
Publication Number | Publication Date |
---|---|
CN205862315U true CN205862315U (en) | 2017-01-04 |
Family
ID=57636014
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201620611327.7U Active CN205862315U (en) | 2016-06-21 | 2016-06-21 | A kind of CAM structure based on FPGA |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN205862315U (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108228905A (en) * | 2018-02-08 | 2018-06-29 | 中国人民解放军战略支援部队信息工程大学 | Towards the parallel comparison model and method of magnanimity normalized number evidence |
-
2016
- 2016-06-21 CN CN201620611327.7U patent/CN205862315U/en active Active
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108228905A (en) * | 2018-02-08 | 2018-06-29 | 中国人民解放军战略支援部队信息工程大学 | Towards the parallel comparison model and method of magnanimity normalized number evidence |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101159619B (en) | Fast adding method, device and switching arrangement of ARP table | |
CN103019953A (en) | Construction system and construction method for metadata | |
CN105515997B (en) | The higher efficiency range matching process of zero scope expansion is realized based on BF_TCAM | |
CN104615684A (en) | Mass data communication concurrent processing method and system | |
CN104158744A (en) | Method for building table and searching for network processor | |
CN102141974A (en) | Internuclear communication method of multinuclear processor and circuit structure thereof | |
CN104317553A (en) | Method for fast forming, reading and writing power system node admittance matrix data based on sparse matrix technology | |
CN101866277B (en) | Data reordering method and device | |
CN103440249A (en) | System and method for rapidly searching unstructured data | |
CN205862322U (en) | A kind of SPI/I2C interface convertor based on FPGA | |
CN109981464A (en) | A kind of TCAM circuit structure and its matching process realized in FPGA | |
CN205862315U (en) | A kind of CAM structure based on FPGA | |
US20160322105A1 (en) | Memory equipped with information retrieval function, method for using same, device, and information processing method | |
CN103902505A (en) | Configurable FFT processor circuit structure based on switching network | |
CN103905310B (en) | Message processing method and forwarding device | |
CN102968396A (en) | Special data transmission module from flash chip to static random access memory (SRAM) chip | |
CN106843803A (en) | A kind of full sequence accelerator and application based on merger tree | |
CN105335307B (en) | A kind of loading method and device of acl rule | |
CN102360387A (en) | Method for outputting geometric data of facet element of vector data transfer format of topology 1 | |
CN105095100B (en) | A kind of hardware realizes the device of hash chained lists | |
CN105373348A (en) | Hardware implementation system and method for hybrid memory | |
CN103761211A (en) | Routing address conversion method for network-on-chip structure multi-core chipset | |
CN103309950A (en) | Searching method for key value | |
US9158731B2 (en) | Multiprocessor arrangement having shared memory, and a method of communication between processors in a multiprocessor arrangement | |
CN102625105A (en) | Multi-channel video encoding and decoding data transmission method and device based on single chip |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20230515 Address after: 250000 building S02, No. 1036, Langchao Road, high tech Zone, Jinan City, Shandong Province Patentee after: Shandong Inspur Scientific Research Institute Co.,Ltd. Address before: No. 1036, Shun Ya Road, Ji'nan high tech Zone, Shandong Province Patentee before: INSPUR GROUP Co.,Ltd. |
|
TR01 | Transfer of patent right |