FPGA online upgrading method based on NiosII soft core

A soft core and data upgrade technology, applied in the electronic field, can solve problems such as failure to start, device firmware damage, increased hardware cost and circuit board size, etc., to achieve the effect of reducing cost and device size restrictions, and reducing startup delay

Pending Publication Date: 2020-12-29
HEFEI I TEK OPTOELECTRONICS CO LTD
View PDF0 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the above solution, the disadvantage of implementing FPGA firmware upgrade through MCU is that it increases hardware cost and circuit board size
[0005] The second solution can only update FPGA firmware in a separate online upgrade program, which limits the flexibility of online upgrade. When the device starts, it needs to wait for the online update command to time out, which increases the device startup time.
During the FPGA firmware update process, if there is a transmission error, a sudden power failure, etc., the device firmware may be damaged and cannot be started.

Method used

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • FPGA online upgrading method based on NiosII soft core
  • FPGA online upgrading method based on NiosII soft core
  • FPGA online upgrading method based on NiosII soft core

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0038] Example: such as figure 1 As shown, the device adopts Intel FPGA, connected with FLASH memory chip for FPGA configuration, and externally provides a communication interface for sending commands and data transmission. In the embodiment, a serial port is used as the communication interface.

[0039] As an embodiment, a Nios II system-on-a-chip is implemented on the FPGA, including a Nios II soft-core processor, an on-chip memory, a UART serial port module, and an EPCQController module, wherein the EPCQController module is used for reading and writing the FLASH memory. In addition, a RemoteUpdate module is added to the FPGA, which is used to control the FPGA to load other images in the FLASH memory, and to obtain the image loading status.

[0040] Such as figure 2 As shown, two sets of images are stored in the memory, and each set of images contains an FPGA firmware and a Nios II firmware. Among them, the first and third firmwares are boot images, which are called FPGA b...

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

PUM

No PUM Login to view more

Abstract

The invention discloses an FPGA online upgrading method based on a NiosII soft core, which comprises the following steps: 1, operating the NiosII soft core on an FPGA to be used for responding to an online upgrading instruction and reading and writing a memory; 2, storing two groups of mirror images, namely a starting mirror image and a working mirror image in a memory; 3, loading the starting mirror image after the FPGA is powered on, trying to switch to the working mirror image, and returning to the starting mirror image if the switching fails; and the two groups of mirror images can be upgraded on line. According to the invention, the convenient and stable FPGA online upgrading function can be achieved, it can be guaranteed that the equipment can be started and upgraded again when accidents happen in the upgrading process, in addition, other hardware modules do not need to be added, and therefore cost and equipment size limitation are reduced.

Description

technical field [0001] The invention relates to the field of electronic technology, in particular to an FPGA online upgrade method based on Nios II soft core, and the application product is a device using Intel FPGA and having an external communication interface. Background technique [0002] In the industrial field, FPGA (Field Programmable Gate Array) is often used to realize functions such as data acquisition, data processing, and data transmission. The general firmware upgrade method of FPGA is to connect the JTAG interface through the FPGA downloader, but the device usually does not expose the JTAG interface. In some cases where disassembly is inconvenient, the FPGA firmware cannot be upgraded through the JTAG interface. [0003] Currently, there are many solutions for FPGA online upgrade. One solution is based on the MCU and the analog switch, through which the MCU controls the analog switch, and connects the FPGA configuration FLASH to the MCU pins, and realizes rea...

Claims

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

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/654G06F8/61G06F9/445
CPCG06F8/63G06F9/44521G06F8/654
Inventor 张光宇杨晨飞曹桂平董宁
Owner HEFEI I TEK OPTOELECTRONICS CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products