[go: up one dir, main page]

CN104133692A - A multiple configuration system and configuration method for TCAM based on FPGA dynamic reconfiguration technology - Google Patents

A multiple configuration system and configuration method for TCAM based on FPGA dynamic reconfiguration technology Download PDF

Info

Publication number
CN104133692A
CN104133692A CN201410265011.2A CN201410265011A CN104133692A CN 104133692 A CN104133692 A CN 104133692A CN 201410265011 A CN201410265011 A CN 201410265011A CN 104133692 A CN104133692 A CN 104133692A
Authority
CN
China
Prior art keywords
tcam
dynamic reconfiguration
dynamic
configuration
fpga
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.)
Pending
Application number
CN201410265011.2A
Other languages
Chinese (zh)
Inventor
魏长城
张继
周朝暄
李宝凯
安涛
徐天赐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dalian Tnet Network Technology Co ltd
Original Assignee
Dalian Tnet Network Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Dalian Tnet Network Technology Co ltd filed Critical Dalian Tnet Network Technology Co ltd
Priority to CN201410265011.2A priority Critical patent/CN104133692A/en
Publication of CN104133692A publication Critical patent/CN104133692A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a TCAM diversified configuration system and a TCAM diversified configuration method based on FPGA dynamic reconfiguration technology, which comprises an FPGA dynamic reconfiguration unit, a dynamic reconfiguration configuration unit, a control unit and a TCAM, wherein the FPGA dynamic reconfiguration unit is used for converting pre-realized functions to generate a corresponding dynamic reconfiguration logic circuit, then performing dynamic reconfiguration layout, generating a corresponding functional circuit and then generating a corresponding dynamic reconfiguration file; the dynamic reconfiguration unit is used for downloading and operating a dynamic reconfiguration file and executing actions according to a control command of the control unit; the control unit is used for monitoring the TCAM running state communicated with the control unit in real time, sending a dynamic configuration command when the TCAM runs abnormally, and controlling the dynamic reconfiguration unit to carry out reconfiguration repair on the TCAM or carry out reconfiguration function on the TCAM. According to the invention, by using the dynamic reconfiguration technology of the FPGA, when the TCAM has problems during the use, the TCAM can be reconfigured by using the dynamic reconfiguration technology of the FPGA to achieve the aim of repairing, the operation is simple and convenient, and the utilization efficiency of device resources is improved.

Description

一种基于FPGA动态重构技术实现对TCAM的多元化配置系统及配置方法A multiple configuration system and configuration method for TCAM based on FPGA dynamic reconfiguration technology

技术领域technical field

本发明涉及一种利用FPGA动态重构技术实现对TCAM的多元化配置系统及其相应的配置方法。The invention relates to a multi-configuration system and a corresponding configuration method for TCAM realized by using FPGA dynamic reconfiguration technology.

背景技术Background technique

随着网络的发展的日新月异,TCAM在各个领域都有着广泛的应用,人们对TCAM的需求也随之增多。尽管TCAM功能强大,但是相对的其操作也很复杂。一般的,若要改变TCAM的应用功能,则需要利用上位机软件,用命令或页面对其进行参数下载,(例如TCAM现在应用的场所是网络IP地址的查找,现在要实现MAC地址的查找)这时就要对TCAM进行重新设置;同时重新设置后,也会产生TCAM不能正常工作的情况;这时需要对TCAM进行复位甚至要整机复位,这位对于大系统来说是致命的缺陷。通常我们要实现TCAM应用功能的改变就要将相应的设备拿回来重新编写程序调试,耗时耗力。With the rapid development of the network, TCAM is widely used in various fields, and people's demand for TCAM is also increasing. Although TCAM is powerful, its operation is relatively complicated. Generally, if you want to change the application function of TCAM, you need to use the host computer software to download its parameters with commands or pages. At this time, it is necessary to reset the TCAM; at the same time, after the reset, the TCAM will not work normally; at this time, it is necessary to reset the TCAM or even reset the whole machine, which is a fatal flaw for large systems. Usually, if we want to change the application function of TCAM, we need to take the corresponding equipment back and rewrite the program for debugging, which is time-consuming and labor-intensive.

发明内容Contents of the invention

鉴于已有技术存在的缺陷,本发明的目的是要提供一种基于FPGA动态重构技术的对TCAM的多元化配置系统及方法,以实现在TCAM在工作期间,发生错误时进行重新配置,或使TCAM在不同时期,不同场所或根据需求实现不同的功能。In view of the defects in the prior art, the purpose of the present invention is to provide a diversified configuration system and method for TCAM based on FPGA dynamic reconfiguration technology, so as to realize reconfiguration when errors occur during TCAM work, or Make TCAM realize different functions in different periods, different places or according to requirements.

为了实现上述目的,本发明的技术方案:In order to achieve the above object, technical scheme of the present invention:

一种基于FPGA动态重构技术实现对TCAM的多元化配置系统,其特征在于:A kind of multiple configuration system to TCAM is realized based on FPGA dynamic reconfiguration technology, it is characterized in that:

包括FPGA动态重构单元、动态重构配置单元、控制单元以及TCAM,Including FPGA dynamic reconfiguration unit, dynamic reconfiguration configuration unit, control unit and TCAM,

