ZYNQ platform reconstruction method and reconstruction system based on ICAP

Through the ZYNQ platform reconstruction method based on ICAP, FPGA logic is dynamically configured, which solves the cumbersome and time-consuming problem of traditional configuration methods, realizes efficient and automated updates of FPGA logic, and meets users' high-functionality needs.

CN118276905BActive Publication Date: 2024-10-01JIANGSU YUANXIN WANGAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410702424.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-10-01
Estimated Expiration
2044-06-03

AI Technical Summary

Technical Problem

The traditional FPGA configuration method in the ZYNQ platform is cumbersome and time-consuming. It cannot dynamically and selectively update the code of the FPGA logic part, and cannot meet the high functionality needs of users.

Method used

Through the ZYNQ platform reconstruction method based on ICAP, the FLASH memory is divided into multiple block storage areas, the preset bit stream file is burned, and the ARM module is used to send the IPROG instruction sequence, and the select map data generation module and the ICAP controller module are used to The configurable module on the PL side is updated to achieve dynamic configuration.

Benefits of technology

It realizes dynamic and automated configuration of FPGA logic, improves operating efficiency, supports partial code reconfiguration, and meets the needs of users in diverse application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118276905B_ABST
    Figure CN118276905B_ABST
Patent Text Reader

Abstract

The present invention discloses a ZYNQ platform reconstruction method and reconstruction system based on ICAP, which divides the storage space in the FLASH memory into several storage areas; burns several preset bit stream files into the several storage areas respectively; the PS end sends the preset IPROG instruction sequence to the PL end; after a series of operations of each internal module, the PL end downloads the corresponding bit stream file from the FLASH memory, thereby completing the partial or overall update of the configurable module of the PL end. The method can flexibly switch and update the PL end, meet the needs of more application scenarios, and greatly increase the work efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a ZYNQ platform reconstruction method and a reconstruction system based on ICAP. Background Art

[0002] The algorithm reconstruction method based on the ZYNQ platform is a new technology that uses software-side scheduling to achieve reconfigurable algorithms in the FPGA logic part. Currently, the code configuration for the FPGA logic part mainly relies on JTAG downloaders or external plug-ins such as FLASH memory and SD cards. Usually, during the operation of the ZYNQ platform, if the user only needs to change part of the logic of the FPGA logic part, the traditional burning method is increasingly unable to meet user requirements.

[0003] Traditional FPGA configuration methods, such as Figure 1 As shown in the figure, the architecture of the ZYNQ platform mainly includes: PS part and PL part, that is, the processing system part and the FPGA logic part. For the configuration of the FPGA logic part, a JTAG downloader or an external FLASH memory is usually used for initialization. Using a JTAG downloader directly downloads the code to the PS part and the PL part, while using an external FLASH memory is to download the program code to the FLASH memory through the JTAG downloader first, and then the FLASH memory automatically loads it to the PS part and the PL part. With the increasing functional requirements of users for the FPGA logic part, such as during the operation of the ZYNQ chip, users only need to replace the FPGA logic module without reconfiguring the entire FPGA logic part. The traditional configuration method seems to be incapable of doing so and lacks automation and timeliness.

[0004] As can be seen from the above, the traditional method of configuring FPGA logic using JTAG mode has the problems of cumbersome operation and extra time consumption. At the same time, using FLASH memory to load code makes the FPGA logic code fully covered, which cannot meet the needs of users in various application scenarios. In other words, there is no way to dynamically and selectively configure and update part of the code. Summary of the invention

[0005] In view of the above problems, the present invention proposes a ZYNQ platform reconstruction method and reconstruction system based on ICAP.

[0006] To achieve the purpose of the present invention, a ZYNQ platform reconstruction method based on ICAP is provided, comprising the following steps:

[0007] s1: Divide the storage space in the FLASH memory into several storage areas;

[0008] s2: programming the preset bit stream files into the storage areas in the FLASH memory in sequence, and satisfying that one bit stream file corresponds to one storage area; the number of the preset bit stream files is less than or equal to the number of the storage areas;

[0009] s3: The ARM module on the PS side sends the preset IPROG instruction sequence to the select map data generation module on the PL side;

