Method and system for automatically generating clock tree, and storage medium
Through the automated clock tree automatic generation method, the clock demand information and clock device information of the target device are used to solve the problem of low clock tree design efficiency in the existing technology, and achieve fast and economical clock tree generation, which is suitable for complex hardware single boards. rapid development.
Patent Information
- Application Number
- PCT/CN2024/074536
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-22
- Filing Date
- 2024-01-29
- Publication Date
- 2024-08-29
AI Technical Summary
The existing technology is inefficient, time-consuming, and costly when designing clock trees, and requires manual drawing, which cannot meet the rapid iteration requirements of hardware single board development.
By obtaining the clock requirement information of the target device, classifying and merging it, combining the clock device information, determining the clock tree topology information, automatically generating the clock tree, and using the memory and processor to implement the automatic clock tree generation method and system.
It achieves rapid generation of clock trees, reduces manual development costs, improves product development efficiency, and is suitable for rapid development of complex hardware single boards.
Smart Images

Figure CN2024074536_29082024_PF_FP_ABST
Abstract
Description
Clock tree automatic generation method, system and storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This disclosure is based on Chinese patent application CN202310190232.7, filed on February 22, 2023, entitled “Clock Tree Automatic Generation Method, System and Storage Medium”, and claims the priority of the patent application, and all the contents disclosed therein are incorporated into this disclosure by reference. Technical Field
[0003] The present disclosure relates to the technical field of integrated circuits, and in particular to a method for automatically generating a clock tree, a system for automatically generating a clock tree, and a storage medium. Background Art
[0004] With the development of communication technology, the rate of chip updates and iterations has accelerated, and the application scenarios have become more complex and changeable, which requires an increase in the number of hardware boards to be developed and a shortened development cycle.
[0005] Designing a clock tree is a complex task in the development of each board. Existing methods typically involve: having experienced designers manually draw the clock tree; designing a single, unified clock tree based on specific product requirements, adapting one clock tree to multiple development boards; or finding a clock tree design vendor and using their chips to generate a complete clock tree. However, existing techniques fail to address issues such as low efficiency, time consumption, and high costs, and clock tree generation requires manual drawing.
[0006] Summary of the Invention
[0007] In a first aspect, the present disclosure provides a method for automatically generating a clock tree, the method comprising: obtaining clock requirement information of a target device; classifying and merging the clock requirement information of the target device to obtain classified and merged clock information; obtaining information of the clock device, and determining clock tree topology information of the target device based on the classified and merged clock information and the information of the clock device, the clock tree topology information of the target device including target clock devices required by the target device, connection information between target clock devices, and connection relationships between target devices and target clock devices; generating a clock tree for the target device based on the clock tree topology information of the target device.
[0008] In a second aspect, the present disclosure provides a system for automatically generating a clock tree, the system comprising a memory and a processor, the memory being used to store a computer program; the processor being used to execute the computer program and implement the above-mentioned method for automatically generating a clock tree when executing the computer program.
[0009] In a third aspect, the present disclosure provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor implements the above-mentioned method for automatically generating a clock tree. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] FIG1 is a schematic diagram of a clock tree in the related art;
[0011] FIG2 is a flow chart of an embodiment of a method for automatically generating a clock tree according to the present disclosure;
[0012] FIG3 is a flow chart of another embodiment of the method for automatically generating a clock tree according to the present disclosure;
[0013] FIG4 is a flow chart of another embodiment of the method for automatically generating a clock tree according to the present disclosure;
[0014] FIG5 is a flow chart of another embodiment of the method for automatically generating a clock tree according to the present disclosure;
[0015] FIG6 is a flow chart of another embodiment of the method for automatically generating a clock tree according to the present disclosure;
[0016] FIG7 is a flow chart of another embodiment of the method for automatically generating a clock tree according to the present disclosure;
[0017] FIG8 is a flow chart of another embodiment of the method for automatically generating a clock tree according to the present disclosure;
[0018] FIG9 is a flow chart of another embodiment of the method for automatically generating a clock tree according to the present disclosure;
[0019] FIG10 is a schematic diagram of the structure of an embodiment of a system for automatic clock tree generation disclosed herein;
[0020] FIG11 is a schematic structural diagram of another embodiment of a system for automatically generating a clock tree according to the present disclosure;
[0021] FIG12 is a flow chart of another embodiment of the method for automatically generating a clock tree according to the present disclosure;
[0022] 13 is a flow chart of an embodiment of obtaining raw data of a target device and updating a target device database in the clock tree automatic generation method disclosed herein;
[0023] FIG14 is a flow chart of an embodiment of classifying and merging the clock requirement information of a target device in the method for automatically generating a clock tree according to the present disclosure;
[0024] FIG15 is a flow chart of an embodiment of forming a clock device database in the method for automatically generating a clock tree according to the present disclosure;
[0025] FIG16 is a flow chart of an embodiment of the clock device selection and final clock tree topology information formation in the clock tree automatic generation method disclosed herein;
[0026] FIG17 is a flow chart of an embodiment of confirming and storing clock tree topology information in the clock tree automatic generation method disclosed herein;
[0027] FIG18 is a flow chart illustrating an embodiment of generating a visualized clock diagram in the clock tree automatic generation method disclosed herein. DETAILED DESCRIPTION
[0028] The embodiments of the present disclosure provide a method for automatically generating a clock tree, a system for automatically generating a clock tree, and a storage medium, which obtain the clock requirement information of a target device; classify and merge the clock requirement information of the target device to obtain the classified and merged clock information; obtain the information of the clock device, and determine the clock tree topology information of the target device based on the classified and merged clock information and the information of the clock device, wherein the clock tree topology information of the target device includes the target clock device required by the target device and the connection information between the target clock device; and generate the clock tree of the target device based on the clock tree topology information of the target device. Compared with the prior art, the present disclosure obtains the classified and merged clock information by classifying and merging the clock requirement information of the target device, and then determines the clock tree topology information of the target device in combination with the clock device information, and automatically generates the clock tree of the target device accordingly. In this way, the clock tree of the target device can be effectively and quickly generated, reducing the cost of manual development and improving the efficiency of product development.
[0029] The following will clearly and completely describe the technical solutions in the embodiments of the present disclosure in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present disclosure without making any creative efforts shall fall within the scope of protection of the present disclosure.
[0030] The flowcharts shown in the accompanying drawings are for illustrative purposes only and do not necessarily include all contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, combined, or partially merged, so the actual execution order may vary depending on the actual situation.
[0031] In the subsequent description, suffixes such as "module," "component," or "unit" used to represent elements are used only to facilitate the description of the present disclosure and have no specific meaning. Therefore, "module," "component," or "unit" may be used interchangeably.
[0032] Before introducing the embodiments of the present disclosure in detail, the technical contents related to the present disclosure are first introduced.
[0033] The clock tree (also called clock tree diagram) of the hardware board in communication equipment needs to consider various factors such as the selection of different clock devices, matching methods, jitter index calculation, clock tree distribution, etc. based on the individual differences of the board. In this way, the clock tree of the board is generated. After repeated confirmation and review, a formal plan is finally generated to guide the drawing of the board schematic diagram.
[0034] The clock tree is a design guidance document required for hardware board development. When drawing the hardware board schematic, the clock tree is used to select the appropriate components, perform logical connections, and perform impedance matching. This allows the final hardware board schematic to be drawn, generating the hardware board to be developed. Complex boards, especially those with multiple clock domains and components (such as those supporting 1588 functionality, enabling local clock startup on power-up, and requiring low clock jitter), can have complex clock trees. A clear and concise clock tree is essential to guide board developers during board schematic development.
[0035] A common clock tree is shown in Figure 1. The clock tree contains the following key information:
[0036] 1. Clock devices. Clock device A refers to the local crystal oscillator, clock device B refers to the phase-locked loop (PLL), and clock device C refers to the clock buffer. A1, A2, B1, B2, C1, and C2 represent different device models within the same category. In actual use, the number of clock devices involved will be greater, but the types of clock devices generally include the three types mentioned above.
[0037] 2. Clock Flow. Arrows indicate clock flow. In a clock tree, clocks can only flow from the source to the sink; that is, clocks are unidirectional and active. Different clock flows can be represented by clock domains. As shown in Figure 1, clock device A1 is in the local domain. The generated clock tree is distributed to target devices 1, 2, and n via B1 and C1. Clock device B2 includes multiple phase-locked loops, meaning it can receive inputs from different clock domains. Therefore, Figure 1 shows that the source of clock device B2 can come from either the system domain or the service domain, and is distributed to target devices 1, 2, and n via clock devices B2 and C2, respectively.
[0038] 3. Target device clock requirement information. Each arrow in the target device represents the target device's clock requirement. As shown in Figure 1, the signal name B1-ref1-100M-lvds indicates the target device's clock requirement information. The signal flows from B1 to target device 1, with a clock frequency of 100 MHz and a differential LVDS clock level. Actual clock requirements also include clock jitter, clock power-up stabilization time, and other requirements. These requirements are already considered during device selection and are not included in the clock tree here.
[0039] The disclosed embodiments provide a method, system, and storage medium for automatically generating a clock tree. These methods are primarily applicable to single-board development for communication systems, or in the development of diverse products and hardware boards. They are particularly well-suited for hardware architectures with short development cycles, rapid iterations, and frequent solution changes. For example, OTN boards have diverse service scenarios and types, each with varying clock requirements and, therefore, distinct clock trees.
[0040] The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
[0041] Referring to FIG. 2 , FIG. 2 is a flow chart of an embodiment of a method for automatically generating a clock tree according to the present disclosure. The method includes steps S101 to S104 .
[0042] Step S101: Acquire clock requirement information of a target device.
[0043] A target device may refer to a device in a target product (e.g., a single board) that requires a clock. The number of target devices may be one or more. Typically, clock requirement information for multiple target devices is obtained. The target device's clock requirement information may refer to the target device's clock requirements. The target device's clock requirement information primarily includes the target device's clock frequency, clock level type, and clock domain. The target device's clock requirement information may also include at least one of the target device's clock jitter, clock frequency deviation, clock signal name, and clock power-on stabilization time.
[0044] The method for obtaining the clock requirement information of the target device can be based on the original data information of the target device manually input by the user, or it can be obtained from the target device database, which pre-stores the clock requirement information of multiple target devices.
[0045] Step S102: Classify and merge the clock requirement information of the target device to obtain classified and merged clock information.
[0046] Different target devices have different clock requirement information. The clock requirement information of the target devices is classified and merged to obtain the classified and merged clock information. The classified and merged clock information no longer distinguishes the clock requirement information of each target device, but is the aggregated clock information after the clock requirement information of all target devices is classified and merged.
[0047] Step S103: Obtain information about the clock device, and determine the clock tree topology information of the target device based on the classified and merged clock information and the information of the clock device. The clock tree topology information of the target device includes the target clock device required by the target device, the connection information between the target clock devices, and the connection relationship between the target device and the target clock device.
[0048] A clock device, also known as a clock element, refers to a device that generates a reference, fixed-period clock signal. Clock devices are essential components for generating reference signals for the operation of electronic devices.
[0049] The clock device information may refer to information related to the clock device itself, primarily including the number of input channels, input level type, input frequency range, number of output channels, output level type, and output frequency range of the clock device. The clock device information may also include at least one of the clock device's output jitter, output frequency deviation, number of phase-locked loops (PLLs), and power-on stabilization time.
[0050] Since the classified and merged clock information is the summarized clock information after the classified and merged clock requirement information of all target devices, combined with the information of the clock devices, it is possible to determine the target clock devices required to obtain these classified and merged clock information and the connection information between the target clock devices, that is, the target clock devices required by the target devices and the connection information between the target clock devices. The connection information between the target clock devices required by the target devices and the target clock devices is called the clock tree topology information of the target devices.
[0051] Step S104: generating a clock tree of the target device according to the clock tree topology information of the target device.
[0052] A clock tree, also known as a clock block diagram, is a visual block diagram. A visual clock tree block diagram doesn't just refer to a block diagram; it can also include different graphical symbols, color codes, and other features. Arrows are also the same, as long as they clearly indicate the connection direction. A clock tree primarily describes various information, including the primary clock components, connection matching methods, clock tree distribution, and power supply for all target devices in the system. Once the clock tree topology information for a target device is obtained, the clock tree for that target device can be generated.
[0053] The embodiment of the present disclosure obtains the clock requirement information of the target device; classifies and merges the clock requirement information of the target device to obtain the classified and merged clock information; obtains the information of the clock device, and determines the clock tree topology information of the target device based on the classified and merged clock information and the information of the clock device, wherein the clock tree topology information of the target device includes the target clock device required by the target device and the connection information between the target clock device; and generates the clock tree of the target device based on the clock tree topology information of the target device. Compared with the prior art, the present disclosure obtains the classified and merged clock information by classifying and merging the clock requirement information of the target device, and then determines the clock tree topology information of the target device in combination with the clock device information, and automatically generates the clock tree of the target device accordingly. In this way, the clock tree of the target device can be effectively and quickly generated, reducing the cost of manual development and improving the efficiency of product development.
[0054] In some embodiments, to improve efficiency, step S101 , obtaining the clock requirement information of the target device, may include: obtaining the clock requirement information of the target device from a target device database, wherein the target device database stores clock requirement information of multiple target devices.
[0055] In the embodiment of the present disclosure, the target device database pre-stores the clock requirement information of multiple target devices. Therefore, the clock requirement information of the target device can be directly obtained from the target device database without manual input. Moreover, the clock requirement information of the target device can be repeatedly obtained from the target device database for different target products. Therefore, the efficiency of obtaining the clock requirement information of the target device can be greatly improved.
[0056] If the target device database contains the target device's clock requirement information, the target device's clock requirement information can be directly obtained from the target device database. If the target device's clock requirement information does not exist in the target device database, it must first be manually entered. Therefore, in some embodiments, before step S101, which obtains the target device's clock requirement information from the target device database, the process may further include steps S105 and S106, as shown in FIG3 .
[0057] Step S105: determining whether clock requirement information of the target device exists in the target device database according to the identifier of the target device.
[0058] Each target device has a unique identifier, and the target device database also has the identifier of each target device corresponding to the clock requirement information of the target device. The target device database is searched according to the identifier of the target device. If the corresponding identifier is found, it means that the clock requirement information of the target device exists in the target device database. If the corresponding identifier is not found, it means that the clock requirement information of the target device does not exist in the target device database.
[0059] Step S106: If the clock requirement information of the target device does not exist, the clock requirement information of the target device corresponding to the identification of the target device is generated according to the original data information of the target device input by the user, and the identification of the target device and the corresponding clock requirement information of the target device are stored in the target device database.
[0060] If the clock requirement information of the target device does not exist in the target device database, manual input can be used to generate the clock requirement information of the target device corresponding to the identification of the target device from the original data information of the target device input by the user, and then the identification of the target device and the corresponding clock requirement information of the target device are stored in the target device database. In this way, the clock requirement information of the target device in the target device database can be further increased, which is more conducive to the subsequent efficient acquisition of the clock requirement information of the target device directly from the target device database.
[0061] Likewise, in some embodiments, to improve efficiency, in step S103 , obtaining the information of the clock device may include: obtaining the information of the clock device from a clock device database, where the clock device database stores information of multiple clock devices.
[0062] In the embodiment of the present disclosure, information of multiple clock devices is pre-stored in the clock device database, so the information of the clock device can be obtained directly from the clock device database without manual input, and the information of the clock device can be obtained from the clock device database repeatedly, thereby greatly improving the efficiency of obtaining the information of the clock device.
[0063] In some embodiments, step S102, classifying and merging the clock requirement information of the target device to obtain the classified and merged clock information, may include: classifying and merging the clock requirement information of the target device according to a first preset requirement to obtain the classified and merged target clock information.
[0064] In the embodiments of the present disclosure, the first preset requirement may refer to a pre-set requirement for classifying and merging clock requirement information. For example, the classification and merging may be performed according to preset key clock requirement information (for example, focusing on clock domain, clock frequency, and clock level type, and classifying and merging according to the clock domain, clock frequency, and clock level type, but not focusing on the order in which the clock domain, clock frequency, and clock level type are classified and merged).
[0065] For another example: classify and merge according to the preset priority of the clock requirement information of the target device (for example, if the clock requirement information includes clock frequency, clock level type, and clock domain, the preset priority is: the priority of clock frequency is greater than the priority of clock domain, which is greater than the priority of clock level type, then classify according to clock frequency first, and then classify the results of the first classification according to clock domain, and then classify the results of the second classification according to clock level type, etc.).
[0066] In some embodiments, step S102, classifying and merging the clock requirement information of the target device according to a first preset requirement to obtain the classified and merged target clock information, may also include: classifying and merging the clock requirement information of the target device according to a preset priority of the clock requirement information of the target device to obtain the classified and merged target clock information.
[0067] The preset priority of the clock requirement information of the target device may refer to the designated clock requirement information of the target device and the priority of the designated clock requirement information of the target device that is preset and determined according to user requirements.
[0068] For example, if the clock requirement information of a target device includes M, N, O, P, ..., and the designated clock requirement information of the target device includes M, N, O, P, ..., and the preset priorities are: priority of M > priority of N > priority of O > priority of P > ..., then the clock requirement information of the target device is first classified according to M, and the result of the classification according to M is classified according to N, and the result of the classification according to N is classified according to O, and the result of the classification according to O is classified according to P, .... Alternatively, the clock requirement information of the target device includes M, N, O, P, ..., and the designated clock requirement information of the target device includes M, N, O, P, and the preset priorities are: priority of M > priority of N > priority of O > priority of P, and the priorities of other clock requirement information of the target device are not limited.
[0069] For example, the clock requirement information of the target device includes M, N, and O. The designated clock requirement information of the target device includes M, N, and O. Assuming that the preset priority is: priority of M > priority of N > priority of O, the clock requirement information of the target device is classified according to M into M1 and M2. Then, according to N, M1 is classified into M1N1, M1N2, and M1N3. M2 is classified into M2N1 and M2N2. Then, according to O, M1N1, M1N2, and M1N3 are classified separately, and M2N1 and M2N2 are classified separately. Assuming that the preset priority is: priority of O > priority of N > priority of M, the clock requirement information of the target device is classified according to O, then classified according to N, and then classified according to M.
[0070] The preset priority of the target device's clock requirement information is set based on user needs. While different classification methods may yield different results, the total number of clock paths remains the same. That is, the total number of merged clock paths remains m, regardless of whether the priorities are M, N, O, or O, N, M.
[0071] In some embodiments, step S102, classifying and merging the clock requirement information of the target device according to the preset priority of the clock requirement information of the target device to obtain the classified and merged target clock information, may also include: classifying the clock requirement information of the target device in sequence according to the clock frequency, clock domain, clock level type, clock frequency range, clock jitter, and clock power-on stabilization time of the target device to obtain the classified and merged target clock information.
[0072] In the disclosed embodiment, the priority of clock frequency is > the priority of clock domain > the priority of clock level type > the priority of clock frequency range > the priority of clock jitter > the priority of clock power-on stabilization time. Therefore, the clock requirement information of the target device is first classified according to the clock frequency, and then the previous classification result is classified for the second time according to the clock domain, and then the second classification result is classified for the third time according to the clock level type, and then the third classification result is classified for the fourth time according to the clock frequency range, and then the fourth classification result is classified for the fifth time according to the clock jitter, and then the fifth classification result is classified for the sixth time according to the clock power-on stabilization time, and finally merged to obtain the classified target clock information.
[0073] In some embodiments, step S103, determining the clock tree topology information of the target device based on the classified and merged clock information and the information of the clock device, may include: based on a second preset requirement, determining the clock tree topology information of the target device based on the classified and merged clock information and the information of the clock device.
[0074] The second preset requirement may be a pre-set requirement for determining the clock tree topology information of the target device. The second preset requirement may vary depending on different user needs, different concerns, and different priorities of concerns. Therefore, different second preset requirements will result in different clock tree topology information for the generated target device. In other words, the clock tree topology information of the target device can be adjusted arbitrarily based on user needs, and the final clock tree topology information of the target device is not unique.
[0075] In some embodiments, step 103, determining the clock tree topology information of the target device based on the second preset requirement and according to the classified and merged clock information and the information of the clock device, may also include: sub-step S103A1, sub-step S103A2, sub-step S103A3 and sub-step S103A4, as shown in Figure 4.
[0076] Sub-step S103A1: determining a preliminary phase-locked loop device combination according to the number of clock domains after classification and merging and the information of the clock devices.
[0077] Generally speaking, the number of corresponding phase-locked loops required is equal to the number of clock domains. The phase-locked loop device may include one phase-locked loop or multiple phase-locked loops (for example, two phase-locked loops, three phase-locked loops, etc.). Therefore, based on the number of clock domains after classification and merging and the information of the clock devices, multiple phase-locked loop device combinations, i.e., preliminary phase-locked loop device combinations, can be determined.
[0078] For example, if there are three clock domains after classification and merging, possible preliminary PLL device combinations include: using three PLL devices with only one PLL; using one PLL device with one PLL and one PLL device with two PLLs; or using one PLL device with three PLLs. Generally, the number of preliminary PLL device combinations should be less than five; too many combinations will be too complex.
[0079] Sub-step S103A2: Filter out available phase-locked loop component combinations from the preliminary phase-locked loop component combinations according to the number of classified and merged clock frequencies and the clock frequency deviation requirement.
[0080] The preliminary phase-locked loop device combination only considers the number of clock domains. Combined with the number of clock frequencies and clock frequency deviation requirements after classification and merging, the combinations that do not meet the requirements of clock frequency and clock frequency deviation can be removed to obtain a usable phase-locked loop device combination.
[0081] Sub-step S103A3: determining a crystal oscillator device according to the information of the clock device, and adding the determined crystal oscillator device to the available phase-locked loop device combination to form a crystal oscillator device and phase-locked loop device combination having a front-end and back-end connection relationship.
[0082] Clock devices can be mainly divided into crystal oscillator devices, phase-locked loop devices and clock buffer devices. According to the information of the clock devices, it is possible to determine which ones are crystal oscillator devices. Usually, each phase-locked loop device must be preceded by a crystal oscillator device. Therefore, the determined crystal oscillator device can be added to the available phase-locked loop device combination to form a crystal oscillator device and phase-locked loop device combination with a front-end and back-end connection relationship.
[0083] Sub-step S103A4: Determine the clock buffer device based on the number of clock paths and clock level types after classification and merging, as well as the information of the clock device, and add the determined clock buffer device to the crystal oscillator device and phase-locked loop device combination to form a crystal oscillator device, phase-locked loop device, and clock buffer device combination with a front-end and back-end connection relationship.
[0084] For clock paths and clock level types of the same category, a clock buffer device that meets the requirements is usually used and connected behind the phase-locked loop device. The clock buffer device that meets the requirements can be determined by combining the information of the clock device. The determined clock buffer device is then added to the crystal oscillator device and phase-locked loop device combination to form a crystal oscillator device, phase-locked loop device, and clock buffer device combination with a front-end and back-end connection relationship.
[0085] It should be noted that the above method for determining the target device's clock tree topology is only one method. It is also possible to prioritize other clock information over clock domains. Ultimately, a simpler combination with fewer cascaded clock components is generally selected.
[0086] In some embodiments, the method further includes: step S107, as shown in FIG5 .
[0087] Step S107: Save the clock tree topology information of the target device into a topology information database.
[0088] In some embodiments, step S103, determining the clock tree topology information of the target device based on the classified and merged clock information and the information of the clock device, may also include: sub-step S103B1 and sub-step S103B2, as shown in FIG6 .
[0089] Sub-step S103B1: determining the initial clock tree topology information of the target device according to the classified and merged clock information and the information of the clock device.
[0090] The initial clock tree topology information of the target device includes initial target clock devices required by the target device, connection information between the initial target clock devices, and a connection relationship between the target device and the initial target clock devices.
[0091] Sub-step S103B2: If the clock tree topology information of the target device exists in the topology information database, and the clock tree topology information of the target device in the topology information database is inconsistent with the initial clock tree topology information, then the clock tree topology information of the target device in the topology information database replaces the initial clock tree topology information to generate the final clock tree topology information of the target device.
[0092] In the disclosed embodiment, after obtaining the clock tree topology information of the target device, it is saved in the topology information database. In the subsequent development of other products, if the target device of the other product is consistent with the target device in the topology information database, but the clock tree topology information of the target device in the topology information database is inconsistent with the initial clock tree topology information, the clock tree topology information of the target device in the topology information database is used to replace the initial clock tree topology information to generate the final clock tree topology information of the target device. In this way, it is possible to avoid too much clock tree topology information corresponding to the same target device, ensure that the final clock tree topology information of the target device is consistent with the existing clock tree topology information of the target device, simplify the clock tree generation method, and improve the clock tree generation efficiency.
[0093] For example: the target devices include: target device 1, target device 2, target device 3, target device 4, and target device 5. The initial clock tree topology information of the target devices obtained is a combination of the initial clock tree topology information of target device 1 to the initial clock tree topology information of target device 5. Assuming that the clock tree topology information of target device 2 and the clock tree topology information of target device 5 exist in the topology information database, and assuming that the clock tree topology information of target device 2 in the topology information database is consistent with the initial clock tree topology information of target device 2, and the clock tree topology information of target device 5 in the topology information database is inconsistent with the initial clock tree topology information of target device 5, then the final clock tree topology information of the target devices is a combination of the initial clock tree topology information of target device 1 to the initial clock tree topology information of target device 4 and the clock tree topology information of target device 5 in the topology information database. If the clock tree topology information of target device 2 in the topology information database is inconsistent with the initial clock tree topology information of target device 2, and the clock tree topology information of target device 5 in the topology information database is inconsistent with the initial clock tree topology information of target device 5, then the final clock tree topology information of the target device is a combination of the initial clock tree topology information of target device 1, the clock tree topology information of target device 2 in the topology information database, the initial clock tree topology information of target device 3, the initial clock tree topology information of target device 4, and the clock tree topology information of target device 5 in the topology information database.
[0094] In some embodiments, in step S103 , after determining the clock tree topology information of the target device based on the classified and merged clock information and the information of the clock device, the method may further include: step S108 and step S104A, as shown in FIG7 .
[0095] Step S108: Check whether there is a ring-shaped clock device combination in the clock tree topology information of the target device.
[0096] Step S104A: When there is no ring-forming clock device combination in the clock tree topology information of the target device, generate a clock tree of the target device according to the clock tree topology information of the target device.
[0097] Because all clocks are unidirectional and active, the target device's clock tree topology information should not contain any looping clock device combinations. If any looping clock device combinations exist, they are discarded. If no looping clock device combinations exist, the target device's clock tree is generated based on the target device's clock tree topology information. This ensures clock tree accuracy.
[0098] In some embodiments, in step S103 , after determining the clock tree topology information of the target device based on the classified and merged clock information and the information of the clock device, the method may further include: step S109 and step S104B, as shown in FIG8 .
[0099] Step S109: modifying the clock tree topology information of the target device according to the modification information input by the user.
[0100] Step S104B: generating a clock tree of the target device according to the modified clock tree topology information of the target device.
[0101] In this disclosed embodiment, users are allowed to modify the generated clock tree topology information for a target device. For example, if a user has higher cost requirements or special needs for a clock device, the generated clock tree topology information for the target device can be modified. After user confirmation, a final, unique version of the clock tree topology information is generated.
[0102] In some embodiments, the method further includes: step S110, as shown in FIG9 .
[0103] Step S110: generating a connection relationship data set identifiable by software based on the clock tree topology information of the target device.
[0104] Since the clock tree mainly describes various information such as the main clock devices, connection matching methods, clock tree distribution, power supply, etc. of all target devices in the system, a connection relationship dataset that can be recognized by the software is generated according to the clock tree topology information of the target device. Based on this, the generated connection relationship dataset can be recognized by the drawing software and the circuit schematic can be automatically generated later.
[0105] Refer to Figure 10, which is a structural diagram of an embodiment of a system for automatic clock tree generation disclosed in the present invention. It should be noted that the system of the embodiment of the present invention can implement the above-mentioned clock tree automatic generation method. For detailed description of the relevant content, please refer to the above-mentioned method part, which will not be repeated here.
[0106] The system 100 includes a memory 1 and a processor 2. The memory 1 is used to store a computer program. The processor 2 is used to execute the computer program and implement any of the above-described methods for automatically generating a clock tree when executing the computer program. The memory 1 is connected to the processor 2 via a bus.
[0107] The processor 2 may be a microcontroller unit, a central processing unit or a digital signal processor, etc. The memory 1 may be a Flash chip, a read-only memory, a magnetic disk, an optical disk, a USB flash drive or a mobile hard disk, etc.
[0108] The present disclosure further provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor implements any of the above methods for automatically generating a clock tree.
[0109] The computer-readable storage medium may be an internal storage unit of the system, such as a hard disk or memory. The computer-readable storage medium may also be an external storage device of the system, such as a plug-in hard disk, smart memory card, secure digital card, flash memory card, etc.
[0110] The following describes in detail the application of the method and system for automatically generating a clock tree according to the embodiments of the present disclosure.
[0111] Figure 11 shows the functional block diagram of the system in this embodiment. It includes six modules: a target device input module, a clock device module, a classification and merging calculation module, a clock tree topology calculation module, a clock tree topology information modification and storage module, and a clock tree diagram generation module. These six modules coordinate their calculations to produce the final functional solution.
[0112] First, let's introduce the target device input module: This module includes three functions: 1. It supports the input of raw data information from multiple target devices. For each target device, it can include one or more clock requirement information channels, with each channel's input format fixed. For example, the input format includes: clock frequency, clock level type, clock domain, clock jitter, clock frequency deviation, clock signal name, and clock power-up stabilization time. Each additional channel of clock requirement information is generated according to this format. 2. The target device input module records and saves the final input data to form a target device database. The next time you investigate a target device, you can directly export existing data from the target device database and also support modification. 3. The target device input module provides a prompt to confirm the input information. After completing the input, you need to confirm whether the input information is correct. You can also compare the information with the content of the target device in the previously generated topology information database. If the comparison is inconsistent, you will be prompted to manually confirm whether the information is correct.
[0113] Classification and merging calculation module: This classification and merging calculation module includes two functions: 1. Calculate the classified and merged clock information of all target devices. 2. After the calculation is completed, check and correct for omissions. The main technical point of this classification and merging calculation module is the data rule algorithm (i.e., the first preset requirement). According to this algorithm flow, the clock information of all target devices can be merged. After the merger, there are no target device requirements, and the total requirement of entries based on the number of clock paths is achieved. For example, the summarized clock information becomes: 6 clocks - 125MHZ, LVDS level, jitter 0.6fs, frequency deviation <50ppm, local clock domain, stable at power-on; 5 clocks - 156.25MHZ, LVDS level, jitter 0.3fs, frequency deviation <50ppm, system clock domain, no power-on time requirement; 2 clocks - 174MHZ, LVPECL level, jitter 0.6fs, frequency deviation <100ppm, business clock domain, no power-on time requirement. At the same time, after the calculation is completed, it is necessary to check and verify whether the number of entries is omitted or increased.
[0114] Clock device module: The clock device module contains one function: 1. Contains the information of the clock device database: the number of input channels, input level type, input frequency range, number of output channels, output level type, output frequency range, output jitter, output frequency deviation, number of phase-locked loops, and power-on stabilization time of the clock device.
[0115] Clock tree topology calculation module: This module is the core module in the embodiment of the present disclosure. The quality of the clock tree topology calculation directly determines the quality of the clock tree block diagram solution. The calculation algorithm of this module (i.e., the second preset requirement) can be adjusted according to the requirements and / or priorities of different products and / or different companies, such as the adjustment of the priority of the clock requirement information of the target device. This module can include three functions: 1. According to the output entry information of the classification and merging calculation module, according to the information of the clock device of the clock device module, calculate the model and number of the required target clock devices; 2. Generate a logical connection relationship, and make a topological connection between the target clock device and the target device in terms of signal flow (i.e., the connection relationship between the target clock devices, and the connection relationship between the target clock device and the target device); 3. Check and correct the topological connection to ensure that it cannot form a loop (i.e., there cannot be a looped clock device combination).
[0116] Clock tree topology information modification and storage module: This module mainly includes two functions: 1. Confirm and modify the clock tree topology information generated by the previous clock tree topology calculation module, that is, this module opens a higher priority interface to support special clock tree topology information modification; 2. The storage module is used to store the final modified clock tree topology information to form a topology information database, and record the previous device information and connection information of the target device to realize the storage and update of the entire topology information database, providing reference information for the next plan; at the same time, the final clock tree plan information stored in the storage module is in a data format that can be directly read and recognized by the drawing software and input for automatic drawing and generation of single-board clock schematics.
[0117] Clock Tree Diagram Generation Module: This module primarily performs one function: 1. Modifying and storing the final clock tree topology based on the clock tree topology information, the module represents clock devices and target devices with different boxes or colors, and arrows indicating data flow directions. The arrows are labeled with the topology information above them. Key information such as source, destination, signal name, frequency, and level type can be uniformly specified according to regulatory requirements. This module outputs a clock tree diagram suitable for documentation and developer-friendly reading.
[0118] Referring to FIG12 , the method for automatically generating a clock tree according to an embodiment of the present disclosure is as follows:
[0119] S1. Obtain the clock requirement information of the target device.
[0120] To generate a clock tree diagram for a board, you first need the clock requirement information for all target devices within the board. See Figure 13. The data acquisition method is as follows:
[0121] a1) The target device has only one unique identifier.
[0122] b1) Determine whether the target device identifier exists in the target device database. If not, proceed to c1); if so, proceed to n1).
[0123] c1) If the target device identifier does not exist, it means that the target device is newly added.
[0124] d1) A corresponding identifier may be generated for the target device.
[0125] e1) Inputting raw data information for the identified target device; wherein, to improve efficiency, the raw data information may be input in a unified input format; for example, the unified input format may include: clock frequency, clock level type, clock domain, clock jitter, clock frequency deviation, clock signal name, and clock power-on stabilization time.
[0126] f1) For a target device added for the first time, if the target device has multiple (i.e., multi-channel) clock requirement information, there will be multiple entries of raw data information as described in c). All raw data information can be entered by adding entries.
[0127] g1) Generate a data set for the target device, which centrally maintains all clock requirement information of the target device.
[0128] h1) Confirm the data set of the target device to check whether there are any omissions or errors. If incorrect, proceed to i1); if correct, proceed to j1).
[0129] i1) If the data set of the target device is confirmed to be incorrect, modify the data set of the target device.
[0130] j1) If the target device data set is confirmed to be correct, find the existing clock tree topology information modification and storage module.
[0131] k1) Confirm whether the content matches the existing target device. If the match is unsuccessful, proceed to l1). If the match is successful, proceed to m1). If the current clock tree topology information is modified and the storage module is empty, skip the next step of matching.
[0132] l1) If the match is unsuccessful, manual confirmation is required. If there is a problem with the manual confirmation, return to i1) and continue to modify the target device data set. If the manual confirmation is correct, proceed to m1).
[0133] m1) If the match is successful or if the manual confirmation is correct, the process is completed. At the same time, the official version number of the dataset corresponding to the target device's identification is provided in the database. For a target device with the same identification, multiple official versions of the dataset can be stored in the target device database. Since the official version has been confirmed, proofread and verified, the dataset of the target device with the same identification will not have unlimited version growth. Generally speaking, the latest version is called. Steps h1) to m1) are intended to achieve more intelligent data acquisition and verification of the target device. If this process is not done, it will not affect the overall process.
[0134] n1) If the target device identifier already exists, the official version of the target device data set is directly called in the target device database, without the need to manually enter the original data information.
[0135] S2. Classify and merge the clock requirement information of the target device according to a first preset requirement to obtain classified and merged target clock information.
[0136] The main purpose of this step is to summarize all the data information in step S1 and form a classified and merged key information matrix based on the target rule algorithm (i.e., the first preset requirement), providing input for the next step of generating clock tree topology information. This target rule algorithm can have different implementation schemes, mainly based on the priority definition of clock requirement information. For example, the clock domain can be given the highest priority and the clock jitter can be given the lowest priority, or vice versa. In short, no matter what priority the target rule algorithm is implemented with, it can be used as the first preset requirement. The general implementation method is through a traversal algorithm. In this example, a funnel algorithm-like implementation is proposed to improve efficiency. The following target rule algorithm method only provides an example method to illustrate how this step is implemented, as shown in Figure 14.
[0137] a2) Based on the content provided by the previous target device input module, obtain the data sets of all target devices (ie, the clock requirement information of the target devices).
[0138] b2) Traverse the data sets of all target devices and classify the records according to clock frequency.
[0139] c2) Similar to the funnel method, the classification results of each type of clock frequency are further classified and filtered according to the clock domain.
[0140] d2) Continue the funnel method and perform classification and screening based on the clock level type from the classification results of each type of clock domain.
[0141] e2) Continuing the funnel method, the classification results of each type of clock level type are further classified and screened according to the clock frequency range.
[0142] f2) Continuing the funnel method, the classification results of each clock frequency range are further classified and screened according to clock jitter.
[0143] g2) Continuing with the funnel method, the clock jitter classification results of each category are further classified and screened according to the clock power-on stabilization time.
[0144] h2) Finally, a key information matrix is generated that combines the classification and integration of all target devices and all clock requirements. At this point, the categories of clock devices ultimately required by all target devices and the number of clocks in this category of clock devices are known.
[0145] i2) Verify the total number of clock entries in the key information matrix to ensure there are no missing or additional entries. If the verification is successful, proceed to j2). If not, return to the process and continue with the verification step. Step i2) is intended to ensure more reliable raw data acquisition and verification. If this step is omitted, it does not affect the overall process.
[0146] j2) End the process.
[0147] S3. Based on the existing clock device database, calculate the clock tree topology information.
[0148] The clock device module provides a clock device database containing information about all currently available clock devices. This database is limited to a known clock device database. The clock devices in this database are categorized as crystal oscillators, phase-locked loops, and clock buffers. This database is a pre-set database, and each piece of clock device information is manually entered. This implementation is as follows, as shown in Figure 15.
[0149] a3) Input the clock device identifier, which mainly includes two fields. One field identifies the type of clock device, such as crystal oscillator device class and clock buffer device class; the other field identifies the actual device model in the class.
[0150] b3) Enter the clock-related attributes of the identified clock device, which mainly include the following 10 attributes. If a clock device has an attribute that does not exist, the data after the attribute will be blank. The 10 attributes include: Device Attribute 1 (Number of Input Channels), Device Attribute 2 (Input Level Type), Device Attribute 3 (Input Frequency Range), Device Attribute 4 (Number of Output Channels), Device Attribute 5 (Output Level Type), Device Attribute 6 (Output Frequency Range), Device Attribute 7 (Output Jitter), Device Attribute 8 (Output Frequency Deviation), Device Attribute 9 (Number of Phase-Locked Loops), and Device Attribute 10 (Clock Power-On Stable Time).
[0151] c3) The identified clock device generates a data set for the clock device according to the attributes of the clock device, and inputs the data set for the next clock device.
[0152] d3) Finally, input the data of all clock devices and complete the generation of the clock device database.
[0153] By matching the generated clock device database with the key information from the classification and merging in step S2, the required target clock devices can be calculated. Based on the connection relationships between target clock devices, the connection relationships between target devices, and the signal flow, the clock tree topology information is generated. The clocks in the clock tree are unidirectional, and the clock tree topology information is checked and corrected to ensure that no looping clock device combinations exist. However, this step is not required and is only intended to ensure the accuracy and reliability of the clock tree topology information. It should also be noted that there are multiple methods and processes for generating clock tree topology information, and the final structure of the clock tree topology information can be adjusted arbitrarily based on different user needs, concerns, and priorities. This means that the final structure of the clock tree topology information is not unique.
[0154] Selection of clock devices and determination of clock tree topology information. The process of an embodiment is shown in Fig. 16.
[0155] a4) The key information matrix of the target device in the previous step S2 is the input of this process.
[0156] b4) Determine the number of clock domains in the key information matrix.
[0157] c4) According to the number of clock domains in the key information matrix, select a preliminary combination of phase-locked loop devices that meet the requirements from the clock device database. This combination has in kinds, where n < 5.
[0158] d4) At the same time, by comparing with the official version of the existing clock tree topology information, preferably select the pre-stage clock device of the target device with the existing topology information here, optimize and reduce the number of combinations and try to be consistent with the existing design version.
[0159] e4) Determine the number of clock frequencies and the clock frequency offset requirements.
[0160] f4) According to the number of clock frequencies and the clock frequency offset requirements, calculate for each i combination in c4), screen out the available phase-locked loop device combination Cm. At this time, the combination will be less than that in the previous step, that is, m < n. And select crystal oscillator devices from the clock device database and add them to the combination Cm, and there is a front-back connection relationship between them.
[0161] g4) At the same time, by comparing with the official version of the existing clock tree topology information, preferably select the pre-stage clock device of the target device with the existing topology information here, optimize and reduce the number of combinations and try to be consistent with the existing design version.
[0162] h4) Determine the number of clock paths of the same classification and the clock level type.
[0163] i4) According to the number of clock paths of the same classification and the clock level type, select clock buffer devices buffer from the clock device database and add them to the combination Cm in the previous step f4), and there is a front-back connection relationship between them.
[0164] j4) At the same time, by comparing with the official version of the existing clock tree topology information, preferably select the pre-stage clock device of the target device with the existing topology information here, optimize and reduce the number of combinations and try to be consistent with the existing design version.
[0165] k4) Determine the constraint conditions: clock jitter requirements, clock power-on stability time requirements, and the condition that the clock device cascade does not exceed 3 levels, etc.
[0166] l4) According to the clock jitter requirements, clock power-on stability time requirements, and the condition that the clock device cascade does not exceed 3 levels, etc., generate the final combination of clock devices, and confirm the clock device model and number.
[0167] m4) Based on the connection relationship between the previous and next stages within the final combination, the lower-level devices are marked with the grandfather device number, the father device number, and the father port number to generate the final clock tree topology information.
[0168] n4) At the same time, by comparing with the official version of the existing clock tree topology information, the connection relationship of the previous clock device of the target device with the existing topology information is preferably selected to ensure that the connection relationship is consistent with the existing design version.
[0169] 4) Check the clock tree topology to see if there are any clock device combinations that form a loop. If so, discard any such combinations. This step is optional.
[0170] p4) At the same time, the clock tree topology information generated by this process becomes the official version after final confirmation and is stored in the storage module.
[0171] S4. Modify and confirm the clock tree topology information, and store the official version of the topology information in the database.
[0172] The main purpose of this step is to confirm the clock tree topology information calculated in step S3. If there are more special requirements, the existing clock tree topology information can be modified here. After confirmation, the final and unique version of the clock tree topology information is generated. At the same time, this official version of the clock tree topology information is stored in the topology information database for subsequent reference, as shown in Figure 17.
[0173] a5) The clock tree topology information in the previous step S3 is used as input to this process.
[0174] b5) Is there any cost information and special requirements?
[0175] c5) If there is no cost information or special requirements, there is no need to manually modify the network topology information, and the currently generated clock tree topology information is directly confirmed as the preferred clock tree topology information.
[0176] d5) If cost information or special requirements are required, manually modify the existing clock tree topology. If the modification has been made, proceed to e5). If not, proceed to c5.
[0177] e5) After confirming the preferred clock tree topology information, a final and unique official version of the clock tree topology information is selected, or the manually modified clock tree topology information is selected as the final and unique official version of the clock tree topology information.
[0178] f5) stores the clock tree topology information in e5), generates a formal version identifier, and generates a visual clock tree diagram as input for the next process.
[0179] g5) Generate a topology information database under the version identifier in f5), record the previous device information and connection relationship information of each target device, as the basis for calculating the clock tree topology information of the next target device, and as the data basis for processes S1 and S3.
[0180] S5. Generate a visual clock tree diagram based on the clock tree topology information.
[0181] The main purpose of this step is to transform the clock tree topology information finally available in step S4 into a visual clock tree diagram for developers to easily identify and implement the final solution. Simultaneously, the underlying layer generates a software-recognizable connection relationship dataset, facilitating the subsequent automatic generation of a schematic diagram using schematic drawing software. The visual clock tree diagram in this step not only refers to a block diagram but can also use different graphic identifiers, different color identifiers, and other features. The same applies to arrows, as long as they indicate the connection direction, as shown in Figure 18.
[0182] a6) The official version of the clock tree topology information in the previous step S4 is the input of this process.
[0183] b6) Extracting device identifiers of devices in the clock tree topology information, restoring them into device names, and representing them with graphical boxes.
[0184] c6) extracting the connection relationship in the clock tree topology information and representing it with a unidirectional arrow in a graphical unidirectional connection manner.
[0185] d6) Label the key information of the connection relationship and place it on the one-way arrow. The key information includes: source end - destination end - signal name - frequency - level and other information, mainly the content entered in step S1.
[0186] e6) Complete the visual clock diagram and output this solution.
[0187] f6) Based on the official version of the clock tree topology information, a connection relationship dataset that can be recognized by drawing software is generated to facilitate the automatic generation of schematic diagrams later.
[0188] The beneficial effects of the embodiments of the present disclosure in terms of technical value compared to the existing technology are mainly manifested in four aspects: First, it is more efficient, which is mainly because the clock tree can be automatically generated through software, which solves the manual drawing process of the existing technology; second, it is of higher quality, and the reliability of the new design can be guaranteed based on the existing database and the existing verified official version; third, it reduces manual development costs and reduces repeated modifications in the later stage, because when the database is continuously updated and the clock tree topology information is continuously iterated according to the existing version, the generated clock tree will tend to be unified; fourth, it has obvious advantages for rapid development of large companies, multiple products, and multiple boards. This is because the technology of the embodiments of the present disclosure can achieve parallel and reliable development, and there is no need to clarify the system plan for multiple boards and multiple products in the early stage, and then come up with a clock tree plan after unification.
[0189] The method and system of the disclosed embodiments solve the problem of generating a final clock tree solution based on the original clock requirements, and achieve fast, efficient, and intelligent single-board solution and schematic drawing.
[0190] Those skilled in the art will appreciate that all or some of the steps in the methods, systems, and functional modules / units in the devices disclosed above may be implemented as software, firmware, hardware, or appropriate combinations thereof.
[0191] In a hardware implementation, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, as is well known to those skilled in the art, communication media typically embodies computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0192] The exemplary embodiments of the present disclosure are described above with reference to the accompanying drawings, but the scope of the present disclosure is not limited thereby. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and essence of the present disclosure shall be within the scope of the present disclosure.
Claims
1. A method for automatically generating a clock tree, the method comprising: Get the clock requirement information of the target device; Classify and merge the clock requirement information of the target device to obtain classified and merged clock information; Acquire information of clock devices, and determine clock tree topology information of the target device according to the classified and merged clock information and the information of the clock devices, wherein the clock tree topology information of the target device includes target clock devices required by the target device, connection information between the target clock devices, and connection relationship between the target device and the target clock device; A clock tree of the target device is generated according to the clock tree topology information of the target device.
2. The method according to claim 1, wherein: The step of obtaining the clock requirement information of the target device includes: Acquire clock requirement information of a target device from a target device database, wherein the target device database stores clock requirement information of a plurality of target devices; and / or, The obtaining of information of the clock device includes: The information of the clock device is acquired from a clock device database, wherein the clock device database stores information of a plurality of clock devices.
3. The method according to claim 2, wherein: Before acquiring the clock requirement information of the target device from the target device database, the method includes: Determine, according to the identifier of the target device, whether the clock requirement information of the target device exists in the target device database; If the clock requirement information of the target device does not exist, the clock requirement information of the target device corresponding to the identification of the target device is generated based on the original data information of the target device input by the user, and the identification of the target device and the corresponding clock requirement information of the target device are stored in the target device database.
4. The method according to claim 1, wherein: The step of classifying and merging the clock requirement information of the target device to obtain the classified and merged clock information includes: According to the first preset requirement, the clock requirement information of the target device is classified and merged to obtain the classified and merged target clock information.
5. The method according to claim 4, wherein: The step of classifying and merging the clock requirement information of the target device according to the first preset requirement to obtain the classified and merged target clock information includes: According to the preset priority of the clock requirement information of the target device, the clock requirement information of the target device is classified and merged to obtain the classified and merged target clock information.
6. The method according to claim 1, wherein: The step of determining the clock tree topology information of the target device according to the classified and merged clock information and the information of the clock device includes: Based on the second preset requirement, the clock tree topology information of the target device is determined according to the classified and merged clock information and the information of the clock device.
7. The method according to claim 6, wherein: The step of determining the clock tree topology information of the target device based on the second preset requirement and according to the classified and merged clock information and the information of the clock device includes: Determine a preliminary phase-locked loop device combination according to the number of clock domains after classification and merging and the information of the clock devices; According to the number of clock frequency points and clock frequency deviation requirements after classification and merging, select an available phase-locked loop device combination from the preliminary phase-locked loop device combination; Determine a crystal oscillator device according to the information of the clock device, and add the determined crystal oscillator device to the available phase-locked loop device combination to form a crystal oscillator device and phase-locked loop device combination having a front-end and back-end connection relationship; The clock buffer device is determined according to the number of clock paths and clock level types after classification and merging, as well as the information of the clock device, and the determined clock buffer device is added to the crystal oscillator device and phase-locked loop device combination to form a crystal oscillator device, phase-locked loop device, and clock buffer device combination with a front-end and back-end connection relationship.
8. The method according to claim 1, wherein: The method further comprises: Saving the clock tree topology information of the target device into a topology information database; The step of determining the clock tree topology information of the target device according to the classified and merged clock information and the information of the clock device includes: Determining initial clock tree topology information of the target device according to the classified and merged clock information and the information of the clock device; If the clock tree topology information of the target device exists in the topology information database, and the clock tree topology information of the target device in the topology information database is inconsistent with the initial clock tree topology information, the clock tree topology information of the target device in the topology information database replaces the initial clock tree topology information to generate the final clock tree topology information of the target device.
9. The method according to claim 1, wherein: After determining the clock tree topology information of the target device according to the classified and combined clock information and the information of the clock device, the method further includes: Checking whether there is a ring-shaped clock device combination in the clock tree topology information of the target device; In a case where there is no ring-forming clock device combination in the clock tree topology information of the target device, a clock tree of the target device is generated according to the clock tree topology information of the target device.
10. The method according to claim 1, wherein: After determining the clock tree topology information of the target device according to the classified and combined clock information and the information of the clock device, the method further includes: Modify the clock tree topology information of the target device according to the modification information input by the user; A clock tree of the target device is generated according to the modified clock tree topology information of the target device.
11. The method according to claim 1, wherein: The method further comprises: A connection relationship data set identifiable by software is generated according to the clock tree topology information of the target device.
12. A system for automatically generating a clock tree, the system comprising a memory and a processor, the memory being used to store a computer program; the processor being used to execute the computer program and implement the method for automatically generating a clock tree as claimed in any one of claims 1 to 11 when executing the computer program.
13. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor implements the method for automatically generating a clock tree according to any one of claims 1 to 11.
Citation Information
Patent Citations
Estimation method and system of clock tree delay time in specified integrated circuit
CN102169515A
Clock-domain-crossing clock tree building method, clock-domain-crossing clock tree building system, integrated circuit and manufacturing method
CN104077427A
Method of constructing hierarchical clock tree for integrated circuit
CN112100971A
