Method for achieving CAM (computer-aided manufacturing) function based on FPGA (Field Programmable Gate Array)

A function and data table technology, applied in the field of data communication, can solve the problems of rising system cost of CAM chip price, complex logic design, lower system cost performance, etc., to meet the requirements of wire-speed real-time processing, simple logic design and less internal resources. Effect

Active Publication Date: 2015-07-01
BEIJING DATANG GOHIGH DATA NETWORKS TECH CO LTD
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The first is to directly plug in the CAM chip. Because the high price of the CAM chip leads to an increase in the cost of the entire system, and the CAM chip occupies a large area of ​​the circuit board, the CAM chip itself has a large capacity. If only part of the CAM capacity is used, the cost of the CAM chip will be reduced. The utilization rate of the system also reduces the cost performance of the system;
[0005] The second is to use the internal resources of FPGA to design FPGA-CAM according to the logic structure of ASIC-CAM (i.e. register plus comparator structure). This method is complex in logic design and needs to occupy more FPGA resources. It is unacceptable under the circumstances; and because the structure is relatively complex, it generally needs to be implemented with the help of an IP core provided by a third party. This kind of IP core often requires additional payment for intellectual property rights, which increases the cost and is not suitable for low-end FPGA systems;
[0006] The third is to use the internal resources of the FPGA to search and compare items one by one through the state machine polling method to realize the CAM function. This method is similar to software polling. It is time-consuming to realize the CAM function, especially when the CAM capacity increases. Difficult to meet the requirements of real-time wire-speed CAM matching processing

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for achieving CAM (computer-aided manufacturing) function based on FPGA (Field Programmable Gate Array)
  • Method for achieving CAM (computer-aided manufacturing) function based on FPGA (Field Programmable Gate Array)
  • Method for achieving CAM (computer-aided manufacturing) function based on FPGA (Field Programmable Gate Array)

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments.

[0027] figure 1 Is the method flow chart of the present invention, as shown in the figure, the method disclosed by the present invention realizes the CAM function based on FPGA, basic steps are:

[0028] 1) construct an original CAM data table, which at least includes a first address item, a second address item, a first data item corresponding to the first address item, and a second data item corresponding to the second address item in the original CAM table;

[0029]

[0030] Table 1

[0031] As shown in Table 1, the original CAM data table is first constructed according to the known conditions. The CAM data table shown in Table 1 includes four items, which are:

[0032] The first address item: the address value of the storage unit (AA 0 、AA 1 、…AA k-1 )

[0033] The first data item: corresponding to the data stored in the address va...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for achieving the CAM (computer-aided manufacturing) function based on FPGA (Field Programmable Gate Array). The method comprises the following steps: constructing an original CAM data table according to the known conditions, wherein the CAM data table at least comprises a first address entry and a second address entry; constructing a first data table according to the first address entry in the original CAM data table and saving the first data table into an RAM (random-access memory) of the FPGA, wherein the first data table adopts the first address entry as an address index and the second address entry as corresponding data content; and constructing a second data table according to the second address entry of the first data table and saving the second data table into another RAM of the FPGA, wherein the second data table adopts the second address entry as an address index and the first address entry as corresponding data content. According to the method, the internal resource of the FPGA is utilized, all medium-small capacity CAM functions can be achieved, the logic design is simple, the linear speed real-time processing requirement can be met, the method can be flexibly customized and has strong universality, and additional cost is avoided.

Description

technical field [0001] The invention relates to a method for realizing CAM function based on FPGA, which belongs to the technical field of data communication. Background technique [0002] In the field of data communication network and computer Internet, various switches and routers are widely used to realize adaptive conversion and forwarding of data. Generally, data conversion and forwarding can be achieved through a dedicated content addressable memory (CAM: Content Addressable Memory) chip. The lookup table is realized. [0003] With the rapid development of programmable logic device technology, Field Programmable Gate Array FPGA (Field-Programmable Gate Array) has been widely used in various signal processing circuits; at present, the methods for realizing CAM functions based on FPGA mainly include the following Three kinds: [0004] The first is to directly plug in the CAM chip. Because the high price of the CAM chip leads to an increase in the cost of the entire sys...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G11C15/00
Inventor 丛远建
Owner BEIJING DATANG GOHIGH DATA NETWORKS TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products