所述的FPGA动态重构单元用于将预实现的TCAM功能编写成相应的FPGA动态重构代码,转换生成相应的动态重构逻辑电路后进行动态重构布局以及生成对应的功能电路,将生成的功能电路与设计要求表单比对,符合设计要求后生成执行动态重构任务所对应的动态重构文件;The FPGA dynamic reconfiguration unit is used to write pre-implemented TCAM functions into corresponding FPGA dynamic reconfiguration codes, convert and generate corresponding dynamic reconfiguration logic circuits, and then perform dynamic reconfiguration layout and generate corresponding functional circuits, which will generate Compare the functional circuit with the design requirement form, and generate the dynamic reconfiguration file corresponding to the dynamic reconfiguration task after meeting the design requirements;

所述的动态重构配置单元用于下载并运行上述动态重构文件,同时按照控制单元的控制命令执行相应的动态重构过程;The dynamic reconfiguration configuration unit is used to download and run the above dynamic reconfiguration file, and at the same time execute the corresponding dynamic reconfiguration process according to the control command of the control unit;

所述的控制单元用于实时监测与其通讯的TCAM运行状态,在TCAM运行异常时发送动态配置命令,控制动态重构配置单元对TCAM进行重新配置修复或者接收外部新功能要求时,发送相应的动态配置命令控制动态重构配置单元对TCAM进行重新配置相应的功能。The control unit is used to monitor the running state of the TCAM communicating with it in real time, send a dynamic configuration command when the TCAM is running abnormally, and control the dynamic reconfiguration configuration unit to reconfigure and repair the TCAM or when receiving an external new function request, send a corresponding dynamic The configuration command controls the corresponding function of the dynamic reconfiguration configuration unit to reconfigure the TCAM.

所述的控制单元包括用于实时监测TCAM运行状态的TCAM监测模块以及按照TCAM监测模块监测情况进行发布相应动态配置命令的动态配置控制模块。The control unit includes a TCAM monitoring module for real-time monitoring of the running state of the TCAM and a dynamic configuration control module for issuing corresponding dynamic configuration commands according to the monitoring situation of the TCAM monitoring module.

所述控制单元还包括功能切换模块,该功能切换模块用于与外部功能切换按键连接,同时在内部设置与FPGA动态重构单元生成的各动态重构文件一一对应的各功能表单文件,在接收到外部功能切换按键对应的按键功能信号后,发布对应的命令至动态配置控制模块,动态配置控制模块对TCAM进行对应的功能配置。Described control unit also comprises function switch module, and this function switch module is used for being connected with external function switch button, and each function sheet file corresponding to each dynamic reconfiguration file that FPGA dynamic reconfiguration unit generates is set inside simultaneously, in After receiving the key function signal corresponding to the external function switching key, the corresponding command is issued to the dynamic configuration control module, and the dynamic configuration control module performs corresponding function configuration on the TCAM.

本发明还设计了一种基于FPGA动态重构技术实现对TCAM的多元化配置方法,其特征在于:The present invention also designs a kind of method based on FPGA dynamic reconfiguration technology to realize the pluralistic configuration method to TCAM, it is characterized in that:

步骤101:FPGA动态重构单元按照预实现的TCAM功能,配置相应的TCAM的逻辑,并编写相应的FPGA动态重构代码;Step 101: The FPGA dynamic reconfiguration unit configures the corresponding TCAM logic according to the pre-implemented TCAM function, and writes the corresponding FPGA dynamic reconfiguration code;

步骤102:将FPGA动态重构代码转换生成相应的动态重构逻辑电路;Step 102: converting the FPGA dynamic reconfiguration code into a corresponding dynamic reconfiguration logic circuit;

步骤103:进行FPGA动态重构布局,即在FPGA动态重构单元上划分动态重构电路固定的区域位置,并对要生成的逻辑电路进行时序约束,以保证符合TCAM的时序要求;Step 103: Perform FPGA dynamic reconfiguration layout, that is, divide the fixed area position of the dynamic reconfiguration circuit on the FPGA dynamic reconfiguration unit, and perform timing constraints on the logic circuits to be generated, so as to ensure compliance with the timing requirements of TCAM;

步骤104:待步骤103完成后进行逻辑布线,即生成相应的配置文件并按照配置文件生成对应的功能电路;Step 104: Perform logical wiring after step 103 is completed, that is, generate a corresponding configuration file and generate a corresponding functional circuit according to the configuration file;

步骤105:比对生成的功能电路是否符合设计要求表单;如果符合,进入107,不符合则返回给106;Step 105: Check whether the generated functional circuit meets the design requirement form; if it meets, go to 107, if not, return to 106;

步骤106:重新修改FPGA动态重构代码,修改后返回到步骤102重新执行步骤103→步骤104→步骤105,直至符合设计要求表单的设计要求;Step 106: re-modify the FPGA dynamic reconfiguration code, return to step 102 and re-execute step 103 → step 104 → step 105 after modification, until the design requirements of the design requirements form are met;

步骤107:利用FPGA动态重构单元生成执行动态重构任务所对应的动态重构文件,动态重构配置单元下载上述动态重构文件,同时等待控制单元的控制命令并按照控制命令执行相应的动态重构过程;Step 107: Use the FPGA dynamic reconfiguration unit to generate the dynamic reconfiguration file corresponding to the dynamic reconfiguration task, and the dynamic reconfiguration configuration unit downloads the above dynamic reconfiguration file, while waiting for the control command of the control unit and executing the corresponding dynamic reconfiguration file according to the control command. refactoring process;

