[go: up one dir, main page]

CN102147735B - Interface single board and business logic loading method - Google Patents

Interface single board and business logic loading method Download PDF

Info

Publication number
CN102147735B
CN102147735B CN201010111282.4A CN201010111282A CN102147735B CN 102147735 B CN102147735 B CN 102147735B CN 201010111282 A CN201010111282 A CN 201010111282A CN 102147735 B CN102147735 B CN 102147735B
Authority
CN
China
Prior art keywords
file destination
service logic
logic file
service
place
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.)
Expired - Fee Related
Application number
CN201010111282.4A
Other languages
Chinese (zh)
Other versions
CN102147735A (en
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.)
Jia Youle
Liu Yanrong
Xu Huaqin
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201010111282.4A priority Critical patent/CN102147735B/en
Publication of CN102147735A publication Critical patent/CN102147735A/en
Application granted granted Critical
Publication of CN102147735B publication Critical patent/CN102147735B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

本发明公开了一种接口单板和业务逻辑加载的方法,属于通信技术领域。所述接口单板包括:至少一个接口扣板和加载配置装置。所述方法包括:判断是否存在业务单板的CPU指定的业务逻辑目标文件、历史记录的业务逻辑目标文件是否有效和每个接口扣板是否在位;根据判断结果选择相应的业务逻辑目标文件对本地进行加载配置。本发明通过加载配置装置实现业务逻辑目标文件的选择和加载配置,减少了业务逻辑目标文件选择和加载配置的时间,提高了业务逻辑目标文件选择和加载配置的可靠性。

The invention discloses an interface single board and a method for loading business logic, belonging to the technical field of communication. The interface single board includes: at least one interface sub-board and a loading configuration device. The method includes: judging whether there is a business logic target file specified by the CPU of the business single board, whether the business logic target file of the historical record is valid, and whether each interface sub-board is in place; selecting the corresponding business logic target file pair according to the judgment result Load configuration locally. The invention realizes the selection and loading configuration of the business logic target file through the loading configuration device, reduces the time for selecting and loading the business logic target file, and improves the reliability of the business logic target file selection and loading configuration.

Description

接口单板和业务逻辑加载的方法Method of interface board and business logic loading

技术领域 technical field

本发明涉及通信技术领域,特别涉及一种接口单板和业务逻辑加载的方法。The invention relates to the technical field of communication, in particular to an interface board and a method for loading business logic.

背景技术 Background technique

随着通信技术的发展,通信系统也越来越复杂,同一个通信系统常常需要提供各种各样的接口,目前常用的做法是将可变化的接口做成接口扣板的形式,将接口扣板扣接在接口单板上,这样同一个通信系统只需要更换不同的接口扣板就可以提供不同接口。然而,各式各样的接口扣板采用五花八门的总线接口,有的甚至是某个芯片厂家私有的总线接口,业务单板的CPU(Central ProcessingUnit,中央处理器)不可能同时兼容所有的总线接口形式,因此如何屏蔽掉各种接口扣板的总线接口之间的差异,可以为业务单板的CPU提供一个固定的标准总线接口;而在接口扣板侧,可以根据不同的接口扣板提供不同的总线接口已成为目前研究的重点。With the development of communication technology, the communication system is becoming more and more complex. The same communication system often needs to provide various interfaces. The board is fastened to the interface single board, so that the same communication system can provide different interfaces only by replacing different interface boards. However, various interface boards use a variety of bus interfaces, and some are even proprietary bus interfaces of a certain chip manufacturer. It is impossible for the CPU (Central Processing Unit, central processing unit) of the business board to be compatible with all bus interfaces at the same time. Therefore, how to shield the differences between the bus interfaces of various interface subboards can provide a fixed standard bus interface for the CPU of the service single board; and on the interface subboard side, different interface subboards can be provided according to different interface subboards. The bus interface has become the focus of current research.

现有技术中常用的一种方法,具体如下:在业务单板与接口单板之间增加一用于转换接口逻辑的FPGA(Field Programmable Gate Array,现场可编程门阵列),每次业务单板的CPU根据当前的接口单板上的接口扣板,从存储介质(如FLASH(闪存))中选择相应的业务逻辑目标文件对FPGA进行加载配置,使FPGA拥有相应的业务功能并可以为当前的业务单板提供其所需要的固定的标准总线接口,为当前的接口单板上的接口扣板提供其所需要的总线接口。A method commonly used in the prior art is specifically as follows: an FPGA (Field Programmable Gate Array, Field Programmable Gate Array) for converting interface logic is added between the service single board and the interface single board, and each service single board According to the interface daughter board on the current interface board, the CPU selects the corresponding business logic target file from the storage medium (such as FLASH (flash memory)) to load and configure the FPGA, so that the FPGA has corresponding business functions and can be used for the current The service single board provides the fixed standard bus interface it needs, and provides the required bus interface for the interface daughter board on the current interface single board.

然而,在实现本发明的过程中,发明人发现现有技术至少存在以下问题:However, in the process of realizing the present invention, the inventor finds that the prior art has at least the following problems:

现有技术中通过业务单板的CPU(即通过软件的方式)对FPGA的业务逻辑目标文件进行选择和加载配置,需要的时间较长、可靠性低。In the prior art, it takes a long time and has low reliability to select, load and configure the service logic target file of the FPGA through the CPU of the service single board (that is, through software).

发明内容 Contents of the invention

为了减少选择和加载配置业务逻辑目标文件需要的时间,提高选择和加载配置业务逻辑目标文件的可靠性,本发明实施例提供了一种接口单板和业务逻辑加载的方法。所述技术方案如下:In order to reduce the time required for selecting and loading the configuration service logic target file and improve the reliability of selecting and loading the configuration service logic target file, the embodiment of the present invention provides an interface board and a method for loading the service logic. Described technical scheme is as follows:

一种接口单板,包括:至少一个接口扣板和加载配置装置;An interface single board, comprising: at least one interface sub-board and a loading configuration device;

所述加载配置装置,用于判断是否存在业务单板的CPU指定的业务逻辑目标文件、历史记录的业务逻辑目标文件是否有效和每个所述接口扣板是否在位,根据判断结果选择相应的业务逻辑目标文件对其自身进行加载配置。The loading configuration device is used to judge whether there is a business logic target file specified by the CPU of the service single board, whether the business logic target file of the historical record is valid and whether each of the interface pins is in place, and select the corresponding one according to the judgment result. The business logic target file does its own loading configuration.

一种业务逻辑加载的方法,其特征在于,所述方法包括:A method for loading business logic, characterized in that the method comprises:

判断是否存在业务单板的CPU指定的业务逻辑目标文件、历史记录的业务逻辑目标文件是否有效和每个接口扣板是否在位;Determine whether there is a business logic target file specified by the CPU of the business single board, whether the business logic target file of the historical record is valid, and whether each interface sub-board is in place;

根据判断结果选择相应的业务逻辑目标文件对本地进行加载配置。According to the judgment result, select the corresponding business logic target file to load and configure locally.

本发明实施例提供的技术方案的有益效果是:The beneficial effects of the technical solution provided by the embodiments of the present invention are:

通过加载配置装置(即通过硬件的方式)实现业务逻辑目标文件的选择和加载配置,不需要通过业务单板的CPU进行选择和加载配置,减少了业务逻辑目标文件选择和加载配置的时间,且业务逻辑目标文件的选择和加载配置完全硬件实现,可靠性高。The selection and loading configuration of the business logic target file is realized by loading the configuration device (i.e., by means of hardware), which does not need to be selected and loaded by the CPU of the business single board, which reduces the time for selecting and loading the business logic target file, and The selection and loading configuration of business logic target files are completely realized by hardware, with high reliability.

附图说明 Description of drawings

图1是本发明实施例1提供的一种接口单板的结构示意图;FIG. 1 is a schematic structural diagram of an interface board provided in Embodiment 1 of the present invention;

图2是本发明实施例2提供的一种接口单板的结构示意图;FIG. 2 is a schematic structural diagram of an interface board provided in Embodiment 2 of the present invention;

图3是本发明实施例3提供的一种接口单板的结构示意图;FIG. 3 is a schematic structural diagram of an interface board provided in Embodiment 3 of the present invention;

图4是本发明实施例4提供的一种接口单板的结构示意图;FIG. 4 is a schematic structural diagram of an interface board provided in Embodiment 4 of the present invention;

图5是本发明实施例5提供的一种接口单板的结构示意图;FIG. 5 is a schematic structural diagram of an interface board provided in Embodiment 5 of the present invention;

图6是本发明实施例5提供的另一种接口单板的结构示意图;FIG. 6 is a schematic structural diagram of another interface board provided by Embodiment 5 of the present invention;

图7是本发明实施例6提供的一种业务逻辑加载的方法流程图;FIG. 7 is a flow chart of a method for loading business logic provided by Embodiment 6 of the present invention;

图8是本发明实施例6提供的另一种业务逻辑加载的方法流程图;FIG. 8 is a flowchart of another method for loading business logic provided by Embodiment 6 of the present invention;

图9是本发明实施例7提供的一种业务逻辑加载的方法流程图;FIG. 9 is a flowchart of a method for loading business logic provided by Embodiment 7 of the present invention;

图10是本发明实施例7提供的另一种业务逻辑加载的方法流程图。FIG. 10 is a flow chart of another method for loading business logic provided by Embodiment 7 of the present invention.

具体实施方式 Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

实施例1Example 1

参见图1,本发明实施例提供了一种接口单板10,包括:至少一个接口扣板101和加载配置装置102。Referring to FIG. 1 , an embodiment of the present invention provides an interface board 10 , including: at least one interface subboard 101 and a loading configuration device 102 .

加载配置装置102,用于获取并根据每个接口扣板101的ID,从存储介质中查询得到与每个接口扣板101均匹配的业务逻辑目标文件,选择匹配的业务逻辑目标文件对其自身进行加载配置。The loading configuration device 102 is used to acquire and query the service logic target file matching each interface pinch 101 from the storage medium according to the ID of each interface pinch 101, and select the matching business logic target file for itself to load the configuration.

进一步地,加载配置装置102具体可以包括:配置模式设置为从动加载模式的第一现场可编程门阵列和复杂的可编程逻辑器件,复杂的可编程逻辑器件中设置有具有加载功能的逻辑目标文件;Further, the loading configuration device 102 may specifically include: a first field programmable gate array whose configuration mode is set to a slave loading mode and a complex programmable logic device, and a logic target with a loading function is set in the complex programmable logic device document;

复杂的可编程逻辑器件,用于获取并根据每个接口扣板101的ID,从存储介质中查询得到与每个接口扣板101均匹配的业务逻辑的类型,根据业务逻辑的类型,从存储介质中查询得到业务逻辑的类型对应的业务逻辑目标文件的存储地址,从存储地址中读取业务逻辑目标文件,根据业务逻辑目标文件产生与第一现场可编程门阵列对应的加载配置时序;或The complex programmable logic device is used to obtain and query from the storage medium according to the ID of each interface daughter board 101 to obtain the type of business logic that matches each interface daughter board 101, and according to the type of business logic, from the storage medium Querying the storage address of the business logic target file corresponding to the type of business logic in the medium, reading the business logic target file from the storage address, and generating a loading configuration sequence corresponding to the first field programmable gate array according to the business logic target file; or

加载配置装置102具体可以包括:配置模式设置为从动加载模式的第二现场可编程门阵列和配置模式设置为主动加载模式的第三现场可编程门阵列;The loading configuration device 102 may specifically include: a second field programmable gate array whose configuration mode is set to a slave loading mode and a third field programmable gate array whose configuration mode is set to an active loading mode;

