A circuit structure and configuration method of FPGA bit stream download signal
By using the main winding and sub-winding to connect configurable logic blocks in series on the FPGA chip, the problems of wiring blockage and configuration time consumption are solved, and a smaller chip size and faster configuration process are achieved.
Patent Information
- Application Number
- CN202410995082.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-07-24
AI Technical Summary
In FPGA chip design, since the bitstream download circuit needs to connect a large number of global signals, the wiring blockage problem in the layout design, which increases the chip area and design cycle. In addition, the existing decoder configuration method has time consumption, affecting FPGA performance.
Using an FPGA bitstream download signal circuit structure, the global signal is transmitted to the edge of the configurable logic block array through the main winding and the sub-winding, and all configurable logic blocks are connected in series through the sub-winding, canceling the top-level gap winding resources, and borrowing Internal winding resources are interconnected to achieve one-time configuration.
It greatly reduces the size and configuration time of FPGA circuits, improves the consistency of layout and wiring, shortens the chip development cycle, and reduces power consumption and timing convergence problems.
Smart Images

Figure CN118536446B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of chip design, and in particular to a circuit structure of an FPGA bit stream download signal and a configuration method thereof. Background Art
[0002] The programmable logic device FPGA (Field Programmable Gate Array) is composed of a large number of CLBs (configurable logic blocks). Before using the FPGA, the user needs to download the user bitstream file (bitstream) through the configuration circuit. The bitstream download module is the core control circuit of the FPGA chip. Each CLB and configurable IP core (Intellectual PropertyCore) needs to be interconnected with the bitstream download circuit. The bitstream download circuit usually contains the following global signals: reset signal, clock signal, config_enable configuration enable signal, data_input and data_output data input and output signals, and optional status indication signals. These global signals need to be connected to all CLBs and configurable IPs. Due to the huge number of CLBs, for example, the number of CLBs in a 200K capacity FPGA chip can be as high as 20,000.
[0003] Generally, CLB and IP need to reserve enough space around the module in layout design for global signal layout and interconnection between modules. Since the bitstream download circuit requires more global signal connections, a wider module gap needs to be reserved during layout design. When there are many global signals and the wiring of these signals on the layout spans a large area and the line length is very long, it is easy to cause wiring congestion during layout design. At this time, the automatic layout and routing tool needs to spend a very long time to try to adjust the wiring again and again. Sometimes it is even impossible to complete the layout and routing as required. In the absence of a suitable solution, engineers can only try the wiring planning multiple times by enlarging the gap between modules and spending more time. Although these methods can circumvent the problem, they increase the chip area and design cycle, resulting in a significant increase in the overall cost of the chip. In addition, the wiring results are messy, leading to additional timing convergence problems, and even additional area is required to repair the resulting timing problems.
[0004] In addition, a decoder is generally used for the configuration of CLB and IP. Its main function is to decode the address to determine the specific location of the data in the storage matrix. The location of the CLB is determined by the decoder, and then the configuration unit is used to send the configuration file or configuration command data to the CLB at a specific location on the FPGA. The usual decoder includes a row decoder and a column decoder, which can simultaneously configure an entire row or a row of CLBs on the FPGA. However, if an entire column is configured at the same time, it cannot be configured at one time when there are multiple rows. It is still necessary to configure the entire column one by one multiple times to complete the configuration of the CLBs in all CLB arrays on the entire FPGA. Although the single configuration time is not long, the accumulated configuration time also occupies a lot of time resources, becoming one of the factors affecting FPGA performance.
[0005] Therefore, the prior art still needs to be improved and enhanced. Summary of the invention
[0006] In order to solve at least one of the above problems and one or more of other potential problems, the present disclosure proposes an FPGA bitstream download signal circuit structure, which can reasonably optimize winding resources, reduce FPGA core area, and facilitate fast global configuration.
[0007] In a first aspect of the present disclosure, there is provided an FPGA bitstream download signal circuit structure, the circuit structure comprising: an FPGA circuit composed of configurable logic blocks, wherein the configurable logic blocks are arranged in an array of m rows and n columns on the FPGA circuit, wherein m and n are both positive integers, and m and / or n is greater than or equal to two; a main winding, arranged to transmit a global signal to the edge of the configurable logic block array through the main winding; a sub-winding, arranged to transmit a global signal from the main winding to the configurable logic block at the edge of the configurable logic block array through the sub-winding connected to the main winding, and the sub-winding is arranged to sequentially connect adjacent configurable logic blocks in series starting from the configurable logic block at the edge of the configurable logic block array until all configurable logic blocks on the FPGA circuit are connected in series.
[0008] Further, in some embodiments, the manner in which the sub-routing connects all the configurable logic blocks on the circuit structure in series includes: the sub-routing is configured to connect an adjacent configurable logic block in series starting from one of the configurable logic blocks at the edge of the configurable logic block array until all the configurable logic blocks on the FPGA circuit are connected in series in sequence.
[0009] Furthermore, in some embodiments, the manner in which the sub-windings are connected in series to all the configurable logic blocks on the circuit structure includes: the sub-windings are arranged to sequentially connect the configurable logic blocks adjacent to the 1st row and the 1st column in the edge of the configurable logic block array in series with the configurable logic blocks adjacent to the 1st row until the configurable logic block in the 1st row and the nth column, and then connect the configurable logic blocks adjacent to the 2nd row and the nth column in series, and sequentially connect the configurable logic blocks adjacent to the 2nd row and the 1st column in series with the configurable logic blocks adjacent to the 2nd row and the 1st column, until the F is connected. All configurable logic blocks on the PGA circuit are connected in series in sequence; or, the above-mentioned sub-winding is configured to start from the above-mentioned configurable logic block in the 1st row and 1st column on the edge of the above-mentioned configurable logic block array, and sequentially connect in series the above-mentioned configurable logic block adjacent to the 1st column to the above-mentioned configurable logic block in the mth row and 1st column, and then connect in series to the above-mentioned configurable logic block in the adjacent mth row and 2nd column, and start from the above-mentioned configurable logic block in the mth row and 2nd column, and sequentially connect in series the above-mentioned configurable logic block adjacent to the 2nd column to the above-mentioned configurable logic block in the 1st row and 2nd column, until all the configurable logic blocks on the above-mentioned FPGA circuit are connected in series in sequence.
[0010] Further, in some embodiments, the manner in which the sub-routing connects all the configurable logic blocks on the circuit structure in series includes: the sub-routing is configured to connect adjacent configurable logic blocks in series in a column direction starting from all the configurable logic blocks in a row at the edge of the configurable logic block array until all the configurable logic blocks on the FPGA circuit are connected in series in sequence; or, the sub-routing is configured to connect adjacent configurable logic blocks in series in a row direction starting from all the configurable logic blocks in a column at the edge of the configurable logic block array until all the configurable logic blocks on the FPGA circuit are connected in series in sequence.
[0011] Further, in some embodiments, the manner in which the sub-winding connects in series all the configurable logic blocks on the circuit structure includes: the sub-winding is configured to start from all the configurable logic blocks in the 1st row at the edge of the configurable logic block array and sequentially connect in series the configurable logic blocks adjacent to the 1st row until the configurable logic blocks in the mth row; or the sub-winding is configured to start from all the configurable logic blocks in the 1st column at the edge of the configurable logic block array and sequentially connect in series the configurable logic blocks adjacent to the 1st column until the configurable logic blocks in the nth column.
[0012] Further, in some embodiments, the above-mentioned main winding includes a main clock line, a main reset line and a main configuration enable signal line; the above-mentioned main clock line is configured to connect to a clock source; the above-mentioned main reset line is configured to connect to a reset source; and the above-mentioned main configuration enable signal line is configured to connect to a configuration unit.
[0013] Further, in some embodiments, the above-mentioned sub-routing includes a sub-clock line, a sub-reset line and a sub-configuration enable signal line; the above-mentioned sub-clock line is configured to connect the above-mentioned main clock line with the above-mentioned configurable logic block; the above-mentioned sub-reset line is configured to connect the above-mentioned main reset line with the above-mentioned configurable logic block; the above-mentioned sub-configuration enable signal line is configured to connect the above-mentioned main configuration enable signal line with the above-mentioned configurable logic block.
[0014] In the second aspect of the present disclosure, a method for arranging a FPGA bitstream download signal circuit structure is also proposed. The method is for the aforementioned circuit structure and includes the following steps: arranging the above-mentioned configurable logic blocks in an array of m rows and n columns on the above-mentioned FPGA circuit, wherein m and n are both positive integers, and m and / or n is greater than or equal to two; arranging the above-mentioned main winding to transmit the global signal to the edge of the above-mentioned configurable logic block array through the above-mentioned main winding; arranging the above-mentioned sub-winding to be connected to the above-mentioned main winding through the above-mentioned sub-winding and transmit the global signal from the above-mentioned main winding to the configurable logic block at the edge of the above-mentioned configurable logic block array, and the above-mentioned sub-winding is arranged to start from the above-mentioned configurable logic block at the edge of the above-mentioned configurable logic block array and sequentially connect the adjacent above-mentioned configurable logic blocks in series until all the configurable logic blocks on the above-mentioned FPGA circuit are connected in series.
[0015] In a third aspect of the present disclosure, a configuration method for an FPGA bitstream download signal circuit structure is proposed. The method is for the aforementioned circuit structure and includes the following steps: obtaining a signal list containing a top-level connection relationship of a global signal according to a serial sequence description file; parsing an original RTL file to obtain behavior information of the FPGA top level, a configurable logic block, and an intellectual property core; adding buffers and input / output ports required for serial signals to the configurable logic block according to the signal list and the obtained behavior information of the configurable logic block and the behavior information of the intellectual property core; interrupting the connection relationship between the original configurable logic blocks according to the obtained behavior information of the FPGA top level; reconnecting the configurable logic blocks according to the connection relationship obtained from the above serial sequence description file; and finally obtaining an output RTL file of the reconnected configurable logic block.
[0016] Furthermore, in some embodiments, in order to configure all configurable logic blocks on the FPGA at one time, the following method is adopted, including: according to the known bit number of the FPGA, outputting a bit stream of corresponding bit number through the FCB module; inputting the bit stream of corresponding bit number into the above-mentioned FPGA circuit; and the configurable logic blocks connected in series are configured at one time according to the received bit stream.
[0017] Furthermore, in some embodiments, in order to configure all configurable logic blocks on the FPGA at one time, a bit stream of corresponding bits is input to the configurable logic blocks at the edge of the configurable logic block array in the FPGA circuit through a main routing; and then, a bit stream of corresponding bits of the configurable logic blocks at the edge of the configurable logic block array is input to other configurable logic blocks in the FPGA circuit that are sequentially connected in series with the configurable logic blocks at the edge of the configurable logic block array through a sub-routing.
[0018] Compared with the prior art, the present disclosure has at least the following beneficial effects:
[0019] (1) For the configurable logic block array composed of configurable logic blocks on the FPGA circuit, the main routing that transmits global signals is arranged at the edge of the configurable logic block array, and then all the configurable logic blocks on the configurable logic block array are connected in series through the sub-routing connected to the main routing, thereby eliminating the use of the original top-level gap routing resources of the configurable logic blocks and borrowing the routing resources inside the configurable logic blocks for interconnection. There is no need to increase the distance between the configurable logic blocks, thereby greatly reducing the requirement for the top-level area and significantly reducing the size of the FPGA circuit compared to the traditional routing method;
[0020] (2) Further, in some embodiments, the sub-routing is configured to sequentially connect a configurable logic block in series with an adjacent configurable logic block starting from a configurable logic block at the edge of the configurable logic block array until all configurable logic blocks on the FPGA circuit are sequentially connected in series; this is an alternative series connection method, which greatly reduces the size of the FPGA circuit compared to the traditional wiring method, and can also configure all configurable logic blocks on the FPGA circuit at one time;
[0021] (3) Further, in some embodiments, the sub-routing is configured to connect adjacent configurable logic blocks in series in the column (or row) direction starting from all configurable logic blocks starting from a row (or a column) at the edge of the configurable logic block array until all configurable logic blocks on the FPGA circuit are connected in series in series; this is a preferred series connection method, which greatly reduces the size of the FPGA circuit compared to the traditional wiring method, and is also conducive to the subsequent faster one-time configuration of all configurable logic blocks on the FPGA circuit;
[0022] (4) Furthermore, in some embodiments, the FCB (FPGA Config Block) module outputs a bit stream (Bitstream) of corresponding bit numbers according to the known bit numbers of the FPGA, and inputs it into the FPGA. All the configurable logic blocks connected in series will be configured at one time according to the requirements of the received bit stream (Bitstream), thereby realizing a one-time configuration of all the configurable logic blocks connected in series in the above-mentioned FPGA circuit. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The above and other features and advantages of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings, in which:
[0024] Figure 1 Shows a schematic diagram of the traditional FPGA bit stream download signal circuit connection;
[0025] Figure 2 A schematic diagram showing a conventional FPGA bitstream download signal circuit configuring a configurable logic block;
[0026] Figure 3 A schematic diagram showing a conventional FPGA bitstream download signal circuit configuring a row of configurable logic blocks;
[0027] Figure 4 A schematic diagram showing a circuit structure of an FPGA bitstream download signal according to some embodiments of the present disclosure;
[0028] Figure 5 A schematic diagram showing a circuit structure of an FPGA bitstream download signal according to other embodiments of the present disclosure;
[0029] Figure 6 A flow chart showing a method for arranging a circuit structure of an FPGA bitstream download signal according to some embodiments of the present disclosure;
[0030] Figure 7 A flow chart showing a method for configuring a circuit structure of an FPGA bitstream download signal according to some embodiments of the present disclosure;
[0031] Figure 8 A schematic diagram showing the internal structure of a configurable logic block in a circuit structure for configuring an FPGA bitstream download signal according to some embodiments of the present disclosure; and
[0032] In the various drawings, the same or corresponding reference numerals denote the same or corresponding parts. DETAILED DESCRIPTION
[0033] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0034] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0035] It should be understood that in FPGA design, CLB usually refers to Configurable Logic Block. The RTL file in the CLB configuration is a file related to the Register Transfer Level (RTL), which is mainly used to describe the structure and behavior of digital circuits. IP core or Intellectual Property Core refers to a reusable pre-designed circuit function module in integrated circuit design with specific intellectual property rights.
[0036] In some current examples of FPGA configuration processes, in order to prevent the top-level routing and the internal routing of the module from affecting each other and causing problems such as "design specification check" (DRC), noise, and crosstalk, the top-level routing of the configuration signal and the clock signal will try to avoid the module area when routing. Since there are a large number of reused configurable logic blocks (CLBs) in the FPGA core, the CLBs exist in the core in the form of modules. The smaller the distance between the CLBs, the shorter the interconnection line, which is more conducive to stable data transmission. Therefore, the CLBs should be placed as close to each other as possible, and the gaps should be as small as possible. When deploying global signals at the top level, the reset signal (reset), clock signal (clock), and configuration enable signal (config_enable) need to be interconnected with the CLBs in the FPGA core, which will put forward requirements for routing resources. Therefore, it is necessary to increase the gap width between the CLBs and the distance from the CLB to the edge of the core to make room for routing for the global signal lines, resulting in a significant increase in chip size (such as Figure 1 As shown in the example shown in the figure, the required width of the routing channel between CLBs is also large to arrange the routing. Since the global signal needs to establish a connection relationship with each CLB, the connection between the top-level global signal pin input point and the CLB that is far away is difficult to avoid the problem of long-distance connection. Long-distance connections will cause problems such as excessive line delay (Delay) and excessive transition time (Transition Time). Therefore, for such long connections, separate timing repair is required, which further increases the requirements for the total chip area.
[0037] In addition, for the configuration mode used in the traditional FPGA bitstream download signal circuit connection, especially for configuring a specific CLB in the CLB array, it is necessary to bypass the gap channels between multiple CLBs and finally configure the target CLB, such as Figure 2 As shown. Of course, it can also be configured in rows or columns. Figure 3 In the example, it can be seen that the CLBs in the CLB array below are configured by the decoder. For example, the fastest way is to configure row by row (for example, from the first row to the fifth row, row by row). However, if the CLB array is too large, such as there are too many rows (in other examples, if it is configured column by column, when there are too many columns), then configuring all CLBs in the entire CLB array will also consume considerable time resources, thereby dragging down the performance of the FPGA circuit.
[0038] In order to solve at least one of the above problems, as well as one or more of the other potential problems, the example embodiments of the present disclosure propose an FPGA bitstream download signal circuit structure. The wiring method used in some corresponding embodiments cancels the use of top-level gap wiring resources, and borrows the wiring resources inside the configurable logic block for interconnection, without increasing the distance between the configurable logic blocks, thereby greatly reducing the requirements for the top-level area, and greatly reducing the chip size problem compared to the traditional wiring method. In other corresponding embodiments, long-distance connections can be avoided, and the area requirements caused by timing convergence are also reduced; the reduction in the number of top-level routings will also reduce the number of DRCs; the configurable logic block is a highly reused unit in the FPGA, which also improves the consistency of layout and routing, thereby shortening the chip development cycle, reducing power consumption, and improving performance.
[0039] Figure 4A schematic diagram of the circuit structure of the FPGA bitstream download signal according to some embodiments of the present disclosure is shown. In this exemplary embodiment, the winding connects the entire configurable logic block array in series, and the signal is first transmitted to the edge of the configurable logic block array along the main winding, and then the sub-winding connected to the main winding enters from the configurable logic block in the first row and first column (the configurable logic block in the lower left corner in the figure), runs through a row horizontally (in other embodiments, it can also be vertically), and the configurable logic block at the end enters the next row (in other embodiments, the next column), and runs through the next row (in other embodiments, the next column) in the reverse direction, thus passing through all the configurable logic blocks in the core (i.e., the FPGA circuit), completing the FPGA series connection process, and along the series sub-winding, a signal of completing the configuration process can be correspondingly issued. In some embodiments, the manner in which the sub-routing connects all the configurable logic blocks on the circuit structure in series includes: the sub-routing is configured to connect in series the configurable logic blocks adjacent to the 1st row and the 1st column in the edge of the configurable logic block array in sequence from the configurable logic block in the 1st row and the 1st column to the configurable logic block in the 1st row and the 6th column (shown as the 1st row and the 6th column), and then connect in series the configurable logic block in the adjacent 2nd row and the 6th column (shown as the 2nd row and the 6th column), and connect in series the configurable logic blocks adjacent to the 2nd row and the 1st column in sequence from the configurable logic block in the 2nd row and the 6th column (shown as the 2nd row and the 6th column), and so on and so forth in accordance with the manner shown in the figure until all the configurable logic blocks on the FPGA circuit are connected in series in sequence (the figure implements the series connection of the configurable logic blocks of the 6x6 array from beginning to end). ; It should be noted that in the illustrated embodiment, the bottom configurable logic block is counted as the 1st row, and the leftmost configurable logic block is counted as the 1st column. In some alternative embodiments, the sub-routing is configured to start from the configurable logic block in the 1st row and the 1st column of the edge of the configurable logic block array, sequentially connect the adjacent configurable logic blocks in the 1st column in series until the configurable logic block in the mth row and the 1st column, and then connect the adjacent configurable logic blocks in the mth row and the 2nd column in series, and start from the configurable logic block in the mth row and the 2nd column, sequentially connect the adjacent configurable logic blocks in the 2nd column in series until the configurable logic block in the 1st row and the 2nd column, until all the configurable logic blocks on the FPGA circuit are sequentially connected in series; that is, all the configurable logic blocks in the 1st column can be connected in series first, and then the configurable logic blocks of the array can be connected in series in the 2nd column, and then the configurable logic blocks of the array can be connected in series in series in the next columns.This configuration method of configurable logic blocks in FPGA circuits from the beginning to the end can greatly reduce the use of top-level wiring space and greatly compress the gaps between configurable logic blocks. It should be understood that a configuration file suitable for the global state can be written in advance to configure all the global configurable logic blocks at one time. However, this configuration method will cause two corresponding technical problems when the FPGA scale is expanded to a certain extent: 1) The configuration time is too long (although the time to go through a configurable logic block is very short, after accumulating through a certain number of configurable logic blocks, the total accumulated time will obviously reach a certain length of time); and 2) if one of the configurable logic blocks needs to be reconfigured, even all the global configurable logic blocks need to be reconfigured. It should be noted that in the illustrated embodiment, the FCB (FPGA Config Block) module at the bottom outputs a bitstream of the corresponding number of bits according to the known number of bits of the FPGA (the so-called number of bits here is not directly related to the coordinates, the coordinates are determined in the serial sequence description file, and the relationship between the coordinate information and the number of bits is as follows: the serial sequence description file can be used to obtain the information that a certain string of signals needs to pass through the CLB, and at this time the data length is determined, and this data length is equivalent to the number of bits), and the bitstream data of the corresponding number of bits is input into the FPGA to assist in locating the configurable logic blocks arranged in series in the FPGA circuit when configuring the configurable logic blocks. This realizes the one-time configuration of all the configurable logic blocks in series in the above-mentioned FPGA circuit.
[0040] It should be noted that in the embodiments of the present disclosure, the configurable logic blocks are arranged in an array of m rows and n columns on the FPGA circuit, where m and n are both positive integers, and m and / or n is greater than or equal to two; and the so-called 1st row and 1st column can be any configurable logic block at the four corners of the configurable logic block array, and does not only refer to the configurable logic block at the upper left corner of each illustrated array. Accordingly, the configurable logic blocks in each illustrated embodiment can increase the number of rows and columns from top to bottom (vertical) or from left to right (horizontal); or from bottom to top (vertical) or from right to left (horizontal). The configurable logic block array of m rows and n columns in each embodiment of the present disclosure is merely exemplary and is not intended to limit its protection scope.
[0041] To overcome Figure 4 The above-mentioned dilemmas brought about by the embodiments, such as (1) the problem of global configuration duration; and (2) the problem of a single configurable logic block configuration triggering global reconfiguration; the present disclosure also proposes further preferred embodiments.
[0042] Figure 5A schematic diagram of the circuit structure of the FPGA bitstream download signal according to some other embodiments of the present disclosure is shown. Figure 4 Two technical problems in the embodiment are Figure 5 In the exemplary embodiment, the main routing is configured to transmit the global signal to the edge of the configurable logic block array through the main routing, as shown in the figure, at the lower edge of the array (near the lower part of the bottom row of configurable logic blocks), and then the sub-routing is configured to start from all the configurable logic blocks in a row at the edge of the configurable logic block array and sequentially connect the adjacent configurable logic blocks in series along the column direction (vertical direction, upward) until all the configurable logic blocks on the FPGA circuit are sequentially connected in series. Such a series connection method can further be that the sub-routing is configured to start from the configurable logic blocks in the first row (the bottom row is the first row) at the edge of the configurable logic block array and sequentially connect the adjacent configurable logic blocks in series along the column direction (vertical direction, upward) until the configurable logic blocks in the mth row. Such a series connection method allows the configuration signal and the reset signal to enter from the first configurable logic block in each row (in another embodiment, in each column) and run through a row (in another embodiment, in each column). In the embodiment, it runs through a column). This method maintains the advantage of reduced area. Accordingly, since a row of configurable logic blocks can input configuration signals at the same time, a configuration file suitable for the global can be written in advance, and all the global configurable logic blocks can be configured vertically in a row at one time. Obviously, the global configuration time is shortened at the same time, and the reset time and difficulty are reduced; and if one of the configurable logic blocks needs to be reconfigured, the impact is reduced to the reconfiguration of a row or column of configurable logic blocks. In other embodiments, such a series connection method can also be that the sub-winding is set to start from the configurable logic block in the first column (the leftmost or rightmost row is the first column) of the edge of the configurable logic block array and connect the adjacent configurable logic blocks in series in the row direction (horizontally, to the left or to the right) until the configurable logic block in the nth column. It should be noted that in the illustrated embodiment, the bottom FCB (FPGA The ConfigBlock module outputs a bitstream of the corresponding number of bits according to the known number of bits of the FPGA, and inputs the bitstream data of the corresponding number of bits into the FPGA to assist in locating the configurable logic blocks arranged in series in the FPGA circuit when configuring the configurable logic blocks, thereby realizing a one-time configuration of all the configurable logic blocks arranged in series in the above FPGA circuit.
[0043] It should be noted that in the embodiments of the present disclosure, the configurable logic blocks are arranged in an array of m rows and n columns on the FPGA circuit, where m and n are both positive integers, and m and / or n is greater than or equal to two; and the so-called first row can be any row of configurable logic blocks or a column of configurable logic blocks on the four sides of the configurable logic block array, and does not only refer to the configurable logic blocks on the leftmost (or bottommost) of each illustrated array. Accordingly, the configurable logic blocks in each illustrated embodiment can increase the number of rows and columns from top to bottom (vertical) or from left to right (horizontal); they can also increase the number of rows and columns from bottom to top (vertical) or from right to left (horizontal). The configurable logic block array of m rows and n columns in each embodiment of the present disclosure is merely exemplary and is not intended to limit its protection scope. In some embodiments, if the number of configurable logic blocks in the first row or the first column is less than that in the adjacent second row or the second column, then when the first row is connected in series with the second row (when the first column is connected in series with the second column), the extra configurable logic blocks in the second row (the second column) may be processed as configurable logic blocks at the edge connected to the main routing (processed as the first configurable logic block in this row or this column connected to the main routing, and then connected in series with the configurable logic blocks adjacent to this row or this column in sequence).
[0044] It should be noted that the main routing of the present disclosure transmits global signals to the edge of the configurable logic block array, wherein the main routing may include a main clock line, a main reset line, and a main configuration enable signal line; wherein the main clock line is configured to connect to a clock source; the main reset line is configured to connect to a reset source; and the main configuration enable signal line is configured to connect to a configuration unit. Accordingly, the sub-routing of the present disclosure may be connected to the main routing to transmit the signal from the main routing to the configurable logic block at the edge of the configurable logic block array, and the sub-routing may include a sub-clock line, a sub-reset line, and a sub-configuration enable signal line; the sub-clock line is configured to connect the main clock line to the configurable logic block; the sub-reset line is configured to connect the main reset line to the configurable logic block; and the sub-configuration enable signal line is configured to connect the main configuration enable signal line to the configurable logic block.
[0045] Figure 6A flow chart of a method for arranging a circuit structure of an FPGA bitstream download signal according to some embodiments of the present disclosure is shown. In the illustrated embodiment, a method 600 for arranging a circuit structure of an FPGA bitstream download signal is proposed, which includes: step 610, arranging configurable logic blocks in an array of m rows and n columns on the FPGA circuit, wherein m and n are both positive integers, and m and / or n are greater than or equal to two; step 620, arranging the main winding to pass the global signal to the edge of the configurable logic block array through the main winding; step 630, arranging the sub-winding to pass the global signal from the main winding to the configurable logic block at the edge of the configurable logic block array through the sub-winding and the main winding, and the sub-winding is arranged to sequentially connect adjacent configurable logic blocks in series starting from the configurable logic block at the edge of the configurable logic block array until all configurable logic blocks on the FPGA circuit are connected in series.
[0046] Further, in another embodiment, the manner in which the sub-windings are connected in series with all the configurable logic blocks on the circuit structure includes: the sub-windings are arranged to sequentially connect in series a neighboring configurable logic block from a configurable logic block at the edge of the configurable logic block array until all the configurable logic blocks on the FPGA circuit are sequentially connected in series. Further, in another embodiment, the manner in which the sub-windings are connected in series with all the configurable logic blocks on the circuit structure includes: the sub-windings are arranged to sequentially connect in series a neighboring configurable logic block in the first row and first column from the configurable logic block at the edge of the configurable logic block array until a configurable logic block in the first row and nth column is connected in series, and then to a neighboring configurable logic block in the second row and nth column is connected in series, and then a neighboring configurable logic block in the second row and nth column is connected in series from a configurable logic block in the second row and nth column is connected in series until all the configurable logic blocks on the FPGA circuit are sequentially connected in series. Furthermore, in another embodiment, the manner in which the sub-windings are connected in series to all configurable logic blocks on the circuit structure includes: the sub-windings are arranged to connect in series the configurable logic blocks in the adjacent 1st column starting from the configurable logic block in the 1st row and 1st column at the edge of the configurable logic block array in sequence, and then to the configurable logic block in the adjacent mth row and 2nd column in sequence, and to connect in series the configurable logic blocks in the adjacent 2nd column starting from the configurable logic block in the mth row and 2nd column in sequence, and finally to the configurable logic block in the 1st row and 2nd column in sequence, until all the configurable logic blocks on the FPGA circuit are connected in series in sequence.
[0047] Further, in another embodiment, the manner in which all configurable logic blocks on the sub-winding series circuit structure are connected includes: the sub-winding is configured to sequentially connect adjacent configurable logic blocks in series along the column direction starting from all configurable logic blocks in a row at the edge of the configurable logic block array until all configurable logic blocks on the FPGA circuit are sequentially connected in series. Further, in another embodiment, the manner in which all configurable logic blocks on the sub-winding series circuit structure are connected includes: the sub-winding is configured to sequentially connect adjacent configurable logic blocks in series along the row direction starting from all configurable logic blocks in a column at the edge of the configurable logic block array until all configurable logic blocks on the FPGA circuit are sequentially connected in series. Further, in another embodiment, the manner in which all configurable logic blocks on the sub-winding series circuit structure are connected includes: the sub-winding is configured to sequentially connect adjacent configurable logic blocks in series along the column direction starting from the configurable logic blocks in the first row at the edge of the configurable logic block array until all configurable logic blocks on the FPGA circuit are sequentially connected in series. Furthermore, in another embodiment, the manner in which the sub-windings connect all the configurable logic blocks on the circuit structure in series includes: the sub-windings are arranged to connect adjacent configurable logic blocks in series in the row direction starting from the configurable logic blocks in the first column at the edge of the configurable logic block array until all the configurable logic blocks on the FPGA circuit are connected in series in sequence.
[0048] Figure 7 A flow chart of a method for configuring a circuit structure of an FPGA bitstream download signal according to some embodiments of the present disclosure is shown. In the illustrated embodiment, a configuration method 700 of a circuit structure of an FPGA bitstream download signal is proposed, which includes: step 710, obtaining a signal list containing a top-level connection relationship of global signals according to a serial sequence description file; step 720, parsing the original RTL file to obtain the behavior information of the FPGA top layer, the configurable logic block, and the intellectual property core; step 730, adding buffers and input / output ports required for serial signals to the configurable logic block according to the signal list and the obtained behavior information of the configurable logic block and the behavior information of the intellectual property core (IP core); step 740, interrupting the connection relationship between the original configurable logic blocks according to the obtained behavior information of the FPGA top layer; step 750, reconnecting the configurable logic blocks according to the connection relationship obtained from the serial sequence description file; step 760, finally obtaining the output RTL file of the reconnected configurable logic block.
[0049] Furthermore, in some embodiments, in order to configure all configurable logic blocks on the FPGA at one time, the following method is used, including: according to the known number of bits of the FPGA, the bit stream of the corresponding number of bits is output through the FCB module; the bit stream of the corresponding number of bits is input into the above-mentioned FPGA circuit; the configurable logic blocks connected in series are configured at one time according to the received bit stream; that is, through the FCB (FPGA Config Block) module, according to the known number of bits of the FPGA, the bit stream (Bitstream) of the corresponding number of bits is output, and it is input into the FPGA, and all the configurable logic blocks connected in series will be configured at one time according to the requirements of the received bit stream (Bitstream). The circuit structure of the FPGA is Figure 5 In the arrangement of the example embodiment, according to the known number of bits of the FPGA, the bit stream of the corresponding number of bits is output through the FCB module; the bit stream of the corresponding number of bits is input into the above-mentioned FPGA circuit; the configurable logic blocks connected in series are configured at one time according to the received bit stream; such a configuration method can not only configure all the configurable logic blocks connected in series on the FPGA circuit at one time, but also quickly complete such a one-time configuration. Further, in some embodiments, in order to configure all the configurable logic blocks on the FPGA at one time, the bit stream of the corresponding number of bits is input into the configurable logic blocks at the edge of the configurable logic block array in the FPGA circuit through the main winding (that is, the bit stream of the corresponding number of bits is input into the configurable logic blocks connected to the main winding and at the edge of the configurable logic block array. It should be understood that the configurable logic blocks in the first row or column can be configured simultaneously with the bit stream of the corresponding number of bits first); then the bit stream of the corresponding number of bits of the configurable logic blocks at the edge of the configurable logic block array is input through the sub-routing For other configurable logic blocks in the FPGA circuit that are sequentially connected in series with the configurable logic blocks at the edge of the configurable logic block array, when the bit stream of the corresponding number of bits contains the configuration information of other configurable logic blocks, after configuring the first row or column of configurable logic blocks, it can be transferred along the sub-routing to one or more configurable logic blocks (configurable logic blocks adjacent to the first row or column of configurable logic blocks) that are sequentially connected in series with the first row or column of configurable logic blocks and configured, and then configure the other configurable logic blocks that are sequentially connected in series until all configurable logic blocks are configured. Of course, it is most preferred that the fastest configuration is based on Figure 5 The serial connection method of the exemplary embodiment is to use all the configurable logic blocks in one row or one column at the edge of the array as the first row or the first column to serially connect all the configurable logic blocks in the entire array.
[0050] In some embodiments, Figure 5In the array structure, the bit stream of the corresponding number of bits is input into the configurable logic blocks at the edge of the configurable logic block array in the FPGA circuit through the main winding, which is the bottom row in the figure; the bit stream of the corresponding number of bits of the configurable logic blocks at the edge of the configurable logic block array is input into other configurable logic blocks in the FPGA circuit that are sequentially connected in series with the configurable logic blocks at the edge of the configurable logic block array through the sub-winding. It should be noted that in this embodiment, the bit stream of the corresponding number of bits is input from the configurable logic blocks in the bottom row (the first row), and its content includes all the bit streams of the corresponding number of bits experienced in this series column, that is, when the configurable logic blocks in the first row extract the bit stream data of the corresponding number of bits belonging to themselves and pass it to the configurable logic blocks in the next row through the sub-winding, the configurable logic blocks in the next row extract the bit stream data of the corresponding number of bits belonging to themselves again, and pass it in series in sequence (and extract the bit stream data of the corresponding number of bits belonging to themselves in sequence); in this way, the bit stream data of the corresponding number of bits of all the configurable logic blocks in the array are written at one time, without having to write them separately like Figure 3 As in the embodiment, only one row can be written at a time, and after writing, the next row is written next time, and so on, until the configuration of all configurable logic blocks in the array is completed.
[0051] Figure 8 A schematic diagram of the internal structure of a configurable logic block in a circuit structure for configuring an FPGA bitstream download signal according to some embodiments of the present disclosure is shown. In the illustrated embodiment, the configurable logic block includes: a reset signal input (reset in) port for inputting a reset signal, a configuration enable signal input (config_datain) port for inputting configuration data, a system clock input (clk in) port for inputting a clock signal, a configuration clock input (prog_clk in) port for controlling the clock signal of each register when the FPGA is configured, and also includes eight ports for controlling input 0 to input 7 (in0~in7) of two "16 to 1" selectors; and a reset signal output (resetout) port for cascading a reset signal, a configuration enable signal output (config_data out) port for cascading a configuration signal, a system clock output (clk out) port for cascading a clock signal, and a configuration clock output (prog_clk out) port for cascading a configuration circuit clock signal, and also includes two ports for output [0] (out[0]) and output [1] (out[1]) of the logic output signal of the CLB.
[0052] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
[0053] The above description is only an optional embodiment of the present disclosure and is not intended to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. An FPGA bitstream download signal circuit structure, comprising an FPGA circuit composed of configurable logic blocks, characterized in that: Also includes: The configurable logic blocks are arranged on the FPGA circuit in an array of m rows and n columns, wherein m and n are both positive integers, and m and / or n are greater than or equal to two; A main routing line is configured to transmit a global signal to an edge of the configurable logic block array through the main routing line; and a sub-routing line is configured to transmit a global signal from the main routing line to an edge of the configurable logic block array through the sub-routing line connected to the main routing line. The sub-routing is arranged to sequentially connect the adjacent configurable logic blocks in series starting from the configurable logic blocks at the edge of the configurable logic block array until all the configurable logic blocks on the FPGA circuit are connected in series; Wherein, the manner in which the sub-winding is connected in series with all configurable logic blocks on the circuit structure includes: The sub-routing is configured to sequentially connect in series the adjacent configurable logic blocks in the first row and the first column of the edge of the configurable logic block array, starting from the configurable logic block in the first row and the first column, to the configurable logic block in the first row and the nth column, and then to the configurable logic block in the adjacent second row and the nth column, and sequentially connect in series the adjacent configurable logic blocks in the second row and the first column starting from the configurable logic block in the second row and the nth column, until all the configurable logic blocks on the FPGA circuit are sequentially connected in series; or The sub-routing is configured to sequentially connect in series the configurable logic block in the first row and first column from the edge of the configurable logic block array to the adjacent configurable logic block in the first column until the configurable logic block in the mth row and first column, and then to the adjacent configurable logic block in the mth row and second column, and sequentially connect in series the configurable logic block in the second column from the configurable logic block in the mth row and second column until the configurable logic block in the first row and second column, until all the configurable logic blocks on the FPGA circuit are sequentially connected in series; or The sub-routing is configured to sequentially connect adjacent configurable logic blocks in series along a column direction starting from all the configurable logic blocks in a row at the edge of the configurable logic block array until all the configurable logic blocks on the FPGA circuit are sequentially connected in series; or The sub-routing is configured to sequentially connect adjacent configurable logic blocks in series along a row direction starting from all the configurable logic blocks in a column at the edge of the configurable logic block array until all the configurable logic blocks on the FPGA circuit are sequentially connected in series.
2. The circuit structure according to claim 1, characterized in that: The main winding includes a main clock line, a main reset line and a main configuration enable signal line; the main clock line is configured to connect to a clock source; The master reset line is configured to be connected to a reset source; The master configuration enable signal line is configured to connect the configuration unit.
3. The circuit structure according to claim 2, characterized in that: The sub-windings include a sub-clock line, a sub-reset line, and a sub-configuration enable signal line; The sub-clock line is configured to connect the main clock line and the configurable logic block; the sub-reset line is configured to connect the main reset line and the configurable logic block; The sub-configuration enable signal line is configured to connect the main configuration enable signal line and the configurable logic block.
4. A configuration method based on the FPGA bitstream download signal circuit structure according to any one of claims 1 to 3, characterized in that: include: Obtain a signal list containing top-level connection relationships of global signals according to a serial sequence description file; Parse the original RTL file to obtain the behavioral information of the FPGA top level, configurable logic blocks, and intellectual property cores; Adding buffers and input / output ports required for serial signals to the configurable logic block according to the signal list and the obtained behavior information of the configurable logic block and the behavior information of the intellectual property core; According to the obtained behavior information of the top layer of FPGA, the connection relationship between the original configurable logic blocks is interrupted; reconnecting the configurable logic blocks according to the connection relationship obtained from the serial sequence description file; Finally, the output RTL file of the reconnected configurable logic blocks is obtained.
5. The method according to claim 4, characterized in that: Also includes: According to the known number of bits in FPGA, the bit stream of the corresponding number of bits is output through the FCB module; Inputting the bit stream of the corresponding number of bits into the FPGA circuit; The serially connected configurable logic blocks are configured at once by the received bit stream.
6. The method according to claim 5, characterized in that Inputting the bit stream of the corresponding number of bits into the configurable logic block at the edge of the configurable logic block array in the FPGA circuit through the main routing; The bit stream of the corresponding bit number of the configurable logic blocks at the edge of the configurable logic block array is input into other configurable logic blocks in the FPGA circuit that are sequentially connected in series with the configurable logic blocks at the edge of the configurable logic block array through the sub-routing.
