[go: up one dir, main page]

CN102118157B - Method and device for loading FPGA (Field Programmable Gate Array) - Google Patents

Method and device for loading FPGA (Field Programmable Gate Array) Download PDF

Info

Publication number
CN102118157B
CN102118157B CN 200910238865 CN200910238865A CN102118157B CN 102118157 B CN102118157 B CN 102118157B CN 200910238865 CN200910238865 CN 200910238865 CN 200910238865 A CN200910238865 A CN 200910238865A CN 102118157 B CN102118157 B CN 102118157B
Authority
CN
China
Prior art keywords
fpga
content
loading
needs
unit
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
CN 200910238865
Other languages
Chinese (zh)
Other versions
CN102118157A (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.)
Huawei Technologies Co Ltd
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 CN 200910238865 priority Critical patent/CN102118157B/en
Publication of CN102118157A publication Critical patent/CN102118157A/en
Application granted granted Critical
Publication of CN102118157B publication Critical patent/CN102118157B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Logic Circuits (AREA)

Abstract

本发明公开了一种FPGA的加载方法,包括:加载所述FPGA的部分内容,此时所述FPGA无法完成加载内容的检验;监测是否需要使用所述FPGA,如果是,则加载所述FPGA的剩余内容。本发明还公开了一种FPGA的加载装置。在需要使用FPGA之前,FPGA仅加载了部分内容,此时FPGA的功耗非常小,在监测到需要使用FPGA时,仅仅需要加载FPGA的剩余内容,可以在很短的时间内完成加载,从而在不牺牲效率的情况下降低了FPGA的功耗。

The invention discloses a loading method of FPGA, comprising: loading part of the content of the FPGA, at this time, the FPGA cannot complete the inspection of the loaded content; monitoring whether the FPGA needs to be used, and if so, loading the content of the FPGA remaining content. The invention also discloses an FPGA loading device. Before the FPGA needs to be used, the FPGA only loads part of the content. At this time, the power consumption of the FPGA is very small. FPGA power consumption is reduced without sacrificing efficiency.

Description

一种FPGA的加载方法和装置A kind of FPGA loading method and device

技术领域 technical field

本发明涉及电子技术领域,尤其涉及一种FPGA的加载方法和装置。The invention relates to the field of electronic technology, in particular to an FPGA loading method and device.

背景技术 Background technique

现场可编程门阵列(Field Programmable Gate Array,FPGA)具有编程灵活性和硬件高速性,因此,得到越来越广泛的应用。随着半导体工艺的发展,FPGA的集成度越来越高,FPGA的功耗也越来越大。Field Programmable Gate Array (Field Programmable Gate Array, FPGA) has programming flexibility and high-speed hardware, so it is more and more widely used. With the development of semiconductor technology, the integration level of FPGA is getting higher and higher, and the power consumption of FPGA is also increasing.

随着社会的不断进步与科学技术的不断发展,现在人们充分认识到了环境对人类发展的重要性,各国都在采取积极有效的措施改善环境,减少污染,其中最为重要也是最为紧迫的问题就是能源问题,除了寻找新的能源,节能是关键的也是目前最直接有效的重要措施。With the continuous progress of society and the continuous development of science and technology, people now fully realize the importance of the environment to human development. All countries are taking active and effective measures to improve the environment and reduce pollution. The most important and urgent issue is energy. The problem, in addition to finding new energy sources, energy saving is the key and the most direct and effective important measure at present.

FPGA的功耗越来越大,不但增大了能量消耗,而且加速了FPGA设备的老化,因此,如何降低FPGA的功耗成为一个技术热点和难点。The power consumption of FPGA is increasing, which not only increases energy consumption, but also accelerates the aging of FPGA equipment. Therefore, how to reduce the power consumption of FPGA has become a technical hotspot and difficulty.

发明内容 Contents of the invention

本发明实施例提供了一种FPGA的加载方法和装置,可降低FPGA的功耗。Embodiments of the present invention provide an FPGA loading method and device, which can reduce the power consumption of the FPGA.

本发明实施例提供了一种现场可编程门阵列FPGA的加载方法,包括:The embodiment of the present invention provides a loading method of a field programmable gate array FPGA, comprising:

加载所述FPGA的部分内容,此时所述FPGA无法完成加载内容的检验;Loading part of the content of the FPGA, at this time the FPGA cannot complete the inspection of the loaded content;

监测是否需要使用所述FPGA,如果是,则加载所述FPGA的剩余内容。It is monitored whether the FPGA needs to be used, and if so, the remainder of the FPGA is loaded.

本发明实施例还提供了一种FPGA的加载装置,其特征在于,包括:The embodiment of the present invention also provides a loading device for FPGA, characterized in that, comprising:

第一加载单元,用于加载所述FPGA的部分内容,此时所述FPGA无法完成加载内容的检验;The first loading unit is used to load part of the content of the FPGA, and now the FPGA cannot complete the inspection of the loaded content;

第一监测单元,用于监测是否需要使用第一加载单元加载后的FPGA;The first monitoring unit is used to monitor whether the FPGA loaded by the first loading unit needs to be used;

第二加载单元,用于在所述第一监测单元监测到需要使用FPGA时,加载FPGA的剩余内容。The second loading unit is configured to load the remaining content of the FPGA when the first monitoring unit detects that the FPGA needs to be used.