第三现场可编程门阵列,用于在上电时,加载从存储介质中获取的具有加载功能的逻辑目标文件,在加载完具有加载功能的逻辑目标文件后,获取并根据每个接口扣板101的ID,从存储介质中查询得到与每个接口扣板101均匹配的业务逻辑的类型,根据业务逻辑的类型,从存储介质中查询得到业务逻辑的类型对应的业务逻辑目标文件的存储地址,从存储地址中读取业务逻辑目标文件,根据业务逻辑目标文件产生与第二现场可编程门阵列对应的加载配置时序;或The third field programmable gate array is used for loading the logical object file with the loading function obtained from the storage medium when the power is turned on, and after the logical object file with the loading function is loaded, obtain and according to each interface sub-board ID of 101, query from the storage medium to obtain the type of business logic matching each interface daughter board 101, according to the type of business logic, query from the storage medium to obtain the storage address of the business logic target file corresponding to the type of business logic , reading the service logic target file from the storage address, and generating a loading configuration sequence corresponding to the second field programmable gate array according to the service logic target file; or

加载配置装置102具体可以包括:配置模式设置为主动加载模式的第四现场可编程门阵列和总线保持器;The loading configuration device 102 may specifically include: a fourth field programmable gate array and a bus keeper whose configuration mode is set to an active loading mode;

第四现场可编程门阵列,用于在上电时,加载从存储介质中获取的具有加载功能的逻辑目标文件,在加载完具有加载功能的逻辑目标文件后,获取并根据每个接口扣板101的ID,从存储介质中查询得到与每个接口扣板101均匹配的业务逻辑的类型,根据业务逻辑的类型,从存储介质中查询得到与每个接口扣板101均匹配的业务逻辑的类型,根据业务逻辑的类型,从存储介质中查询得到业务逻辑的类型对应的业务逻辑目标文件的存储地址,从存储地址中读取业务逻辑目标文件,根据业务逻辑目标文件产生与其自身对应的加载配置时序;The fourth field programmable gate array is used to load the logical object file with the loading function obtained from the storage medium when the power is turned on, and after the logical object file with the loading function is loaded, obtain and according to each interface daughter board 101 ID, query from the storage medium to obtain the type of business logic that matches each interface daughter board 101, and according to the type of business logic, query from the storage medium to obtain the ID of the business logic that matches each interface daughter board 101 Type, according to the type of business logic, query the storage address of the business logic target file corresponding to the business logic type from the storage medium, read the business logic target file from the storage address, and generate the load corresponding to itself according to the business logic target file Configuration timing;

总线保持器,用于在上电时,为第四现场可编程门阵列提供具有加载功能的逻辑目标文件在存储介质中的存储地址,在第四现场可编程门阵列查询得到业务逻辑目标文件的存储地址后,输出业务逻辑目标文件在存储介质中的存储地址,并在第四现场可编程门阵列读取业务逻辑目标文件的过程中,对存储地址进行保持。The bus holder is used to provide the fourth field programmable gate array with the storage address of the logic target file with loading function in the storage medium when powered on, and obtain the service logic target file by querying the fourth field programmable gate array After the address is stored, the storage address of the service logic target file in the storage medium is output, and the storage address is kept during the process of the fourth field programmable gate array reading the service logic target file.

本发明实施例所述的接口单板,通过加载配置装置(即通过硬件的方式)实现业务逻辑目标文件的选择和加载配置,减少了业务逻辑目标文件选择和加载配置的时间,且业务逻辑目标文件的选择和加载配置完全硬件实现,成本低、可靠性高;而且不需要业务单板的CPU参与,适用于接口和业务处理可以分离的场合,且不占用CPU的GPIO(General Purpose Input/Output,通用输入输出)管脚,不需要额外增加扩充GPIO管脚的机制,降低了对CPU的GPIO管脚的依赖;另外,可以根据当前具体的接口扣板选择和加载配置相应的业务逻辑目标文件,真正实现了“一板多业务”,可减少单板数量,降低生产和维护成本,节省宝贵的背板槽位资源。The interface single board described in the embodiment of the present invention realizes the selection and loading configuration of the business logic target file through the loading configuration device (that is, through hardware), which reduces the time for selecting and loading the business logic target file, and the business logic target file The selection and loading configuration of the file is completely realized by hardware, with low cost and high reliability; it does not require the CPU of the business board to participate, and is suitable for occasions where the interface and business processing can be separated, and does not occupy the GPIO (General Purpose Input/Output) of the CPU. , general-purpose input and output) pins, there is no need to add an additional mechanism to expand GPIO pins, which reduces the dependence on GPIO pins of the CPU; in addition, the corresponding business logic target file can be selected and loaded according to the current specific interface board , and truly realize "one board with multiple services", which can reduce the number of single boards, reduce production and maintenance costs, and save valuable backplane slot resources.

实施例2Example 2

本发明实施例中加载配置装置包括配置模式设置为从动加载模式的第一FPGA和CPLD(Complex Programmable Logic Device,复杂的可编程逻辑器件),参见图2,本发明实施例提供了一种接口单板20,包括:N个接口扣板201、配置模式设置为从动加载模式的第一FPGA202和CPLD203,其中,CPLD203中设置有具有加载功能的逻辑目标文件,N为正整数。In the embodiment of the present invention, the loading configuration device includes the first FPGA and CPLD (Complex Programmable Logic Device, complex programmable logic device) whose configuration mode is set to the slave loading mode. Referring to FIG. 2, the embodiment of the present invention provides an interface The single board 20 includes: N interface daughter boards 201, the first FPGA202 and CPLD203 whose configuration mode is set to the slave loading mode, wherein the CPLD203 is provided with a logic target file with a loading function, and N is a positive integer.

CPLD203,用于获取并根据每个接口扣板201的ID,从存储介质中查询得到与每个接口扣板201均匹配的业务逻辑的类型,根据业务逻辑的类型,从存储介质中查询得到业务逻辑的类型对应的业务逻辑目标文件的存储地址,从存储地址中读取业务逻辑目标文件,根据业务逻辑目标文件产生与第一FPGA202对应的加载配置时序。The CPLD203 is configured to acquire and query the type of service logic matching each interface daughter board 201 from the storage medium according to the ID of each interface daughter board 201, and obtain the service logic type from the storage medium according to the type of service logic. The storage address of the business logic target file corresponding to the logic type, read the business logic target file from the storage address, and generate the loading configuration sequence corresponding to the first FPGA 202 according to the business logic target file.

其中,存储介质可以是FLASH、SSD(Solid State Disk,固态硬盘)等可以存储数据的存储设备。存储介质中存储有每个接口扣板能够适配的所有业务逻辑的类型,以及每个业务逻辑的类型对应的每个业务逻辑目标文件在存储介质中的存储地址等信息。本发明实施例中,每个接口扣板能够适配的所有业务逻辑的类型以列表的形式进行存储,形成接口扣板与业务逻辑配套表,每个业务逻辑的类型对应的每个业务逻辑目标文件在存储介质中的存储地址以列表的形式进行存储,形成业务逻辑与存储介质地址配套表中,即本发明实施例中,存储介质中存储有接口扣板与业务逻辑配套表,以及业务逻辑与存储介质地址配套表。但是需要说明的是,并不限于以列表的形式存储上述信息,实际应用中可以根据具体应用状况选择任何可行的方式,对此不做具体限定。并且,文中其他类似的地方可以采用与此处相同的方法实现,不再一一赘述。Wherein, the storage medium may be a storage device capable of storing data such as FLASH and SSD (Solid State Disk, solid state drive). The storage medium stores all types of business logic that each interface daughter board can adapt to, and information such as the storage address of each business logic target file corresponding to each type of business logic in the storage medium. In the embodiment of the present invention, all types of business logic that can be adapted to each interface pinch board are stored in the form of a list to form a matching table between the interface pinch board and business logic, and each business logic target corresponding to each type of business logic The storage address of the file in the storage medium is stored in the form of a list to form a matching table of business logic and storage medium address. Matching table with the address of the storage medium. However, it should be noted that it is not limited to storing the above information in the form of a list, and any feasible method can be selected according to a specific application situation in actual application, and no specific limitation is set here. In addition, other similar places in this article can be implemented using the same method as here, so we won’t go into details one by one.

当存储介质中存储有接口扣板与业务逻辑配套表,以及业务逻辑与存储介质地址配套表时,CPLD203,具体用于获取并根据每个接口扣板201的ID,查询存储介质中的接口扣板与业务逻辑配套表得到每个接口扣板201对应的业务逻辑的类型,根据业务逻辑的类型,查询存储介质中的业务逻辑与存储介质地址配套表,得到业务逻辑的类型对应的业务逻辑目标文件的存储地址,从存储地址中读取业务逻辑目标文件,根据业务逻辑目标产生与第一FPGA202对应的加载配置时序。When the storage medium stores the matching table of the interface board and the business logic, and the matching table of the business logic and the address of the storage medium, the CPLD203 is specifically used to obtain and query the interface board in the storage medium according to the ID of each interface board 201. Board and business logic matching table to obtain the type of business logic corresponding to each interface sub-board 201, according to the type of business logic, query the matching table of business logic and storage medium address in the storage medium, and obtain the business logic target corresponding to the type of business logic The storage address of the file, the business logic target file is read from the storage address, and the loading configuration sequence corresponding to the first FPGA 202 is generated according to the business logic target.

为了便于更好地理解本发明实施例,下面以存储介质采用FALSH,存储介质中存储有接口扣板与业务逻辑配套表,以及业务逻辑与存储介质地址配套表为例进行进一步地说明:In order to better understand the embodiment of the present invention, the following uses FALSH as the storage medium, and the storage medium stores the matching table of the interface board and the business logic, and the matching table of the business logic and the storage medium address as an example for further description:

具体地,接口扣板与业务逻辑配套表存储在FALSH的低位地址空间,以接口扣板的ID作为FLASH地址线某些位(比如地址bit[13:8]共六位),0地址偏移空间存放接口扣板的ID(以作校验机制使用),后续每个地址空间依次存储该接口扣板能够适配的业务逻辑的类型,当将该接口扣板能够适配的所有业务逻辑的类型存储完毕后,以0xFF作为接口扣板与业务逻辑配套表结束符。业务逻辑与存储介质地址配套表存储在FALSH的低位地址空间,以业务逻辑的类型ID作为FLASH地址线某些位(比如地址bit[9:3]共七位),0地址偏移空间存放业务逻辑的类型ID(以作校验机制使用),后续4个字节地址空间存储该业务逻辑的类型在FALSH中的存储地址,并用0xFFFFFFF表示非法地址值。相应地CPLD的查询过程如下:CPLD获取接口扣板的ID,以接口扣板的ID(不包括ID校验位)以及该接口扣板与业务逻辑配套表所在区域的基地址组成FLASH搜索起始地址,比如Addr[26:14]=0;Addr[13:8]=ID[5:0],而地址位bit[7:0]为搜索每个“接口扣板与业务逻辑的配套表”的内部指针,CPLD每一次读一Byte(字节)数据进来,去掉奇偶校验位最高位bit7后(bit7用于对业务逻辑的类型的完整性进行校验),与选择到的需要加载配置的匹配的业务逻辑的类型进行对比,如果是需要的业务逻辑的类型则启动“业务逻辑与存储介质地址配套表”的查询,如果不是需要的业务逻辑的类型,则地址加一,继续与下一个业务逻辑的类型进行对比,直到查询到需要的业务逻辑的类型或遇到接口扣板与业务逻辑配套表结束符为止。启动查询“业务逻辑与存储介质地址配套表”得到业务逻辑目标文件在FLASH中的存储地址后,读取并加载配置该业务逻辑目标文件。需要说明的是,文中其他类似的地方可以采用与此处相同的方法实现,不再一一赘述。并且,并不限于此处所述的方法,可以根据实际应用状况采用其他任何可行的方法实现。Specifically, the matching table of the interface daughter board and business logic is stored in the low address space of FALSH, and the ID of the interface daughter board is used as some bits of the FLASH address line (for example, the address bits[13:8] have six bits in total), and the address offset of 0 The space stores the ID of the interface daughter board (used as a verification mechanism), and each subsequent address space sequentially stores the type of business logic that the interface daughter board can adapt to. After the type is stored, 0xFF is used as the end character of the matching table of the interface daughter board and business logic. The matching table of business logic and storage medium address is stored in the low-order address space of FALSH, and the type ID of business logic is used as some bits of the FLASH address line (such as address bits[9:3], a total of seven bits), and the address offset space of 0 is used to store business Logical type ID (used as a verification mechanism), the subsequent 4 bytes of address space store the storage address of the type of business logic in FALSH, and use 0xFFFFFFF to indicate an illegal address value. Correspondingly, the query process of CPLD is as follows: CPLD obtains the ID of the interface sub-board, and uses the ID of the interface sub-board (excluding the ID check digit) and the base address of the area where the interface sub-board and the business logic matching table are located to form the FLASH search start Addresses, such as Addr[26:14]=0; Addr[13:8]=ID[5:0], and the address bit[7:0] is to search for each "matching table of interface daughter board and business logic" The internal pointer of the CPLD reads a Byte (byte) of data each time, removes the highest bit bit7 of the parity bit (bit7 is used to check the integrity of the type of business logic), and selects the configuration that needs to be loaded Compare the matching business logic type, if it is the required business logic type, start the query of "business logic and storage medium address matching table", if it is not the required business logic type, add one to the address, and continue with the following A type of business logic is compared until the required type of business logic is queried or the end character of the supporting table of the interface board and business logic is encountered. After starting to query the "business logic and storage medium address matching table" to obtain the storage address of the business logic target file in FLASH, read and load and configure the business logic target file. It should be noted that other similar places in this article can be implemented using the same method as here, and details will not be repeated here. Moreover, it is not limited to the method described here, and any other feasible method may be adopted according to actual application conditions.

本发明实施例所述的接口单板,通过CPLD实现业务逻辑目标文件的选择和加载配置,减少了业务逻辑目标文件选择和加载配置的时间,且业务逻辑目标文件的选择和加载配置完全硬件实现,成本低、可靠性高;而且不需要业务单板的CPU参与,适用于接口和业务处理可以分离的场合,且不占用CPU的GPIO管脚,不需要额外增加扩充GPIO管脚的机制,降低了对CPU的GPIO管脚的依赖;进一步地,可以根据当前具体的接口扣板选择和加载配置相应的业务逻辑目标文件,真正实现了“一板多业务”,可减少单板数量,降低生产和维护成本,节省宝贵的背板槽位资源;另外,业务逻辑目标文件的选择和加载配置独立于业务单板的CPU,接口扣板与业务逻辑配套表和业务逻辑与存储介质地址配套表随存储介质自带,提供了灵活的业务扩充和良好的软硬件解耦能力。The interface single board described in the embodiment of the present invention realizes the selection and loading configuration of the business logic target file through CPLD, which reduces the time for selecting and loading the business logic target file, and the selection and loading configuration of the business logic target file are completely realized by hardware , low cost, high reliability; and does not require the participation of the CPU of the business board, it is suitable for occasions where the interface and business processing can be separated, and does not occupy the GPIO pins of the CPU, and does not need an additional mechanism to expand the GPIO pins, reducing The dependence on the GPIO pins of the CPU is eliminated; furthermore, the corresponding business logic target file can be selected and loaded according to the current specific interface board, which truly realizes "one board with multiple services", which can reduce the number of boards and production and maintenance costs, saving valuable backplane slot resources; in addition, the selection and loading configuration of business logic target files are independent of the CPU of the service board, and the matching table of interface daughter board and business logic and the matching table of business logic and storage medium address are The built-in storage medium provides flexible service expansion and good software and hardware decoupling capabilities.

实施例3Example 3

本发明实施例中加载配置装置包括配置模式设置为从动加载模式的第二FPGA和配置模式设置为主动加载模式的第三FPGA,参见图3,本发明实施例提供了一种接口单板30,包括:N个接口扣板301、配置模式设置为从动加载模式的第二FPGA302和配置模式设置为主动加载模式的第三FPGA303,其中,N为正整数。In the embodiment of the present invention, the loading configuration device includes a second FPGA whose configuration mode is set to the slave loading mode and a third FPGA whose configuration mode is set to the active loading mode. Referring to FIG. 3 , the embodiment of the present invention provides an interface single board 30 , including: N interface daughter boards 301, a second FPGA 302 whose configuration mode is set to slave loading mode, and a third FPGA 303 whose configuration mode is set to active loading mode, where N is a positive integer.

第三FPGA303,用于在上电时,加载从存储介质中获取的具有加载功能的逻辑目标文件,在加载完具有加载功能的逻辑目标文件后,获取并根据每个接口扣板301的ID,从存储介质中查询得到与每个接口扣板301均匹配的业务逻辑的类型,根据业务逻辑的类型,从存储介质中查询得到业务逻辑的类型对应的业务逻辑目标文件的存储地址,从存储地址中读取业务逻辑目标文件,根据业务逻辑目标文件产生与第二FPGA302对应的加载配置时序。The third FPGA303 is used to load the logical target file with the loading function obtained from the storage medium when powered on, after the logical target file with the loading function is loaded, obtain and according to the ID of each interface daughter board 301, Query from the storage medium to obtain the type of business logic that matches each interface daughter board 301. According to the type of business logic, query from the storage medium to obtain the storage address of the business logic target file corresponding to the type of business logic. From the storage address The business logic target file is read in the middle, and the loading configuration sequence corresponding to the second FPGA 302 is generated according to the business logic target file.

需要说明的是,第三FPGA303的配置模式设置为主动加载模式,即第三FPGA303做配置MASTER(主动),第三FPGA303在上电时主动从存储介质的固定区域选择得到具有加载功能的逻辑目标文件,加载具有加载功能的逻辑目标文件,在加载完成后,即具有与实例2中的CPLD203一致的功能,而实例2中的CPLD203中设置有具有加载功能的逻辑目标文件,并在掉电后不会丢失,因此上电时也不需要重新加载。其他实施过程与实施例2类似,此处不再一一进行赘述。It should be noted that the configuration mode of the third FPGA303 is set to the active loading mode, that is, the third FPGA303 is configured as a master (active), and the third FPGA303 actively selects a logical target with a loading function from a fixed area of the storage medium when powered on file, load the logical target file with the loading function, after the loading is completed, it has the same function as the CPLD203 in the example 2, and the logical target file with the loading function is set in the CPLD203 in the example 2, and after power-off will not be lost, so there is no need to reload on power-up. Other implementation processes are similar to Embodiment 2, and will not be described here one by one.

本发明实施例所述的接口单板,通过第三FPGA实现业务逻辑目标文件的选择和加载配置,减少了业务逻辑目标文件选择和加载配置的时间,且业务逻辑目标文件的选择和加载配置完全硬件实现,成本低、可靠性高;而且不需要业务单板的CPU参与,适用于接口和业务处理可以分离的场合,且不占用CPU的GPIO管脚,不需要额外增加扩充GPIO管脚的机制,降低了对CPU的GPIO管脚的依赖;进一步地,可以根据当前具体的接口扣板选择和加载配置相应的业务逻辑目标文件,真正实现了“一板多业务”,可减少单板数量,降低生产和维护成本,节省宝贵的背板槽位资源;进一步地,业务逻辑目标文件的选择和加载配置独立于业务单板的CPU,接口扣板与业务逻辑配套表和业务逻辑与存储介质地址配套表随存储介质自带,提供了灵活的业务扩充和良好的软硬件解耦能力。另外,FPGA资源比CPLD丰富,可使得业务逻辑目标文件的选择和加载配置更加智能,业务逻辑目标文件的选择和加载配置速度更快,可进一步减少业务逻辑目标文件选择和加载配置的时间。The interface single board described in the embodiment of the present invention realizes the selection and loading configuration of the business logic target file through the third FPGA, which reduces the time for selecting and loading the business logic target file, and the selection and loading configuration of the business logic target file are completely Hardware implementation, low cost, high reliability; and does not require the participation of the CPU of the business board, suitable for occasions where the interface and business processing can be separated, and does not occupy the GPIO pins of the CPU, and does not require an additional mechanism to expand the GPIO pins , which reduces the dependence on the GPIO pins of the CPU; furthermore, the corresponding business logic target file can be selected and loaded according to the current specific interface sub-board, which truly realizes "one board with multiple services" and can reduce the number of single boards. Reduce production and maintenance costs, save valuable backplane slot resources; further, the selection and loading configuration of business logic target files are independent of the CPU of the business single board, the supporting table of interface daughter board and business logic, and the address of business logic and storage media The matching table comes with the storage medium, providing flexible service expansion and good software and hardware decoupling capabilities. In addition, FPGA resources are richer than CPLDs, which can make the selection and loading configuration of business logic target files more intelligent, and the selection and loading configuration of business logic target files are faster, which can further reduce the time for business logic target file selection and loading configuration.

实施例4Example 4

本发明实施例中加载配置装置包括配置模式设置为主动加载模式的第四FPGA和总线保持器,参见图4,本发明实施例提供了一种接口单板40,包括:N个接口扣板401、配置模式设置为主动加载模式的第四FPGA402和总线保持器403,其中,N为正整数。In the embodiment of the present invention, the loading configuration device includes a fourth FPGA and a bus holder whose configuration mode is set to active loading mode. Referring to FIG. . The fourth FPGA 402 and the bus holder 403 whose configuration mode is set to active loading mode, wherein, N is a positive integer.

第四FPGA402,用于在上电时,加载从存储介质中获取的具有加载功能的逻辑目标文件,在加载完具有加载功能的逻辑目标文件后,获取并根据每个接口扣板401的ID,从存储介质中查询得到与每个接口扣板401均匹配的业务逻辑的类型,根据业务逻辑的类型,从存储介质中查询得到与每个接口扣板401均匹配的业务逻辑的类型,根据业务逻辑的类型,从存储介质中查询得到业务逻辑的类型对应的业务逻辑目标文件的存储地址,从存储地址中读取业务逻辑目标文件,根据业务逻辑目标文件产生与其自身对应的加载配置时序。The fourth FPGA402 is used to load the logical target file with the loading function obtained from the storage medium when powered on, after the logical target file with the loading function is loaded, obtain and according to the ID of each interface daughter board 401, Query the type of business logic that matches each interface daughter board 401 from the storage medium, and obtain the type of business logic that matches each interface daughter board 401 from the storage medium according to the type of business logic. For the type of logic, query the storage medium to obtain the storage address of the business logic target file corresponding to the business logic type, read the business logic target file from the storage address, and generate the corresponding loading configuration sequence according to the business logic target file.