步骤108:利用控制单元实时与外部模块进行通讯,接收外部下发的指令控制动态重构配置单元对TCAM进行重新配置,来改变TCAM现有的功能;或者实时监测TCAM,当TCAM的通讯模块发出错误信息或与TCAM通讯中断时,控制动态重构配置单元对TCMA进行重新初始化。Step 108: Use the control unit to communicate with external modules in real time, and receive external commands to control the dynamic reconfiguration configuration unit to reconfigure the TCAM to change the existing functions of the TCAM; or monitor the TCAM in real time, when the communication module of the TCAM sends When an error message or communication with the TCAM is interrupted, control the dynamic reconfiguration unit to re-initialize the TCMA.

所述方法还设置功能切换模块实现外部控制功能切换过程,该功能切换模块与外部功能切换按键连接,同时在内部设置与FPGA动态重构单元生成的各动态重构文件一一对应的各功能表单文件,在接收到外部功能切换按键对应的按键功能信号后,发布对应的命令至动态配置控制模块,动态配置控制模块对TCAM进行对应的功能配置。Described method also arranges function switching module to realize the external control function switching process, and this function switching module is connected with external function switching button, and each function sheet corresponding to each dynamic reconstruction file that FPGA dynamic reconstruction unit generates is set inside simultaneously file, after receiving the key function signal corresponding to the external function switching key, issue the corresponding command to the dynamic configuration control module, and the dynamic configuration control module performs corresponding function configuration on the TCAM.

与现有技术相比,本发明的有益效果:Compared with prior art, the beneficial effect of the present invention:

本发明利用FPGA的动态重构技术,当TCAM在操作时受自身时序复杂,外部环境等多种因素影响下,导致TCAM在使用期间出现问题时,利用FPGA的动态重构技术可对TCAM进行重新配置,达到修复的目的,其操作简便,提高器件资源利用效率。可提高利用率的原因:因为在不同的应用场所,要求TCAM所实现的功能是不同的。如果对TCAM功能需求增加,则需要增加TCAM的数量,若是不增加TCAM的数量,在设备改变应用场所时,需要将设备带回公司重新编写代码,并长期测试后才能应用于新场所,费时费力。The present invention utilizes the dynamic reconfiguration technology of FPGA. When the TCAM is affected by various factors such as its complex timing and external environment during operation, causing problems during the use of the TCAM, the dynamic reconfiguration technology of FPGA can be used to reconfigure the TCAM. Configuration, to achieve the purpose of repair, its operation is simple, improve device resource utilization efficiency. Reasons for improving the utilization rate: Because in different application places, the functions required to be realized by TCAM are different. If the demand for TCAM functions increases, the number of TCAMs needs to be increased. If the number of TCAMs is not increased, when the equipment is changed to the application site, the equipment needs to be brought back to the company to rewrite the code, and it can be applied to the new site after a long-term test, which is time-consuming and laborious. .

附图说明Description of drawings

图1为本发明所述系统的原理结构示意图;Fig. 1 is the schematic structural diagram of the principle of the system of the present invention;

图2为本发明所述系统控制单元原理结构示意图;Fig. 2 is a schematic structural diagram of the principle structure of the system control unit of the present invention;

图3为本发明所述原理步骤示意图。Fig. 3 is a schematic diagram of the principle steps of the present invention.

具体实施方式Detailed ways

下面结合附图以及具体的实施例进一步说明本发明的技术方案:The technical scheme of the present invention is further described below in conjunction with accompanying drawing and specific embodiment:

为了解决现有技术中存在的缺陷,本发明的目的是要利用FPGA动态重构技术,即在项目设计初期和逻辑规划阶段就将对TCAM将要实现的功能进行设置,并在FPGA内部用FPGA编程软件将时序,功能,区域,占用逻辑空间大小进行了设置,使得以后其他功能做任何改变也不会对此区域造成影响。同时FPGA动态重构技术已日趋成熟,能够支持的系列也越来越多;而且可移植性越来越好,当移植后由于它是以类似于FPGA硬核存在,所以可靠性更高。In order to solve the defects in the prior art, the object of the present invention is to utilize the FPGA dynamic reconfiguration technology, that is, the functions to be realized by the TCAM will be set at the initial stage of project design and the logic planning stage, and programmed with FPGA inside the FPGA The software sets the timing, function, area, and logical space occupied, so that any changes to other functions in the future will not affect this area. At the same time, FPGA dynamic reconfiguration technology has become more and more mature, and more and more series can be supported; and the portability is getting better and better. After transplantation, it is similar to the FPGA hard core, so the reliability is higher.

本专利技术手段实现的过程:The process of realizing the technical means of this patent:

先将TCAM要实现的功能进行规划,然后编写TCAM功能代码。利用ISE软件将FPGA内部规划出若干个固定区域,此区域只供对TCAM操作功能代码使用,如果FPGA其他功能修改时不能操作此区域,同时也保证了FPGA的其他功能不受影响。这样的设计保证了操作TCAM的可靠性,因为在FPGA里实现大规模,复杂的功能时,改变一部分,整个代码需要重新规划,所以当对TCAM功能重新配置时,耗费大量的人力和时间。采用本专利可以很好的解决这一问题,因为在初期设计阶段,就已经通过了验证。并利用ISE软件将它固化在FPGA内部,无论FPGA其他程序如何改变,都不会影响到TCAM的功能。First plan the functions to be realized by TCAM, and then write TCAM function codes. Use the ISE software to plan several fixed areas inside the FPGA. This area is only used for the TCAM operation function code. If other functions of the FPGA are modified, this area cannot be operated, and other functions of the FPGA will not be affected. This design ensures the reliability of operating TCAM, because when implementing large-scale and complex functions in FPGA, changing a part requires re-planning the entire code, so when reconfiguring TCAM functions, it takes a lot of manpower and time. This problem can be well solved by adopting this patent, because it has passed verification in the initial design stage. And use the ISE software to solidify it inside the FPGA, no matter how other programs of the FPGA change, it will not affect the function of the TCAM.

当检测到外部功能键或上位机(PC机)需要TCAM实现其他功能时,将通知FPGA将执行与其相对应的功能;When an external function key is detected or the host computer (PC) needs TCAM to implement other functions, it will notify the FPGA to execute the corresponding function;

同时当上位机的软件(图形软件)发现对TCAM操作失灵,下发指命,实现对TCAM进行重新配置。At the same time, when the software (graphics software) of the upper computer finds that the operation of the TCAM fails, it issues instructions to realize the reconfiguration of the TCAM.

鉴于上述思想,一种基于FPGA动态重构技术对TCAM的多元化配置系统,如图1所示:In view of the above ideas, a diversified configuration system for TCAM based on FPGA dynamic reconfiguration technology is shown in Figure 1:

包括FPGA动态重构单元、动态重构配置单元、控制单元以及TCAM,Including FPGA dynamic reconfiguration unit, dynamic reconfiguration configuration unit, control unit and TCAM,

所述的FPGA动态重构单元用于将预实现的TCAM功能编写成相应的FPGA动态重构代码,转换生成相应的动态重构逻辑电路后进行动态重构布局以及生成对应的功能电路,将生成的功能电路与设计要求表单比对,符合设计要求后生成执行动态重构任务所对应的动态重构文件;The FPGA dynamic reconfiguration unit is used to write pre-implemented TCAM functions into corresponding FPGA dynamic reconfiguration codes, convert and generate corresponding dynamic reconfiguration logic circuits, and then perform dynamic reconfiguration layout and generate corresponding functional circuits, which will generate Compare the functional circuit with the design requirement form, and generate the dynamic reconfiguration file corresponding to the dynamic reconfiguration task after meeting the design requirements;

所述的动态重构配置单元用于下载并运行上述动态重构文件,同时按照控制单元的控制命令执行相应的动态重构过程;The dynamic reconfiguration configuration unit is used to download and run the above dynamic reconfiguration file, and at the same time execute the corresponding dynamic reconfiguration process according to the control command of the control unit;

所述的控制单元用于实时监测与其通讯的TCAM运行状态,在TCAM运行异常时发送动态配置命令,控制动态重构配置单元对TCAM进行重新配置修复或者接收外部新功能要求时,发送相应的动态配置命令控制动态重构配置单元对TCAM进行重新配置相应的功能。The control unit is used to monitor the running state of the TCAM communicating with it in real time, send a dynamic configuration command when the TCAM is running abnormally, and control the dynamic reconfiguration configuration unit to reconfigure and repair the TCAM or when receiving an external new function request, send a corresponding dynamic The configuration command controls the corresponding function of the dynamic reconfiguration configuration unit to reconfigure the TCAM.

如图2所示:进一步,所述的控制单元包括用于实时监测TCAM运行状态的TCAM监测模块以及按照TCAM监测模块监测情况进行发布相应动态配置命令的动态配置控制模块。As shown in Figure 2: further, the control unit includes a TCAM monitoring module for real-time monitoring of the TCAM operating status and a dynamic configuration control module for issuing corresponding dynamic configuration commands according to the monitoring situation of the TCAM monitoring module.

所述TCAM监测模块可以是CPU,所述TCAM监测模块在TCAM运行期间进行动态监测,当TCAM芯片在经过工作一段时间后,由于受到其他环境影响从而不能正常工作,如查找TCAM内容匹配失败的时候,反馈信息至动态配置模块,动态配置控制模块对动态重构配置单元发出对应的动态重构指令,动态重构配置单元调用相应的动态重构文件,利用动态重构技术对TCAM进行重新配置。Described TCAM monitoring module can be CPU, and described TCAM monitoring module carries out dynamic monitoring during TCAM operation, when TCAM chip is through working for a period of time, thus can not work normally due to being affected by other environment, as finding TCAM content when matching fails , feedback information to the dynamic configuration module, the dynamic configuration control module issues a corresponding dynamic reconfiguration instruction to the dynamic reconfiguration configuration unit, and the dynamic reconfiguration configuration unit invokes the corresponding dynamic reconfiguration file, and uses the dynamic reconfiguration technology to reconfigure the TCAM.