由以上技术方案可知,本发明实施例中首先加载所述FPGA的部分内容,然后监测是否需要使用所述FPGA,如果是,则加载所述FPGA的剩余内容。在需要使用FPGA之前,FPGA仅加载了部分内容,此时FPGA的功耗非常小,在监测到需要使用FPGA时,仅仅需要加载FPGA的剩余内容,可以在很短的时间内完成加载,从而在不牺牲效率的情况下降低了FPGA的功耗。It can be seen from the above technical solutions that in the embodiment of the present invention, firstly load part of the content of the FPGA, and then monitor whether the FPGA needs to be used, and if so, load the remaining content of the FPGA. Before the FPGA needs to be used, the FPGA only loads part of the content. At this time, the power consumption of the FPGA is very small. When the need to use the FPGA is detected, only the remaining content of the FPGA needs to be loaded, and the loading can be completed in a short time. FPGA power consumption is reduced without sacrificing efficiency.

附图说明 Description of drawings

图1是本发明实施例提供的一种FPGA的加载方法流程图;Fig. 1 is a kind of FPGA loading method flowchart that the embodiment of the present invention provides;

图2是本发明实施例提供的另一种FPGA的加载方法流程图;Fig. 2 is another kind of FPGA loading method flowchart that the embodiment of the present invention provides;

图3是本发明实施例提供的再一种FPGA的加载方法流程图;Fig. 3 is another kind of FPGA loading method flowchart that the embodiment of the present invention provides;

图4是本发明实施例提供的再一种FPGA的加载方法流程图;Fig. 4 is another kind of FPGA loading method flowchart that the embodiment of the present invention provides;

图5是本发明实施例提供的一种FPGA的加载装置结构图;Fig. 5 is a kind of FPGA loading device structural diagram provided by the embodiment of the present invention;

图6是本发明实施例提供的另一种FPGA的加载装置结构图;FIG. 6 is a structural diagram of another FPGA loading device provided by an embodiment of the present invention;

图7是本发明实施例提供的再一种FPGA的加载装置结构图;FIG. 7 is a structural diagram of another FPGA loading device provided by an embodiment of the present invention;

图8是本发明实施例提供的再一种FPGA的加载装置结构图。FIG. 8 is a structural diagram of another FPGA loading device provided by an embodiment of the present invention.

具体实施方式 Detailed ways

为了更清楚地描述本发明,下面结合附图和实施例,对本发明的具体实施方式作进一步详细描述:In order to describe the present invention more clearly, below in conjunction with accompanying drawing and embodiment, specific embodiment of the present invention is described in further detail:

如图1所示,为本发明实施例提供的一种FPGA的加载方法,包括:As shown in Figure 1, a kind of FPGA loading method provided for the embodiment of the present invention includes:

S100,加载所述FPGA的部分内容;S100, loading part of the content of the FPGA;

只加载了部分内容,FPGA无法完成加载内容的检验FPGA的功耗和擦除状态基本相同,处于低功耗状态。Only part of the content is loaded, and the FPGA cannot complete the inspection of the loaded content. The power consumption of the FPGA is basically the same as the erase state, and it is in a low power consumption state.

S102,监测是否需要使用所述FPGA,如果是,则跳转S104,如果否,则继续监测;S102, monitor whether the FPGA needs to be used, if yes, jump to S104, if not, continue monitoring;

可以由CPU监测FPGA是否需要使用,如果不需要使用,则继续监测,保持S102的状态,如果需要使用,则跳转S104。Whether the FPGA needs to be used can be monitored by the CPU, and if it is not needed, continue monitoring, keep the state of S102, and jump to S104 if it needs to be used.

S104,加载所述FPGA的剩余内容。S104. Load remaining content of the FPGA.

监测到FPGA需要使用后,开始加载FPGA的剩余内容,由于FPGA剩余内容比较小,所以完成加载的时间比较短,不会影响客户体验。After detecting that the FPGA needs to be used, start loading the remaining content of the FPGA. Since the remaining content of the FPGA is relatively small, the time to complete the loading is relatively short and will not affect the customer experience.

如果把FPGA逻辑实现所有功能时的功耗设定为100%,经过研究发现FPGA逻辑加载完成但没有实现任何功能时的功耗大约为77%,复位时的功耗大约为60%,加载没有完成时的功耗大约为6%,该现象经过实验证实。If the power consumption of the FPGA logic is set to 100% when all functions are implemented, after research, it is found that the power consumption of the FPGA logic is about 77% when it is loaded but no functions are implemented, and the power consumption when it is reset is about 60%. The power consumption at completion is about 6%, which is experimentally confirmed.

本实施例中,上电后直接实施S 100,在另一个实施例中,为了保证FPGA加载成功,上电后首先擦除FPGA,然后实施S100,在另一个实施例中,不需要使用FPGA时,擦除FPGA,然后实施S100。In this embodiment, S100 is directly implemented after power-on. In another embodiment, in order to ensure that the FPGA is successfully loaded, the FPGA is first erased after power-on, and then S100 is implemented. In another embodiment, when no FPGA is used , erase the FPGA, and implement S100.