[0010] s4: the select map data generation module receives the preset IPROG instruction sequence, converts the preset IPROG instruction sequence to obtain a select map sequence, and then sends the select map sequence to the ICAP controller module of the PL end;

[0011] s5: the ICAP controller module receives the select map sequence and sends it to the ICAP primitive module of the PL end;

[0012] s6: The ICAP primitive module updates the configurable modules on the PL side based on the select map sequence and the preset bit stream files in the FLASH memory, thereby completing the overall reconstruction of the ICAP-based ZYNQ platform.

[0013] The present invention also provides a ZYNQ platform reconstruction system based on ICAP, comprising: the PS end, the PL end and the FLASH memory;

[0014] The PS end includes: the ARM module;

[0015] The PL end includes: the configurable module, the select map data generation module, the ICAP controller module and the ICAP primitive module;

[0016] The ARM module sends the preset IPROG instruction sequence to the select map data generation module; the select map data generation module receives the preset IPROG instruction sequence, and converts it to obtain the select map sequence; the select map data generation module sends the select map sequence to the ICAP controller module; the ICAP controller module receives the select map sequence and sends it to the ICAP primitive module; the ICAP primitive module updates the configurable module based on the select map sequence and the preset bit stream files in the FLASH memory.

[0017] Furthermore, the configurable module also includes: a reconfigurable module;

[0018] The reconfigurable module is used to store the code in the configurable module that can be partially reconfigured.

[0019] Furthermore, the ARM module and the select map data generation module perform data transmission via a data bus addr_reboot.

[0020] The present invention also provides an electronic device, comprising: a memory, a processor and a computer program;

[0021] The computer program is stored in the memory and can be run on the processor;

[0022] When the processor runs the computer program, the steps of the ICAP-based ZYNQ platform reconstruction method are implemented.

[0023] Compared with the prior art, the present invention has the following beneficial technical effects:

[0024] In the present invention, the PS side of the ZYNQ platform reconstruction system based on ICAP realizes the dynamic configuration of the PL side logic through software scheduling; the PL side logic code supports the partial reconfiguration function; the address area of ​​the external FLASH memory is divided to support the partial reconfiguration function of the PL side logic; it has the advantages of automated, convenient and efficient operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 It is a block diagram of a traditional FPGA configuration method in the prior art;

[0026] Figure 2 is a flowchart of a ZYNQ platform reconstruction method based on ICAP according to an embodiment;

[0027] Figure 3 is a schematic diagram of modules of a ZYNQ platform reconstruction system based on ICAP according to an embodiment;

[0028] Figure 4 is a schematic diagram of address division in a FLASH memory of an embodiment;

[0029] Figure 5 is a schematic diagram of a FLASH memory after burning codes in an embodiment;

[0030] Figure 6 The present invention is a flowchart of an ICAP controller module designed to load files in a FLASH memory according to an embodiment. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0032] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0033] refer to Figure 2 FIG. 1 is a flow chart of a ZYNQ platform reconstruction method based on ICAP according to an embodiment. The ZYNQ platform reconstruction method based on ICAP includes the following steps:

[0034] s1: Divide the storage space in the FLASH memory into several storage areas;

[0035] s2: programming the preset bit stream files into the storage areas in the FLASH memory in sequence, and satisfying that one bit stream file corresponds to one storage area; the number of the preset bit stream files is less than or equal to the number of the storage areas;

[0036] s3: The ARM module on the PS side sends the preset IPROG instruction sequence to the select map data generation module on the PL side;

[0037] s4: the select map data generation module receives the preset IPROG instruction sequence, converts the preset IPROG instruction sequence to obtain a select map sequence, and then sends the select map sequence to the ICAP controller module of the PL end;

[0038] s5: the ICAP controller module receives the select map sequence and sends it to the ICAP primitive module of the PL end;

[0039] s6: The ICAP primitive module updates the configurable modules on the PL side based on the select map sequence and the preset bit stream files in the FLASH memory, thereby completing the overall reconstruction of the ICAP-based ZYNQ platform.

[0040] refer to Figure 3 As shown, it is a module schematic diagram of a ZYNQ platform reconstruction system based on ICAP according to an embodiment, and the ZYNQ platform reconstruction system based on ICAP includes: the PS end, the PL end and the FLASH memory;

