Method, device and equipment for designing integrated circuit and storage medium
By associating the interface information and connection relationships of integrated circuit circuit blocks, the interface timing problem is solved, the design efficiency and the accuracy of physical implementation are improved, and the cost and power consumption are reduced.
Patent Information
- Application Number
- CN202310371123.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-07
- Publication Date
- 2024-10-15
AI Technical Summary
In integrated circuit design, it is difficult for existing technologies to effectively solve interface timing issues, resulting in a lack of inheritance in the design architecture, low interface attention, and unclear front-end and back-end interface requirements, which in turn leads to interface timing risks, increases later modification costs, and wastes interface timing. Margin, affecting internal timing and physical implementation.
By determining the respective interface information of multiple circuit blocks in the integrated circuit, the interface information is associated with the number of circuit elements or delays, and based on the port connection relationship, the interface information between the circuit blocks is associated to analyze and optimize the interface timing.
It improves the efficiency of integrated circuit design, reduces unnecessary power consumption and area overhead during physical implementation, ensures interface timing convergence, and reduces design risks and modification costs.
Smart Images

Figure CN118780217A_ABST
Abstract
Description
Technical Field
[0001] Example embodiments of the present disclosure relate generally to the field of integrated circuits, and more particularly to methods, apparatuses, devices, and computer-readable storage media for designing integrated circuits. Background Art
[0002] An integrated circuit is a miniature electronic device or structure. The components and wiring required in the circuit, such as transistors, resistors, capacitors, and inductors, are interconnected, fabricated on a semiconductor wafer or dielectric substrate, and then packaged in a tube shell to form a miniature structure with the required circuit function. An integrated circuit can be divided into circuit blocks (also called modules or blocks), each of which can include multiple circuit elements. The circuit blocks can be connected together to form the entire integrated circuit. Summary of the invention
[0003] In a first aspect of the present disclosure, a method for designing an integrated circuit is provided. The method includes: determining interface information of each of a plurality of circuit blocks in the integrated circuit, the interface information of each circuit block being associated with at least one of the number of circuit elements or delay in the circuit block; determining a connection relationship between the plurality of circuit blocks based on the ports of each of the plurality of circuit blocks; and if the connection relationship indicates that a first circuit block among the plurality of circuit blocks is connected to a second circuit block, associating at least a portion of first interface information of the first circuit block with at least a portion of second interface information of the second circuit block.
[0004] In a second aspect of the present disclosure, a device for designing an integrated circuit is provided. The device includes: an interface information determination module configured to determine the interface information of each of a plurality of circuit blocks in the integrated circuit, the interface information of each circuit block being associated with at least one of the number of circuit elements or delay in the circuit block; a connection relationship determination module configured to determine the connection relationship between the plurality of circuit blocks based on the ports of the plurality of circuit blocks; and an association module configured to associate at least a portion of the first interface information of the first circuit block with at least a portion of the second interface information of the second circuit block if the connection relationship indicates that the first circuit block among the plurality of circuit blocks is connected to the second circuit block.
[0005] In a third aspect of the present disclosure, an electronic device is provided. The device includes at least one processing unit; and at least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit. When the instructions are executed by the at least one processing unit, the device executes the method of the first aspect.
[0006] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein a computer program is stored on the computer-readable storage medium, and the computer program can be executed by a processor to implement the method of the first aspect.
[0007] It should be understood that the contents described in this content section are not intended to limit the key features or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] The above and other features, advantages and aspects 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 the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:
[0009] Figure 1 A schematic diagram showing an example environment in which embodiments of the present disclosure can be implemented;
[0010] Figure 2 A flowchart of a method for designing an integrated circuit according to some embodiments of the present disclosure is shown;
[0011] Figure 3 A schematic diagram showing an integrated circuit including a plurality of circuit blocks according to some embodiments of the present disclosure;
[0012] Figure 4 A schematic diagram showing an association relationship according to some embodiments of the present disclosure is shown;
[0013] Figure 5 A block diagram showing an apparatus for designing an integrated circuit according to some embodiments of the present disclosure; and
[0014] Figure 6 A block diagram of a device capable of implementing various embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0015] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0016] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0017] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0018] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0019] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0020] 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 set forth 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.
[0021] It should be noted that the titles of any sections / subsections provided herein are not restrictive. Various embodiments are described throughout this article, and any type of embodiment may be included under any section / subsection. In addition, the embodiments described in any section / subsection may be combined in any manner with any other embodiments described in the same section / subsection and / or different sections / subsections.
[0022] 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 term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may be included below. The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may be included below.
[0023] Figure 1A schematic diagram of an example environment 100 in which an embodiment of the present disclosure can be implemented is shown. In environment 100, an integrated circuit 130 can be divided into a plurality of circuit blocks. The plurality of circuit blocks include, for example, circuit block 120-1, circuit block 120-2, circuit block 120-3 ... circuit block 120-N (which are also individually or collectively referred to as circuit blocks 120), where N is a positive integer greater than or equal to 2. Each circuit block has its own port (e.g., pin), through which the respective circuit blocks are connected, so that there is a connection relationship between the circuit blocks, and then signals can be transmitted between the respective circuit blocks. Circuit block 120 may include at least one circuit element, such as a logic element, a buffer element, etc. (not shown).
[0024] The example environment 100 also includes an electronic device 110. An integrated circuit 130, such as a chip, may be designed using the electronic device 110 (eg, associated applications, tools, etc. deployed therein).
[0025] In the environment 100, the electronic device 110 can be any type of device with computing capabilities, including a terminal device or a server device. The terminal device can be any type of mobile terminal, fixed terminal or portable terminal, including a mobile phone, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a media computer, a multimedia tablet, a personal communication system (PCS) device, a personal navigation device, a personal digital assistant (PDA), an audio / video player, a digital camera / camcorder, a positioning device, a television receiver, a radio broadcast receiver, an e-book device, a gaming device, or any combination of the foregoing, including accessories and peripherals of these devices or any combination thereof. The server device can include, for example, a computing system / server, such as a mainframe, an edge computing node, a computing device in a cloud environment, and the like.
[0026] It should be understood that the structure and functionality of environment 100 are described for exemplary purposes only and do not imply any limitation on the scope of the present disclosure. Figure 1 The number and layout of the circuit blocks shown in the embodiment are only exemplary and are not intended to limit the scope of the present disclosure. In the embodiments of the present disclosure, the integrated circuit may have any suitable number and layout of circuit blocks.
[0027] In the front-end and back-end timing iteration process of integrated circuit (e.g., chip) design, the timing convergence of the interface between circuit blocks (or modules) is very important. In the integrated circuit design process, the lack of inheritance of the design architecture, the low attention of code designers to the interface, and the unclear requirements and rules of the front-end and back-end interfaces will all introduce interface timing problems.
[0028] Therefore, in the early stage of register transfer level (RTL) code development, while defining interface constraints, it is also necessary to conduct active checks to ensure that interface timing risks are eliminated as early as possible. In the early stage of RTL design, in the case where the module port logic is too long, which makes physical implementation difficult or impossible, it is expected that front-end / synthesis / back-end designers can promptly discover these problems and make modifications, and eliminate risks and provide risk warnings as early as possible. Without a systematic statistical method, these problems may not be solved in the early stage, resulting in excessively high costs for later modifications.
[0029] In addition, during the physical implementation process, the interface is converged in a stricter way. The disadvantage of this method is that it wastes the interface timing margin to varying degrees and has varying degrees of impact on the internal timing. During the physical implementation process, the modules are physically designed separately, which makes it impossible to accurately estimate the exact delay of the docking module or docking logic. For this reason, the physical design is tightened during the interface convergence process, introducing additional unnecessary power consumption and area overhead.
[0030] Embodiments of the present disclosure propose a scheme for designing an integrated circuit. According to various embodiments of the present disclosure, interface information of each of a plurality of circuit blocks in an integrated circuit is determined, and the interface information is associated with at least one of the number of circuit elements or delay in the corresponding circuit block. A connection relationship between the plurality of circuit blocks is determined based on the ports of each of the plurality of circuit blocks. Further, if the connection relationship indicates that a first circuit block among the plurality of circuit blocks is connected to a second circuit block, at least a portion of the first interface information of the first circuit block is associated with at least a portion of the second interface information of the second circuit block.
[0031] In the embodiments of the present disclosure, the interface information between the circuit blocks having a connection relationship is associated, which can facilitate the analysis of interface-related timing or logic problems so as to optimize them as early as possible. In this way, the efficiency of integrated circuit design can be improved.
[0032] Some example embodiments are described below with continued reference to the accompanying drawings.
[0033] Figure 2 FIG. 2 is a flowchart of a method 200 for designing an integrated circuit according to some embodiments of the present disclosure. As an example, the method 200 may be performed as follows: Figure 1 The electronic device 110 shown executes. It should be understood that the method 200 may further include additional blocks not shown and / or may omit one (or some) of the blocks shown, and the scope of the present disclosure is not limited in this respect.
[0034] In box 210, the electronic device 110 determines the interface information of each of the multiple circuit blocks of the integrated circuit. The interface information of each circuit block is associated with at least one of the number of circuit elements or delay in the circuit block. As described above, the circuit block may include at least one circuit element. Such circuit elements may, for example, include logic elements and buffer elements. The logic element may be configured to implement logical operations or arithmetic operations. The logic element may, for example, include an AND gate, a NOT gate, an NAND gate, etc. The buffer element (e.g., a register) may be configured to buffer the data of the operation without participating in the operation. The buffer element may, for example, include an input buffer element set by an input port, an output buffer element set by an output port, an intermediate buffer element set between each logic element, etc. It should be understood that the circuit block may also include other types of elements, and the present embodiment is not limited in this respect.
[0035] refer to Figure 3 An example of a circuit block is described with reference to the integrated circuit 300 in FIG. Figure 3 As shown, the integrated circuit 300 includes a plurality of circuit blocks. The plurality of circuit blocks include, for example, a circuit block 310-1, a circuit block 310-2, a circuit block 310-3, and a circuit block 310-4 (which are individually or collectively referred to as circuit blocks 310). For example, the circuit block 310 includes a logic unit. Figure 3 In the example of , circuit block 310-1 includes logic unit 330-1 and logic unit 330-2, circuit block 310-2 includes logic unit 330-3 and logic unit 330-4, circuit block 310-3 includes logic unit 330-5 and logic unit 330-6, and circuit block 310-4 includes logic unit 330-7 and logic unit 330-8. Logic unit 330-1, ..., logic unit 330-8 may be individually or collectively referred to as logic unit 330. Each logic unit 330 may include at least one logic element (not shown in the figure), such as an AND gate, an OR gate, a NOT gate, etc.
[0036] Exemplarily, the circuit block 320 may further include a buffer unit. Figure 3 In the example of FIG. 3 , circuit block 310-1 includes buffer unit 320-1 and buffer unit 320-2, circuit block 310-2 includes buffer unit 320-3 and buffer unit 320-4, circuit block 310-3 includes buffer unit 320-5 and buffer unit 320-6, and circuit block 310-4 includes buffer unit 320-7 and buffer unit 320-8. Buffer units 320-1, ..., buffer units 320-8 are individually or collectively referred to as buffer units 320. Each buffer unit 320 may include at least one buffer element (not shown in the figure).
[0037] Integrated circuit 300 can be viewed as Figure 1The circuit block 310 is an example implementation of the integrated circuit 100 shown. Accordingly, the circuit block 310 can be regarded as an example implementation of the circuit block 120. It should be understood that Figure 3 The number and layout of the circuit blocks, buffer units, and logic units shown in the figure are merely exemplary and not restrictive. The scope of the present disclosure is not limited in this respect. Figure 3 Each circuit block 310 has both a buffer unit and a logic unit, but this is only exemplary.
[0038] As an example, the electronic device 110 determines the interface information of each of the plurality of circuit blocks 310 of the integrated circuit 300, and the interface information of each circuit block 310 is associated with at least one of the number or delay of the circuit elements of the circuit block 310. For example, the interface information of the circuit block 310-1 may be associated with the number and / or delay of the logic elements in the logic unit 330-1 of the circuit block 310-1.
[0039] The interface information of each circuit block is associated with at least one of the number of circuit elements or delay in the circuit block. In some embodiments, the interface information may include logical depth information associated with the number of circuit elements. The electronic device 110 may determine the logical depth information based on the number of circuit elements. For example, the logic unit 330-1 of the circuit block 310-1 includes X (e.g., X is 10) logic elements, and the buffer unit 320-1 includes Y (e.g., Y is 8) buffer elements, then the logical depth information may be a value X+Y (e.g., 18) or a value associated with the value X+Y. It should be understood that the number of the above-mentioned circuit elements is only an example and is not intended to limit the scope of the present disclosure.
[0040] In some embodiments, considering that the buffer element does not participate in the logical operation, the buffer element may not be taken into consideration when determining the interface information of each of the multiple circuit blocks 310 in the integrated circuit 300. Specifically, for any circuit block 120, the electronic device 110 may determine the initial logic depth based on the number of at least one circuit element in the circuit block as part of the interface information of the circuit block. Furthermore, the electronic device 110 may determine the revised logic depth based on the number of logic elements in the circuit block as another part of the interface information. That is, after removing the non-logic elements in the circuit block, the logic depth may be determined based on the number of remaining logic elements.
[0041] The logic depth information obtained by considering all types of circuit elements is the result of synthesis or physical design optimization. In some cases, if you want to analyze pure combinational logic, you need to delete the inserted cells and then count the depth separately. Therefore, the logic depth re-extracted after removing the inserted cells is also included as part of the interface information.
[0042] Alternatively or additionally, in some embodiments, the interface information may include delay information associated with the delay of the circuit element. Considering that the delays of different types of circuit elements may be different, the electronic device 110 may determine the delay information based on the delays of the respective circuit elements.
[0043] Considering the complexity of integrated circuits, there may be more than one path for signal transmission in a circuit block, which is also referred to as a signal path. In some embodiments, at least one circuit block among the plurality of circuit blocks may include a plurality of signal paths. In some embodiments, a signal path may be represented or identified by a corresponding port (e.g., a pin).
[0044] As an example, Figure 3 As shown, each circuit block 310 may include two buffer units 320 and two logic units 330. Accordingly, each circuit block 310 includes two signal paths. For example, in circuit block 310-1, the signal is transmitted from buffer unit 320-1 to logic unit 330-1, thereby forming signal path 350-1; the signal is transmitted from buffer unit 320-2 to logic unit 330-2, thereby forming signal path 350-2. Similarly, in circuit block 310-2, the signal is transmitted from logic unit 330-3 to buffer unit 320-3, thereby forming signal path 350-3; the signal is transmitted from buffer unit 320-4 to logic unit 330-4, thereby forming signal path 350-4. Similarly, in circuit block 310-3, the signal is transmitted from buffer unit 320-5 to logic unit 330-5, thereby forming signal path 350-5; the signal is transmitted from buffer unit 320-6 to logic unit 330-6, thereby forming signal path 350-6. In circuit block 310-4, the signal is transmitted from buffer unit 320-7 to logic unit 330-7, thereby forming signal path 350-7; the signal is transmitted from logic unit 330-8 to buffer unit 320-8, thereby forming signal path 350-8. It should be understood that the circuit block may also include more or fewer buffer units and logic units. Figure 3 The number of signal paths in is merely an example and is not intended to limit the scope of the present disclosure.
[0045] For a circuit block including multiple signal paths, the interface information of the circuit block may include multiple information items corresponding to the multiple signal paths respectively. Each information item may include a logic depth and / or a delay amount. It is understandable that the logic depths of these signal paths as a whole may be regarded as the logic depth information described above, and the delay amounts of these signal paths as a whole may be regarded as the delay information described above. That is, in this embodiment, the interface information may be maintained according to the signal paths.
[0046] The logic depth of a signal path is associated with the number of electronic components in the signal path. For example, circuit block 310-1 includes signal path 350-1 and signal path 350-2. The information item corresponding to signal path 350-1 includes a logic depth associated with the number of circuit elements in signal path 350-1. The information item corresponding to signal path 350-2 includes a logic depth associated with the number of circuit elements in signal path 350-2. In some embodiments, the logic depth of a signal path can include two items, namely the initial logic depth described above and the modified logic depth considering only logic elements.
[0047] The delay amount of a signal path is associated with the delay of the electronic components in the signal path. Continuing with the example of circuit block 310-1. The information item corresponding to signal path 350-1 includes the delay amount associated with the delay of the circuit elements in signal path 350-1. The information item corresponding to signal path 350-2 includes the delay amount associated with the delay of the circuit elements in signal path 350-2.
[0048] The above describes that the electronic device 110 determines the interface information of each of the multiple circuit blocks in the integrated circuit. The electronic device 110 can store the interface information in any suitable manner. For example, the electronic device 110 can store the determined interface information in the form of an array in a file, and such an array can be, for example, a two-dimensional array. In the design stages such as integrated circuit design, circuit layout, clock design, and wiring, the electronic device 110 can store the interface information determined in each stage.
[0049] Continue to refer Figure 2 In block 220, the electronic device 110 determines the connection relationship between the multiple circuit blocks based on the respective ports of the multiple circuit blocks. Each circuit block may have at least one port (or pin), and the connection relationship between the circuit blocks may be determined by parsing the connection relationship between the ports of different circuit blocks. A circuit block may be connected to multiple other circuit blocks. It should be understood that the connection relationship between the circuit blocks described herein may specifically refer to the connection relationship between the ports of the circuit blocks.
[0050] In particular, in some embodiments, if a circuit block has multiple signal paths, the circuit block can be connected to different circuit blocks via different signal paths. For example, a first signal path in a first circuit block can be connected to a second signal path in a second circuit block. Figure 3 Let’s take an example. Figure 3As shown, signal path 350-1 of circuit block 310-1 is connected to signal path 350-3 of circuit block 310-2, and signal path 350-2 of circuit block 310-1 is connected to signal path 350-5 of circuit block 310-3. It should be understood that connecting to different circuit blocks via different signal paths is only for example and is not intended to limit the scope of the present disclosure.
[0051] The connection relationship between circuit blocks can be used to guide the extraction of the logic depth and delay information of the specific module port, so as to facilitate the more convenient and rapid determination of the logic depth and delay information of each circuit block. The connection relationship between circuit blocks can be stored in any suitable manner. For example, the connection relationship between circuit blocks can be stored in a file through variables for subsequent use.
[0052] Continue to refer Figure 2 , in block 230, if the connection relationship indicates that the first circuit block among the plurality of circuit blocks is connected to the second circuit block, at least a portion of the first interface information of the first circuit block is associated with at least a portion of the second interface information of the second circuit block. Such an association may be performed in any suitable manner. For example, at least a portion of the first interface information and at least a portion of the second interface information may be stored in a predetermined format (e.g., a table). As discussed above, the connection relationship between the plurality of circuit blocks is stored in a file in an appropriate form, and the electronic device 110 determines that the first circuit block is connected to the second circuit block from the connection relationship between the plurality of circuit blocks in the file. The electronic device 110 obtains the first interface information of the first circuit block (e.g., the logic depth and delay of the first circuit block) and the second interface information of the second circuit block (e.g., the logic depth and delay of the second circuit block) from the file. Further, the electronic device 110 stores the first interface information of the first circuit block and the second interface information of the second circuit block in a predetermined format to form an association relationship.
[0053] In some embodiments, a first signal path in the first circuit block is connected to a second signal path in the second circuit block. In such embodiments, a first information item corresponding to the first signal path in the first interface information can be associated with a second information item corresponding to the second signal path in the second interface information. Figure 3 For example, for example, the signal path 350-1 in the circuit block 310-1 is connected to the signal path 350-3 in the circuit block 310-2. Then, the information item corresponding to the signal path 350-1 can be associated with the information item corresponding to the signal path 350-3.
[0054] In some embodiments, as described above, the information item may include a logic depth. Specifically, the first information item may include a first logic depth associated with the number of circuit elements in the first signal path, and the second information item may include a second logic depth associated with the number of circuit elements in the second signal path. Figure 3 For example, for example, the signal path 350-1 in the circuit block 310-1 is connected to the signal path 350-3 of the circuit block 310-2. The first information item corresponding to the signal path 350-1 may include a first logical depth associated with the number of circuit elements in the signal path 350-1. The second information item corresponding to the signal path 350-3 may include a second logical depth associated with the number of circuit elements in the signal path 350-3.
[0055] In some embodiments, the total logic depth can be further determined for the connected signal paths. Specifically, the electronic device 110 can determine the total logic depth for the first signal path and the second signal path based on the first logic depth and the second logic depth. For example, the total logic depth for the signal path 350-1 and the signal path 350-3 can be the sum of the first logic depth and the second logic depth.
[0056] Alternatively or additionally, in some embodiments, as described above, the information item may include delay information. Specifically, the first information item may include a first delay amount associated with the delay of a circuit element in the first signal path, and the second information item may include a second delay amount associated with the delay of a circuit element in the second signal path. Continuing with the above example, for example, the first information item corresponding to the signal path 350-1 may include a first delay amount associated with the delay of the signal path 350-1. The second information item corresponding to the signal path 350-3 may include a first delay amount associated with the delay of the signal path 350-3.
[0057] In some embodiments, a total delay amount may be further determined for the connected signal paths. For example, the total delay amount may be the sum of the first delay amount and the second delay amount.
[0058] In some embodiments, the first logic depth, the second logic depth and the total logic depth may be presented in association. Alternatively or additionally, the first delay amount, the second delay amount and the sum of the first delay amount and the second delay amount (ie, the total delay amount) may be presented in association.
[0059] refer to Figure 4 Describe an example of presentation. Figure 4A schematic diagram showing an association relationship according to some embodiments of the present disclosure is shown. As an example, column 410 in table 400 represents a path upstream in the direction of signal transmission (also referred to as an upstream path or input port), column 420 represents a path downstream in the direction of signal transmission (also referred to as a downstream path or output port), column 430 represents an initial logic depth, column 440 represents a modified logic depth, and column 450 represents a delay amount. For columns 430, 440, and 450, the value before the symbol " / " in the brackets corresponds to the upstream path, the value after the symbol " / " corresponds to the downstream path, and the value outside the brackets corresponds to the sum of the two paths.
[0060] As an example, Figure 4 Interface information related to signal paths 350-1 and 350-2 is shown. Specifically, as shown in column 430, the initial logic depth of signal path 350-1 is 41, and the initial logic depth of signal path 350-3 is 30, and accordingly, the total logic depth is 71. As shown in column 440, the modified logic depth of signal path 350-1 is 30, and the modified logic depth of signal path 350-3 is 27, and accordingly, the total logic depth is 57. As shown in column 450, the delay amount of signal path 350-1 is 0.655, and the delay amount of signal path 350-3 is 0.386, and accordingly, the total delay amount is 1.04.
[0061] It should be understood that Table 400 includes Figure 4 In addition to the variables such as the logic depth and delay amount presented in Table 400, other information may also be included. In addition, the variables and numerical values listed in Table 400 are only examples and are not intended to limit the scope of the present disclosure. The example presentation of interface information is described above. In other words, the interface information can be formatted and output, which may include the identification of the input port (e.g., name or number, as shown in column 410), the identification of the output port (e.g., name or number, as shown in column 420), the logic depth and delay of the input direction, the logic depth and delay of the output direction, the logic depth after the input direction deletes the insertion unit, and the logic depth after the output direction deletes the insertion unit. It is presented to the front-end designer in a predetermined format, so that the designer can make timely adjustments and modifications according to the information of the circuit block contained in the predetermined format (e.g., interface information), which greatly helps the design to quickly locate the interface problem and improve the efficiency of solving the interface problem.
[0062] Examples of determining, associating, and presenting interface information are described above. In some embodiments, the interface information may be further used to assist or guide the design of an integrated circuit.
[0063] In some embodiments, risk elimination or early warning based on logic depth may be performed. For example, if the total logic depth for the first signal path and the second signal path exceeds a threshold depth, the electronic device 110 may provide a risk warning for the first signal path and the second signal path. Figure 4 As shown, if the total logic depth of signal path 350-1 and signal path 350-3 is greater than the threshold depth, a risk warning of signal path 350-1 and signal path 350-3 may be provided. The total logic depth described herein may be for the initial logic depth or for the revised logic depth.
[0064] In this way, by quickly processing the interface logic in the early stage, the physical implementation risks of the interface can be identified in advance, and feedback can be given to the front-end designers in time for timely modification. This is conducive to helping the design to be fast and stable to a great extent.
[0065] Alternatively or additionally, in some embodiments, timing constraint information can be generated based on interface information. For example, the first interface information includes first delay information associated with the delay of a circuit element in the first circuit block, and the second interface information includes second delay information associated with the delay of a circuit element in the second circuit block. If it is determined that the first circuit block is configured to transmit a signal to the second circuit block, the electronic device 110 can generate timing constraint information for the second circuit block based on the first delay information and the second delay information. That is, in this embodiment, a timing constraint file for a circuit block downstream of the signal transmission can be generated.
[0066] The interface information and association relationship obtained by the above-described process are imported into the system loop to all ports of each circuit block 310. After extracting the logic depth and delay of all interfaces of multiple circuit blocks 310 and outputting them in a predetermined format, the electronic device 110 generates accurate timing constraint information for the physical implementation process based on the delay information module of the circuit block 310. It is ensured that under the condition of the timing convergence of the interface in the physical implementation process, the timing margin is released for the internal timing of the integrated circuit to the maximum extent, thereby reducing the circuit area and power consumption, and reducing the circuit cost.
[0067] In one or more instances of the example embodiments described above, the logic depth and delay of the interface between circuit blocks are extracted. By extracting the logic depth of the interface between circuit blocks, the current netlist or RTL can be actively checked for the risk level of the interface design, so that timely feedback can be given to the front-end designer for modification. Through the logical connection relationship and the logic depth, a timing constraint file with accurate delay of the module interface can be generated, so that the module can accurately reflect the external delay of the input and output interface during the actual physical implementation process, thereby reducing the port resource area / power consumption overhead and releasing margin for the internal timing. In this way, designers can be assisted in analyzing the impact of interface-related logic-related issues on the architecture and design, and can timely convert and optimize the corresponding combinational logic or design ideas, and conduct an overall analysis and optimization of the rationality of the design.
[0068] Figure 5 A schematic structural block diagram of an apparatus 500 for designing an integrated circuit according to some embodiments of the present disclosure is shown. The apparatus 500 may be implemented as or included in the electronic device 110. Each module / component in the apparatus 500 may be implemented by hardware, software, firmware, or any combination thereof.
[0069] As shown in the figure, the device 500 includes an interface information determination module 510, which is configured to determine the interface information of each of the multiple circuit blocks in the integrated circuit, and the interface information of each circuit block is associated with at least one of the number of circuit elements or delay in the circuit block. The device 500 also includes a connection relationship determination module 520, which is configured to determine the connection relationship between the multiple circuit blocks based on the ports of each of the multiple circuit blocks. The device 500 also includes an association module 530, which is configured to associate at least a part of the first interface information of the first circuit block with at least a part of the second interface information of the second circuit block if the connection relationship indicates that the first circuit block among the multiple circuit blocks is connected to the second circuit block.
[0070] In some embodiments, a first signal path in the first circuit block is connected to a second signal path in the second circuit block, and the associating module 530 is further configured to associate a first information item corresponding to the first signal path in the first interface information with a second information item corresponding to the second signal path in the second interface information. The first information item is associated with at least one of the number of circuit elements or the delay in the first signal path, and the second information item is associated with at least one of the number of circuit elements or the delay in the second signal path.
[0071] In some embodiments, the first information item includes a first logic depth associated with the number of circuit elements in the first signal path, and the second information item includes a second logic depth associated with the number of circuit elements in the second signal path. The apparatus 500 further includes: a total logic depth determination module configured to determine the total logic depth for the first signal path and the second signal path based on the first logic depth and the second logic depth; and a prompt module configured to provide a risk prompt about the first signal path and the second signal path in response to the total logic depth exceeding a threshold depth.
[0072] In some embodiments, the apparatus 500 further includes: a presentation module configured to present the first logical depth, the second logical depth, and the total logical depth in association with each other.
[0073] In some embodiments, the first information item includes a first delay amount associated with a delay of a circuit element in a first signal path, and the second information item includes a second delay amount associated with a delay of a circuit element in a second signal path.
[0074] In some embodiments, the presentation module is further configured to present the first delay amount, the second delay amount, and the sum of the first delay amount and the second delay amount in association with each other.
[0075] In some embodiments, the interface information determination module 510 is also configured to determine, for the first circuit block, an initial logic depth based on the number of at least one circuit element in the first circuit block as part of the first interface information; and to determine a revised logic depth based on the number of logic elements in at least one circuit element as part of the first interface information.
[0076] In some embodiments, the first interface information includes first delay information associated with the delay of the circuit elements in the first circuit block, and the second interface information includes second delay information associated with the delay of the circuit elements in the second circuit block. The device 500 also includes: a timing constraint information generation module, which is configured to generate timing constraint information for the second circuit block based on the first delay information and the second delay information if it is determined that the first circuit block is configured to transmit a signal to the second circuit block.
[0077] Figure 6 6 shows a block diagram of an electronic device 600 in which one or more embodiments of the present disclosure may be implemented. It should be understood that Figure 6 The electronic device 600 shown is merely exemplary and should not constitute any limitation on the functionality and scope of the embodiments described herein. Figure 6 The electronic device 600 shown can be used to implement Figure 1 An electronic device 110.
[0078] like Figure 6As shown, the electronic device 600 is in the form of a general electronic device. The components of the electronic device 600 may include, but are not limited to, one or more processors or processing units 610, a memory 620, a storage device 630, one or more communication units 640, one or more input devices 650, and one or more output devices 660. The processing unit 610 may be an actual or virtual processor and is capable of performing various processes according to a program stored in the memory 620. In a multi-processor system, multiple processing units execute computer executable instructions in parallel to improve the parallel processing capability of the electronic device 600.
[0079] The electronic device 600 typically includes a plurality of computer storage media. Such media may be any accessible media that is accessible to the electronic device 600, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 620 may be a volatile memory (e.g., a register, a cache, a random access memory (RAM)), a non-volatile memory (e.g., a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 630 may be a removable or non-removable medium, and may include a machine-readable medium, such as a flash drive, a disk, or any other medium, which may be capable of being used to store information and / or data (e.g., training data for training) and may be accessed within the electronic device 600.
[0080] The electronic device 600 may further include additional removable / non-removable, volatile / non-volatile storage media. Figure 6 As shown in , a disk drive for reading or writing from a removable, non-volatile disk (e.g., a "floppy disk") and an optical drive for reading or writing from a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to the bus (not shown) by one or more data media interfaces. The memory 620 may include a computer program product 625 having one or more program modules that are configured to perform various methods or actions of various embodiments of the present disclosure.
[0081] The communication unit 640 implements communication with other electronic devices through a communication medium. Additionally, the functions of the components of the electronic device 600 can be implemented with a single computing cluster or multiple computing machines that can communicate through a communication connection. Therefore, the electronic device 600 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another network node.
[0082] The input device 650 may be one or more input devices, such as a mouse, a keyboard, a tracking ball, etc. The output device 660 may be one or more output devices, such as a display, a speaker, a printer, etc. The electronic device 600 may also communicate with one or more external devices (not shown) through the communication unit 640 as needed, such as a storage device, a display device, etc., communicate with one or more devices that allow a user to interact with the electronic device 600, or communicate with any device that allows the electronic device 600 to communicate with one or more other electronic devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface (not shown).
[0083] According to an exemplary implementation of the present disclosure, a computer-readable storage medium is provided, on which computer-executable instructions are stored, wherein the computer-executable instructions are executed by a processor to implement the method described above. According to an exemplary implementation of the present disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the method described above.
[0084] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices, equipment, and computer program products implemented according to the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0085] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0086] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer, other programmable data processing apparatus, or other device implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0087] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple implementations of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of a module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification. In some implementations as replacements, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be realized by a special hardware-based system that performs the function or action of the specification, or can be realized by a combination of special hardware and computer instructions.
[0088] The above descriptions of various implementations of the present disclosure are exemplary, non-exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described implementations. The selection of terms used herein is intended to best explain the principles of the implementations, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the various implementations disclosed herein.
Claims
1. A method for designing an integrated circuit, comprising: Determining interface information of each of a plurality of circuit blocks in the integrated circuit, wherein the interface information of each circuit block is associated with at least one of the number or delay of circuit elements in the circuit block; Determining a connection relationship between the plurality of circuit blocks based on respective ports of the plurality of circuit blocks; as well as If the connection relationship indicates that a first circuit block among the plurality of circuit blocks is connected to a second circuit block, at least a portion of the first interface information of the first circuit block is associated with at least a portion of the second interface information of the second circuit block.
2. The method of claim 1 , wherein a first signal path in the first circuit block is connected to a second signal path in the second circuit block, and associating at least a portion of the first interface information of the first circuit block with at least a portion of the second interface information of the second circuit block comprises: associating a first information item corresponding to the first signal path in the first interface information with a second information item corresponding to the second signal path in the second interface information, The first information item is associated with at least one of the number of circuit elements or the delay in the first signal path, and the second information item is associated with at least one of the number of circuit elements or the delay in the second signal path.
3. The method of claim 2, wherein the first information item comprises a first logical depth associated with the number of circuit elements in the first signal path, the second information item comprises a second logical depth associated with the number of circuit elements in the second signal path, and the method further comprises: determining a total logic depth for the first signal path and the second signal path based on the first logic depth and the second logic depth; as well as In response to the total logic depth exceeding a threshold depth, a risk prompt is provided regarding the first signal path and the second signal path.
4. The method according to claim 3, further comprising: The first logical depth, the second logical depth, and the total logical depth are presented in association.
5. The method of claim 2, wherein the first information item comprises a first delay amount associated with a delay of a circuit element in the first signal path, and the second information item comprises a second delay amount associated with a delay of a circuit element in the second signal path.
6. The method according to claim 5, further comprising: The first delay amount, the second delay amount, and the sum of the first delay amount and the second delay amount are presented in association.
7. The method according to claim 1, wherein determining the interface information of each of a plurality of circuit blocks in the integrated circuit comprises: For the first circuit block, determining an initial logic depth based on the number of at least one circuit element in the first circuit block as part of the first interface information; as well as A modified logic depth is determined based on the number of logic elements in the at least one circuit element as part of the first interface information.
8. The method according to claim 1, wherein the first interface information comprises first delay information associated with delays of circuit elements in the first circuit block, the second interface information comprises second delay information associated with delays of circuit elements in the second circuit block, and the method further comprises: If it is determined that the first circuit block is configured to transmit a signal to the second circuit block, timing constraint information for the second circuit block is generated based on the first delay information and the second delay information.
9. An apparatus for designing an integrated circuit, comprising: an interface information determination module, configured to determine interface information of each of a plurality of circuit blocks in the integrated circuit, wherein the interface information of each circuit block is associated with at least one of the number or delay of circuit elements in the circuit block; A connection relationship determination module, configured to determine the connection relationship between the plurality of circuit blocks based on the respective ports of the plurality of circuit blocks; as well as The associating module is configured to associate at least a portion of the first interface information of the first circuit block with at least a portion of the second interface information of the second circuit block if the connection relationship indicates that the first circuit block is connected to the second circuit block.
10. An electronic device comprising: at least one processing unit; as well as At least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions causing the electronic device to perform the method according to any one of claims 1 to 8 when executed by the at least one processing unit.
11. A computer-readable storage medium having a computer program stored thereon, wherein the computer program can be executed by a processor to implement the method according to any one of claims 1 to 8.