通常情况下,加载内容,即逻辑文件的最后部分包含校验字段,FPGA只有完成加载内容的校验才会运行逻辑,故可以在FPGA完成加载内容的校验前停止加载,剩余内容的大小可以根据FPGA对校验字段长度的要求来确定,例如可以是1K Byte。Normally, the loading content, that is, the last part of the logic file contains a verification field, and the FPGA will run the logic only after completing the verification of the loaded content, so the loading can be stopped before the FPGA completes the verification of the loaded content, and the size of the remaining content can be It is determined according to the FPGA's requirements for the length of the check field, for example, it can be 1K Byte.

本实施例中,在需要使用FPGA之前,FPGA仅加载了部分内容,此时FPGA的功耗非常小,在监测到需要使用FPGA时,仅仅需要加载FPGA的剩余内容,可以在很短的时间内完成加载,从而在不牺牲效率的情况下降低了FPGA的功耗。In this embodiment, before the FPGA needs to be used, the FPGA only loads part of the content. At this time, the power consumption of the FPGA is very small. When it is detected that the FPGA needs to be used, only the remaining content of the FPGA needs to be loaded. Loading is done, reducing FPGA power consumption without sacrificing efficiency.

如图2所示,为本发明实施例提供的一种FPGA的加载方法,包括:As shown in Figure 2, a kind of FPGA loading method provided for the embodiment of the present invention includes:

S200,加载所述FPGA的部分内容;S200, loading part of the content of the FPGA;

只加载了部分内容,FPGA的功耗和擦除状态基本相同,处于低功耗状态。Only part of the content is loaded, and the FPGA's power consumption and erase state are basically the same, and it is in a low power consumption state.

S202,监测是否需要使用所述FPGA,如果是,则跳转S204,如果否,则继续监测;S202, monitor whether the FPGA needs to be used, if yes, jump to S204, if not, continue monitoring;

可以由CPU监测FPGA是否需要使用,如果不需要使用,则继续监测,保持S202的状态,如果需要使用,则跳转S204。Whether the FPGA needs to be used can be monitored by the CPU, and if it is not needed, continue monitoring, keep the state of S202, and jump to S204 if it needs to be used.

S204,加载所述FPGA的剩余内容;S204, load the remaining content of the FPGA;

监测到FPGA需要使用后,开始加载FPGA的剩余内容,由于FPGA剩余内容比较少,所以完成加载的时间比较短,不会影响客户体验。After detecting that the FPGA needs to be used, start loading the remaining content of the FPGA. Since the remaining content of the FPGA is relatively small, the loading time is relatively short and will not affect the customer experience.

S206,初始化所述FPGA;S206, initializing the FPGA;

完成FPGA剩余内容的加载后,可以进行FPGA的初始化操作,例如,CPU写FPGA寄存器等。After the loading of the remaining content of the FPGA is completed, the initialization operation of the FPGA can be performed, for example, the CPU writes the FPGA registers, etc.

初始化后可以实现更多的功能,可以采用现有技术,在此不再赘述。After initialization, more functions can be realized, and existing technologies can be adopted, so details will not be repeated here.

S208,进行FPGA的配置。S208, configure the FPGA.

可以是相关业务的配置,相关业务可以是FPGA所在单板支持的业务类型。It may be the configuration of related services, and the related services may be the types of services supported by the single board where the FPGA is located.

配置后可以实现更多的功能,可以采用现有技术,在此不再赘述。After configuration, more functions can be realized, and existing technologies can be adopted, so details will not be repeated here.

本实施例中,在需要使用FPGA之前,FPGA仅加载了部分内容,此时FPGA的功耗非常小,在监测到需要使用FPGA时,仅仅需要加载FPGA的剩余内容,可以在很短的时间内完成加载,从而在不牺牲效率的情况下降低了FPGA的功耗。In this embodiment, before the FPGA needs to be used, the FPGA only loads part of the content. At this time, the power consumption of the FPGA is very small. When it is detected that the FPGA needs to be used, only the remaining content of the FPGA needs to be loaded. Loading is done, reducing FPGA power consumption without sacrificing efficiency.

如图3所示,为本发明实施例提供的一种FPGA的加载方法,包括:As shown in Figure 3, a kind of FPGA loading method provided for the embodiment of the present invention includes:

S300,加载所述FPGA的部分内容;S300, loading part of the content of the FPGA;

只加载了部分内容,FPGA的功耗和擦除状态基本相同,处于低功耗状态。Only part of the content is loaded, and the FPGA's power consumption and erase state are basically the same, and it is in a low power consumption state.

S302,监测是否需要使用所述FPGA,如果是,则跳转S304,如果否,则继续监测;S302, monitor whether the FPGA needs to be used, if yes, jump to S304, if not, continue monitoring;

可以由CPU监测FPGA是否需要使用,如果不需要使用,则继续监测,保持S302的状态,如果需要使用,则跳转S304。Whether the FPGA needs to be used can be monitored by the CPU. If it is not needed, continue to monitor and keep the state of S302. If it needs to be used, jump to S304.

S304,加载所述FPGA的剩余内容;S304, load the remaining content of the FPGA;