[0041] The PS end includes: the ARM module;

[0042] The PL end includes: the configurable module, the select map data generation module, the ICAP controller module and the ICAP primitive module;

[0043] The ARM module sends the preset IPROG instruction sequence to the select map data generation module; the select map data generation module receives the preset IPROG instruction sequence, and converts it to obtain the select map sequence; the select map data generation module sends the select map sequence to the ICAP controller module; the ICAP controller module receives the select map sequence and sends it to the ICAP primitive module; the ICAP primitive module updates the configurable module based on the select map sequence and the preset bit stream files in the FLASH memory.

[0044] In one embodiment, the configurable module further comprises: a reconfigurable module;

[0045] The reconfigurable module is used to store the code in the configurable module that can be partially reconfigured.

[0046] In one embodiment, the ARM module and the select map data generation module perform data transmission via a data bus addr_reboot.

[0047] In one embodiment, an electronic device is implemented, comprising a memory, a processor and a computer program;

[0048] The computer program is stored in the memory and can be run on the processor;

[0049] When the processor runs the computer program, the steps of the ICAP-based ZYNQ platform reconstruction method are implemented.

[0050] In one embodiment, the ZYNQ platform reconstruction method based on ICAP includes the following specific steps:

[0051] Divide the storage space in the FLASH memory, such as dividing the FLASH memory into four areas: 0x0000_0000-0x007f_ffff, 0x0080_0000-0x00af_ffff, 0x00b0_0000-0x01fff_ffff, 0x0200_0000-0x03ff_ffff. Usually, the memory size of each area is slightly larger than the size of the synthetically generated downloadable file.

[0052] refer to Figure 4 , Figure 5 As shown, different bit stream files are burned in different storage areas in the FLASH memory. Different bit stream files represent bit files with different functions. For example, the storage area in the FLASH memory stores three bit stream files A, B, and C. These three files represent different functions. The scheduling of these three files is then implemented to complete the update of the configurable modules on the PL side.

[0053] The ARM module on the PS side sends the IPROG instruction sequence through the data bus addr_reboot.

[0054] The select map data generation module on the PL side completes the conversion of the input IPROG instruction sequence to the select map sequence.

[0055] The ICAP controller module is responsible for sending the select map sequence to the ICAP primitive module.

[0056] The ICAP primitive module is responsible for subsequent operations on different address spaces in the FLASH memory according to the select map sequence, that is, the ICAP primitive module receives the select map sequence sent by the ICAP controller module, and ICAP loads the bit stream files of different address segments from the FLASH memory to the PL end according to the select map sequence, and updates and replaces the configurable modules on the PL end.

[0057] In one embodiment, in order to meet the requirement that the entire configurable module code does not need to be reconfigured, only part of the code in the configurable module needs to be refactored, and the specific implementation method is as follows:

[0058] In the early stage of designing the code, the logic code part of the PL side is divided to a certain extent, and the module code that needs to be updated during use is divided into configurable modules, and in the configurable modules, the code that needs to be partially switched and updated is classified as a reconfigurable module. That is, flexible operation can be performed, and the code of the entire configurable module can be updated, or only a small part of the code of the reconfigurable module can be selectively updated. Specifically, the code of the replacement module can be added to the original code project and it can also be divided into a reconfigurable module;

[0059] The project generates two code files, which are burned into different areas in the FLASH memory: the source project file code file and the replacement module code file. The code in the original project is often called the golden project and the code of the partial replacement module is often called the update project. When compiled using a software compilation tool, two different bit stream files will be generated, where the golden project bit stream file is the code file for the entire project, and the update project bit stream file is the code file for the partial reconstruction module. Specifically, it is burned into two different random areas, because loading the bit stream code files of different areas starts by accessing the starting address of the area, and for different areas, it is only necessary to access the corresponding starting address.

[0060] The ARM module on the PS side sends the preset IPROG instruction sequence to the select map data generation module on the PL side;

[0061] The select map data generation module receives the preset IPROG instruction sequence, converts the preset IPROG instruction sequence to obtain a select map sequence, and then sends the select map sequence to the ICAP controller module of the PL end; the ICAP controller module receives the select map sequence and sends it to the ICAP primitive module of the PL end; the ICAP primitive module loads the address space of part of the replacement module code in the FLASH memory based on the select map sequence and the preset bit stream files in the FLASH memory, thereby completing the partial reconfiguration of the PL end.

