Nothing Special   »   [go: up one dir, main page]

CN101493778A - Programmable logic device upgrading method, apparatus and system - Google Patents

Programmable logic device upgrading method, apparatus and system Download PDF

Info

Publication number
CN101493778A
CN101493778A CNA2009101186350A CN200910118635A CN101493778A CN 101493778 A CN101493778 A CN 101493778A CN A2009101186350 A CNA2009101186350 A CN A2009101186350A CN 200910118635 A CN200910118635 A CN 200910118635A CN 101493778 A CN101493778 A CN 101493778A
Authority
CN
China
Prior art keywords
updated
content
programmable logic
logic device
updating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CNA2009101186350A
Other languages
Chinese (zh)
Inventor
张见
秦海林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CNA2009101186350A priority Critical patent/CN101493778A/en
Publication of CN101493778A publication Critical patent/CN101493778A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

The embodiment of the invention discloses a method for upgrading a programmable logic device, and a device and a system thereof. With the realization of the method as the example, the method comprises obtaining number of terms of contents needing to be updated; sending the contents needing to be updated to the programmable logic device and updating the contents needing to be updated to the command of a nonvolatile memory; and sending a command of updating the contents of the nonvolatile memory to logic of the programmable logic device when or after the sent updated number of terms reaches the number of terms of the contents needing to be updated. The technical scheme has the following advantages that the update of PLD becomes a controlled update through dividing and updating the command of the nonvolatile memory and the command of updating the contents of the nonvolatile memory to the logic of the programmable logic device, thus realizing restarting the PLD system after a plurality of logics are updated, saving the upgrading time, reducing the interrupt times of business, and improving the experience of users.

Description

