Chip layout cloud parallel rendering and rendering data scheduling method, device and cloud
Through cloud parallel rendering and rendering data scheduling methods, the problem of GDSII layout file loading failure and slow rendering lag is solved, efficient and accurate rendering and storage are achieved, and it is suitable for multi-user collaboration and cross-platform operations.
Patent Information
- Application Number
- CN202410878809.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-07-02
AI Technical Summary
When existing electronic design automation (EDA) verification tools perform visual rendering of GDSII layout data, they have high computer performance requirements and fail to load large-scale GDSII files, resulting in slow loading problems, especially in multi-user collaboration and cross-platform operations. There are difficulties.
Using the chip layout cloud parallel rendering and rendering data scheduling method, the chip layout to be rendered is divided into multiple layers, a task thread is established to obtain the element coordinate information, a layer file is generated and uploaded to the cloud, and the cloud generates a rendering data stream. , to achieve cross-platform rendering data scheduling.
It improves the accuracy and stability of layout rendering, solves the problem of loading failure caused by insufficient resources, improves rendering efficiency and storage efficiency, reduces network transmission pressure, and realizes cross-platform collaboration.
Smart Images

Figure CN118428288B
Abstract
Description
Technical Field
[0001] The present application relates to the field of integrated circuit technology, and in particular to a chip layout cloud-based parallel rendering and rendering data scheduling method, device and cloud. Background Art
[0002] The chip layout of integrated circuits is used to make photolithography masks and is crucial for chip manufacturing. The chip layout is stored in a GDSII (Graphic Design System) file, which contains information related to plane geometry, text labels, and layout and routing in a layered form. All or part of the layout information can be reconstructed based on the GDSII file. Layout data visualization can intuitively display the working principle and output results, and can be used for verification and testing such as signal integrity and power integrity.
[0003] In the process of visual rendering of layout data by existing electronic design automation (EDA) verification tools, the computer needs to process the original model or scene, including modeling, texturing, mapping, lighting calculation, projection transformation, viewpoint transformation, etc. This process involves a lot of calculations and graphics processing technology, which requires high computer performance. At present, these tools are all based on non-cloud rendering mode processing. With the advancement of technology, the size of chip processes continues to shrink, and the size of GDSII layout files is getting larger and larger with the development of processes and technologies. In EDA back-end simulation and front-end simulation systems, how to efficiently and correctly load GDSII to restore the layout structure and connection information has also become a core issue.
[0004] For large-scale GDSII files, the performance of local computers varies, and loading failures are inevitable. In addition, there is no centralized data management and archiving for processed data, resulting in repeated loading and rendering, which brings a poor experience of slow loading and rendering. Summary of the invention
[0005] The embodiment of the present application provides a chip layout cloud-based parallel rendering and rendering data scheduling method and device, which can solve the problem that GDSII layout file loading in the simulation system often fails due to insufficient local hardware configuration resources, and also solves the problem of multiple users using the same GDSII layout file, resulting in repeated loading and calculation, leading to slowness, and also solves the problems of difficulty in achieving cross-platform, cross-system operation, and multi-user collaboration.
[0006] In a first aspect, an embodiment of the present application provides a chip layout cloud parallel rendering and rendering data scheduling method, the method is applied to a computer device, including:
[0007] Obtain a chip layout to be rendered, scan the chip layout, calculate and obtain corresponding layer information according to the chip layout, determine the number of division layers corresponding to the chip layout according to the layer information, and the number of division layers is used to divide the chip layout into multiple layers; wherein the chip layout includes multiple graphic elements;
[0008] Establish multiple task threads in the preset area corresponding to the chip layout, execute the task threads to obtain the coordinate information of each graphic element in the chip layout, and determine the layer corresponding to each graphic element according to the coordinate information and the number of divided layers;
[0009] Each layer is divided into multiple layer cells, each layer cell contains multiple graphic elements, and the multiple layer cells corresponding to each layer are packaged in sequence to generate a layer file corresponding to each layer.
[0010] Calculate the hash values corresponding to the multiple graphics elements contained in the layer file, upload the layer file and the hash value corresponding to the layer file to the cloud, and the cloud generates the rendering data stream corresponding to the layer file;
[0011] When a rendering data scheduling instruction is received, a matching is performed between a scheduling identifier corresponding to the rendering data scheduling instruction and a plurality of hash values, and a rendering data stream corresponding to a successfully matched hash value is obtained from the cloud.
[0012] In a second aspect, the present application further provides a chip layout cloud parallel rendering and rendering data scheduling method, the method is applied to the cloud, including:
[0013] Acquire multiple layer files corresponding to the chip layout to be rendered uploaded by the computer device and hash values corresponding to the layer files;
[0014] Establishing a multi-layer rendering canvas according to the number of divided layers corresponding to the plurality of layer files, so that each rendering canvas corresponds to one layer file;
[0015] Rendering the layer file corresponding to the rendering canvas through each rendering canvas to obtain a rendering data stream corresponding to the layer file;
[0016] When receiving the dispatch identifier uploaded by the computer device, matching the dispatch identifier with the plurality of hash values, switching to the rendering canvas corresponding to the successfully matched hash value, to obtain the rendering data stream corresponding to the layer file;
[0017] The rendering data stream is sent to the computer device.
[0018] In a third aspect, the present application further provides a computer device, comprising a processor and a memory, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the chip layout cloud-based parallel rendering and rendering data scheduling method as described in the first aspect is implemented.
[0019] In a fourth aspect, the present application further provides a cloud, comprising a processor and a memory, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the chip layout cloud parallel rendering and rendering data scheduling method as described in the second aspect is implemented.
[0020] Compared with the prior art, this application has at least the following beneficial effects:
[0021] 1. Improve the accuracy and stability of layout rendering: Cloud services or private cloud deployments provide powerful computing power and almost unlimited storage space, which ensures the accuracy and stability of rendering even when processing very large GDSII files (when GDSII reaches 3G or more, ordinary computers not only load slowly, but also have more prominent memory problems. Memory below 16G often fails or errors in rendering due to insufficient memory. However, with cloud services or local cloud computers, the problem of loading and rendering can be solved even if the client resources are insufficient.)
[0022] 2. Improved the flexibility of reading, writing and calculating the storage of rendering data: It solves the rendering problem of the same layer in the simulation system where the user frequently verifies and modifies certain local data and then imports it into the simulation system again for repeated rendering. It also solves the rendering problem of loading the same file multiple times.
[0023] 3. Improve layout rendering efficiency: Loading layouts to form 3D layers, data structure layer reuse design and multi-level cache design improve the loading speed and performance of large layout files. The system can automatically determine which parts of the data have changed, and only perform differential rendering on the changed parts, thereby greatly reducing rendering time and resource consumption.
[0024] 4. Improve storage efficiency and reduce network transmission pressure: The layout data is stored in a grid-like block mode by layer, which improves data retrieval and access efficiency. At the same time, it improves storage efficiency in cloud rendering mode and reduces the pressure of network streaming transmission.
[0025] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 A schematic diagram of the process of the first chip layout cloud parallel rendering and rendering data scheduling method shown in an embodiment of the present application;
[0027] Figure 2 A schematic diagram showing the principle of cloud-based parallel rendering of a chip layout according to an embodiment of the present application;
[0028] Figure 3 A schematic diagram of the relationship between the unit layer division cells and the graphic elements shown in the embodiment of the present application;
[0029] Figure 4 A flow chart of a second chip layout cloud-based parallel rendering and rendering data scheduling method shown in an embodiment of the present application;
[0030] Figure 5 This is a schematic diagram of the structure of a first rendering data scheduling device shown in an embodiment of the present application;
[0031] Figure 6 A schematic diagram of the structure of a second rendering data scheduling device shown in an embodiment of the present application;
[0032] Figure 7 A schematic diagram of the structure of a computer device shown in an embodiment of the present application;
[0033] Figure 8 This is a schematic diagram of the cloud structure shown in an embodiment of the present application. DETAILED DESCRIPTION
[0034] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0035] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0036] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0037] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0038] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0039] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0040] The technical solution of the embodiment of the present application is introduced below.
[0041] The chip layout of integrated circuits is used to make photolithography masks and is crucial for chip manufacturing. The chip layout is stored in a GDSII (Graphic Design System) file, which contains information related to plane geometry, text labels, and layout and routing in a layered form. All or part of the layout information can be reconstructed based on the GDSII file. Layout data visualization can intuitively display the working principle and output results, and can be used for verification and testing such as signal integrity and power integrity.
[0042] In the process of visual rendering of layout data by existing electronic design automation (EDA) verification tools, the computer needs to process the original model or scene, including modeling, texturing, mapping, lighting calculation, projection transformation, viewpoint transformation, etc. This process involves a lot of calculations and graphics processing technology, which requires high computer performance. At present, these tools are all based on non-cloud rendering mode processing. With the advancement of technology, the size of chip processes continues to shrink, and the size of GDSII layout files is getting larger and larger with the development of processes and technologies. In EDA back-end simulation and front-end simulation systems, how to efficiently and correctly load GDSII to restore the layout structure and connection information has also become a core issue.
[0043] For large-scale GDSII files, the performance of local computers varies, and loading failures are inevitable. In addition, there is no centralized data management and archiving for processed data, resulting in repeated loading and rendering, which brings a poor experience of slow loading and rendering.
[0044] To solve the above problems, please refer to Figure 1 , Figure 1 The flowchart of the first chip layout cloud parallel rendering and rendering data scheduling method provided in the embodiment of the present application is as follows. The chip layout cloud parallel rendering and rendering data scheduling method of the embodiment of the present application can be applied to computer devices, including but not limited to smart phones, laptops, tablet computers, desktop computers and other devices. Figure 1 As shown, the chip layout cloud parallel rendering and rendering data scheduling method of this embodiment includes steps S101 to S105, which are described in detail as follows:
[0045] Step S101, obtain the chip layout to be rendered, scan the chip layout, obtain the layer information corresponding to the chip layout, determine the number of division layers corresponding to the chip layout according to the layer information, and the number of division layers is used to divide the chip layout into multiple layers; wherein the chip layout includes multiple graphic elements.
[0046] Specifically, the computer device obtains the chip layout to be rendered and scans it, and can calculate the corresponding layer information according to the chip layout. Because the chip itself is composed of a multi-layer structure (Passivation, Metal, IDL), it is realized by layer-by-layer coating, gluing, etching, and hole formation through semiconductor processes such as through holes, half holes, and blind holes. In order to improve the rendering effect, this application determines the number of layers corresponding to the chip layout according to the layer information of each layer, and then can split the layout and construct a multi-layer three-dimensional data structure model to carry out targeted processing of different contents.
[0047] In some embodiments, obtaining the chip layout to be rendered includes: obtaining the file size of the chip layout to be rendered and the storage space size of the computer device; determining a reading method corresponding to the chip layout according to the file size and the storage space size; and obtaining the chip layout to be rendered according to the reading method.
[0048] By obtaining the file size of the chip layout to be rendered and the storage space size of the computer device, the computer device can determine the dynamic reading method of the chip layout. For example, when the file size of the chip layout is large and the storage space is small, the method of reading the file line by line can be adopted; when the file size of the chip layout is small and the storage space is large, the method of directly reading all the lines of the chip layout and treating each line as an element can be adopted; when the file size is larger than the storage space size, the method of segmented reading or compressed reading can be selected. In this way, the chip layout can be quickly obtained and processed while ensuring the operation of the computer device.
[0049] In some embodiments, the primitives include vertex data, color data, thickness data and material data; determining the number of division layers corresponding to the chip layout based on the layer information also includes: confirming whether two scanned adjacent primitives belong to the same layer based on the vertex data, color data, thickness data and material data corresponding to each of the primitives; when the two scanned adjacent primitives do not belong to the same layer, updating the number of division layers; traversing multiple primitives in the chip layout in a preset order to obtain the number of division layers corresponding to the chip layout.
[0050] like Figure 2 As shown, by using the vertex data, color data, thickness data and material data in the primitives, it is possible to determine whether two adjacent primitives are in the same layer. For example, the vertex data, color data, thickness data and material data of two adjacent primitives are calculated respectively. When the color data, thickness data and material data of the two adjacent primitives before and after scanning are equal, the two adjacent primitives belong to the same layer. Otherwise, the number of division layers is updated, that is, a layer is added in the vertical direction of the layout, and the new number of division layers is continued to be calculated. Then, the chip layout can be quickly divided according to the preset order (such as top to bottom / bottom to top).
[0051] Step S102, establishing multiple task threads in a preset area corresponding to the chip layout, executing the task threads to obtain coordinate information of each graphic element in the chip layout, and determining the layer corresponding to each graphic element according to the coordinate information and the number of divided layers.
[0052] By establishing multiple task threads in the chip layout, the coordinates of the graphics elements in the entire chip layout can be obtained in parallel, and then the layer corresponding to each graphics element can be quickly determined according to the number of divided layers and the graphics element coordinate information.
[0053] It should be noted that the number of task threads is less than or equal to the number of division layers. When the number of task threads is equal to the number of division layers, it is equivalent to each thread obtaining the coordinates of the primitives of each layer. At the same time, if the computer processing resources are limited, the number of task threads can also be less than the number of division layers. The specific setting of task threads is adjusted according to actual needs.
[0054] Step S103, dividing each layer into a plurality of layer cells, each layer cell including a plurality of graphic elements, and sequentially encapsulating the plurality of layer cells corresponding to each layer to generate a layer file corresponding to each layer.
[0055] Specifically, by dividing each layer into multiple layer cells, it can be divided into equal values from large to small, or it can be divided into unequal values. The present application does not limit the division method of the layer cells. The graphic elements in the layer cells of each layer are encapsulated to form a layer cell data block, and multiple layer cell data blocks form a unit layer, which are then encapsulated in sequence to generate a layer file corresponding to each of the layers. In addition, the layers to which each layer cell in the chip layout belongs can be classified, and the specific composition of each layer can be determined, so that the computer device can render the chip layout in a targeted manner. When local data changes, the computer device can perform local rendering according to the cell data of the unit layer.
[0056] Please refer to Figure 3 ,according to Figure 3 The composition of the L-layer chip layout structure can be illustrated. Figure 3 As shown, each layer includes multiple layer cells (such as Figure 3 The chip is formed in a matrix form of NXM in FIG, and each layer cell includes multiple graphics elements, and multiple layers constitute a complete chip layout structure.
[0057] like Figure 3 As shown, the storage method of each layer is divided into N×M layer cells according to hardware resources + algorithm calculation. Each layer cell contains multiple primitives. Each layer cell is stored in memory in blocks, so each layer consists of multiple layer cells, and each layer cell consists of multiple primitives. Local refresh and data stream transmission are being performed.
[0058] Step S104, calculating hash values corresponding to multiple graphic elements contained in the layer file, uploading the layer file and the hash values corresponding to the layer file to the cloud, and the cloud generates a rendering data stream corresponding to the layer file.
[0059] Specifically, since the hash values corresponding to different graphics elements are unique, by calculating the hash values as the identifiers of each layer file and uploading them to the cloud together, the rendering data stream of each layer file can be obtained through the cloud, and then the layering and remote rendering of the chip layout can be quickly realized through the cloud.
[0060] In some embodiments, before uploading the layer file and the hash value corresponding to the layer file to the cloud, it also includes: calculating the hash values corresponding to multiple graphic elements of each layer cell in the layer file, and uploading the layer file, the hash value corresponding to the layer file, and the hash value corresponding to the layer cell of the layer file to the cloud. In this way, a unique identifier can be generated for each layer cell, and the rendering accuracy can be greatly improved with the division of the layer cells. That is, each rendering can obtain the rendering data stream corresponding to each layer or any layer cell in the layer, so that the user can adaptively select the position and size of the rendering data stream in the layout file, thereby improving the flexibility of the provided rendering data scheduling method.
[0061] In some embodiments, the hash value includes a SHA-256 value; uploading the layer file and the hash value corresponding to the layer file to the cloud includes: using the SHA-256 value as the file name of the layer file, and uploading the named layer file to the cloud.
[0062] By naming each layer file according to its corresponding SHA-256 value, both the computer device and the cloud can quickly confirm and find the data of each layer. At the same time, compared with naming by serial number, it is also unique to ensure that each layer has a corresponding layer file.
[0063] Exemplarily, before uploading the layer file and the hash value corresponding to the layer file to the cloud, it also includes: generating query information based on the SHA-256 value, sending the query information to the cloud, and when it is determined according to the query information that the layer file with the file name of the SHA-256 value is not stored in the cloud, uploading the layer file and the SHA-256 value corresponding to the layer file to the cloud.
[0064] When the computer device determines that the layer file corresponding to the layer is already installed in the cloud, there is no need to upload it at this time because the layer file of the layer has been deployed in the cloud, thereby ensuring the uniqueness of the layer file.
[0065] Step S105, when receiving the rendering data scheduling instruction, matching is performed according to the scheduling identifier corresponding to the rendering data scheduling instruction and the multiple hash values, and the rendering data stream corresponding to the successfully matched hash value is obtained from the cloud.
[0066] Specifically, when the computer device receives the rendering data scheduling instruction sent by the user, it matches the scheduling identifier and multiple hash values therein, and then schedules the rendering data stream corresponding to the hash value from the cloud, which can quickly obtain local rendering data of the chip layout, avoid multiple rendering of data that does not need to be obtained, improve the efficiency of the provided method and reduce the operating pressure of the computer device.
[0067] It should be noted that when the hash values of each layer cell are uploaded to the cloud, the provided method can obtain the rendering data stream of the layer or layer cell corresponding to the successfully matched hash value from the cloud, and then select a large rendering data stream or a rendering data stream of the layer cell with a smaller data volume, thereby improving the speed and flexibility of the provided method.
[0068] For example, Figure 3 As shown, when the rendering data stream returned by the cloud is in SVG format, the client can parse the compressed SVG data and form a corresponding unit layer rendering matrix.
[0069] The provided method can then achieve:
[0070] 1: A method for quickly dividing a large chip layout file into small files by classifying the graphic elements and uploading them to quickly form rendering data.
[0071] 2: Scheduling instructions can quickly identify the matching relationship between input files and rendering hardware, and flexibly schedule cloud resources and local resources to solve adaptation problems.
[0072] 3: It can solve the problem of frequent verification and modification of designs in simulation systems, multiple modifications of the same design in simulations, and repeated calculations caused by frequent rendering.
[0073] Please refer to Figure 4 , Figure 4 The flowchart of the second chip layout cloud parallel rendering and rendering data scheduling method provided in the embodiment of the present application. The chip layout cloud parallel rendering and rendering data scheduling method of the embodiment of the present application can be applied to the cloud, which includes but is not limited to the cloud server. Figure 4 As shown, the chip layout cloud parallel rendering and rendering data scheduling method of this embodiment includes steps S201 to S205, which are described in detail as follows:
[0074] Step S201, obtaining multiple layer files corresponding to the chip layout to be rendered uploaded by the computer device and hash values corresponding to the layer files.
[0075] Specifically, after the cloud obtains multiple layer files corresponding to the chip layout to be rendered uploaded by the computer device and the hash values corresponding to the layer files, it can complete the rendering of the layer file in real time and determine the identifier of the layer file based on the hash value.
[0076] Step S202 creates a multi-layer rendering canvas according to the number of division layers corresponding to the multiple layer files, so that each rendering canvas corresponds to a layer file.
[0077] Specifically, the cloud establishes a multi-layer rendering canvas according to the number of divided layers corresponding to the multiple layer files, such as establishing an n-layer rendering canvas for an n-layer layer file, thereby providing a rendering carrier for the multi-layer layer file.
[0078] Step S203: Render the layer file corresponding to the rendering canvas through each rendering canvas to obtain the rendering data stream corresponding to the layer file.
[0079] Specifically, the cloud can obtain the rendering data stream corresponding to each layer file by switching to each layer rendering canvas to render the corresponding layer file, and can also store the rendering data stream in the cache area to be called.
[0080] In some embodiments, rendering the layer file corresponding to the rendering canvas through each rendering canvas includes: establishing a processing process, executing the processing process to merge multiple layer files; establishing an index relationship between the hash value and the layer file according to the hash value corresponding to the layer file; obtaining the hash value corresponding to each rendering canvas to obtain the graphic element of the layer file corresponding to the rendering canvas in the index relationship.
[0081] The cloud establishes a process to process multiple uploaded layer files, forms a three-dimensional data structure by merging multiple layer files, and forms an index relationship for each layer file based on the hash value, so as to obtain the graphics element of the layer file corresponding to the rendering canvas in the index relationship.
[0082] Step S204, when receiving the dispatch identifier uploaded by the computer device, the dispatch identifier is matched with multiple hash values, and the rendering canvas corresponding to the successfully matched hash value is switched to obtain the rendering data stream corresponding to the layer file.
[0083] Specifically, when the cloud receives the dispatch identifier, it quickly switches to the corresponding rendering canvas to form a rendering data stream and returns it to the computer device. In this way, the cloud can quickly obtain a portion of the rendering data stream of the chip layout.
[0084] In some embodiments, the hash value includes a SHA-256 value; before matching the dispatch identifier with the multiple hash values, it also includes: compressing the rendering data stream according to a preset compression format to obtain a compressed file; naming the compressed file according to the SHA-256 value corresponding to the rendering data stream; and matching the dispatch identifier with the file names of the multiple compressed files.
[0085] The cloud compresses the rendering data stream in svg format and names it with the SHA-256 value corresponding to the layer file. It can quickly complete the storage and management of the rendering data stream corresponding to each layer file, and has improved the calling speed of each rendering data stream.
[0086] Step S205: sending the rendering data stream to the computer device.
[0087] Specifically, when the cloud obtains the rendering data stream corresponding to the scheduling identifier, it can quickly send it to the computer device, and then achieve fast access and efficient processing through cloud storage and computing resources.
[0088] In order to execute Figure 1 The method embodiment shown corresponds to the chip layout cloud parallel rendering and rendering data scheduling method to achieve the corresponding functions and technical effects. Figure 5 , Figure 5 The structural block diagram of the first rendering data scheduling device 300 provided in an embodiment of the present application is shown. The provided device is applied to a computer device. For ease of description, only the parts related to the present embodiment are shown. The first rendering data scheduling device 300 provided in an embodiment of the present application includes:
[0089] The layout acquisition module 301 is used to obtain the chip layout to be rendered, scan the chip layout, calculate and obtain the corresponding layer information according to the chip layout, and determine the number of division layers corresponding to the chip layout according to the layer information. The number of division layers is used to divide the chip layout into multiple layers; wherein the chip layout includes multiple graphic elements.
[0090] The thread establishment module 302 is used to establish multiple task threads in a preset area corresponding to the chip layout, execute the task threads to obtain the coordinate information of each graphic element in the chip layout, and determine the layer corresponding to each graphic element according to the coordinate information and the number of divided layers.
[0091] The information encapsulation module 303 is used to divide each layer into a plurality of layer cells, each of which contains a plurality of graphic elements, and to sequentially encapsulate the plurality of layer cells corresponding to each layer to generate a layer file corresponding to each layer.
[0092] The cloud upload module 304 is used to calculate the hash values corresponding to the multiple graphic elements contained in the layer file, upload the layer file and the hash value corresponding to the layer file to the cloud, and generate the rendering data stream corresponding to the layer file in the cloud.
[0093] The scheduling acquisition module 305 is used to match the scheduling identifier corresponding to the rendering data scheduling instruction with multiple hash values when receiving the rendering data scheduling instruction, and obtain the rendering data stream corresponding to the successfully matched hash value from the cloud.
[0094] It should be noted that those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described device and each unit can refer to the following. Figure 1 The corresponding process in the first chip layout cloud parallel rendering and rendering data scheduling method embodiment provided will not be repeated here.
[0095] The above-mentioned device can be implemented in the form of a computer program. Figure 7 Runs on the computer device shown.
[0096] See also Figure 7 , Figure 7 It is a structural diagram of a computer device provided in an embodiment of the present application.
[0097] See also Figure 7 The computer device includes a processor, a memory and a network interface connected through a system bus, wherein the memory may include a non-volatile storage medium and an internal memory.
[0098] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions, which, when executed, can cause the processor to perform the following operations: Figure 1 The first chip layout cloud parallel rendering and rendering data scheduling method and any corresponding embodiment thereof are provided.
[0099] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.
[0100] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the processor can execute the following operations: Figure 1 The first chip layout cloud parallel rendering and rendering data scheduling method and any corresponding embodiment thereof are provided.
[0101] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0102] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0103] It should be noted that those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the computer device described above can refer to the following. Figure 1 The corresponding process in the first chip layout cloud parallel rendering and rendering data scheduling method embodiment provided will not be repeated here.
[0104] In order to execute Figure 4 The method embodiment shown corresponds to the chip layout cloud parallel rendering and rendering data scheduling method to achieve the corresponding functions and technical effects. Figure 6 , Figure 6 The structural block diagram of the second rendering data scheduling device 400 provided in the embodiment of the present application is shown. The provided device is applied to the cloud. For the convenience of explanation, only the part related to the present embodiment is shown. The second rendering data scheduling device 400 provided in the embodiment of the present application includes:
[0105] The layer acquisition module 401 is used to acquire multiple layer files corresponding to the chip layout to be rendered uploaded by the computer device and the hash values corresponding to the layer files.
[0106] The canvas establishing module 402 is used to establish a multi-layer rendering canvas according to the number of division layers corresponding to the plurality of layer files, so that each rendering canvas corresponds to one layer file.
[0107] The file rendering module 403 is used to render the layer file corresponding to the rendering canvas through each rendering canvas, and obtain the rendering data stream corresponding to the layer file.
[0108] The canvas switching module 404 is used to match the scheduling identifier with the multiple hash values when receiving the scheduling identifier uploaded by the computer device, and switch to the rendering canvas corresponding to the successfully matched hash value to obtain the rendering data stream corresponding to the layer file.
[0109] The data sending module 405 is used to send the rendering data stream to the computer device.
[0110] It should be noted that those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described device and each unit can refer to the following. Figure 4 The corresponding process in the second chip layout cloud parallel rendering and rendering data scheduling method embodiment provided will not be repeated here.
[0111] The above-mentioned device can be implemented in the form of a computer program. Figure 8 Runs on the cloud shown.
[0112] See also Figure 8 , Figure 8 It is a schematic diagram of the cloud structure provided by an embodiment of the present application.
[0113] See also Figure 8 The cloud includes a processor, a memory, and a network interface connected via a system bus, wherein the memory may include a non-volatile storage medium and an internal memory.
[0114] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions, which, when executed, can cause the processor to perform the following operations: Figure 4 A second chip layout cloud-based parallel rendering and rendering data scheduling method and any corresponding embodiment thereof are provided.
[0115] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.
[0116] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the processor can execute the following operations: Figure 3 A second chip layout cloud-based parallel rendering and rendering data scheduling method and any corresponding embodiment thereof are provided.
[0117] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0118] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0119] It should be noted that those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the cloud described above can refer to the following: Figure 4 The corresponding process in the second chip layout cloud parallel rendering and rendering data scheduling method embodiment provided will not be repeated here.
[0120] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0121] An embodiment of the present application provides a computer program product. When the computer program product is run on a computer device, the computer device implements the steps in the above-mentioned method embodiments when executing the computer device.
[0122] In several embodiments provided in the present application, it is understood that each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved.
[0123] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0124] The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only a specific embodiment of the present application and is not intended to limit the scope of protection of the present application. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of protection of the present application.
Claims
1. A chip layout cloud parallel rendering and rendering data scheduling method, characterized in that: The method is applied to a computer device, comprising: Obtain a chip layout to be rendered, scan the chip layout, calculate and obtain corresponding layer information according to the chip layout, and determine the number of division layers corresponding to the chip layout according to the layer information, wherein the number of division layers is used to divide the chip layout into multiple layers; wherein the chip layout includes multiple graphic elements; Establishing a plurality of task threads in a preset area corresponding to the chip layout, executing the task threads to obtain coordinate information of each of the graphic elements in the chip layout, and determining a layer corresponding to each of the graphic elements according to the coordinate information and the number of divided layers; Divide each of the layers into a plurality of layer cells, each of the layer cells contains a plurality of the graphic elements, and sequentially encapsulate the plurality of layer cells corresponding to each of the layers to generate a layer file corresponding to each of the layers; Calculating hash values corresponding to a plurality of the graphic elements contained in the layer file, uploading the layer file and the hash values corresponding to the layer file to a cloud, and the cloud generates a rendering data stream corresponding to the layer file; When a rendering data scheduling instruction is received, a matching is performed based on a scheduling identifier corresponding to the rendering data scheduling instruction and a plurality of the hash values, and the rendering data stream corresponding to the successfully matched hash value is obtained from the cloud.
2. The method according to claim 1, characterized in that The step of obtaining a chip layout to be rendered includes: Obtaining the file size of the chip layout to be rendered and the storage space size of the computer device; Determine a reading method corresponding to the chip layout according to the file size and the storage space size; The chip layout to be rendered is obtained according to the reading method.
3. The method according to claim 1, characterized in that The hash value includes a SHA-256 value; and uploading the layer file and the hash value corresponding to the layer file to the cloud includes: The SHA-256 value is used as the file name of the layer file, and the named layer file is uploaded to the cloud.
4. The method according to claim 3, characterized in that Before uploading the layer file and the hash value corresponding to the layer file to the cloud, the method further includes: Generate query information according to the SHA-256 value, and send the query information to the cloud. When it is determined according to the query information that the layer file with the file name of the SHA-256 value is not stored in the cloud, upload the layer file and the SHA-256 value corresponding to the layer file to the cloud.
5. The method according to claim 1, characterized in that The graphic primitives include vertex data, color data, thickness data and material data; the determining the number of division layers corresponding to the chip layout according to the layer information also includes: Determine whether two adjacent graphic elements belong to the same layer according to vertex data, color data, thickness data and material data corresponding to each graphic element; When two adjacent graphic elements do not belong to the same layer, updating the number of division layers; Traverse multiple graphics elements in the chip layout in a preset order, obtain layer information corresponding to the chip layout, and divide the number of layers according to the layer information.
6. A chip layout cloud parallel rendering and rendering data scheduling method, characterized in that: The method is applied in the cloud, and includes: Acquire multiple layer files corresponding to the chip layout to be rendered uploaded by the computer device and hash values corresponding to the layer files; Establishing a multi-layer rendering canvas according to the number of divided layers corresponding to the plurality of layer files, so that each rendering canvas corresponds to one layer file; Rendering the layer file corresponding to the rendering canvas through each rendering canvas to obtain a rendering data stream corresponding to the layer file; When receiving the dispatch identifier uploaded by the computer device, matching the dispatch identifier with the plurality of hash values, switching to the rendering canvas corresponding to the successfully matched hash value, to obtain the rendering data stream corresponding to the layer file; The rendering data stream is sent to the computer device.
7. The method according to claim 6, characterized in that The rendering of the layer file corresponding to the rendering canvas by each rendering canvas includes: Establishing a processing process, executing the processing process to merge the plurality of layer files; Establishing an index relationship between the hash value and the layer file according to the hash value corresponding to the layer file; The hash value corresponding to each of the rendering canvases is obtained to obtain the graphic element of the layer file corresponding to the rendering canvas in the index relationship.
8. The method according to claim 6, characterized in that The hash value includes a SHA-256 value; and before matching the dispatch identifier with the plurality of hash values, the method further includes: Compressing the rendering data stream according to a preset compression format to obtain a compressed file; The compressed file is named according to the SHA-256 value corresponding to the rendering data stream; and is used to match the scheduling identifier with the file names of the plurality of compressed files.
9. A computer device, characterized in that: The computer device includes a memory and a processor; The memory is used to store computer programs; The processor is used to execute the computer program and implement the chip layout cloud-based parallel rendering and rendering data scheduling method according to any one of claims 1 to 5 when executing the computer program.
10. A cloud, characterized in that: The cloud comprises a memory and a processor; The memory is used to store computer programs; The processor is used to execute the computer program and implement the chip layout cloud-based parallel rendering and rendering data scheduling method as described in any one of claims 6-8 when executing the computer program.
