A split-screen layout method for field programmable gate array chip design
In FPGA chip design, the split-screen layout method solves the problem of difficulty in dragging instance units due to excessive distance, enables precise dragging between two fields of view, and improves the flexibility and accuracy of manual layout.
Patent Information
- Application Number
- CN202010598596.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-28
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-06-28
AI Technical Summary
In FPGA chip design, the instance unit cannot be displayed clearly due to its distance, which makes it difficult to drag during manual layout on the computer monitor.
Use the split-screen layout method to divide the field of view into two areas, zoom and position the instance unit and target position respectively, and drag between the two fields of view to achieve large-distance movement.
It solves the problem of difficulty in moving instance units over large distances in manual layout, and improves the flexibility and accuracy of layout.
Smart Images

Figure CN111985175B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of design of Field Programmable Gate Array (FPGA) chips, and in particular to a split-screen layout method for designing a Field Programmable Gate Array chip. Background Art
[0002] The number of instance units contained in FPGA (Field Programmable Gate Array) chips ranges from a few thousand to hundreds of thousands or even millions. Therefore, when displaying chips, EDA graphics tools that assist in FPGA design are limited by the resolution of the computer monitor. If you want to see the specific instance units clearly, the computer monitor can only display local instance units in the FPGA chip, and most of them are not in the field of view.
[0003] When manually placing a design, it is often necessary to drag one or more current instance cells to another target location on the chip. When the target location is far from the current location and is not within the display range of the computer monitor, it is necessary to zoom in on the electronic design automation (EDA) tool graphical view. However, when zoomed out to a certain extent, the free cells at the target location cannot be clearly seen. Therefore, it is not conducive to the placement of the dragged instance cells.
[0004] Therefore, a better design layout method is needed. Summary of the invention
[0005] An embodiment of the present invention provides a split-screen layout method for field programmable gate array chip design. In a split-screen manner, the current position and target position of an instance unit that is too far away to be clearly displayed in one field of view are positioned in two fields of view respectively, and then the instance unit is dragged between the two fields of view to achieve the purpose of manual layout. This method can solve the problem of difficulty in layout of instance units moving over a long distance in manual layout.
[0006] The technical solution adopted by the present invention to solve the above technical problems is to provide a layout method for field programmable gate array chip design, the method comprising:
[0007] Determine the instance unit to be moved, or take its current position and the target position to be moved;
[0008] Calculate the distance between the current position of the instance unit and the target position of the movement to obtain the distance value;
[0009] If the distance value is within the first interval, scaling the current field of view so that the current position and the target position of the instance unit are both within the current field of view;
[0010] Calculating the display size of the current position and the target position of the instance unit in the current field of view, and judging whether the current position and the target position of the instance unit are both clearly displayed in the current field of view according to the display size;
[0011] If the judgment result is no, the current field of view is divided into two fields of view according to the display content, and the two fields of view are respectively a first field of view and a second field of view;
[0012] The first field of view and the second field of view are scaled respectively, the instance unit is located in any one of the first field of view and the second field of view, and the target position is located in the other one;
[0013] Drag the instance unit from its current position in the field of view to the target position in another field of view;
[0014] According to the display contents of the first field of view and the second field of view, the first field of view and the second field of view are restored to one field of view, and the field of view is used as the current field of view.
[0015] Preferably, after judging whether the current position and the target position of the instance unit are both clearly displayed in the current field of view according to the display size;
[0016] If the judgment result is yes, then in the current field of view, drag the instance unit from its current position to the target position.
[0017] Preferably, after obtaining the distance value;
[0018] If the distance value is within the second interval, the current field of view is scaled so that the current position and the target position of the instance unit are both within the current field of view; the upper and lower limits of the second interval are smaller than the upper and lower limits of the first interval;
[0019] In the current view, drag the instance unit from its current position to the target position.
[0020] Preferably, the current field of view is divided into two fields of view according to its display content, the two fields of view being a first field of view and a second field of view, respectively, including that the first field of view and the second field of view are arranged left to right, or up to down.
[0021] Preferably, the example cells comprise logic cells of a field programmable gate array.
[0022] Preferably, the first and second intervals are preset, or calculated according to a predetermined calculation method.
[0023] Preferably, the field of view includes a window interface, or a display area divided within the window interface. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0025] Figure 1 A flow chart of a layout method for field programmable gate array chip design provided by one embodiment of the present invention;
[0026] Figure 2 A flow chart showing an implementation of a layout method for a field programmable gate array chip design provided by an embodiment of the present invention; DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0028] As mentioned above, in the existing EDA tool graphic view, when one or more instance units need to be dragged to another target position on the chip, if the target position is far away from the current position and is not within the display range of the computer monitor, the EDA tool graphic view needs to be scaled. However, when it is zoomed out to a certain extent, the idle cells at the target position cannot be seen clearly, thus causing the problem of moving the instance units.
[0029] In order to solve the above problems, the present invention proposes a layout method for field programmable gate array chip design. Figure 1 A flow chart of a layout method for a field programmable gate array chip design provided by one embodiment of the present invention. Figure 1 As shown, the automated testing process includes at least the following steps:
[0030] Step 11, determine the instance unit to be moved, or take its current position and the target position to be moved.
[0031] Layout is an important part of field programmable gate array chip design. Its purpose is to reasonably configure the logic units in the netlist to the hardware structure inside the chip. Usually, layout is automatically performed using EDA tools, but sometimes it is also partially manually performed by designers as needed. The reason is that people are more flexible and understand the purpose of design. Using manual layout can ensure that some key technical requirements are met, such as ensuring that the most critical path meets the timing requirements.
[0032] In one embodiment, the example unit is a logic unit including a field programmable gate array. In this step, the logic unit to be moved is the logic unit that the designer intends to adjust the position of during manual layout, and the current position and the target position of the move are determined for the logic unit.
[0033] Step 12, calculate the distance between the current position of the instance unit and the target position of the movement, and obtain the distance value.
[0034] As mentioned above, when the distance between the target position of the instance unit and the current position is large, it may cause difficulty in manual layout. In this step, the distance value may be obtained to determine whether the distance is large in the subsequent steps.
[0035] Step 13: If the distance value is within the first interval, the current field of view is scaled so that the current position and the target position of the instance unit are both within the current field of view.
[0036] The first interval here is used to determine whether the distance between the target position and the current position is large. When the distance value obtained in step 12 is within the first interval, it means that the distance between the target position and the current position is large. If so, the current field of view is scaled so that the current position and the target position of the instance unit are both within the current field of view. The purpose is to try whether the instance unit can be dragged within the current field of view.
[0037] In actual operation, of course, there may be a situation where the target position is smaller than the current position, thus not affecting the designer's dragging operation. Therefore, in another embodiment, if the distance value is within the second interval, the current field of view is scaled so that the current position and the target position of the instance unit are both within the current field of view; the upper and lower limits of the second interval are smaller than the upper and lower limits of the first interval; in the current field of view, the instance unit is dragged from its current position to the target position.
[0038] It can be seen that the second interval is used to determine whether the target position is close to the current position, so that the designer does not affect the drag operation.
[0039] According to different implementations, the first and second intervals may be preset, or calculated according to a predetermined calculation method.
[0040] In yet another embodiment, the field of view includes a window interface, or a display area divided within the window interface.
[0041] Step 14, calculating the display size of the current position and the target position of the instance unit in the current field of view, and judging whether the current position and the target position of the instance unit are clearly displayed in the current field of view according to the display size.
[0042] The purpose of this step is to determine whether the current position and the target position of the instance unit are clearly displayed in the current field of view after the scaling in step 13 according to the above display size.
[0043] According to different implementations, different judgment methods can also be used to judge whether the current position and the target position are clearly displayed in the current field of view. It is easy to understand that the use of different judgment methods does not affect the spirit and principles of the present invention and should be within the protection scope of the present invention.
[0044] Step 15: If the judgment result is no, the current field of view is divided into two fields of view according to the display content, and the two fields of view are respectively a first field of view and a second field of view.
[0045] In this step, if the judgment result of step 14 is no, that is, in the current field of view, the current position and the target position of the instance unit are judged to not both be displayed clearly, then the display content displayed in the current field of view, such as the current chip design diagram, is displayed in the two fields of view respectively.
[0046] In actual operation, although the current position and the target position are judged to be far away, after the field of view is zoomed and adjusted, the display area of the two is still sufficient to make them both clearly displayed, so that the designer can operate and drag without hindrance. Therefore, in another embodiment, according to the display size, it is judged whether the current position and the target position of the instance unit are both clearly displayed in the current field of view; if the judgment result is yes, then in the current field of view, the instance unit is dragged from its current position to the target position.
[0047] In one embodiment, the first field of view and the second field of view may be arranged side by side, or top by top.
[0048] Step 16, scaling the first field of view and the second field of view respectively, locating the current position of the instance unit in any one of the first field of view and the second field of view, and locating its target position in the other one.
[0049] In this step, the current position and the target position of the instance unit are zoomed and located in the two fields of view obtained in step 15. In one embodiment, the current position and the target position of the instance unit in different fields of view can be zoomed and located in a predetermined threshold range to make the display clear.
[0050] Step 17, drag the instance unit from its current position in the field of view to the target position in another field of view.
[0051] In this step, the designer drags the instance unit from the current position in one view to the target position in another view, completing a layout drag operation.
[0052] Step 18: According to the display contents of the first field of view and the second field of view, the first field of view and the second field of view are restored into one field of view, and the field of view is used as the current field of view.
[0053] After the dragging operation in step 17 is completed, the two fields of view are no longer needed, so the two fields of view are restored to one field of view, which serves as the current field of view and still displays the layout design drawing of the designed chip.
[0054] Figure 2 A flowchart showing an implementation of a layout method for a field programmable gate array chip design provided by an embodiment of the present invention is shown as follows: Figure 2 As shown, in this implementation, a complete implementation process is included for both split screen (field of view) and non-split screen situations.
[0055] As to how the two fields of view are restored into one field of view, the present invention does not limit this because the restoration method does not affect the function of the restored field of view.
[0056] It can be seen from the above embodiments that a split-screen layout method using a field programmable gate array chip design provided by an embodiment of the present invention is used. In a split-screen (field of view) manner, the current position and target position of an instance unit that is too far away to be clearly displayed in one field of view are positioned in two fields of view respectively, and then the instance unit is dragged between the two fields of view to achieve the purpose of manual layout. This method can solve the problem of difficulty in layout of instance units moving large distances in manual layout.
[0057] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0058] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0059] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented by hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0060] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A layout method for designing a field programmable gate array chip, the method comprising: Determine the instance unit to be moved, determine its current position and the target position to be moved; Calculating the distance between the current position of the instance unit and the target position of the movement according to the current position and the target position of the movement to obtain a distance value; If the distance value is within the first interval, scaling the current field of view so that the current position and the target position of the instance unit are both within the current field of view; Calculating the display size of the current position and the target position of the instance unit in the current field of view, and judging whether the current position and the target position of the instance unit are both clearly displayed in the current field of view according to the display size; If the judgment result is no, dividing the current field of view into two fields of view according to the display content of the current field of view, the two fields of view being respectively a first field of view and a second field of view; The first field of view and the second field of view are scaled respectively, the instance unit is located in any one of the first field of view and the second field of view, and the target position is located in the other one; Drag the instance unit from its current position in the field of view to the target position in another field of view; According to the display contents of the first field of view and the second field of view, the first field of view and the second field of view are restored to one field of view, and the field of view is used as the current field of view.
2. The method according to claim 1, further comprising, after determining, based on the display size, whether the current position and the target position of the instance unit are both clearly displayed in the current field of view; If the judgment result is yes, then in the current field of view, drag the instance unit from its current position to the target position.
3. The method according to claim 1, further comprising, after obtaining the distance value; If the distance value is within the second interval, the current field of view is scaled so that the current position and the target position of the instance unit are both within the current field of view; the upper and lower limits of the second interval are smaller than the upper and lower limits of the first interval; In the current view, drag the instance unit from its current position to the target position.
4. The method according to claim 1, wherein: According to the display content of the current field of view, it is divided into two fields of view, which are respectively a first field of view and a second field of view, including that the first field of view and the second field of view are arranged left and right, or arranged up and down.
5. The method according to claim 1, wherein: The example cells include logic cells of a field programmable gate array.
6. The method according to claim 1, wherein: The first and second intervals are preset or calculated according to a predetermined calculation method.
7. The method according to claim 1, wherein: The field of view includes a window interface, or a display area divided within the window interface.
Citation Information
Patent Citations
Method for implementing regional constraint in FPGA (Field Programmable Gate Array) chip layout
CN106528921A
Visual field display method and device
CN107213635A