总线保持器403,用于在上电时,为第四现场可编程门阵列提供具有加载功能的逻辑目标文件在存储介质中的存储地址,在第四现场可编程门阵列查询得到业务逻辑目标文件的存储地址后,输出业务逻辑目标文件在存储介质中的存储地址,并在第四现场可编程门阵列读取业务逻辑目标文件的过程中,对存储地址进行保持。The bus holder 403 is used to provide the fourth field programmable gate array with the storage address of the logical target file with loading function in the storage medium when powered on, and query the fourth field programmable gate array to obtain the business logic target file After the storage address of the service logic target file is output, the storage address of the service logic target file in the storage medium is output, and the storage address is kept during the process of the fourth field programmable gate array reading the service logic target file.

具体地,在上电时,总线保持器403的与存储介质相连的输出管脚均输出高阻状态,通过总线保持器403的与该些输出管脚相连的上下拉电阻选择到具有加载功能的逻辑目标文件在存储介质中的存储地址,从而第四FPGA402可以在上电时,主动从该存储地址中加载具有加载功能的逻辑目标文件,在加载完成后,即具有与实例2中的CPLD203一致的功能,但是由于本发明实施例只有一个第四FPGA402,因此当第四FPGA402从存储介质中查询得到与每个接口扣板401匹配的业务逻辑目标文件在存储介质中的存储地址后,总线保持器403的与存储介质相连的输出管脚输出该存储地址,并在第四现场可编程门阵列读取该业务逻辑目标文件的过程中,对该存储地址进行保持,从而使得第四FPGA402可以从该匹配的业务逻辑对应的目标文件在存储介质中的存储地址中加载配置该匹配的业务逻辑目标文件。并且,需要说明的是,可以根据实际应用状况选择使用总线保持器403的几个管脚与存储介质的几个地址线相连,并且为了便于实现一般选择总线保持器403的输出管脚与存储介质的高位地址线相连。Specifically, when power is turned on, the output pins connected to the storage medium of the bus keeper 403 all output a high-impedance state, and the output pins connected to these output pins of the bus keeper 403 are selected to have a loading function. The storage address of the logical target file in the storage medium, so that the fourth FPGA402 can actively load the logical target file with the loading function from the storage address when it is powered on. After the loading is completed, it has the same value as the CPLD203 in Example 2 function, but since the embodiment of the present invention has only one fourth FPGA402, after the fourth FPGA402 inquires from the storage medium to obtain the storage address in the storage medium of the business logic target file matching each interface daughter board 401, the bus remains The output pin connected to the storage medium of the device 403 outputs the storage address, and in the process of the fourth field programmable gate array reading the business logic target file, the storage address is kept, so that the fourth FPGA402 can read from The target file corresponding to the matching business logic is loaded into the storage address in the storage medium to configure the matching business logic target file. Moreover, it should be noted that several pins of the bus holder 403 can be selected to be connected to several address lines of the storage medium according to actual application conditions, and in order to facilitate realization, the output pins of the bus holder 403 are generally selected to be connected to the storage medium. The upper address line is connected.

本发明实施例所述的接口单板,通过第四FPGA实现业务逻辑目标文件的选择和加载配置,减少了业务逻辑目标文件选择和加载配置的时间,且业务逻辑目标文件的选择和加载配置完全硬件实现,成本低、可靠性高;而且不需要业务单板的CPU参与,适用于接口和业务处理可以分离的场合,且不占用CPU的GPIO管脚,不需要额外增加扩充GPIO管脚的机制,降低了对CPU的GPIO管脚的依赖;进一步地,可以根据当前具体的接口扣板选择和加载配置相应的业务逻辑目标文件,真正实现了“一板多业务”,可减少单板数量,降低生产和维护成本,节省宝贵的背板槽位资源;进一步地,业务逻辑目标文件的选择和加载配置独立于业务单板的CPU,接口扣板与业务逻辑配套表和业务逻辑与存储介质地址配套表随存储介质自带,提供了灵活的业务扩充和良好的软硬件解耦能力。另外,通过总线保持器和第四FPGA即可以实现业务逻辑目标文件的选择和加载配置,不用单独增加加载配置装置,可节省成本,且便于布局空间。The interface single board described in the embodiment of the present invention realizes the selection and loading configuration of the business logic target file through the fourth FPGA, which reduces the time for selecting and loading the business logic target file, and the selection and loading configuration of the business logic target file are completely Hardware implementation, low cost, high reliability; and does not require the participation of the CPU of the business board, suitable for occasions where the interface and business processing can be separated, and does not occupy the GPIO pins of the CPU, and does not require an additional mechanism to expand the GPIO pins , which reduces the dependence on the GPIO pins of the CPU; furthermore, the corresponding business logic target file can be selected and loaded according to the current specific interface sub-board, which truly realizes "one board with multiple services" and can reduce the number of single boards. Reduce production and maintenance costs, save valuable backplane slot resources; further, the selection and loading configuration of business logic target files are independent of the CPU of the business single board, the supporting table of interface daughter board and business logic, and the address of business logic and storage media The matching table comes with the storage medium, providing flexible service expansion and good software and hardware decoupling capabilities. In addition, the selection and loading configuration of the business logic target file can be realized through the bus holder and the fourth FPGA, without adding a separate loading configuration device, which can save costs and facilitate layout space.

实施例5Example 5

参见图5,本发明实施例提供了一种接口单板50,包括:N个接口扣板501和加载配置装置502,其中,N为正整数。Referring to FIG. 5 , an embodiment of the present invention provides an interface board 50 , including: N interface daughter boards 501 and a loading configuration device 502 , where N is a positive integer.

加载配置装置502,用于判断是否存在业务单板的CPU指定的业务逻辑目标文件、历史记录的业务逻辑目标文件是否有效和每个接口扣板501是否在位,根据判断结果选择相应的业务逻辑目标文件对其自身进行加载配置。The loading configuration device 502 is used to judge whether there is a business logic target file specified by the CPU of the service single board, whether the business logic target file of the historical record is valid, and whether each interface sub-board 501 is in place, and select the corresponding business logic according to the judgment result The object file configures itself for loading.

进一步地,加载配置装置502具体可以包括:配置模式设置为从动加载模式的第一FPGA和可编程逻辑器件。Further, the loading and configuring device 502 may specifically include: a first FPGA and a programmable logic device whose configuration mode is set to a slave loading mode.

可编程逻辑器件具体可以包括:Programmable logic devices can specifically include:

第一加载指定业务逻辑模块,用于当存在业务单板的CPU指定的业务逻辑目标文件,至少有一个接口扣板501在位,且指定的业务逻辑目标文件与在位的每个接口扣板501均匹配时,选择指定的业务逻辑目标文件对第一FPGA进行加载配置;或The first loading specified business logic module is used for when there is a business logic target file specified by the CPU of the service single board, at least one interface sub-board 501 is in place, and the specified business logic target file is consistent with each interface sub-board in place When all 501 match, select the specified business logic target file to load and configure the first FPGA; or

第一加载历史记录业务逻辑模块,用于当不存在业务单板的CPU指定的业务逻辑目标文件,历史记录的业务逻辑目标文件有效,至少有一个接口扣板501在位,且历史记录的业务逻辑目标文件与在位的每个接口扣板501均匹配时,选择历史记录的业务逻辑目标文件对第一FPGA进行加载配置;或The first loading history record business logic module is used for when there is no business logic target file specified by the CPU of the service single board, the business logic target file of the historical record is valid, at least one interface daughter board 501 is in place, and the business logic target file of the historical record When the logic target file matches each interface daughter board 501 in place, select the business logic target file of the historical record to load and configure the first FPGA; or

第一加载默认业务逻辑模块,用于当不存在业务单板的CPU指定的业务逻辑目标文件,历史记录的业务逻辑目标文件无效,且每个接口扣板501均不在位时,选择默认的业务逻辑目标文件对第一FPGA进行加载配置;或First load the default business logic module, which is used to select the default business when there is no business logic target file specified by the CPU of the business single board, the business logic target file of the history record is invalid, and each interface daughter board 501 is not in place The logic target file loads and configures the first FPGA; or

第一加载匹配业务逻辑模块,用于当存在业务单板的CPU指定的业务逻辑目标文件,至少有一个接口扣板501在位,且指定的业务逻辑目标文件与在位的接口扣板501中的至少一个不匹配时,从存储介质中查询得到与在位的每个接口扣板501均匹配的业务逻辑目标文件,选择匹配的业务逻辑目标文件对第一FPGA进行加载配置;或The first loading and matching business logic module is used for when there is a service logic target file specified by the CPU of the service single board, at least one interface daughter board 501 is in place, and the specified business logic target file is in place with the interface daughter board 501 in place When at least one of the two does not match, query from the storage medium to obtain a business logic target file that matches each interface daughter board 501 in place, and select the matching business logic target file to load and configure the first FPGA; or

第二加载匹配业务逻辑模块,用于当不存在业务单板的CPU指定的业务逻辑目标文件,历史记录的业务逻辑目标文件有效,至少有一个接口扣板501在位,且历史记录的业务逻辑目标文件与在位的接口扣板501中的至少一个不匹配时,从存储介质中查询得到与在位的每个接口扣板501均匹配的业务逻辑目标文件,选择匹配的业务逻辑目标文件对第一FPGA进行加载配置;或The second loading and matching business logic module is used for when there is no business logic target file specified by the CPU of the business single board, the business logic target file of the historical record is valid, at least one interface daughter board 501 is in place, and the business logic of the historical record When the target file does not match at least one of the existing interface daughter boards 501, query the storage medium to obtain a business logic target file that matches each of the existing interface daughter boards 501, and select the matching business logic target file pair the first FPGA to load the configuration; or

第三加载匹配业务逻辑模块,用于当不存在业务单板的CPU指定的业务逻辑目标文件,历史记录的业务逻辑目标文件无效,且至少有一个接口扣板501在位时,从存储介质中查询得到与在位的每个接口扣板501均匹配的业务逻辑目标文件,选择匹配的业务逻辑目标文件对第一FPGA进行加载配置。The third loading matching business logic module is used for when there is no business logic target file specified by the CPU of the business single board, the business logic target file of the historical record is invalid, and at least one interface daughter board 501 is in place, from the storage medium Query to obtain the business logic target file matching each interface daughter board 501 in place, and select the matching business logic target file to load and configure the first FPGA.

第一FPGA,用于在加载配置完相应的业务逻辑目标文件后,执行与加载配置的业务逻辑目标文件相应的业务。The first FPGA is configured to execute the service corresponding to the loaded and configured service logic target file after the corresponding service logic target file is loaded and configured.

进一步地,可编程逻辑器件具体为CPLD,CPLD中设置有具有加载功能的逻辑目标文;或Further, the programmable logic device is specifically a CPLD, and the CPLD is provided with a logic object file with a loading function; or

可编程逻辑器件具体为配置模式设置为主动加载模式的第二FPGA,第二FPGA在上电时,加载从存储介质中获取的具有加载功能的逻辑目标文件。The programmable logic device is specifically a second FPGA whose configuration mode is set to an active loading mode. When the second FPGA is powered on, it loads a logical object file with a loading function obtained from a storage medium.

进一步地,第一加载指定业务逻辑模块,还用于当存在业务单板的CPU指定的业务逻辑目标文件,且每个接口扣板501均不在位时,选择指定的业务逻辑目标文件对第一FPGA进行加载配置;Further, the first loading specified business logic module is also used to select the specified business logic target file for the first FPGA for loading configuration;