监测到FPGA需要使用后,开始加载FPGA的剩余内容,由于FPGA剩余内容比较小,所以完成加载的时间比较短,不会影响客户体验。After detecting that the FPGA needs to be used, start loading the remaining content of the FPGA. Since the remaining content of the FPGA is relatively small, the time to complete the loading is relatively short and will not affect the customer experience.

S306,初始化所述FPGA;S306, initialize the FPGA;

完成FPGA剩余内容的加载后,可以进行FPGA的初始化操作,例如,CPU写FPGA寄存器等。After the loading of the remaining content of the FPGA is completed, the initialization operation of the FPGA can be performed, for example, the CPU writes the FPGA registers, etc.

初始化后可以实现更多的功能。More functions can be realized after initialization.

S308,进行FPGA的配置。S308, configure the FPGA.

可以是相关业务的配置,相关业务可以是FPGA所在单板支持的业务类型。It may be the configuration of related services, and the related services may be the types of services supported by the single board where the FPGA is located.

配置后可以实现更多的功能。More functions can be realized after configuration.

S310,监测是否需要使用所述FPGA,如果否,则跳转S312;S310, monitor whether the FPGA needs to be used, if not, jump to S312;

如果否,则跳转S312,如果是,则继续监测。If not, jump to S312, if yes, continue monitoring.

S312,擦除所述FPGA的内容,跳转S300。S312. Erase the content of the FPGA, and jump to S300.

把FPGA的内容擦掉,FPGA一般有用于擦除内容的硬件管脚,使能该管脚即可将FPGA的内容擦除。Erase the contents of the FPGA. Generally, the FPGA has a hardware pin for erasing the contents. Enabling this pin can erase the contents of the FPGA.

擦除FPGA的内容后跳转S300,重新加载FPGA的部分内容,需要使用FPGA时可以迅速加载完成。Jump to S300 after erasing the content of the FPGA, and reload part of the content of the FPGA, which can be quickly loaded when the FPGA is needed.

本实施例中,在需要使用FPGA之前,FPGA仅加载了部分内容,此时FPGA的功耗非常小,在监测到需要使用FPGA时,仅仅需要加载FPGA的剩余内容,可以在很短的时间内完成加载,从而在不牺牲效率的情况下降低了FPGA的功耗。In this embodiment, before the FPGA needs to be used, the FPGA only loads part of the content. At this time, the power consumption of the FPGA is very small. When it is detected that the FPGA needs to be used, only the remaining content of the FPGA needs to be loaded. Loading is done, reducing FPGA power consumption without sacrificing efficiency.

如图4所示,为本发明实施例提供的一种FPGA的加载方法,包括:As shown in Figure 4, a kind of FPGA loading method provided for the embodiment of the present invention comprises:

S400,加载所述FPGA的部分内容;S400, loading part of the content of the FPGA;

只加载了部分内容,FPGA的功耗和擦除状态基本相同,处于低功耗状态。Only part of the content is loaded, and the FPGA's power consumption and erase state are basically the same, and it is in a low power consumption state.

S402,监测是否需要使用所述FPGA,如果是,则跳转S404,如果否,则继续监测;S402, monitor whether the FPGA needs to be used, if yes, jump to S404, if not, continue monitoring;

可以由CPU监测FPGA是否需要使用,如果不使用,则继续监测,保持S402的状态,如果需要使用,则跳转S404。Whether the FPGA needs to be used can be monitored by the CPU, if not used, continue to monitor, keep the state of S402, and jump to S404 if needed.

S404,加载所述FPGA的剩余内容;S404, load the remaining content of the FPGA;

监测到FPGA需要使用后,开始加载FPGA的剩余内容,由于FPGA剩余内容比较小,所以完成加载的时间比较短,不会影响客户体验。After detecting that the FPGA needs to be used, start loading the remaining content of the FPGA. Since the remaining content of the FPGA is relatively small, the time to complete the loading is relatively short and will not affect the customer experience.

S406,初始化所述FPGA;S406, initializing the FPGA;

完成FPGA剩余内容的加载后,可以进行FPGA的初始化操作,例如,CPU写FPGA寄存器等。After the loading of the remaining content of the FPGA is completed, the initialization operation of the FPGA can be performed, for example, the CPU writes the FPGA registers, etc.

初始化后可以实现更多的功能。More functions can be realized after initialization.

S408,进行FPGA的配置。S408, configure the FPGA.

可以是相关业务的配置,相关业务可以是FPGA所在单板支持的业务类型。It may be the configuration of related services, and the related services may be the types of services supported by the single board where the FPGA is located.

配置后可以实现更多的功能。More functions can be realized after configuration.

S410,监测是否需要使用所述FPGA,如果否,则跳转S412;S410, monitor whether the FPGA needs to be used, if not, jump to S412;

S412,判断不需要使用FPGA的时间是否超过预设的值,如果是,则跳转S414,如果否,则继续判断;S412, judging whether the time when the FPGA does not need to be used exceeds a preset value, if yes, jump to S414, if not, continue judging;

预设的值可以根据需求设定,例如可以是一分钟或一小时等。The preset value can be set according to requirements, for example, it can be one minute or one hour.

S414,擦除所述FPGA的内容,跳转S400。S414, erase the content of the FPGA, and jump to S400.

