CN102968326A - Field programmable gate array (FPGA) parallel dynamic loading method - Google Patents
Field programmable gate array (FPGA) parallel dynamic loading method Download PDFInfo
- Publication number
- CN102968326A CN102968326A CN2012105289555A CN201210528955A CN102968326A CN 102968326 A CN102968326 A CN 102968326A CN 2012105289555 A CN2012105289555 A CN 2012105289555A CN 201210528955 A CN201210528955 A CN 201210528955A CN 102968326 A CN102968326 A CN 102968326A
- Authority
- CN
- China
- Prior art keywords
- fpga
- mapping file
- loaded
- image file
- transmission mode
- 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
Links
Images
Abstract
The invention relates to an FPGA parallel dynamic loading method and belongs to the technical field of electro-optical countermeasures. The method comprises the steps that a mapping file to be loaded is generated according to a product requirement and a functional demand; the mapping file is written into an FLASH storage; a core digital signal processor (DSP) reads the mapping file; and the core DSP loads the mapping file into an FPGA chip to be loaded in a parallel transmission mode through a bus. The technical scheme includes that the mapping file is loaded to the FPGA chip through the parallel transmission mode which is based on the bus. Compared with an existing serial transmission mode, the parallel transmission mode improves the loading speed greatly. The mapping file which meets the requirement of the chip and the application demand can be generated through a joint test action group (JTAG) programming mode in advance, so that the mapping file can be updated at any time, the flexibility of a system is improved effectively, the trouble in repeated inserting and pulling of the FLASH storage in the prior art is avoided at the same time, and the time cost of an operator is reduced greatly.
Description
Technical field
The present invention relates to the photoelectronic warfare field, be specifically related to the parallel dynamic loading method of a kind of FPGA, it can be applicable in the hardware circuit design of weapon platform DSP+FPGA framework.
Background technology
FPGA (Field-Programmable Gate Array, field programmable gate array) the loaded in parallel mode of mainstream applications is to adopt the modes such as external FLASH storer, synchronous serial interface to load at present.
Because the FLASH storer that the manufacturer of FPGA is provided for loading more, it meets the loading sequential of FPGA, support simultaneously JTAG (Joint Test Action Group, joint test behavior organizational standard) programmes, from ordinary meaning, it is a kind of very easily download scenarios, certainly, also can adopt synchronous serial interface to realize loading.
But no matter be that the FLASH storer loads or synchronous serial interface loads, all can't provide good speed of download, this is under fairly large application scenario, and its load time often surpasses 300ms, affects the toggle speed of system.In addition, adopting FLASH storer mode to load also can be because of the change of demand, thereby ceaselessly the FLASH storer is transferred to separately xcopy, thereby has greatly increased process complexity, has increased the weight of staff's time cost.
Therefore, how to develop the new FPGA load mode under a kind of DSP of being applied to (Digital Signal Processor, digital signal processor)+FPGA framework, with the requirement of the aspects such as the high speed that adapts to loading velocity and system flexibility.
Summary of the invention
The technical matters that (one) will solve
The technical problem to be solved in the present invention is how to improve the speed of FPGA loading procedure in the prior art, the dirigibility of system applies, and the artificial time cost that how to reduce existing FPGA loading scheme.
(2) technical scheme
In order to solve the problems of the technologies described above, the invention provides the parallel dynamic loading method of a kind of FPGA, the method comprises the steps:
Step S1: according to the product application requirements of fpga chip to be loaded and the function needs in the concrete practical application, generate the image file to fpga chip to be loaded;
Step S2: described image file is write in the FLASH storer;
Step S3: read image file in the described FLASH storer by the DSP core processor;
Step S4:DSP core processor is loaded on described image file in the described fpga chip to be loaded by the mode of bus with parallel transmission.
Wherein, among the described step S1, generate the image file to fpga chip to be loaded by the JTAG programming mode.
Wherein, among the described step S2, by the JTAG programming mode described image file is write in the FLASH storer.
(3) beneficial effect
Technical solution of the present invention possesses following some beneficial effect compared with prior art:
(1) loads image file to fpga chip by the parallel transmission mode based on bus, thereby compare existing serial transmission mode, greatly promoted loading velocity.
(2) owing to can generate the image file that meets chip requirement and application demand by the JTAG programming mode in advance, thereby can realize the at any time renewal of image file, in the Effective Raise system flexibility, also avoid repeatedly plugging in the prior art trouble of FLASH storer, greatly reduced operating personnel's time cost.
Description of drawings
Fig. 1 is the process flow diagram of technical solution of the present invention.
Fig. 2 is the interface synoptic diagram that generates image file in the technical solution of the present invention.
Fig. 3 is the schematic diagram that disposes interlock circuit in the technical solution of the present invention with fpga chip.
Embodiment
For making purpose of the present invention, content and advantage clearer, below in conjunction with drawings and Examples, the specific embodiment of the present invention is described in further detail.
Be the speed that improves FPGA loading procedure in the prior art, the dirigibility of system applies, and the artificial time cost that how to reduce existing FPGA loading scheme, the invention provides the parallel dynamic loading method of a kind of FPGA, as shown in Figure 1, the method comprises the steps:
Step S1: according to the product application requirements of fpga chip to be loaded and the function needs in the concrete practical application, generate the image file to fpga chip to be loaded by the JTAG programming mode;
Step S2: described image file is write in the FLASH storer by the JTAG programming mode;
Step S3: read image file in the described FLASH storer by the DSP core processor;
Step S4:DSP core processor is loaded on described image file in the described fpga chip to be loaded by the mode of bus with parallel transmission.
Specify below in conjunction with embodiment.
Embodiment
Present embodiment comes implementation based on technique scheme, and its description comprises: circuit design part, image file generating portion and image file loading section.
1, circuit design
The DSP core processor of present embodiment product-based ADSP-TS101 designs.
As shown in Figure 2, wherein, fpga chip loads by the external bus of DSP core processor.
The M[2:0 of FPGA is set] be 110, FPGA namely is set in Slave Parallel pattern, the PROGRAM signal of FPGA is used for removing FPGA under this pattern, whether the INIT signal is used to indicate reset mode and finishes, and whether the DONE signal is used to indicate loading successful, D[0:7] input as data, CCLK is as input clock, CS selects as sheet, and/WR is as written allowance signal, and BUSY is as the FPGA busy signal.
Because the cycle of FPGA is much smaller than the operating cycle of DSP, so the not use of BUSY signal, and is unsettled.
FLAG1 is set as the output signal of DSP, and the reset signal of DSP through diode line with after be used for controlling the PROGRAM signal;
FLAG2 is set as the input signal of DSP, is used for detecting the INIT signal of FPGA;
The DONE signal of FPGA is connected to light emitting diode, is used to refer to the stress state of FPGA;
The D[0:7 of FPGA] with DSP_D[0:7] link to each other;
Because FPGA is only had write operation, so FPGA /the WR signal ground;
The MS1 connection is connected in CS sheet choosing with DSP;
CCLK is connected WRL and is connected with DSP;
2, image file generates
At first, utilize Xilinx ISE to edit the project file that will download to FPGA, load test through JTAG, confirm that function meets design requirement.
Double-click the Genrate Programming File in the Process for Current Source hurdle, eject an impact software window this moment, selects Xilinx PROM File Formatter.Select PROM Properties in the File menu, eject Option Box, the setting in the Format tab as shown in Figure 3.
Click " determining ", can preserve into required FPGA data streaming file this moment.
The * .HEX that generates is burnt to the FPGA destination address of FLASH by the VDSP software of ADSP-TS101.And the file destination size write the 0x200000 deviation post.
3, Bootload flow process
The Bootload flow process is as follows:
1) reads the FPGA destination address of FLASH+0x200000 skew, calculate the size of FPGA file destination;
2) it is low putting the PROGRAM signal;
3) wait for, until the INIT signal is low.
4) put the PROGRAM signal for high;
5) wait for, until the INIT signal is high.The read-write counter zero clearing.
6) if read-write counter is big or small less than file destination, carries out following steps, otherwise transfer to next step:
The FPGA target data skew of a) reading among the FLASH is the value of counter position.
B) write this and be worth MS1 address space to DSP.
7) wait for 10ms.
8) check the level of DONE signal, if be height, return and load successfully, load unsuccessfully otherwise return.
The above only is preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the technology of the present invention principle; can also make some improvement and distortion, these improvement and distortion also should be considered as protection scope of the present invention.
Claims (3)
1. the parallel dynamic loading method of FPGA is characterized in that the method comprises the steps:
Step S1: according to the product application requirements of fpga chip to be loaded and the function needs in the concrete practical application, generate the image file to fpga chip to be loaded;
Step S2: described image file is write in the FLASH storer;
Step S3: read image file in the described FLASH storer by the DSP core processor;
Step S4:DSP core processor is loaded on described image file in the described fpga chip to be loaded by the mode of bus with parallel transmission.
2. the parallel dynamic loading method of FPGA as claimed in claim 1 is characterized in that, among the described step S1, generates the image file to fpga chip to be loaded by the JTAG programming mode.
3. the parallel dynamic loading method of FPGA as claimed in claim 1 is characterized in that, among the described step S2, by the JTAG programming mode described image file is write in the FLASH storer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012105289555A CN102968326A (en) | 2012-12-04 | 2012-12-04 | Field programmable gate array (FPGA) parallel dynamic loading method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012105289555A CN102968326A (en) | 2012-12-04 | 2012-12-04 | Field programmable gate array (FPGA) parallel dynamic loading method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102968326A true CN102968326A (en) | 2013-03-13 |
Family
ID=47798484
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012105289555A Pending CN102968326A (en) | 2012-12-04 | 2012-12-04 | Field programmable gate array (FPGA) parallel dynamic loading method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102968326A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104778066A (en) * | 2015-04-21 | 2015-07-15 | 北京凌阳益辉科技有限公司 | Quick start method and device of embedded operation system |
CN111538540A (en) * | 2019-01-18 | 2020-08-14 | 合肥杰发科技有限公司 | Method for accelerating starting speed of embedded system and embedded system thereof |
CN112711560A (en) * | 2021-02-10 | 2021-04-27 | 西南电子技术研究所(中国电子科技集团公司第十研究所) | Reconstruction method for single-point connection RapidIO bus of ZYNQ chip |
CN112764379A (en) * | 2021-01-18 | 2021-05-07 | 四川长虹电器股份有限公司 | IAP control method based on DSP system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1928824A (en) * | 2006-09-20 | 2007-03-14 | 华为技术有限公司 | Method and system for loading FPGA target program |
CN101127027A (en) * | 2007-09-12 | 2008-02-20 | 中兴通讯股份有限公司 | FPGA loading method and its equipment |
CN102541577A (en) * | 2010-12-10 | 2012-07-04 | 北大方正集团有限公司 | Embedded system based on FPGA (field programmable gate array) and configuration method of embedded system based on FPGA |
-
2012
- 2012-12-04 CN CN2012105289555A patent/CN102968326A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1928824A (en) * | 2006-09-20 | 2007-03-14 | 华为技术有限公司 | Method and system for loading FPGA target program |
CN101127027A (en) * | 2007-09-12 | 2008-02-20 | 中兴通讯股份有限公司 | FPGA loading method and its equipment |
CN102541577A (en) * | 2010-12-10 | 2012-07-04 | 北大方正集团有限公司 | Embedded system based on FPGA (field programmable gate array) and configuration method of embedded system based on FPGA |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104778066A (en) * | 2015-04-21 | 2015-07-15 | 北京凌阳益辉科技有限公司 | Quick start method and device of embedded operation system |
CN104778066B (en) * | 2015-04-21 | 2018-01-23 | 北京凌阳益辉科技有限公司 | The quick start method and its device of a kind of embedded OS |
CN111538540A (en) * | 2019-01-18 | 2020-08-14 | 合肥杰发科技有限公司 | Method for accelerating starting speed of embedded system and embedded system thereof |
CN112764379A (en) * | 2021-01-18 | 2021-05-07 | 四川长虹电器股份有限公司 | IAP control method based on DSP system |
CN112764379B (en) * | 2021-01-18 | 2022-05-03 | 四川长虹电器股份有限公司 | IAP control method based on DSP system |
CN112711560A (en) * | 2021-02-10 | 2021-04-27 | 西南电子技术研究所(中国电子科技集团公司第十研究所) | Reconstruction method for single-point connection RapidIO bus of ZYNQ chip |
CN112711560B (en) * | 2021-02-10 | 2023-05-26 | 西南电子技术研究所(中国电子科技集团公司第十研究所) | Reconstruction method for single-point connection of ZYNQ chip to rapidIO bus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102968326A (en) | Field programmable gate array (FPGA) parallel dynamic loading method | |
EP3352083A1 (en) | Debugging method, multi-core processor, and debugging equipment | |
CN103150188B (en) | The compatible video card fast initializing method of the x86 of non-x 86 instruction set computer | |
CN102184158B (en) | Daughter board with two-stage FPGA chip and collocation method of two-stage FPGA chip | |
CN104317712A (en) | Linux-based storage server fatigue testing method | |
US10552190B2 (en) | Precise error injection for driver testing | |
CN103984612A (en) | Unattended stress testing method based on HPL tool | |
CN104050068A (en) | Method and device for debugging FPGA (field programmable gate array) in MCU (microprogrammed control unit) chip | |
CN103677880A (en) | Information processing method and electronic equipment | |
US20140067886A1 (en) | Information processing apparatus, method of outputting log, and recording medium | |
JP6661387B2 (en) | Computer system and initial software installation method | |
US20160092201A1 (en) | Method and Device for Updating Program Data | |
CN104050067A (en) | Method and device for operation of FPGA (Field Programmable Gate Array) in MCU (Microprogrammed Control Unit) chip | |
CN104657263A (en) | System and method for realizing universal type target code coverage rate testing based on JTAG (Joint Test Action Group) debug mode | |
KR101874416B1 (en) | Universal serial bus emulation of peripheral devices | |
CN105224483A (en) | Data transmission method, electronic equipment and universal serial bus device | |
US8413117B1 (en) | Systems and methods for focusing product testing based on areas of change within the product between product builds | |
CN111708547B (en) | Electronic paper burning device, burning method, computer equipment and medium | |
CN111930647B (en) | USB interface working mode selection device and method and android device | |
CN105224359A (en) | Program loading method | |
CN105550131A (en) | Finite-state machine and ARINC659 bus based interface data processing system and method | |
CN105550103A (en) | Custom test script based automated testing method | |
CN102288298B (en) | Detector simulator device | |
CN110174864B (en) | Laser marking control method, computer readable storage medium and laser marking machine | |
CN104731577A (en) | Multisystem and method of booting the same |
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 |
Application publication date: 20130313 |