进一步地,第一加载历史记录业务逻辑模块,还用于当不存在业务单板的CPU指定的业务逻辑目标文件,历史记录的业务逻辑目标文件有效,且接口扣板501均不在位时,选择历史记录的业务逻辑目标文件对第一FPGA进行加载配置。Further, the first loading history record business logic module is also used to select when there is no business logic target file specified by the CPU of the service single board, the business logic target file of the historical record is valid, and the interface daughter board 501 is not in place. The business logic target file of historical records is loaded and configured for the first FPGA.

进一步地,加载配置装置502具体可以包括:配置模式设置为主动加载模式的第三FPGA和总线保持器。Further, the loading configuration device 502 may specifically include: a third FPGA whose configuration mode is set to an active loading mode and a bus holder.

第三FPGA在上电时,加载从存储介质中获取的具有加载功能的逻辑目标文件,第三FPGA具体可以包括:When the third FPGA is powered on, it loads the logical target file with loading function obtained from the storage medium, and the third FPGA may specifically include:

第二加载指定业务逻辑模块,用于当存在业务单板的CPU指定的业务逻辑目标文件,至少有一个接口扣板501在位,且指定的业务逻辑目标文件与在位的每个接口扣板501均匹配时,选择指定的业务逻辑目标文件对第三FPGA进行加载配置;或The second loads the specified business logic module, which is used for when there is a business logic target file specified by the CPU of the service single board, at least one interface sub-board 501 is in place, and the specified business logic target file is consistent with each interface sub-board in place When both 501 and 501 match, select the specified business logic target file to load and configure the third FPGA; or

第二加载历史记录业务逻辑模块,用于当不存在业务单板的CPU指定的业务逻辑目标文件,历史记录的业务逻辑目标文件有效,至少有一个接口扣板501在位,且历史记录的业务逻辑目标文件与在位的每个接口扣板501均匹配时,选择历史记录的业务逻辑目标文件对第三FPGA进行加载配置;或The second loading history record business logic module is used for when there is no business logic target file specified by the CPU of the business single board, the business logic target file of the historical record is valid, at least one interface daughter board 501 is in place, and the business logic target file of the historical record When the logic target file matches each interface daughter board 501 in place, select the business logic target file of the historical record to load and configure the third FPGA; or

第二加载默认业务逻辑模块,用于当不存在业务单板的CPU指定的业务逻辑目标文件,历史记录的业务逻辑目标文件无效,且每个接口扣板501均不在位时,选择默认的业务逻辑目标文件对第三FPGA进行加载配置;或The second loads the default business logic module, which is used to select the default business when there is no business logic target file specified by the CPU of the business single board, the business logic target file of the historical record is invalid, and each interface daughter board 501 is not in place The logic object file loads and configures the third FPGA; or

第四加载匹配业务逻辑模块,用于当存在业务单板的CPU指定的业务逻辑目标文件,至少有一个接口扣板501在位,且指定的业务逻辑目标文件与在位的接口扣板501中的至少一个不匹配时,从存储介质中查询得到与在位的每个接口扣板501均匹配的业务逻辑目标文件,选择匹配的业务逻辑目标文件对第三FPGA进行加载配置;或The fourth loading and matching business logic module is used for when there is a business logic target file specified by the CPU of the service single board, at least one interface daughter board 501 is in place, and the specified business logic target file is in place with the existing interface daughter board 501 When at least one of the two does not match, query from the storage medium to obtain a business logic target file that matches each of the existing interface daughter boards 501, and select the matching business logic target file to load and configure the third FPGA; or

第五加载匹配业务逻辑模块,用于当不存在业务单板的CPU指定的业务逻辑目标文件,历史记录的业务逻辑目标文件有效,至少有一个接口扣板501在位,且历史记录的业务逻辑目标文件与在位的接口扣板501中的至少一个不匹配时,从存储介质中查询得到与在位的每个接口扣板501均匹配的业务逻辑目标文件,选择匹配的业务逻辑目标文件对第三FPGA进行加载配置;或The fifth loading and matching business logic module is used for when there is no business logic target file specified by the CPU of the business single board, the business logic target file of the historical record is valid, at least one interface daughter board 501 is in place, and the business logic target file of the historical record When the target file does not match at least one of the existing interface daughter boards 501, query the storage medium to obtain a business logic target file that matches each of the existing interface daughter boards 501, and select the matching business logic target file pair a third FPGA for loading configuration; or

第六加载匹配业务逻辑模块,用于当不存在业务单板的CPU指定的业务逻辑目标文件,历史记录的业务逻辑目标文件无效,且至少有一个接口扣板501在位时,从存储介质中查询得到与在位的每个接口扣板501均匹配的业务逻辑目标文件,选择匹配的业务逻辑目标文件对第三FPGA进行加载配置。The sixth loading and matching business logic module is used for when there is no business logic target file specified by the CPU of the business single board, the business logic target file of the historical record is invalid, and at least one interface daughter board 501 is in place, from the storage medium Query to obtain the business logic target file matching each interface daughter board 501 in place, and select the matching business logic target file to load and configure the third FPGA.

第三FPGA在加载配置完相应的业务逻辑目标文件后,就执行与加载配置的业务逻辑目标文件相应的业务。After loading and configuring the corresponding service logic target file, the third FPGA executes the service corresponding to the loaded and configured service logic target file.

进一步地,第二加载指定业务逻辑模块,还用于当存在业务单板的CPU指定的业务逻辑目标文件,且每个接口扣板501均不在位时,选择指定的业务逻辑目标文件对第三FPGA进行加载配置;Further, the second loading specified business logic module is also used to select the specified business logic target file for the third FPGA for loading configuration;

进一步地,第二加载历史记录业务逻辑模块,还用于当不存在业务单板的CPU指定的业务逻辑目标文件,历史记录的业务逻辑目标文件有效,且接口扣板501均不在位时,选择历史记录的业务逻辑目标文件对第三FPGA进行加载配置。Further, the second loading history record service logic module is also used to select when there is no service logic target file specified by the CPU of the service single board, the service logic target file of the historical record is valid, and the interface daughter board 501 is not in place. The business logic target file of the historical record is loaded and configured to the third FPGA.

进一步地,参见图6,接口单板50还包括:Further, referring to FIG. 6, the interface board 50 also includes:

通知装置503,用于在加载配置装置502加载配置完相应的业务逻辑目标文件后,接收业务单板的CPU发送的进行业务逻辑目标文件切换的指示,并当指示切换的业务逻辑目标文件与每个接口扣板501均匹配,且指示切换的业务逻辑目标文件存在时,通知业务单板的CPU进行热插拔。The notification device 503 is used to receive the instruction to switch the service logic target file sent by the CPU of the service single board after the load configuration device 502 loads and configures the corresponding service logic target file, and when the service logic target file for the instruction switch is consistent with each When all interface daughter boards 501 match and the service logic target file indicating switching exists, the CPU of the service board is notified to perform hot swapping.

需要说明的是,通知装置503可以是独立于加载配置装置502单独设置的一个设备,也可以是与加载配置装置502设置为一个设备,可以根据实际应用状况进行灵活设置,对此不做具体限定。It should be noted that the notification device 503 can be a device that is set independently from the loading configuration device 502, or can be set as a device with the loading configuration device 502, and can be flexibly set according to actual application conditions, without specific limitations. .

本发明实施例所述的接口单板,通过加载配置装置(即通过硬件的方式)实现业务逻辑目标文件的选择和加载配置,减少了业务逻辑目标文件选择和加载配置的时间,且业务逻辑目标文件的选择和加载配置完全硬件实现,成本低、可靠性高;而且不需要业务单板的CPU参与,适用于接口和业务处理可以分离的场合,且不占用CPU的GPIO管脚,不需要额外增加扩充GPIO管脚的机制,降低了对CPU的GPIO管脚的依赖;进一步地,可以根据当前具体的接口扣板选择和加载配置相应的业务逻辑目标文件,真正实现了“一板多业务”,可减少单板数量,降低生产和维护成本,节省宝贵的背板槽位资源;另外,可以根据是否存在业务单板的CPU指定的业务逻辑目标文件,历史记录的业务逻辑目标文件是否有效和每个接口扣板是否在位,选择和加载配置相应的业务逻辑目标文件,使得整个过程更加智能,可以更好地实现选择和加载配置业务逻辑目标文件。The interface single board described in the embodiment of the present invention realizes the selection and loading configuration of the business logic target file through the loading configuration device (that is, through hardware), which reduces the time for selecting and loading the business logic target file, and the business logic target file The selection and loading configuration of the file is completely realized by hardware, with low cost and high reliability; it does not require the participation of the CPU of the business board, and is suitable for occasions where the interface and business processing can be separated, and does not occupy the GPIO pins of the CPU, and does not require additional The mechanism for expanding GPIO pins is added to reduce the dependence on GPIO pins of the CPU; furthermore, the corresponding business logic target files can be selected, loaded and configured according to the current specific interface board, truly realizing "one board with multiple services" , can reduce the number of boards, reduce production and maintenance costs, and save valuable backplane slot resources; in addition, according to whether there is a business logic target file specified by the CPU of the business board, whether the historically recorded business logic target file is valid and Whether each interface daughter board is in place, select and load and configure the corresponding business logic target file, which makes the whole process more intelligent, and can better realize the selection and loading of the configuration business logic target file.

实施例6Example 6

参见图7,本发明实施例提供了一种业务逻辑加载的方法,包括:Referring to Figure 7, an embodiment of the present invention provides a method for loading business logic, including:

601:判断是否存在业务单板的CPU指定的业务逻辑目标文件、历史记录的业务逻辑目标文件是否有效和每个接口扣板是否在位。601: Judging whether there is a service logic target file specified by the CPU of the service single board, whether the service logic target file of the historical record is valid, and whether each interface daughter board is in place.

602:根据判断结果选择相应的业务逻辑目标文件对本地进行加载配置。602: Select the corresponding service logic target file according to the judgment result to load and configure locally.

进一步地,根据判断结果选择相应的业务逻辑目标文件对本地进行加载配置,具体可以包括:Further, according to the judgment result, the corresponding business logic target file is selected to load and configure locally, which may specifically include:

当存在业务单板的CPU指定的业务逻辑目标文件,至少有一个接口扣板在位,且指定的业务逻辑目标文件与在位的每个接口扣板均匹配时,选择指定的业务逻辑目标文件对本地进行加载配置;或When there is a service logic target file specified by the CPU of the service board, at least one interface subboard is in place, and the specified service logic target file matches each interface subboard in place, select the specified service logic target file Load configuration locally; or

当不存在业务单板的CPU指定的业务逻辑目标文件,历史记录的业务逻辑目标文件有效,至少有一个接口扣板在位,且历史记录的业务逻辑目标文件与在位的每个接口扣板均匹配时,选择历史记录的业务逻辑目标文件对本地进行加载配置;或When there is no business logic target file specified by the CPU of the service board, the historically recorded business logic target file is valid, at least one interface daughter board is in place, and the historically recorded business logic target file is consistent with each existing interface daughter board When both match, select the business logic target file of the historical record to load and configure locally; or

当不存在业务单板的CPU指定的业务逻辑目标文件,历史记录的业务逻辑目标文件无效,且每个接口扣板均不在位时,选择默认的业务逻辑目标文件对本地进行加载配置;或When there is no business logic target file specified by the CPU of the service board, the business logic target file in the history is invalid, and each interface daughter board is not in place, select the default business logic target file to load and configure locally; or