把FPGA的内容擦掉,FPGA一般有用于擦除内容的硬件管脚,使能该管脚即可将FPGA的内容擦除。Erase the contents of the FPGA. Generally, the FPGA has a hardware pin for erasing the contents. Enabling this pin can erase the contents of the FPGA.

擦除FPGA的内容后跳转S400,重新加载FPGA的部分内容,需要使用FPGA时可以迅速加载完成。Jump to S400 after erasing the content of the FPGA, and reload part of the content of the FPGA, which can be quickly loaded when the FPGA is needed.

本实施例中,在需要使用FPGA之前,FPGA仅加载了部分内容,此时FPGA的功耗非常小,在监测到需要使用FPGA时,仅仅需要加载FPGA的剩余内容,可以在很短的时间内完成加载,从而在不牺牲效率的情况下降低了FPGA的功耗。In this embodiment, before the FPGA needs to be used, the FPGA only loads part of the content. At this time, the power consumption of the FPGA is very small. When it is detected that the FPGA needs to be used, only the remaining content of the FPGA needs to be loaded. Loading is done, reducing FPGA power consumption without sacrificing efficiency.

如图5所示,为本发明实施例提供的一种FPGA的加载装置,包括:As shown in Figure 5, a loading device for FPGA provided by the embodiment of the present invention includes:

第一加载单元500,用于加载所述FPGA的部分内容,此时FPGA无法完成加载内容的检验;The first loading unit 500 is used to load part of the content of the FPGA, and now the FPGA cannot complete the inspection of the loaded content;

第一监测单元502,用于监测是否需要使用第一加载单元500加载后的FPGA;The first monitoring unit 502 is used to monitor whether the FPGA loaded by the first loading unit 500 needs to be used;

第二加载单元504,用于在所述第一监测单元502监测到需要使用FPGA时,加载FPGA的剩余内容。The second loading unit 504 is configured to load the remaining content of the FPGA when the first monitoring unit 502 detects that the FPGA needs to be used.

本实施例中,FPGA的加载装置在需要使用FPGA之前,FPGA仅加载了部分内容,此时FPGA的功耗非常小,在监测到需要使用FPGA时,仅仅需要加载FPGA的剩余内容,可以在很短的时间内完成加载,从而在不牺牲效率的情况下降低了FPGA的功耗。In this embodiment, before the FPGA loading device needs to use the FPGA, the FPGA only loads part of the content. At this time, the power consumption of the FPGA is very small. When it is detected that the FPGA needs to be used, only the remaining content of the FPGA needs to be loaded. The loading is completed in a short time, which reduces the power consumption of the FPGA without sacrificing efficiency.

如图6所示,为本发明实施例提供的一种FPGA的加载装置,包括:As shown in Figure 6, a loading device for FPGA provided by the embodiment of the present invention includes:

第一加载单元600,用于加载所述FPGA的部分内容,此时FPGA无法完成加载内容的检验;The first loading unit 600 is used to load part of the content of the FPGA, and now the FPGA cannot complete the inspection of the loaded content;

第一监测单元602,用于监测是否需要使用第一加载单元600加载后的FPGA;The first monitoring unit 602 is used to monitor whether the FPGA loaded by the first loading unit 600 needs to be used;

第二加载单元604,用于在所述第一监测单元602监测到需要使用FPGA时,加载FPGA的剩余内容;The second loading unit 604 is configured to load the remaining content of the FPGA when the first monitoring unit 602 detects that the FPGA needs to be used;

初始化单元606,用于初始化第二加载单元604加载后的FPGA;An initialization unit 606, configured to initialize the FPGA loaded by the second loading unit 604;

配置单元608,用于进行初始化单元606初始化后的FPGA的配置。The configuration unit 608 is configured to configure the FPGA after initialization by the initialization unit 606 .

本实施例中,FPGA的加载装置在需要使用FPGA之前,FPGA仅加载了部分内容,此时FPGA的功耗非常小,在监测到需要使用FPGA时,仅仅需要加载FPGA的剩余内容,可以在很短的时间内完成加载,从而在不牺牲效率的情况下降低了FPGA的功耗。In this embodiment, before the FPGA loading device needs to use the FPGA, the FPGA only loads part of the content. At this time, the power consumption of the FPGA is very small. When it is detected that the FPGA needs to be used, only the remaining content of the FPGA needs to be loaded. The loading is completed in a short time, which reduces the power consumption of the FPGA without sacrificing efficiency.

如图7所示,为本发明实施例提供的一种FPGA的加载装置,包括:As shown in Figure 7, a loading device for FPGA provided by the embodiment of the present invention includes:

第一加载单元700,用于加载所述FPGA的部分内容,此时FPGA无法完成加载内容的检验;The first loading unit 700 is used to load part of the content of the FPGA, and at this time the FPGA cannot complete the inspection of the loaded content;

第一监测单元702,用于监测是否需要使用第一加载单元700加载后的FPGA;The first monitoring unit 702 is used to monitor whether the FPGA loaded by the first loading unit 700 needs to be used;

第二加载单元704,用于在所述第一监测单元702监测到需要使用FPGA时,加载FPGA的剩余内容;The second loading unit 704 is configured to load the remaining content of the FPGA when the first monitoring unit 702 detects that the FPGA needs to be used;

初始化单元706,用于初始化第二加载单元704加载后的FPGA;An initialization unit 706, configured to initialize the FPGA loaded by the second loading unit 704;