所述动态配置控制模块可以是CPU,当TCAM在操作时受自身时序复杂,外部环境等多种因素影响下,导致TCAM在使用期间出现问题时。动态配置控制模块发出相应的动态重构指令,控制动态重构配置单元调用相应的动态重构文件,实现对TCAM进行重新配置,达到修复的目的。The dynamic configuration control module may be a CPU. When the TCAM is in operation, it is affected by various factors such as its own complex timing and external environment, which causes problems during the use of the TCAM. The dynamic configuration control module issues corresponding dynamic reconfiguration instructions, and controls the dynamic reconfiguration configuration unit to call corresponding dynamic reconfiguration files, so as to reconfigure the TCAM and achieve the purpose of repairing.

所述控制单元还包括功能切换模块,该功能切换模块用于与外部功能切换按键连接,同时在内部设置与FPGA动态重构单元生成的各动态重构文件一一对应的各功能表单文件,在接收到外部功能切换按键对应的按键功能信号后,发布对应的命令至动态配置控制模块,动态配置控制模块对TCAM进行对应的功能配置。Described control unit also comprises function switch module, and this function switch module is used for being connected with external function switch button, and each function sheet file corresponding to each dynamic reconfiguration file that FPGA dynamic reconfiguration unit generates is set inside simultaneously, in After receiving the key function signal corresponding to the external function switching key, the corresponding command is issued to the dynamic configuration control module, and the dynamic configuration control module performs corresponding function configuration on the TCAM.

如图3所示,本发明的实施例是基于FPGA动态重构技术对TCAM进行多元化配置,具体方法步骤如下:As shown in Figure 3, the embodiment of the present invention is based on the FPGA dynamic reconfiguration technology to carry out multiple configurations to the TCAM, and the specific method steps are as follows:

步骤101:设计预实现的TCAM功能(如IP报文过滤、查找、校验等),配置相应的TCAM的逻辑,并编写FPGA动态重构代码。Step 101: Design pre-implemented TCAM functions (such as IP packet filtering, search, verification, etc.), configure corresponding TCAM logic, and write FPGA dynamic reconfiguration codes.

步骤102:将FPGA动态重构代码利用FPGA ISE的软件生成相应的逻辑电路。Step 102: Use FPGA ISE software to dynamically reconfigure the FPGA code to generate corresponding logic circuits.

步骤103:利用FPGA ISE的软件做重构布局,划分动态重构电路固定的区域位置,以保证此区域不受其他功能影响,在FPGA其他区域功能改变时,此区域功能没有任何改变;并对其进行时序约束,保证符合TCAM的时序要求。Step 103: Use the FPGA ISE software to do the reconstruction layout, divide the fixed area position of the dynamic reconstruction circuit to ensure that this area is not affected by other functions, and when the functions of other areas of the FPGA change, the functions of this area do not change; and It performs timing constraints to ensure compliance with the timing requirements of the TCAM.

步骤104:待在103中的工作做完,然后用FPGA ISE软件生成配置文件,利用FPGA ISE软件对设计生成功能电路。Step 104: Finish the work in 103, then use the FPGA ISE software to generate configuration files, and use the FPGA ISE software to generate functional circuits for design.

步骤105:查看设计要求表单(包含电路和软件设计报告),是否符合设计要求。如果符合,进入107,不符合则返回给106。Step 105: check the design requirement form (including circuit and software design report), whether it meets the design requirement. If it meets, go to 107, if not, return to 106.

步骤106:重新修改代码,修改后返回到102重新执行103,104,105,直至符合设计要求。Step 106: re-modify the code, return to 102 and re-execute 103, 104, 105 after modification, until the design requirements are met.

步骤107:步骤107:FPGA动态重构单元生成执行动态重构任务所对应的动态重构文件,动态重构配置单元下载到上述动态重构文件,同时等待动态重构控制单元的控制命令并按照控制命令执行动作;Step 107: Step 107: The FPGA dynamic reconfiguration unit generates the dynamic reconfiguration file corresponding to the dynamic reconfiguration task, and the dynamic reconfiguration configuration unit downloads the dynamic reconfiguration file to the above-mentioned dynamic reconfiguration file, while waiting for the control command of the dynamic reconfiguration control unit and following Control commands to execute actions;

步骤108:控制单元实时与外部模块进行通讯,接收外部下发的指令控制动态重构配置单元对TCAM进行重新功能配置(如新功能为IP报文过滤),来改变TCAM现有的IP报文查找功能;或者实时监测TCAM,当TCAM的通讯模块发出错误信息或与TCAM通讯中断时,控制动态重构配置单元对TCMA进行重新初始化。Step 108: The control unit communicates with the external module in real time, and receives an externally issued command to control the dynamic reconfiguration configuration unit to reconfigure the TCAM function (such as the new function is IP packet filtering) to change the existing IP packet of the TCAM Search function; or monitor TCAM in real time, when the communication module of TCAM sends an error message or the communication with TCAM is interrupted, control the dynamic reconfiguration configuration unit to re-initialize TCMA.

以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,根据本发明的技术方案及其发明构思加以等同替换或改变,都应涵盖在本发明的保护范围之内。The above is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto, any person familiar with the technical field within the technical scope disclosed in the present invention, according to the technical solution of the present invention Any equivalent replacement or change of the inventive concepts thereof shall fall within the protection scope of the present invention.

Claims (5)