Method, device and system for upgrading programmable logic device
Technical Field
The present invention relates to the field of microelectronic technologies, and in particular, to a method, an apparatus, and a system for upgrading a programmable logic device.
Background
With the development and popularization of microelectronic technology, more and more electronic engineering personnel adopt Programmable Logic Devices (PLDs) to realize their electronic products, so that the time to market of the products is shortened, the performance and reliability are greatly improved, and the cost of the whole machine is reduced; because most PLDs are one-time programmable, it is difficult to modify or upgrade the functions of a programmable logic device after it is installed on a circuit board.
In recent years, an In-System Programmable (ISP) logic device has appeared, and this ISP technology can redefine the logic functions of the logic device, circuit board and the whole System before, during or after the generation and supply of electronic products, so that the hardware design is as flexible as software and easy to modify, which not only greatly simplifies the design and production flow, but also brings great convenience for the upgrade service of the products.
Referring to fig. 1, generally, PLD logic is based on a Static Random Access Memory (SRAM) architecture, and a storage space similar to a flash Memory 102a (flash) is also provided inside a programmable logic device 102 (PLD). The method for upgrading the PLD logic is as follows: an external updating device 101 sends a target file to the PLD, wherein the target file is created according to the standard of Joint Test Action Group (JTAG) and comprises a command for updating the content of the flash (102a), the content needing to be updated and a command for updating the content of the flash (102a) to the logic 102b based on the SRAM PLD; the PLD receives the update message, reads a command for updating the flash (102a) content and then updates the content to be updated into the flash (102 a); after reading the command of updating the content of the flash (102a) to the SRAM PLD logic 102b, the content of the flash (102a) is updated to the SRAM PLD logic 102b, thereby realizing the upgrading of the PLD system.
The inventor finds the following problems in the prior art in the process of implementing the invention: because the PLD and the system reset have strong correlation, the system needs to be restarted after the upgrading of one PLD is finished, and then the upgrading of another logic can be carried out, so that when a plurality of PLD programs need to be upgraded, the system needs to be restarted for many times, the repeated restarting takes long time, and the restarting can interrupt service, thereby causing poor user experience.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a method, an apparatus, and a system for upgrading a programmable logic device, which can save upgrading time, reduce service interruption times, and improve user experience.
In order to solve the above technical problem, the embodiment of the method for upgrading the programmable logic device provided by the present invention can be implemented by the following technical solutions:
acquiring the number of items of the content to be updated; sending a content needing to be updated to a programmable logic device and a command for updating the content needing to be updated to a nonvolatile memory;
and when or after the number of the sent updated items reaches the number of the items of the content needing to be updated, sending a command for updating the content of the nonvolatile memory into the logic of the programmable logic device to the programmable logic device.
An embodiment of the present invention further provides an update apparatus, including:
an item number acquisition unit for acquiring the number of items of the content that needs to be updated;
the device comprises a first sending unit, a second sending unit and a control unit, wherein the first sending unit is used for sending a content needing to be updated to a programmable logic device and a command for updating the content needing to be updated to a nonvolatile memory;
a transmission item counting unit for counting the number of items of the update that have been transmitted;
and a second sending unit, for sending a command for updating the content of the nonvolatile memory to the logic of the programmable logic device when or after the number of items of the updated contents which have been sent reaches the number of items of the contents which need to be updated.
The embodiment of the present invention further provides a system for upgrading a programmable logic device, including:
the updating device is used for acquiring the number of items of the content needing to be updated, and sending the content needing to be updated and a command for updating the content needing to be updated to the nonvolatile memory to the programmable logic device;
when or after the number of the sent updated items reaches the number of the items of the content needing to be updated, sending a command for updating the content of the nonvolatile memory into the logic of the programmable logic device to the programmable logic device;
the programmable logic device is used for updating the content needing to be updated to the nonvolatile memory after receiving the content needing to be updated and a command for updating the content needing to be updated to the nonvolatile memory; and after a command for updating the content of the nonvolatile memory into the logic of the programmable logic device is received, updating the content of the nonvolatile memory into the logic of the programmable logic device.
The technical scheme has the following beneficial effects: the updating of the PLD updates the PLD after receiving a command for updating the content of the nonvolatile memory into the logic of the programmable logic device, and the updating of the PLD becomes controlled updating by splitting the command for updating the nonvolatile memory and the command for updating the content of the nonvolatile memory into the logic of the programmable logic device, so that the PLD system is restarted after a plurality of logics are updated, the upgrading time is saved, the service interruption times are reduced, and the user experience is improved.
Drawings
FIG. 1 is a schematic diagram of a system architecture for upgrading PLDs using prior art ISP technology;
FIG. 2 is a schematic flow chart of a method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a second exemplary embodiment of an update apparatus;
FIG. 4 is a schematic structural diagram of another refresh apparatus according to a second embodiment of the present invention;
FIG. 5 is a schematic diagram of a second exemplary embodiment of an apparatus for updating an image;
fig. 6 is a schematic structural diagram of a three PLD upgrading system according to an embodiment of the present invention.
Detailed Description
The technical problem to be solved by the embodiments of the present invention is to provide a method for upgrading a programmable logic device, which can save upgrading time, reduce service interruption times, and improve user experience.
In a first embodiment, as shown in fig. 2, a method for upgrading a programmable logic device according to an embodiment of the present invention may include:
201: acquiring the number of items of the content to be updated;
202: sending a content needing to be updated to the programmable logic device and a command for updating the content needing to be updated to the nonvolatile memory;
202, creating a first target file, wherein the first target file contains a command for updating the nonvolatile memory and contents to be updated; sending a first target file to the programmable logic device; the first target file may be a netlist file in a Serial Vector Format (SVF);
203: when or after the number of items of the updated contents which have been sent reaches the number of items of the contents which need to be updated, a command for updating the contents of the nonvolatile memory into the logic of the programmable logic device is sent to the programmable logic device.
The logic of the programmable logic device may be volatile-based PLD logic, such as: static Random Access Memory (SRAM) PLD logic, and the like.
If the first target file is sent: after the number of items of the sent update reaches the number of items of the content needing to be updated, the following steps are carried out: and sending the command for updating the content of the nonvolatile memory to the logic of the programmable logic device after the sent first target file reaches the number of items of the content needing to be updated. The command to update the contents of the non-volatile memory to the logic of the programmable logic device may be a separate message that does not include the contents to be updated and the command to update the contents to be updated to the non-volatile memory.
Further, 202 may be: creating a first object file, wherein the first object file comprises a command for updating a nonvolatile memory and contents to be updated, and the first object file has at least one item number more than the contents to be updated; sending a first target file to the programmable logic device;
at this time 203 may then be: creating a second object file, wherein the second object file comprises a command for updating the nonvolatile memory, the missing one needs to be updated, and a command for updating the content of the nonvolatile memory into the logic of the programmable logic device; and after the first target file is sent, sending a second target file to the programmable logic device.
The main execution units in the above embodiments are devices for updating the PLD, and may be a Central Processing Unit (CPU), a Field Programmable Gate Array (FPGA), a parallel port, or the like. The nonvolatile memory may be: flash memory (flash), Electrically Erasable Programmable Read Only Memory (EPROM), and the like.
In the embodiment, the update of the PLD is performed after the command for updating the content of the nonvolatile memory into the logic of the programmable logic device is received, and the update of the PLD is controlled to be updated by splitting the command for updating the nonvolatile memory and the command for updating the content of the nonvolatile memory into the logic of the programmable logic device, so that the PLD system is restarted after a plurality of logics are updated, the upgrading time is saved, the service interruption times are reduced, and the user experience is improved.
In a second embodiment, as shown in fig. 3, an embodiment of the present invention further provides an updating apparatus, including:
an item number acquisition unit 301 for acquiring the number of items of content that needs to be updated;
a first sending unit 302, configured to send a command to send content that needs to be updated to a programmable logic device and update the content that needs to be updated to a non-volatile memory;
a transmission item counting unit 303 for counting the number of items of the update that have been transmitted;
a second sending unit 304, configured to send a command to the programmable logic device to update the non-volatile memory content to the logic of the programmable logic device when or after the number of items of the updated contents that have been sent reaches the number of items of the contents that need to be updated.
Optionally, as shown in fig. 4, the first sending unit includes:
a first object file creating unit 401, configured to create a first object file, where the first object file includes a command for updating the nonvolatile memory and a content that needs to be updated;
a first target file sending unit 402, configured to send a first target file to the programmable logic device;
the above-mentioned transmitted item counting unit 303 is specifically configured to count the number of items of the first target file that have been transmitted;
the second sending unit 304 is specifically configured to send a command to the programmable logic device to update the content of the nonvolatile memory into the logic of the programmable logic device after the sent first target file reaches the number of items of the content to be updated.
Optionally, as shown in fig. 5, the first sending unit includes:
a first object file creating unit 501, configured to create a first object file, where the first object file includes a command for updating a nonvolatile memory and a content that needs to be updated; the number of the first target files is at least one than that of the content to be updated;
a first target file sending unit 502, configured to send a first target file to the programmable logic device;
the above-mentioned transmitted item counting unit 303 is specifically configured to count the number of items of the first target file that have been transmitted;
the second transmitting unit includes:
a second target file creating unit 503, configured to create a second target file, where the second target file includes a command to update the nonvolatile memory, the missing one item needing to be updated, and a command to update the content of the nonvolatile memory to the logic of the programmable logic device;
a second target file sending unit 504, configured to send a second target file to the programmable logic device after the first target file is sent.
In a third embodiment, as shown in fig. 6, an embodiment of the present invention further provides a system for upgrading a programmable logic device, including: an update apparatus 601 and a programmable logic device 602.
Wherein,
the updating device 601 is configured to obtain the number of items of the content that needs to be updated, and send the content that needs to be updated and a command for updating the content that needs to be updated to the nonvolatile memory to the programmable logic device 602;
when or after the number of items of the updated contents that have been sent reaches the above-described number of items of the contents that need to be updated, a command to update the contents of the nonvolatile memory into the logic of the programmable logic device is sent to the programmable logic device 602.
A programmable logic device 602, configured to receive the content to be updated and a command to update the content to be updated to a nonvolatile memory, and update the content to be updated to the nonvolatile memory; and after a command for updating the content of the nonvolatile memory into the logic of the programmable logic device is received, updating the content of the nonvolatile memory into the logic of the programmable logic device.
The device for updating the PLD may be a Central Processing Unit (CPU), a Field Programmable Gate Array (FPGA), a parallel port, or the like. The nonvolatile memory may be: flash memory (Flash), electrically Erasable Programmable Read Only Memory (EPROM), and the like. The logic of the programmable logic device may be volatile-based PLD logic, such as SRAM PLD logic, Static random access (Static random access) PLD logic, or the like.
In the embodiment, the update of the PLD is performed after the command for updating the content of the nonvolatile memory into the logic of the programmable logic device is received, and the update of the PLD is controlled to be updated by splitting the command for updating the nonvolatile memory and the command for updating the content of the nonvolatile memory into the logic of the programmable logic device, so that the PLD system is restarted after a plurality of logics are updated, the upgrading time is saved, the service interruption times are reduced, and the user experience is improved.
It will be understood by those skilled in the art that all or part of the steps in the method for implementing the above embodiments may be implemented by hardware that is related to instructions of a program, and the program may be stored in a computer-readable storage medium, where the above-mentioned storage medium may be a memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The method, the apparatus, and the system for upgrading a programmable logic device according to the embodiments of the present invention are described in detail above, and a specific example is applied in the present disclosure to explain the principle and the implementation of the present invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (7)