配置单元708,用于进行初始化单元706初始化后的FPGA的配置;The configuration unit 708 is configured to configure the FPGA after initialization by the initialization unit 706;

第二监测单元710,用于监测是否需要使用配置单元708配置后FPGA;The second monitoring unit 710 is used to monitor whether the configuration unit 708 needs to be used to configure the FPGA;

第一擦除单元712,用于第二监测单元710监测到不需要使用FPGA时,擦除FPGA的内容。The first erasing unit 712 is configured to erase the contents of the FPGA when the second monitoring unit 710 detects that the FPGA is not needed.

第三加载单元714,用于加载擦除内容后的FPGA的部分内容,此时所述FPGA无法完成加载内容的检验;The third loading unit 714 is used to load part of the content of the FPGA after erasing the content. At this time, the FPGA cannot complete the inspection of the loaded content;

第四监测单元716,用于监测是否需要使用第三加载单元714加载后的FPGA;The fourth monitoring unit 716 is used to monitor whether the FPGA loaded by the third loading unit 714 needs to be used;

第四加载单元718,用于在所述第四监测单元716监测到需要使用FPGA时,加载FPGA的剩余内容。The fourth loading unit 718 is configured to load the remaining content of the FPGA when the fourth monitoring unit 716 detects that the FPGA needs to be used.

其中,第三加载单元714和第一加载单元700可以是同一个单元,也可以是不同的单元,加载的部分内容的大小可以不同;第四监测单元716和第一监测单元702可以是同一个单元,也可以是不同的单元;第四加载单元718和第二加载单元704可以是同一个单元,也可以是不同的单元。Wherein, the third loading unit 714 and the first loading unit 700 may be the same unit or different units, and the sizes of the loaded partial contents may be different; the fourth monitoring unit 716 and the first monitoring unit 702 may be the same The units may also be different units; the fourth loading unit 718 and the second loading unit 704 may be the same unit or different units.

本实施例中,FPGA的加载装置在需要使用FPGA之前,FPGA仅加载了部分内容,此时FPGA的功耗非常小,在监测到需要使用FPGA时,仅仅需要加载FPGA的剩余内容,可以在很短的时间内完成加载,从而在不牺牲效率的情况下降低了FPGA的功耗。In this embodiment, before the FPGA loading device needs to use the FPGA, the FPGA only loads part of the content. At this time, the power consumption of the FPGA is very small. When it is detected that the FPGA needs to be used, only the remaining content of the FPGA needs to be loaded. The loading is completed in a short time, which reduces the power consumption of the FPGA without sacrificing efficiency.

如图8所示,为本发明实施例提供的一种FPGA的加载装置,包括:As shown in Figure 8, a loading device for FPGA provided by the embodiment of the present invention includes:

第一加载单元800,用于加载所述FPGA的部分内容,此时FPGA无法完成加载内容的检验;The first loading unit 800 is used to load part of the content of the FPGA. At this time, the FPGA cannot complete the inspection of the loaded content;

第一监测单元802,用于监测是否需要使用第一加载单元800加载后的FPGA;The first monitoring unit 802 is used to monitor whether the FPGA loaded by the first loading unit 800 needs to be used;

第二加载单元804,用于在所述第一监测单元监测到需要使用FPGA时,加载FPGA的剩余内容;The second loading unit 804 is configured to load the remaining content of the FPGA when the first monitoring unit detects that the FPGA needs to be used;

初始化单元806,用于初始化第二加载单元804加载后的FPGA;An initialization unit 806, configured to initialize the FPGA loaded by the second loading unit 804;

配置单元808,用于进行初始化单元806初始化后的FPGA的配置;The configuration unit 808 is configured to configure the FPGA after initialization by the initialization unit 806;

第三监测单元810,用于监测是否需要使用配置单元808配置后FPGA;The third monitoring unit 810 is used to monitor whether the FPGA needs to be configured using the configuration unit 808;

第二擦除单元812,用于根据第三监测单元810的监测结果,如果不需要使用FPGA的时间超过预设的值,则擦除FPGA的内容。The second erasing unit 812 is configured to erase the contents of the FPGA according to the monitoring result of the third monitoring unit 810 if the time that the FPGA is not required to be used exceeds a preset value.

第三加载单元814,用于加载擦除内容后的FPGA的部分内容,此时所述FPGA无法完成加载内容的检验;The third loading unit 814 is used to load part of the content of the FPGA after erasing the content. At this time, the FPGA cannot complete the inspection of the loaded content;

第四监测单元816,用于监测是否需要使用第三加载单元814加载后的FPGA;The fourth monitoring unit 816 is used to monitor whether the FPGA loaded by the third loading unit 814 needs to be used;

第四加载单元818,用于在所述第四监测单元监测到需要使用FPGA时,加载FPGA的剩余内容。The fourth loading unit 818 is configured to load the remaining content of the FPGA when the fourth monitoring unit detects that the FPGA needs to be used.

其中,第三加载单元814和第一加载单元800可以是同一个单元,也可以是不同的单元;第四监测单元816和第一监测单元802可以是同一个单元,也可以是不同的单元;第四加载单元818和第二加载单元804可以是同一个单元,也可以是不同的单元。Wherein, the third loading unit 814 and the first loading unit 800 may be the same unit or different units; the fourth monitoring unit 816 and the first monitoring unit 802 may be the same unit or different units; The fourth loading unit 818 and the second loading unit 804 may be the same unit or different units.