1.一种基于FPGA动态重构技术实现对TCAM的多元化配置系统,其特征在于:1. A kind of multiple configuration system to TCAM is realized based on FPGA dynamic reconfiguration technology, it is characterized in that: 包括FPGA动态重构单元、动态重构配置单元、控制单元以及TCAM,Including FPGA dynamic reconfiguration unit, dynamic reconfiguration configuration unit, control unit and TCAM, 所述的FPGA动态重构单元用于将预实现的TCAM功能编写成相应的FPGA动态重构代码,转换生成相应的动态重构逻辑电路后进行动态重构布局以及生成对应的功能电路,将生成的功能电路与设计要求表单比对,符合设计要求后生成执行动态重构任务所对应的动态重构文件;The FPGA dynamic reconfiguration unit is used to write pre-implemented TCAM functions into corresponding FPGA dynamic reconfiguration codes, convert and generate corresponding dynamic reconfiguration logic circuits, and then perform dynamic reconfiguration layout and generate corresponding functional circuits, which will generate Compare the functional circuit with the design requirement form, and generate the dynamic reconfiguration file corresponding to the dynamic reconfiguration task after meeting the design requirements; 所述的动态重构配置单元用于下载运行上述动态重构文件,并按照控制单元的控制命令执行动作;The dynamic reconfiguration configuration unit is used to download and run the above dynamic reconfiguration file, and perform actions according to the control commands of the control unit; 所述的控制单元用于实时监测与其通讯的TCAM运行状态,在TCAM运行异常时发送动态配置命令,控制动态重构配置单元对TCAM进行重新配置修复或者接收外部新功能要求时,发送相应的动态配置命令控制动态重构配置单元对TCAM进行重新配置相应的功能。The control unit is used to monitor the running state of the TCAM communicating with it in real time, send a dynamic configuration command when the TCAM is running abnormally, and control the dynamic reconfiguration configuration unit to reconfigure and repair the TCAM or when receiving an external new function request, send a corresponding dynamic The configuration command controls the corresponding function of the dynamic reconfiguration configuration unit to reconfigure the TCAM. 2.根据权利要求1所述的多元化配置系统,其特征在于:所述的控制单元包括用于实时监测TCAM运行状态的TCAM监测模块以及按照TCAM监测模块监测情况进行发布相应动态配置命令的动态配置模块。2. The multi-configuration system according to claim 1, characterized in that: the control unit includes a TCAM monitoring module for real-time monitoring of the TCAM operating status and a dynamic configuration command for issuing corresponding dynamic configuration commands according to the monitoring situation of the TCAM monitoring module. Configure the module. 3.根据权利要求2所述的多元化配置系统,其特征在于:所述控制单元还包括功能切换模块,该功能切换模块用于与外部功能切换按键连接,同时在内部设置与FPGA动态重构单元生成的各动态重构文件一一对应的各功能表单文件,在接收到外部功能切换按键对应的按键功能信号后,发布对应的命令至动态配置控制模块,动态配置控制模块对TCAM进行对应的功能配置。3. The diversified configuration system according to claim 2, characterized in that: said control unit also includes a function switching module, which is used to connect with external function switching buttons, and simultaneously internally set and FPGA dynamic reconfiguration Each dynamic reconstruction file generated by the unit corresponds to each function form file one by one. After receiving the button function signal corresponding to the external function switching button, the corresponding command is issued to the dynamic configuration control module, and the dynamic configuration control module performs corresponding TCAM Function configuration. 4.一种基于FPGA动态重构技术实现对TCAM的多元化配置方法,其特征在于:4. A kind of multiple configuration method to TCAM is realized based on FPGA dynamic reconfiguration technology, it is characterized in that: 步骤101:FPGA动态重构单元按照预实现的TCAM功能,配置相应的TCAM的逻辑,并编写相应的FPGA动态重构代码;Step 101: The FPGA dynamic reconfiguration unit configures the corresponding TCAM logic according to the pre-implemented TCAM function, and writes the corresponding FPGA dynamic reconfiguration code; 步骤102:将FPGA动态重构代码转换生成相应的动态重构逻辑电路;Step 102: converting the FPGA dynamic reconfiguration code into a corresponding dynamic reconfiguration logic circuit; 步骤103:进行FPGA动态重构布局,即在FPGA动态重构单元上划分动态重构电路固定的区域位置,并对要生成的逻辑电路进行时序约束,以保证符合TCAM的时序要求;Step 103: Perform FPGA dynamic reconfiguration layout, that is, divide the fixed area position of the dynamic reconfiguration circuit on the FPGA dynamic reconfiguration unit, and perform timing constraints on the logic circuits to be generated, so as to ensure compliance with the timing requirements of TCAM; 步骤104:待步骤103完成后进行逻辑布线,即生成相应的配置文件并按照配置文件生成对应的功能电路;Step 104: Perform logical wiring after step 103 is completed, that is, generate a corresponding configuration file and generate a corresponding functional circuit according to the configuration file; 步骤105:比对生成的功能电路是否符合设计要求表单;如果符合,进入107,不符合则返回给106;Step 105: Check whether the generated functional circuit meets the design requirement form; if it meets, go to 107, if not, return to 106; 步骤106:重新修改FPGA动态重构代码,修改后返回到步骤102重新执行步骤103→步骤104→步骤105,直至符合设计要求表单的设计要求;Step 106: re-modify the FPGA dynamic reconfiguration code, return to step 102 and re-execute step 103 → step 104 → step 105 after modification, until the design requirements of the design requirements form are met; 步骤107:利用FPGA动态重构单元生成执行动态重构任务所对应的动态重构文件,动态重构配置单元下载上述动态重构文件,同时等待控制单元的控制命令并按照控制命令执行相应的动态重构过程;Step 107: Use the FPGA dynamic reconfiguration unit to generate the dynamic reconfiguration file corresponding to the dynamic reconfiguration task, and the dynamic reconfiguration configuration unit downloads the above dynamic reconfiguration file, while waiting for the control command of the control unit and executing the corresponding dynamic reconfiguration file according to the control command. refactoring process; 步骤108:利用控制单元实时与外部模块进行通讯,接收外部下发的指令控制动态重构配置单元对TCAM进行重新配置,来改变TCAM现有的功能;或者实时监测TCAM,当TCAM的通讯模块发出错误信息或与TCAM通讯中断时,控制动态重构配置单元对TCMA进行重新初始化。Step 108: Use the control unit to communicate with external modules in real time, and receive external commands to control the dynamic reconfiguration configuration unit to reconfigure the TCAM to change the existing functions of the TCAM; or monitor the TCAM in real time, when the communication module of the TCAM sends When an error message or communication with the TCAM is interrupted, control the dynamic reconfiguration unit to re-initialize the TCMA. 5.根据权利要求2所述的多元化配置方法,其特征在于:所述方法还设置功能切换模块实现外部控制功能切换过程,该功能切换模块与外部功能切换按键连接,同时在内部设置与FPGA动态重构单元生成的各动态重构文件一一对应的各功能表单文件,在接收到外部功能切换按键对应的按键功能信号后,发布对应的命令至动态配置控制模块,动态配置控制模块对TCAM进行对应的功能配置。5. The diversified configuration method according to claim 2, characterized in that: the method also sets a function switching module to realize the external control function switching process, and the function switching module is connected with the external function switching button, and is internally set and FPGA Each dynamic reconstruction file generated by the dynamic reconstruction unit corresponds to each function form file one by one. After receiving the button function signal corresponding to the external function switch button, the corresponding command is issued to the dynamic configuration control module. Configure the corresponding functions.
CN201410265011.2A 2014-06-13 2014-06-13 A multiple configuration system and configuration method for TCAM based on FPGA dynamic reconfiguration technology Pending CN104133692A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410265011.2A CN104133692A (en) 2014-06-13 2014-06-13 A multiple configuration system and configuration method for TCAM based on FPGA dynamic reconfiguration technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410265011.2A CN104133692A (en) 2014-06-13 2014-06-13 A multiple configuration system and configuration method for TCAM based on FPGA dynamic reconfiguration technology