当存在业务单板的CPU指定的业务逻辑目标文件,至少有一个接口扣板在位时,且指定的业务逻辑目标文件与在位的接口扣板中的至少一个不匹配时,从存储介质中查询得到与在位的每个接口扣板均匹配的业务逻辑目标文件,选择匹配的业务逻辑目标文件对本地进行加载配置;或When there is a service logic target file specified by the CPU of the service board, and at least one interface daughter board is in place, and the specified service logic target file does not match at least one of the in-place interface daughter boards, from the storage medium Query to obtain the business logic target file that matches each interface daughter board in place, and select the matching business logic target file to load and configure locally; or

当不存在业务单板的CPU指定的业务逻辑目标文件,历史记录的业务逻辑目标文件有效,至少有一个接口扣板在位接,且历史记录的业务逻辑目标文件与在位的接口扣板中的至少一个不匹配时,从存储介质中查询得到与在位的每个接口扣板均匹配的业务逻辑目标文件,选择匹配的业务逻辑目标文件对本地进行加载配置;或When there is no business logic target file specified by the CPU of the service board, the historical business logic target file is valid, at least one interface daughter board is in place, and the historical business logic target file is the same as the existing interface daughter board. When at least one of the interfaces does not match, query the storage medium to obtain the business logic target file that matches each interface daughter board in place, and select the matching business logic target file to load and configure locally; or

当不存在业务单板的CPU指定的业务逻辑目标文件,历史记录的业务逻辑目标文件无效,且至少有一个接口扣板在位时,从存储介质中查询得到与在位的每个接口扣板均匹配的业务逻辑目标文件,选择匹配的业务逻辑目标文件对本地进行加载配置。When there is no business logic target file specified by the CPU of the service board, the business logic target file in the history is invalid, and at least one interface sub-board is in place, query the storage medium for each interface sub-board in place All match business logic target files, select the matching business logic target files to load and configure locally.

进一步地,从存储介质中查询得到与在位的每个接口扣板均匹配的业务逻辑目标文件,选择匹配的业务逻辑目标文件对本地进行加载配置,具体包括:Further, query from the storage medium to obtain the business logic target file that matches each existing interface daughter board, select the matching business logic target file to load and configure locally, specifically including:

获取并根据在位的每个接口扣板的ID,从存储介质中查询得到与在位的每个接口扣板均匹配的业务逻辑的类型;Acquiring and querying from the storage medium according to the ID of each interface daughter board in place to obtain the type of business logic that matches each interface daughter board in place;

根据业务逻辑的类型,从存储介质中查询得到业务逻辑的类型对应的业务逻辑目标文件的存储地址,从存储地址中读取业务逻辑目标文件;According to the type of business logic, query from the storage medium to obtain the storage address of the business logic target file corresponding to the type of business logic, and read the business logic target file from the storage address;

根据业务逻辑目标文件产生与本地对应的加载配置时序。According to the business logic target file, generate the loading configuration sequence corresponding to the local.

进一步地,根据判断结果选择相应的业务逻辑目标文件对本地进行加载配置,还可以包括:Further, according to the judgment result, selecting the corresponding business logic target file to load and configure locally may also include:

当存在业务单板的CPU指定的业务逻辑目标文件,且每个接口扣板均不在位时,选择指定的业务逻辑目标文件对本地进行加载配置;或When there is a service logic target file specified by the CPU of the service single board, and each interface daughter board is not in place, select the specified service logic target file to load and configure locally; or

当不存在业务单板的CPU指定的业务逻辑目标文件,历史记录的业务逻辑目标文件有效,且接口扣板均不在位时,选择历史记录的业务逻辑目标文件对本地进行加载配置。When there is no business logic target file specified by the CPU of the service board, the historically recorded business logic target file is valid, and none of the interface daughter boards is in place, select the historically recorded business logic target file to load and configure locally.

进一步地,参见图8,在加载配置完相应的业务逻辑目标文件后,该方法还可以包括:Further, referring to FIG. 8, after loading and configuring the corresponding business logic target file, the method may further include:

603:接收业务单板的CPU发送的进行业务逻辑目标文件切换的指示。603: Receive an instruction to switch the service logic target file sent by the CPU of the service board.

604:当指示切换的业务逻辑目标文件与每个接口扣板均匹配,且指示切换的业务逻辑目标文件存在时,通知业务单板的CPU进行热插拔。604: When the service logic target file indicating switching matches each interface daughter board and the service logic target file indicating switching exists, notify the CPU of the service single board to perform hot swapping.

本发明实施例所述的业务逻辑加载的方法,可以根据是否存在业务单板的CPU指定的业务逻辑目标文件,历史记录的业务逻辑目标文件是否有效和每个接口扣板是否在位,选择和加载配置相应的业务逻辑目标文件,使得整个过程更加智能,可以更好地实现选择和加载配置业务逻辑目标文件;并且,通过利用相同的接口扣板,切换不同业务逻辑目标文件来适配特定的业务,实现了产品归一化和平台化,节省大量物力和人力成本。The business logic loading method described in the embodiment of the present invention can be selected and Loading and configuring the corresponding business logic target files makes the whole process more intelligent, and can better realize the selection and loading of configuration business logic target files; and, by using the same interface board, switch different business logic target files to adapt to specific business, realized product normalization and platformization, and saved a lot of material and labor costs.

实施例7Example 7

参见图9,本发明实施例提供了一种业务逻辑加载的方法,包括:Referring to Fig. 9, an embodiment of the present invention provides a method for loading business logic, including:

701:加载配置装置判断是否存在业务单板的CPU指定的业务逻辑目标文件,如果是,则执行702;否则,执行704。701: The loading configuration device judges whether there is a service logic target file specified by the CPU of the service board, and if yes, executes 702; otherwise, executes 704.

其中,具体地可以通过将加载配置装置对应的指定加载寄存器设置为不同的值来表示是否存在指定的业务逻辑目标文件,如将指定加载寄存器设置为0X11则表示存在指定的业务逻辑目标文件,将指定加载寄存器设置为0XFF则表示不存在指定的业务逻辑目标文件。Wherein, specifically, it is possible to indicate whether there is a specified business logic target file by setting the specified load register corresponding to the load configuration device to a different value. If the specified load register is set to 0X11, it means that there is a specified service logic target file. If the specified load register is set to 0XFF, it means that the specified business logic target file does not exist.

702:加载配置装置判断是否至少有一个接口扣板在位,如果是,则执行703;否则,执行710。702: The loading configuration device judges whether at least one interface sub-board is in place, and if so, executes 703; otherwise, executes 710.

703:加载配置装置获取在位的每个接口扣板的ID,根据在位的每个接口扣板的ID,判断指定的业务逻辑目标文件与在位的每个接口扣板是否均匹配,如果是,则执行710;否则,执行707。703: The loading configuration device obtains the ID of each interface sub-board in place, and judges whether the specified business logic target file matches each interface sub-board in place according to the ID of each interface sub-board in place, if If yes, go to 710; otherwise, go to 707.

704:加载配置装置判断历史记录的业务逻辑目标文件是否有效,如果是,则执行705;否则,执行708。704: The loading configuration device judges whether the business logic target file of the historical record is valid, and if yes, executes 705; otherwise, executes 708.

可以通过查看逻辑加载历史记录区(存储介质中一个特定地址,用户保存上次加载的业务逻辑的类型),判断历史记录的业务逻辑目标文件是否有效。You can judge whether the business logic target file of the history record is valid by checking the logic loading history area (a specific address in the storage medium, the type of business logic loaded last time saved by the user).

705:加载配置装置判断是否至少有一个接口扣板在位,如果是,则执行706;否则,执行711。705: The loading configuration device judges whether at least one interface sub-board is in place, and if so, executes 706; otherwise, executes 711.

706:加载配置装置获取在位的每个接口扣板的ID,根据在位的每个接口扣板的ID,判断历史记录的业务逻辑目标文件与在位的每个接口扣板是否均匹配,如果是,则执行711;否则,执行707。706: The loading configuration device obtains the ID of each interface sub-board in place, and judges whether the business logic target file of the historical record matches each interface sub-board in place according to the ID of each interface sub-board in place, If yes, go to 711 ; otherwise, go to 707 .

707:加载配置装置根据在位的每个接口扣板的ID,查询与在位的每个接口扣板均匹配的业务逻辑目标文件,判断与在位的每个接口扣板均匹配的业务逻辑目标文件是否存在,如果是,则执行712;否则,执行713。707: The loading configuration device queries the business logic target file that matches each interface sub-board in place according to the ID of each interface sub-board in place, and determines the business logic that matches each interface sub-board in place Whether the target file exists, if yes, execute 712; otherwise, execute 713.

708:加载配置装置判断是否至少有一个接口扣板在位,如果是,则执行709;否则,执行714。708: The loading configuration device judges whether at least one interface sub-board is in place, and if so, executes 709; otherwise, executes 714.

709:获取在位的每个接口扣板的ID,然后执行707。709: Obtain the ID of each interface daughter board in place, and then perform 707.

710:加载配置装置对其自身加载指定的业务逻辑目标文件,然后结束。710: The loading configuration device loads the specified business logic target file to itself, and then ends.

711:加载配置装置对其自身加载历史记录的业务逻辑目标文件,然后结束。711: Load the business logic target file of the history record loaded by the configuration device to itself, and then end.

712:加载配置装置对其自身加载匹配的业务逻辑目标文件,然后结束。712: The loading configuration device loads the matching business logic target file to itself, and then ends.

713:加载配置装置上报不存在与在位的每个接口扣板均匹配的业务逻辑目标文件,然后结束。713: The loading configuration device reports that there is no service logic target file that matches each existing interface daughter board, and then ends.

具体地可以上报给业务单板的CPU,并且业务单板的CPU在接收到上报的信息后,对业务逻辑目标文件进行升级,以便后续使用。Specifically, it may be reported to the CPU of the service board, and after receiving the reported information, the CPU of the service board upgrades the service logic target file for subsequent use.

714:加载配置装置加载默认的业务逻辑目标文件,然后结束。714: The loading configuration means loads the default business logic target file, and then ends.

加载一个默认的业务逻辑目标文件,以保证能进行一些基本的业务处理;默认的业务逻辑目标文件可以根据实际应用状况进行设置,如可以从接口扣板对应的业务逻辑目标文件中任选一个业务逻辑目标文件作为默认业务逻辑目标文件,或选择接口扣板对应的业务逻辑目标文件中的第一个作为默认业务逻辑目标文件等,对此不做具体限定。Load a default business logic target file to ensure some basic business processing; the default business logic target file can be set according to the actual application situation, for example, you can choose a business from the business logic target file corresponding to the interface daughter board The logic target file is used as the default business logic target file, or the first one of the business logic target files corresponding to the interface daughter board is selected as the default business logic target file, etc., and there is no specific limitation on this.

需要说明的是,当同一种接口扣板可以承载不同的业务时(比如E1接口扣板,可以承载的业务有SS7(Signaling System 7,七号信令系统)、ATM(Asynchronous Transfer Mode,异步传输模式)等),通过上述步骤对FPGA加载了某种业务逻辑目标文件后,可以根据当前的需要,对FPGA加载另外一种业务逻辑目标文件,即可以利用相同的接口扣板(如E1接口扣板),切换不同的业务逻辑目标文件来适配特定的业务,进一步地,参见图10,该业务逻辑加载的方法还包括:It should be noted that when the same interface daughter board can carry different services (such as E1 interface daughter board, the services that can be carried include SS7 (Signaling System 7, Signaling System 7), ATM (Asynchronous Transfer Mode, asynchronous transmission mode), etc.), after loading a certain business logic target file to the FPGA through the above steps, you can load another business logic target file to the FPGA according to the current needs, that is, you can use the same interface board (such as the E1 interface board Board), switch different business logic target files to adapt to a specific business, further, referring to Figure 10, the business logic loading method also includes:

801:加载配置装置在加载配置完相应的业务逻辑目标文件后,接收业务单板的CPU发送的进行业务逻辑目标文件切换的指示。801: After loading and configuring the corresponding service logic target file, the loading configuration device receives an instruction to switch the service logic target file sent by the CPU of the service board.

需要说明的是,因为加载配置装置是硬件单流程状态机,不存在超时的情况,即加载配置装置一定会在业务单板的CPU发送了进行业务逻辑目标文件切换的指示后一定时间内响应业务单板的CPU的请求。It should be noted that because the loading configuration device is a hardware single-process state machine, there is no timeout situation, that is, the loading configuration device will definitely respond to the business within a certain period of time after the CPU of the business single board sends an instruction to switch the business logic target file. The CPU request of the board.

802:加载配置装置根据在位的每个接口扣板的ID,判断指示切换的业务逻辑目标文件与在位的每个接口扣板是否均匹配,如果是,则执行803;否则,执行804。802: The loading configuration device judges whether the service logic target file indicating switching matches each existing interface daughter board according to the ID of each existing interface daughter board, and if yes, executes 803; otherwise, executes 804.

803:加载配置装置根据在位的每个接口扣板的ID,判断指示切换的业务逻辑目标文件是否存在,如果是,则执行805;否则,执行806。803: The loading configuration device judges whether the service logic target file indicating switching exists according to the ID of each existing interface daughter board, and if yes, executes 805; otherwise, executes 806.

804:加载配置装置上报指示切换的业务逻辑目标文件与在位的每个接口扣板不是均匹配,然后结束。804: The loading configuration device reports that the switched service logic target file does not match all existing interface daughter boards, and then ends.

具体地加载配置装置可以上报给业务单板的CPU。Specifically, the device for loading configuration may report to the CPU of the service board.

805:加载配置装置通知业务单板的CPU进行热插拔,然后结束。805: The loading configuration device notifies the CPU of the service board to perform hot swap, and then ends.

806:加载配置装置上报指示切换的业务逻辑目标文件不存在,然后结束。806: The device for loading configuration reports that the business logic target file indicating switching does not exist, and then ends.

具体地加载配置装置可以上报给业务单板的CPU,并且业务单板的CPU在收到加载配置装置上报的信息后,可以对业务逻辑目标文件进行升级,以便后续使用。并且,需要说明的是,如果业务逻辑目标文件切换成功后,业务单板的CPU要同时更新逻辑加载历史记录区,以保证下次启动时无需进行业务逻辑目标文件的切换操作。Specifically, the loading and configuration device can report to the CPU of the service board, and after receiving the information reported by the loading and configuration device, the CPU of the service board can upgrade the service logic target file for subsequent use. Moreover, it should be noted that, if the business logic target file is successfully switched, the CPU of the service board must update the logic loading history area at the same time, so as to ensure that the business logic target file does not need to be switched at the next startup.

需要说明的是,加载配置装置具体可以包括配置模式设置为从动加载模式的第一FPGA和CPLD;或加载配置装置具体可以包括配置模式设置为从动加载模式的第二FPGA和配置模式设置为主动加载模式的第三FPGA;或加载配置装置具体可以包括配置模式设置为主动加载模式的第四FPGA和总线保持器。当加载配置装置包括配置模式设置为从动加载模式的第一FPGA和CPLD时,具体地,CPLD用于判断是否存在业务单板的CPU指定的业务逻辑目标文件,历史记录的业务逻辑目标文件是否有效和每个接口扣板是否均在位,根据判断结果选择相应的业务逻辑目标文件对第一FPGA进行加载配置。加载配置装置为其他两种情况时,可以参照加载配置装置包括第一FPGA和CPLD,及实施例3和4进行实施,此处不再一一赘述。It should be noted that the loading configuration device may specifically include a first FPGA and a CPLD whose configuration mode is set to a slave loading mode; or the loading configuration device may specifically include a second FPGA whose configuration mode is set to a slave loading mode and a configuration mode set to The third FPGA in the active loading mode; or the loading configuration device may specifically include a fourth FPGA whose configuration mode is set to the active loading mode and a bus holder. When the loading configuration device includes the first FPGA and CPLD whose configuration mode is set to the slave loading mode, specifically, the CPLD is used to judge whether there is a service logic target file specified by the CPU of the service single board, and whether the service logic target file of the historical record is Whether it is valid and whether each interface daughter board is in place, according to the judgment result, select the corresponding business logic target file to load and configure the first FPGA. When the loading and configuration device is the other two cases, it can be implemented with reference to the loading and configuration device including the first FPGA and CPLD, and Embodiments 3 and 4, which will not be repeated here.

本发明实施例所述的业务逻辑加载的方法,可以根据是否存在业务单板的CPU指定的业务逻辑目标文件,历史记录的业务逻辑目标文件是否有效和每个接口扣板是否在位,选择和加载配置相应的业务逻辑目标文件,使得整个过程更加智能,可以更好地实现选择和加载配置业务逻辑目标文件;并且,通过利用相同的接口扣板,切换不同业务逻辑目标文件来适配特定的业务,实现了产品归一化和平台化,节省大量物力和人力成本。The business logic loading method described in the embodiment of the present invention can be selected and Loading and configuring the corresponding business logic target files makes the whole process more intelligent, and can better realize the selection and loading of configuration business logic target files; and, by using the same interface board, switch different business logic target files to adapt to specific business, realized product normalization and platformization, and saved a lot of material and labor costs.

以上实施例提供的技术方案中的全部或部分内容可以通过软件编程实现,其软件程序存储在可读取的存储介质中,存储介质例如:计算机中的硬盘、光盘或软盘。All or part of the technical solutions provided by the above embodiments can be realized by software programming, and the software program is stored in a readable storage medium, such as a hard disk, an optical disk or a floppy disk in a computer.

以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within range.

Claims (11)