[0062] In one embodiment, Figure 6 As shown in the figure, the ICAP controller module is designed to load the file process in the FLASH memory

[0063] as follows:

[0064] 1) Enter the write state (assert_rdwr) from the Idle_ICAP initialization state, then enter the chip select state (assert_cs_i), and then enter the send select map sequence state (send select map);

[0065] 2) In the state of sending select map sequence, send the instructions in the following table in sequence. After the sequence is sent, in the no-operation state (Noop state), exit the state of sending select map. The specific table of sending sequence instructions is as follows:

[0066]

[0067] 3) From the send select map state, first enter the release chip select state (deassert_cs_i), and then enter

[0068] To release the write state (deassert_rdwr), and finally end the entire operation process (End_ICAP).

[0069] 4) The above operations are the sending sequence executed by the ICAP controller module. After the ICAP primitive module receives the select map sequence, it will load the corresponding code file from the FLASH memory according to the address information of sequence number 5 in the above sending sequence instruction table to load code files in different address segments.

[0070] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0071] It should be noted that the terms "first\second\third" involved in the embodiments of the present application are only used to distinguish similar objects, and do not represent a specific order for the objects. It is understandable that the specific order or sequence of "first\second\third" can be interchanged where permitted. It should be understood that the objects distinguished by "first\second\third" can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein.

[0072] The terms "including" and "having" and any variations thereof in the embodiments of the present application are intended to cover non-exclusive inclusions. For example, a process, method, device, product, or equipment that includes a series of steps or modules is not limited to the listed steps or modules, but may optionally include steps or modules that are not listed, or may optionally include other steps or modules that are inherent to these processes, methods, products, or equipment.

[0073] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A ZYNQ platform reconstruction method based on ICAP, characterized in that: The steps include: s1: Divide the storage space in the FLASH memory into several storage areas; s2: programming the preset bit stream files into the storage areas in the FLASH memory in sequence, and satisfying that one bit stream file corresponds to one storage area; the number of the preset bit stream files is less than or equal to the number of the storage areas; s3: The ARM module on the PS side sends the preset IPROG instruction sequence to the select map data generation module on the PL side; s4: the select map data generation module receives the preset IPROG instruction sequence, converts the preset IPROG instruction sequence to obtain a select map sequence, and then sends the select map sequence to the ICAP controller module of the PL end; s5: the ICAP controller module receives the select map sequence and sends it to the ICAP primitive module of the PL end; s6: The ICAP primitive module updates the configurable modules on the PL side based on the select map sequence and the preset bit stream files in the FLASH memory, thereby completing the overall reconstruction of the ICAP-based ZYNQ platform.

2. The ICAP-based ZYNQ platform reconstruction system adopts the ICAP-based ZYNQ platform reconstruction method according to claim 1, characterized in that: include: The PS terminal, the PL terminal and the FLASH memory; The PS end includes: the ARM module; The PL end includes: the configurable module, the select map data generation module, the ICAP controller module and the ICAP primitive module; The ARM module sends the preset IPROG instruction sequence to the select map data generation module; the select map data generation module receives the preset IPROG instruction sequence, and converts it to obtain the select map sequence; the select map data generation module sends the select map sequence to the ICAP controller module; the ICAP controller module receives the select map sequence and sends it to the ICAP primitive module; the ICAP primitive module updates the configurable module based on the select map sequence and the preset bit stream files in the FLASH memory.

3. The ICAP-based ZYNQ platform reconstruction system according to claim 2, characterized in that: The configurable module also includes: a reconfigurable module; The reconfigurable module is used to store the code in the configurable module that can be partially reconfigured.

4. The ICAP-based ZYNQ platform reconstruction system according to claim 3, characterized in that: The ARM module and the select map data generation module perform data transmission via the data bus addr_reboot.

5. An electronic device, characterized in that: including memory, processor and computer program; The computer program is stored in the memory and can be run on the processor; When the processor runs the computer program, the steps of the ICAP-based ZYNQ platform reconstruction method as claimed in claim 1 are implemented.