Publications (1)

Publication Number Publication Date
CN104133692A true CN104133692A (en) 2014-11-05

Family

ID=51806378

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410265011.2A Pending CN104133692A (en) 2014-06-13 2014-06-13 A multiple configuration system and configuration method for TCAM based on FPGA dynamic reconfiguration technology

Country Status (1)

Country Link
CN (1) CN104133692A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104394150A (en) * 2014-11-26 2015-03-04 大连梯耐德网络技术有限公司 A system and method for implementing a pseudo-secure network architecture based on hardware reconfiguration
CN107256281A (en) * 2017-05-05 2017-10-17 西安交通大学 A kind of non-rectangle layout method of FPGA restructural resources based on cutting-out method
CN109656673A (en) * 2017-10-11 2019-04-19 阿里巴巴集团控股有限公司 Loading method, device, system and the electronic equipment of program
CN110659061A (en) * 2019-09-03 2020-01-07 苏州浪潮智能科技有限公司 FPGA dynamic reconfiguration method, device, equipment and readable storage medium
CN110751676A (en) * 2019-10-21 2020-02-04 中国科学院空间应用工程与技术中心 Heterogeneous computing system and method based on target detection and readable storage medium
CN112379915A (en) * 2020-11-06 2021-02-19 中国人寿保险股份有限公司 Source code processing method and device
CN113433850A (en) * 2021-06-04 2021-09-24 电子科技大学 Method for repairing abnormal logic of FPGA (field programmable Gate array)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1641651A (en) * 1999-12-14 2005-07-20 爱特梅尔股份有限公司 Method for implementing physical design for dynamically reconfigurable logic circuit
CN101420371A (en) * 2008-07-03 2009-04-29 江苏华丽网络工程有限公司 Dynamic function supporting method and system for ASIC fusion network device
CN101436225A (en) * 2008-12-11 2009-05-20 国网电力科学研究院 Implementing method of dynamic local reconstructing embedded type data controller chip
CN101673101A (en) * 2009-09-27 2010-03-17 电子科技大学 On-line programming FPGA reconfigurable device
CN101788931A (en) * 2010-01-29 2010-07-28 杭州电子科技大学 Dynamic local reconfigurable system for real-time fault tolerance of hardware
CN201699727U (en) * 2010-07-02 2011-01-05 中国人民解放军国防科学技术大学 A Partially Reconfigurable Ethernet Switch
CN102298344A (en) * 2011-05-05 2011-12-28 杭州电子科技大学 Local hot point mitigating system based on FPGA dynamic partially reconfigurable technology
US20120163392A1 (en) * 2010-12-23 2012-06-28 Electronics And Telecommunications Research Institute Packet processing apparatus and method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1641651A (en) * 1999-12-14 2005-07-20 爱特梅尔股份有限公司 Method for implementing physical design for dynamically reconfigurable logic circuit
CN101420371A (en) * 2008-07-03 2009-04-29 江苏华丽网络工程有限公司 Dynamic function supporting method and system for ASIC fusion network device
CN101436225A (en) * 2008-12-11 2009-05-20 国网电力科学研究院 Implementing method of dynamic local reconstructing embedded type data controller chip
CN101673101A (en) * 2009-09-27 2010-03-17 电子科技大学 On-line programming FPGA reconfigurable device
CN101788931A (en) * 2010-01-29 2010-07-28 杭州电子科技大学 Dynamic local reconfigurable system for real-time fault tolerance of hardware
CN201699727U (en) * 2010-07-02 2011-01-05 中国人民解放军国防科学技术大学 A Partially Reconfigurable Ethernet Switch
US20120163392A1 (en) * 2010-12-23 2012-06-28 Electronics And Telecommunications Research Institute Packet processing apparatus and method
CN102298344A (en) * 2011-05-05 2011-12-28 杭州电子科技大学 Local hot point mitigating system based on FPGA dynamic partially reconfigurable technology

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘勋章: "文本过滤在硬件FPGA上的设计实现研究", 《万方数据库》 *
李昆吉: "FPGA动态可重构技术及其应用研究", 《万方数据库》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104394150A (en) * 2014-11-26 2015-03-04 大连梯耐德网络技术有限公司 A system and method for implementing a pseudo-secure network architecture based on hardware reconfiguration
CN104394150B (en) * 2014-11-26 2018-09-25 大连梯耐德网络技术有限公司 A system and method for implementing a pseudo-secure network architecture based on hardware reconfiguration
CN107256281A (en) * 2017-05-05 2017-10-17 西安交通大学 A kind of non-rectangle layout method of FPGA restructural resources based on cutting-out method
CN107256281B (en) * 2017-05-05 2020-07-28 西安交通大学 FPGA (field programmable Gate array) reconfigurable resource non-rectangular layout method based on cutting method
CN109656673A (en) * 2017-10-11 2019-04-19 阿里巴巴集团控股有限公司 Loading method, device, system and the electronic equipment of program
CN109656673B (en) * 2017-10-11 2023-03-31 阿里巴巴集团控股有限公司 Program loading method, device and system and electronic equipment
CN110659061A (en) * 2019-09-03 2020-01-07 苏州浪潮智能科技有限公司 FPGA dynamic reconfiguration method, device, equipment and readable storage medium
US11474815B2 (en) 2019-09-03 2022-10-18 Inspur Suzhou Intelligent Technology Co., Ltd. FPGA dynamic reconfiguration method, apparatus, device and readable storage medium
CN110751676A (en) * 2019-10-21 2020-02-04 中国科学院空间应用工程与技术中心 Heterogeneous computing system and method based on target detection and readable storage medium
CN112379915A (en) * 2020-11-06 2021-02-19 中国人寿保险股份有限公司 Source code processing method and device
CN113433850A (en) * 2021-06-04 2021-09-24 电子科技大学 Method for repairing abnormal logic of FPGA (field programmable Gate array)