1. an interface single plate, is characterized in that, comprising: at least one interface buckle and loading inking device;
Described loading inking device, whether the whether effective and each described interface buckle of service logic file destination for the service logic file destination that judges whether to exist the CPU of service board to specify, historical record is in place, selects corresponding service logic file destination self to load configuration to described loading inking device according to judged result;
Described loading inking device specifically comprises: configuration mode is set to primary scene programmable gate array and the programmable logic device (PLD) of driven loading mode;
Described programmable logic device (PLD), specifically comprises:
First loads specified services logic module, for the service logic file destination when existing the CPU of service board to specify, have at least a described interface buckle in place, and when the service logic file destination of described appointment all mates with each described interface buckle in place, select the service logic file destination of described appointment to load configuration to described primary scene programmable gate array; Or
The first loading history record traffic logic module, for the service logic file destination that ought not exist the CPU of service board to specify, the service logic file destination of described historical record is effective, have at least a described interface buckle in place, and when the service logic file destination of described historical record all mates with each described interface buckle in place, select the service logic file destination of described historical record to load configuration to described primary scene programmable gate array; Or
The first load default business logic modules, for the service logic file destination that ought not exist the CPU of service board to specify, the service logic file destination of described historical record is invalid, and when each described interface buckle is all in place, select the service logic file destination of acquiescence to load configuration to described primary scene programmable gate array; Or
First loads coupling business logic modules, for the service logic file destination when existing the CPU of service board to specify, have at least a described interface buckle in place, and the service logic file destination of described appointment is not when at least one in described interface buckle in place mated, from storage medium, inquiry obtains the service logic file destination all mating with each described interface buckle in place, selects the service logic file destination of described coupling to load configuration to described primary scene programmable gate array; Or
Second loads coupling business logic modules, for the service logic file destination that ought not exist the CPU of service board to specify, the service logic file destination of described historical record is effective, have at least a described interface buckle in place, and the service logic file destination of described historical record is not when at least one in described interface buckle in place mated, from storage medium, inquiry obtains the service logic file destination all mating with each described interface buckle in place, select the service logic file destination of described coupling to load configuration to described primary scene programmable gate array, or
The 3rd loads coupling business logic modules, for the service logic file destination that ought not exist the CPU of service board to specify, the service logic file destination of described historical record is invalid, and while having at least a described interface buckle in place, from storage medium, inquiry obtains the service logic file destination all mating with each described interface buckle in place, selects the service logic file destination of coupling to load configuration to described primary scene programmable gate array;
Described primary scene programmable gate array, for configuring in loading after corresponding service logic file destination, carries out and the corresponding business of service logic file destination that loads configuration.
2. interface single plate according to claim 1, is characterized in that, described programmable logic device (PLD) is specially complicated programmable logic device (PLD), is provided with the logical target file with value-added tax function in the programmable logic device (PLD) of described complexity; Or
Described programmable logic device (PLD) is specially configuration mode and is set to the initiatively secondary scene programmable gate array of loading mode, and described secondary scene programmable gate array, in the time powering on, loads the logical target file with value-added tax function obtaining from storage medium.
3. interface single plate according to claim 1, it is characterized in that, described first loads specified services logic module, also for the service logic file destination when existing the CPU of service board to specify, and when each described interface buckle is all in place, select the service logic file destination of described appointment to load configuration to described primary scene programmable gate array;
Described the first loading history record traffic logic module, the also service logic file destination for ought not existing the CPU of service board to specify, the service logic file destination of described historical record is effective, and when described interface buckle is all in place, select the service logic file destination of described historical record to load configuration to described primary scene programmable gate array.
4. according to the interface single plate described in any one claim in claim 1-3, it is characterized in that, described interface single plate also comprises:
Notifying device, for loading and configure after corresponding service logic file destination at described loading inking device, receive the indication of carrying out the switching of service logic file destination of the CPU transmission of service board, and the service logic file destination switching when indication all mates with each described interface buckle, and when the service logic file destination that indication is switched exists, the CPU of informing business veneer carries out hot plug.
5. an interface single plate, is characterized in that, comprising: at least one interface buckle and loading inking device;
Described loading inking device, whether the whether effective and each described interface buckle of service logic file destination for the service logic file destination that judges whether to exist the CPU of service board to specify, historical record is in place, selects corresponding service logic file destination self to load configuration to described loading inking device according to judged result;
Described loading inking device specifically comprises: configuration mode is set to initiatively the 3rd field programmable gate array and total wire maintainer of loading mode;
Described the 3rd field programmable gate array, in the time powering on, loads the logical target file with value-added tax function obtaining from storage medium, and described the 3rd field programmable gate array specifically comprises:
Second loads specified services logic module, for having described in having loaded after the logical target file of value-added tax function, when the service logic file destination that exists the CPU of service board to specify, have at least a described interface buckle in place, and when the service logic file destination of described appointment all mates with each described interface buckle in place, select the service logic file destination of described appointment to load configuration to described the 3rd field programmable gate array; Or
The second loading history record traffic logic module, for having described in having loaded after the logical target file of value-added tax function, when the service logic file destination that does not exist the CPU of service board to specify, the service logic file destination of described historical record is effective, have at least a described interface buckle in place, and when the service logic file destination of described historical record all mates with each described interface buckle in place, select the service logic file destination of described historical record to load configuration to described the 3rd field programmable gate array; Or
The second load default business logic modules, for having described in having loaded after the logical target file of value-added tax function, when the service logic file destination that does not exist the CPU of service board to specify, the service logic file destination of described historical record is invalid, and when each described interface buckle is all in place, select the service logic file destination of acquiescence to load configuration to described the 3rd field programmable gate array; Or
The 4th loads coupling business logic modules, for having described in having loaded after the logical target file of value-added tax function, when the service logic file destination that exists the CPU of service board to specify, have at least a described interface buckle in place, and when at least one of the service logic file destination of described appointment and described interface buckle Shen in place do not mated, from storage medium, inquiry obtains the service logic file destination all mating with each described interface buckle in place, select the service logic file destination of described coupling to load configuration to described the 3rd field programmable gate array, or
Slender acanthopanax is carried coupling business logic modules, for having described in having loaded after the logical target file of value-added tax function, when the service logic file destination that does not exist the CPU of service board to specify, the service logic file destination of described historical record is effective, have at least a described interface buckle in place, and the service logic file destination of described historical record is not when at least one in described interface buckle in place mated, from storage medium, inquiry obtains the service logic file destination all mating with each described interface buckle in place, select the service logic file destination of described coupling to load configuration to described the 3rd field programmable gate array, or
The 6th loads coupling business logic modules, for having described in having loaded after the logical target file of value-added tax function, when the service logic file destination that does not exist the CPU of service board to specify, the service logic file destination of described historical record is invalid, and while having at least a described interface buckle in place, from storage medium, inquiry obtains the service logic file destination all mating with each described interface buckle in place, selects the service logic file destination of coupling to load configuration to described the 3rd field programmable gate array;
Described total wire maintainer, for in the time powering on, the memory address of the logical target file that there is value-added tax function described in providing for described the 3rd field programmable gate array in described storage medium, choose after corresponding service logic file destination at described the 3rd field programmable gate array, export the memory address of described service logic file destination in described storage medium, and load in the process of the described service logic file destination of configuration at described the 3rd field programmable gate array, described memory address is kept.
6. interface single plate according to claim 5, it is characterized in that, described second loads specified services logic module, also for the service logic file destination when existing the CPU of service board to specify, and when each described interface buckle is all in place, select the service logic file destination of described appointment to load configuration to described the 3rd field programmable gate array;
Described the second loading history record traffic logic module, the also service logic file destination for ought not existing the CPU of service board to specify, the service logic file destination of described historical record is effective, and when described interface buckle is all in place, select the service logic file destination of described historical record to load configuration to described the 3rd field programmable gate array.
7. according to the interface single plate described in claim 5 or 6, it is characterized in that, described interface single plate also comprises:
Notifying device, for loading and configure after corresponding service logic file destination at described loading inking device, receive the indication of carrying out the switching of service logic file destination of the CPU transmission of service board, and the service logic file destination switching when indication all mates with each described interface buckle, and when the service logic file destination that indication is switched exists, the CPU of informing business veneer carries out hot plug.
8. the method that service logic loads, is characterized in that, described method comprises:
Judge whether to exist the whether effective and each interface buckle of service logic file destination of service logic file destination that the CPU of service board specifies, historical record whether in place; Select corresponding service logic file destination to load configuration to this locality according to judged result;
Describedly select corresponding service logic file destination to load configuration to this locality according to judged result, specifically comprise:
When the service logic file destination that exists the CPU of service board to specify, have at least a described interface buckle in place, and when the service logic file destination of described appointment all mates with each described interface buckle in place, select the service logic file destination of described appointment to load configuration to this locality; Or
When the service logic file destination that does not exist the CPU of service board to specify, the service logic file destination of described historical record is effective, have at least a described interface buckle in place, and when the service logic file destination of described historical record all mates with each described interface buckle in place, select the service logic file destination of described historical record to load configuration to this locality; Or
When the service logic file destination that does not exist the CPU of service board to specify, the service logic file destination of described historical record is invalid, and each described interface buckle is when all in place, selects the service logic file destination of acquiescence to load configuration to this locality; Or
When the service logic file destination that exists the CPU of service board to specify, have at least a described interface buckle in place, and the service logic file destination of described appointment is not when at least one in described interface buckle in place mated, from storage medium, inquiry obtains the service logic file destination all mating with each described interface buckle in place, selects the service logic file destination of described coupling to load configuration to this locality; Or
When the service logic file destination that does not exist the CPU of service board to specify, the service logic file destination of described historical record is effective, have at least a described interface buckle in place, and the service logic file destination of described historical record is not when at least one in described interface buckle in place mated, from storage medium, inquiry obtains the service logic file destination all mating with each described interface buckle in place, selects the service logic file destination of described coupling to load configuration to this locality; Or
When the service logic file destination that does not exist the CPU of service board to specify, the service logic file destination of described historical record is invalid, and while having at least a described interface buckle in place, from storage medium, inquiry obtains the service logic file destination all mating with each described interface buckle in place, selects the service logic file destination of described coupling to load configuration to this locality.
9. the method that service logic according to claim 8 loads, it is characterized in that, described from storage medium inquiry obtain the service logic file destination that all mates with each described interface buckle in place, select the service logic file destination of described coupling to load configuration to this locality, specifically comprise:
Obtain and according to the ID of each described interface buckle in place, from described storage medium, inquire about the type that obtains the service logic of all mating with each described interface buckle in place;
According to the type of described service logic, from described storage medium, inquiry obtains the memory address of service logic file destination corresponding to the type of described service logic, reads described service logic file destination from described memory address;
Produce and local corresponding loading configuration sequential according to described service logic file destination.
10. the method that service logic according to claim 8 or claim 9 loads, is characterized in that, describedly selects corresponding service logic file destination to load configuration to this locality according to judged result, also comprises:
When the service logic file destination that exists the CPU of service board to specify, and each described interface buckle is when all in place, selects the service logic file destination of described appointment to load configuration to this locality; Or
When the service logic file destination that does not exist the CPU of service board to specify, the service logic file destination of described historical record is effective, and described interface buckle is when all in place, selects the service logic file destination of described historical record to load configuration to this locality.
The method that 11. service logics according to claim 8 load, is characterized in that, after loading configures corresponding service logic file destination, described method also comprises:
Receive the indication of carrying out the switching of service logic file destination of the CPU transmission of service board;
The service logic file destination switching when judgement indication all mates with each described interface buckle, and the service logic file destination of indication switching is while existing, notifies the CPU of described service board to carry out hot plug.
CN201010111282.4A 2010-02-10 2010-02-10 Interface single board and business logic loading method Expired - Fee Related CN102147735B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010111282.4A CN102147735B (en) 2010-02-10 2010-02-10 Interface single board and business logic loading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010111282.4A CN102147735B (en) 2010-02-10 2010-02-10 Interface single board and business logic loading method

Publications (2)

Publication Number Publication Date
CN102147735A CN102147735A (en) 2011-08-10
CN102147735B true CN102147735B (en) 2014-06-04

Family

ID=44422011

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010111282.4A Expired - Fee Related CN102147735B (en) 2010-02-10 2010-02-10 Interface single board and business logic loading method

Country Status (1)

Country Link
CN (1) CN102147735B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103399758B (en) * 2011-12-31 2016-11-23 华为数字技术(成都)有限公司 Hardware-accelerated methods, devices and systems
CN107544819B (en) * 2016-06-29 2022-04-19 中兴通讯股份有限公司 Service implementation method and device for programmable device and communication terminal
CN108874461B (en) * 2017-11-30 2021-05-14 视联动力信息技术股份有限公司 Loading method of video networking module and video networking terminal
CN110083416B (en) * 2019-03-25 2021-10-15 华为技术有限公司 A method and device for loading resources

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201000625Y (en) * 2006-12-08 2008-01-02 上海欣泰通信技术有限公司 Field programmable gate array online configuration device
GB2439803A (en) * 2006-06-30 2008-01-09 Advanced Risc Mach Ltd Target device programmer
CN101441574A (en) * 2007-11-20 2009-05-27 中兴通讯股份有限公司 Multiple-FPGA logical loading method in embedded system
CN101452502A (en) * 2008-12-30 2009-06-10 华为技术有限公司 Method for loading on-site programmable gate array FPGA, apparatus and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2439803A (en) * 2006-06-30 2008-01-09 Advanced Risc Mach Ltd Target device programmer
CN201000625Y (en) * 2006-12-08 2008-01-02 上海欣泰通信技术有限公司 Field programmable gate array online configuration device
CN101441574A (en) * 2007-11-20 2009-05-27 中兴通讯股份有限公司 Multiple-FPGA logical loading method in embedded system
CN101452502A (en) * 2008-12-30 2009-06-10 华为技术有限公司 Method for loading on-site programmable gate array FPGA, apparatus and system

Also Published As

Publication number Publication date
CN102147735A (en) 2011-08-10

Similar Documents

Publication Publication Date Title
CN103942061B (en) Battery firmware updating method, portable electronic device and rechargeable battery module
CN103930878B (en) Method, Apparatus and system for memory verification
CN102609286B (en) A kind of FPGA configurator remote update system based on processor control and method thereof
TWI386852B (en) System for switching bios and method thereof
CN102147735B (en) Interface single board and business logic loading method
CN102855146A (en) Firmware updating system and method
WO2008013229A1 (en) Nonvolatile storage device, nonvolatile storage system and host unit
CN106445544A (en) Device and method for configuring or updating programmable logic device
CN106227683A (en) Electronic equipment and information processing method
CN110737618B (en) Method, device and storage medium for embedded processor to carry out rapid data communication
CN102033767B (en) A kind of method of veneer and veneer online upgrading
CN110647292B (en) Method and system for expanding storage capacity in server system
CN102073514A (en) Basic input and output system update method
CN116225985A (en) SOC parameter power failure non-volatile storage method, device and computer equipment
US7962735B2 (en) Servo device auto-booted upon power supply recovery and method thereof
US8015329B2 (en) Data transfer coherency device and methods thereof
US20230083523A1 (en) Multi-processor system and booting method thereof
CN116860301A (en) FPGA configuration method and device of chip tester
CN101165808A (en) Semiconductor device and test system which output fuse cut information sequentially
CN117112469A (en) Instruction transmission module and integrated circuit
CN112162794A (en) Single board starting method, device, single board and network equipment
CN112114836A (en) File updating method, device and system, storage medium and display box
CN113608684B (en) Memory information acquisition method, device, system, electronic equipment and storage medium
CN220829661U (en) Baseboard management controller
CN110334034A (en) Method, apparatus, computer equipment and the storage medium of mapping table dynamically load

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20170705

Address after: 510640 Guangdong City, Tianhe District Province, No. five, road, public education building, unit 371-1, unit 2401

Patentee after: Guangdong Gaohang Intellectual Property Operation Co., Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: Huawei Technologies Co., Ltd.

CB03 Change of inventor or designer information

Inventor after: Xu Huaqin

Inventor after: Liu Yanrong

Inventor after: Jia Youle

Inventor before: Lu Fangmin

CB03 Change of inventor or designer information
TR01 Transfer of patent right

Effective date of registration: 20170930

Address after: 246313 Anhui city of Anqing province Qianshan County, Yu Ling Cun Jing Zhen Zhuang Zu Sugar Group No. 29

Co-patentee after: Liu Yanrong

Patentee after: Xu Huaqin

Co-patentee after: Jia Youle

Address before: 510640 Guangdong City, Tianhe District Province, No. five, road, public education building, unit 371-1, unit 2401

Patentee before: Guangdong Gaohang Intellectual Property Operation Co., Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140604

Termination date: 20180210

CF01 Termination of patent right due to non-payment of annual fee