1. A method of programmable logic device upgrade, comprising:
acquiring the number of items of the content to be updated; sending a content needing to be updated to a programmable logic device and a command for updating the content needing to be updated to a nonvolatile memory;
and when or after the number of the sent updated items reaches the number of the items of the content needing to be updated, sending a command for updating the content of the nonvolatile memory into the logic of the programmable logic device to the programmable logic device.
2. The method of claim 1, wherein the sending the content requiring updating to the programmable logic device and the command to update the content requiring updating to the non-volatile memory comprises:
creating a first target file, wherein the first target file comprises a command for updating the nonvolatile memory and contents needing to be updated; sending a first target file to the programmable logic device;
the updating of the sent number of items to the number of items of the content needing to be updated comprises:
after the first target file which has been transmitted reaches the number of items of the content which needs to be updated.
3. The method of claim 1, wherein the sending the content requiring updating to the programmable logic device and the command to update the content requiring updating to the non-volatile memory comprises:
creating a first target file, wherein the first target file comprises a command for updating a nonvolatile memory and content needing to be updated, and the first target file is at least one item than the content needing to be updated; sending a first target file to the programmable logic device;
when the number of items of the content that needs to be updated reaches the number of items of the content that needs to be updated, sending a command to the programmable logic device to update the content of the non-volatile memory into the logic of the programmable logic device comprises:
creating a second target file containing a command to update the non-volatile memory, the missing one item requiring updating of content, and a command to update the non-volatile memory content into the logic of the programmable logic device; and after the first target file is sent, sending a second target file to the programmable logic device.
4. An updating apparatus, comprising:
an item number acquisition unit for acquiring the number of items of the content that needs to be updated;
the device comprises a first sending unit, a second sending unit and a control unit, wherein the first sending unit is used for sending a content needing to be updated to a programmable logic device and a command for updating the content needing to be updated to a nonvolatile memory;
a transmission item counting unit for counting the number of items of the update that have been transmitted;
and a second sending unit, for sending a command for updating the content of the nonvolatile memory to the logic of the programmable logic device when or after the number of items of the updated contents which have been sent reaches the number of items of the contents which need to be updated.
5. The apparatus of claim 4, wherein the first sending unit comprises:
a first object file creating unit for creating a first object file containing a command to update the nonvolatile memory and contents to be updated;
the first target file sending unit is used for sending a first target file to the programmable logic device;
the sending item counting unit is specifically used for counting the number of items of the sent first target file;
the second sending unit is specifically configured to send a command for updating the content of the nonvolatile memory into the logic of the programmable logic device to the programmable logic device after the sent first target file reaches the number of items of the content to be updated.
6. The apparatus of claim 4, wherein the first sending unit comprises:
a first object file creating unit for creating a first object file containing a command to update the nonvolatile memory and contents to be updated; the first target file number is at least one item greater than the content needing to be updated;
the first target file sending unit is used for sending a first target file to the programmable logic device;
the sending item counting unit is specifically used for counting the number of items of the sent first target file;
the second transmitting unit includes:
a second target file creating unit, configured to create a second target file, where the second target file includes a command to update the nonvolatile memory, the missing one item of content to be updated, and a command to update the content of the nonvolatile memory to the logic of the programmable logic device;
and the second target file sending unit is used for sending a second target file to the programmable logic device after the first target file is sent.
7. A system for programmable logic device upgrade, comprising:
the updating device is used for acquiring the number of items of the content needing to be updated, and sending the content needing to be updated and a command for updating the content needing to be updated to the nonvolatile memory to the programmable logic device;
when or after the number of the sent updated items reaches the number of the items of the content needing to be updated, sending a command for updating the content of the nonvolatile memory into the logic of the programmable logic device to the programmable logic device;
the programmable logic device is used for updating the content needing to be updated to the nonvolatile memory after receiving the content needing to be updated and a command for updating the content needing to be updated to the nonvolatile memory; and after a command for updating the content of the nonvolatile memory into the logic of the programmable logic device is received, updating the content of the nonvolatile memory into the logic of the programmable logic device.
CNA2009101186350A 2009-02-27 2009-02-27 Programmable logic device upgrading method, apparatus and system Pending CN101493778A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2009101186350A CN101493778A (en) 2009-02-27 2009-02-27 Programmable logic device upgrading method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2009101186350A CN101493778A (en) 2009-02-27 2009-02-27 Programmable logic device upgrading method, apparatus and system