Similar Documents

Publication Publication Date Title
CN104133692A (en) A multiple configuration system and configuration method for TCAM based on FPGA dynamic reconfiguration technology
CN107220064B (en) A kind of digital control system interface configuration development approach
CN103558473B (en) Based on frequency converter field debugging system and the method thereof of human-computer interaction interface
CN105740139B (en) A kind of debugging embedded software method based on virtual environment
CN110851356A (en) A web application automation testing framework based on Selenium and its construction method and system
CN105446933B (en) debugging system and debugging method of multi-core processor
CN103218293B (en) A kind of PLC on-line debugging system and method
CN105933173A (en) An automatic test system for an intelligent device in a power system
WO2021027852A1 (en) Train signal system and linkage method therefor
CN105868114A (en) FPGA software system and all module testing system and method thereof
CN110502434A (en) A kind of automatic test approach and device
CN103136078A (en) Multi-interface simulation test system based on C model
CN105486998A (en) Processor board card parameter lossless automatic test method and monitoring host device
CN102681941A (en) Extensible embedded simulation test system
CN103425055A (en) Semi-virtual functional test device and method for control system
CN106802645A (en) A kind of FPGA single particle overturns fault simulation system and method
CN106339553A (en) Method and system for reconstructing flight control of spacecraft
CN116187630A (en) Dynamic debugging system based on reconfigurable production line
CN113919158A (en) Simulation method and device for flight control panel and storage medium
CN105467921A (en) A remote online data update system and method for a soft PLC module
CN106911499A (en) The method and device that a kind of rapid configuration BMC systems are set
CN106407554B (en) Lpc bus emulation verification method and device a kind of while that support slave function
CN103064358B (en) Injection molding machine control system based on Android system
CN104932467A (en) Method for controlling program-controlled equipment in centralized way
CN113075915A (en) Em-plant based virtual simulation implementation method, system and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20141105

WD01 Invention patent application deemed withdrawn after publication