本实施例中,FPGA的加载装置在需要使用FPGA之前,FPGA仅加载了部分内容,此时FPGA的功耗非常小,在监测到需要使用FPGA时,仅仅需要加载FPGA的剩余内容,可以在很短的时间内完成加载,从而在不牺牲效率的情况下降低了FPGA的功耗。In this embodiment, before the FPGA loading device needs to use the FPGA, the FPGA only loads part of the content. At this time, the power consumption of the FPGA is very small. When it is detected that the FPGA needs to be used, only the remaining content of the FPGA needs to be loaded. The loading is completed in a short time, which reduces the power consumption of the FPGA without sacrificing efficiency.

上述装置内各模块之间的信息交互,执行过程等内容,由于与本发明方法实施例基于同一构思,具体内容可参见本发明方法实施例中的叙述,此处不再赘述。The information interaction between modules in the above-mentioned device, the execution process, etc., are based on the same concept as the method embodiment of the present invention, and the specific content can refer to the description in the method embodiment of the present invention, and will not be repeated here.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the above description of the implementations, those skilled in the art can clearly understand that each implementation can be implemented by means of software plus a necessary general hardware platform, and of course also by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic discs, optical discs, etc., including several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) execute the methods described in various embodiments or some parts of the embodiments.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims (11)

1.一种现场可编程门阵列FPGA的加载方法,其特征在于,包括: 1. a loading method of field programmable gate array FPGA, is characterized in that, comprises: 加载所述FPGA的部分内容,此时所述FPGA无法完成加载内容的检验; Loading part of the content of the FPGA, at this time the FPGA cannot complete the inspection of the loaded content; 监测是否需要使用所述FPGA,如果是,则加载所述FPGA的剩余内容。 It is monitored whether the FPGA needs to be used, and if so, the remainder of the FPGA is loaded. 2.根据权利要求1所述的方法,其特征在于,根据所述FPGA对校验字段长度的要求确定所述剩余内容的大小。 2. The method according to claim 1, characterized in that the size of the remaining content is determined according to the requirements of the FPGA for the check field length. 3.根据权利要求1所述的方法,其特征在于,加载所述FPGA的剩余内容后还包括: 3. method according to claim 1, is characterized in that, after loading the remainder content of described FPGA also comprises: 初始化所述FPGA; initializing the FPGA; 进行FPGA的配置。 Configure the FPGA. 4.根据权利要求3所述的方法,其特征在于,进行FPGA的配置后还包括: 4. method according to claim 3, is characterized in that, also comprises after carrying out the configuration of FPGA: 监测是否需要使用所述FPGA; monitoring whether the FPGA needs to be used; 如果否,则擦除所述FPGA的内容。 If not, the contents of the FPGA are erased. 5.根据权利要求3所述的方法,其特征在于,进行FPGA的配置后还包括: 5. method according to claim 3, is characterized in that, also comprises after carrying out the configuration of FPGA: 监测是否需要使用所述FPGA; monitoring whether the FPGA needs to be used; 如果不需要使用所述FPGA的时间超过预设的值,则擦除所述FPGA的内容。 If the time that the FPGA does not need to be used exceeds a preset value, the content of the FPGA is erased. 6.根据权利要求4或5所述的方法,其特征在于,擦除所述FPGA的内容后还包括: 6. according to the method described in claim 4 or 5, it is characterized in that, after erasing the content of described FPGA, also comprise: 加载所述FPGA的部分内容,此时所述FPGA无法完成加载内容的检验; Loading part of the content of the FPGA, at this time the FPGA cannot complete the inspection of the loaded content; 监测是否需要使用所述FPGA,如果是,则加载所述FPGA的剩余内容。 It is monitored whether the FPGA needs to be used, and if so, the remainder of the FPGA is loaded. 7.一种FPGA的加载装置,其特征在于,包括: 7. a loading device of FPGA, is characterized in that, comprises: 第一加载单元,用于加载所述FPGA的部分内容,此时FPGA无法完成加载内容的检验; The first loading unit is used to load part of the content of the FPGA, and now the FPGA cannot complete the inspection of the loaded content; 第一监测单元,用于监测是否需要使用第一加载单元加载后的FPGA; The first monitoring unit is used to monitor whether the FPGA loaded by the first loading unit needs to be used; 第二加载单元,用于在所述第一监测单元监测到需要使用FPGA时,加载FPGA的剩余内容。 The second loading unit is configured to load the remaining content of the FPGA when the first monitoring unit detects that the FPGA needs to be used. 8.根据权利要求7所述的装置,其特征在于,还包括: 8. The device according to claim 7, further comprising: 初始化单元,用于初始化第二加载单元加载后的FPGA;  The initialization unit is used to initialize the FPGA after the second loading unit is loaded; 配置单元,用于进行初始化单元初始化后的FPGA的配置。 The configuration unit is used to configure the FPGA after initialization by the initialization unit. 9.根据权利要求8所述的装置,其特征在于,还包括:  9. The device according to claim 8, further comprising: 第二监测单元,用于监测是否需要使用配置单元配置后FPGA;  The second monitoring unit is used to monitor whether the configuration unit needs to be used to configure the FPGA; 第一擦除单元,用于第二监测单元监测到不需要使用FPGA时,擦除FPGA的内容。  The first erasing unit is used for erasing the contents of the FPGA when the second monitoring unit detects that the FPGA is not needed. the 10.根据权利要求8所述的装置,其特征在于,还包括:  10. The device according to claim 8, further comprising: 第三监测单元,用于监测是否需要使用配置单元配置后FPGA;  The third monitoring unit is used to monitor whether the configuration unit needs to be used to configure the FPGA; 第二擦除单元,用于根据第三监测单元的监测结果,如果不需要使用FPGA的时间超过预设的值,则擦除FPGA的内容。  The second erasing unit is configured to, according to the monitoring result of the third monitoring unit, erase the content of the FPGA if the time that the FPGA is not required to be used exceeds a preset value. the 11.根据权利要求9或10所述的装置,其特征在于,还包括:  11. The device according to claim 9 or 10, further comprising: 第三加载单元,用于加载擦除内容后的FPGA的部分内容,此时所述FPGA无法完成加载内容的检验;  The third loading unit is used to load part of the content of the FPGA after erasing the content. At this time, the FPGA cannot complete the inspection of the loaded content; 第四监测单元,用于监测是否需要使用第三加载单元加载后的FPGA;  The fourth monitoring unit is used to monitor whether the FPGA loaded by the third loading unit needs to be used; 第四加载单元,用于在所述第四监测单元监测到需要使用FPGA时,加载FPGA的剩余内容。  The fourth loading unit is configured to load the remaining content of the FPGA when the fourth monitoring unit detects that the FPGA needs to be used. the
CN 200910238865 2009-12-30 2009-12-30 Method and device for loading FPGA (Field Programmable Gate Array) Expired - Fee Related CN102118157B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910238865 CN102118157B (en) 2009-12-30 2009-12-30 Method and device for loading FPGA (Field Programmable Gate Array)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910238865 CN102118157B (en) 2009-12-30 2009-12-30 Method and device for loading FPGA (Field Programmable Gate Array)