Publications (1)

Publication Number Publication Date
CN101493778A true CN101493778A (en) 2009-07-29

Family

ID=40924390

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2009101186350A Pending CN101493778A (en) 2009-02-27 2009-02-27 Programmable logic device upgrading method, apparatus and system

Country Status (1)

Country Link
CN (1) CN101493778A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107870776A (en) * 2017-11-03 2018-04-03 北京锐安科技有限公司 A kind of IPMC online upgradings method and device
CN110941444A (en) * 2019-12-28 2020-03-31 深圳开立生物医疗科技股份有限公司 Upgrade configuration logic circuit, method and system and programmable logic device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107870776A (en) * 2017-11-03 2018-04-03 北京锐安科技有限公司 A kind of IPMC online upgradings method and device
CN107870776B (en) * 2017-11-03 2021-01-12 北京锐安科技有限公司 IPMC online upgrading method and device
CN110941444A (en) * 2019-12-28 2020-03-31 深圳开立生物医疗科技股份有限公司 Upgrade configuration logic circuit, method and system and programmable logic device

Similar Documents

Publication Publication Date Title
CN105138382B (en) A kind of method and terminal of android system upgrading
CN109656593B (en) Method for realizing remote upgrading of FPGA (field programmable Gate array) program based on ZYNQ (z-YNQ) chip
US11418621B2 (en) Cloud-based composable data layer
US10228830B2 (en) Method for starting application program, terminal and non-transitory computer readable storage medium
US20140137095A1 (en) Server and method for updating firmware of server
CN111538521B (en) Intelligent contract deployment and transaction method and device
KR20120052406A (en) Firmware image update and management
CN107203465B (en) System interface testing method and device
CN102662717A (en) Bootstrap starting method of embedded system
CN105511962A (en) Rendering method and device
CN106020905B (en) Method and system for developing and updating microcontroller firmware
CN104951329A (en) Configuration and startup method of application templates and mobile terminal
CN112732628A (en) Inter-core data processing method and system, system on chip and electronic equipment
CN104077161A (en) Client application updating method and device
CN108139955A (en) For providing the system and method for the Wrong control independently of operating system in computing device
CN102495552A (en) Real-time simulation system oriented to space-borne electronic system
CN102945193B (en) A kind of restoration methods and electronic equipment of operation data
CN105278976B (en) A kind of FPGA reconstruct device, system and method
CN103533534B (en) Firmware wireless upgrading method for DECT (Digital Enhanced Cordless Telecommunications) mobile phone
CN101493778A (en) Programmable logic device upgrading method, apparatus and system
CN109901849A (en) Application program installation method, device, electronic equipment and storage medium
CN104298618B (en) The command handling method and device of a kind of intelligent terminal
CN107949828A (en) Method and apparatus for the execution of the machine code in application to be dynamically offloaded to virtual machine
CN110505097B (en) Forwarding plane upgrading method and device, electronic equipment and storage medium
CN110083355B (en) APP page processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20090729