Publications (2)

Publication Number Publication Date
CN102118157A CN102118157A (en) 2011-07-06
CN102118157B true CN102118157B (en) 2013-04-17

Family

ID=44216781

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910238865 Expired - Fee Related CN102118157B (en) 2009-12-30 2009-12-30 Method and device for loading FPGA (Field Programmable Gate Array)

Country Status (1)

Country Link
CN (1) CN102118157B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5781756A (en) * 1994-04-01 1998-07-14 Xilinx, Inc. Programmable logic device with partially configurable memory cells and a method for configuration
CN1434953A (en) * 1999-12-14 2003-08-06 爱特梅尔股份有限公司 Method for implementing physical design for dynamically reconfigurable logic circuit

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5781756A (en) * 1994-04-01 1998-07-14 Xilinx, Inc. Programmable logic device with partially configurable memory cells and a method for configuration
CN1434953A (en) * 1999-12-14 2003-08-06 爱特梅尔股份有限公司 Method for implementing physical design for dynamically reconfigurable logic circuit

Also Published As

Publication number Publication date
CN102118157A (en) 2011-07-06

Similar Documents

Publication Publication Date Title
US9223982B2 (en) Continuation of trust for platform boot firmware
JP5908991B2 (en) Secure direct memory access
CN105160255A (en) Trustworthy measurement apparatus and method
CN106127057A (en) Method for constructing trusted boot control based on TPM
CN106874771A (en) A kind of method and device for building reliable hardware trust chain
CN109597658A (en) Dynamically enable and disable in a computing environment the technology of accelerator facility
CN110020528A (en) A kind of BMC starting method, apparatus and electronic equipment and storage medium
CN101634960A (en) Method for revising BIOS parameter and regenerating checksum
CN111258613A (en) Firmware upgrade method, device, electronic device and storage medium
TWI591479B (en) Apparatus and method for initializing port of electronic device
TW201413440A (en) Method for controlling power mode switching
CN116776317A (en) System validity verification method and device and electronic equipment
TWI512629B (en) Apparatus and method for table driven multiple passive trip platform passive thermal management, computeing system, and computer-readable medium
CN102118157B (en) Method and device for loading FPGA (Field Programmable Gate Array)
CN105573860A (en) STD (Suspend to disk) management method and STD management system used in computer system
CN104598283A (en) Method for realizing single-architecture multi-structure BMC firmware program
TW201351120A (en) Methods and apparatus for communicating available battery power
CN107204206A (en) A kind of electrical fuse programming method, terminal and computer-readable recording medium
CN105988542A (en) Computer stick expansion system and power management method thereof
CN106200847A (en) Method for realizing Clear CMOS function by ARM platform
CN102981588B (en) System and method capable of starting up through universal sequence bus device
CN106371019A (en) Electric quantity display system and method
US20150039925A1 (en) Computing device and method for adjusting an operating status of a computing device
CN107611509A (en) A kind of intelligent terminal and its charging method and the device with store function
CN103257597B (en) Control method and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130417

Termination date: 20151230

EXPY Termination of patent right or utility model