A TLM device and operation method of a GPU plane clipping module based on SysML view

Designing the TLM device of the GPU plane clipping module through SysML view solves the verification problems caused by the increased complexity in chip design, achieves a clear graphical representation and preliminary verification of the plane clipping module, shortens the design cycle and speeds up the development progress.

CN112634423BActive Publication Date: 2024-09-24西安翔腾微电子科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011542814.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-24
Publication Date
2024-09-24
Estimated Expiration
2040-12-24

AI Technical Summary

Technical Problem

During the chip design process, as the design complexity increases, it is difficult for traditional methods to effectively verify the planar tailoring module algorithm and architecture, resulting in extended design cycles and slow development progress.

Method used

The TLM device of the GPU plane clipping module is designed using SysML view. The clipping plane and plane coefficients are processed through processes and sockets, and complex text is converted into a clear graphic pattern for preliminary verification. Specific operations include variable initialization, determining FIFO status, obtaining clipping data, and processing primitive clipping.

Benefits of technology

Through the graphical modeling language SysML, the preliminary verification of the GPU plane clipping module architecture was achieved, simplifying the design process, shortening the development cycle, accelerating the development progress, and providing modeling and visualization support.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112634423B
    Figure CN112634423B
Patent Text Reader

Abstract

The present invention relates to the technical field of computer hardware modeling, and relates to a TLM device and an operating method of a GPU plane clipping module based on a SysML view. The following steps are included: 1) variable initialization; 2) judging the plane clipping FIFO state; 3) obtaining complete clipping data from the plane clipping FIFO; 4) judging currPktType; 5) obtaining plane parameters; 6) judging whether the current plane is enabled; 7) after performing primitive clipping processing on points, lines, and triangles in step 6, judging the clipping result. The present invention provides a TLM device and an operating method of a GPU plane clipping module based on a SysML view, which can convert complex, cumbersome and ambiguous text into a clear graphic mode and realizes preliminary verification of the GPU plane clipping module architecture.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of computer hardware modeling, and relates to a TLM device of a GPU plane clipping module, and in particular to a TLM device and an operation method of a GPU plane clipping module based on a SysML view. Background Art

[0002] SysML is a new system modeling language proposed by the International Council on Systems Engineering (INCOSE) and the Object Management Engineering (OMG) based on the reuse and extension of the subset of UML2.0. SysML defines new modeling elements by extending the existing UML2.0 with new attributes and constraints.

[0003] SysML is the abbreviation of System Modeling Language, which is an object-oriented graphical modeling language. Compared with UML (Unified Modeling Language), it has expanded some new elements and is more conducive to system engineering modeling. Compared with other modeling languages ​​such as SCADE, SysML can not only model software, but also model hardware and the entire system. In the traditional chip design process, as the complexity of the design continues to increase, the design code and a large amount of documents will become more and more difficult to master. SysML uses a variety of graphics to present the overall design from multiple angles, so that large and complex systems can be clearly and quickly displayed, providing modeling and visualization support for software and hardware development, shortening the design cycle, accelerating the development progress, and assisting system design and verification.

[0004] This patent uses the SysML graphical modeling language to design a transaction-level model of the GPU plane clipping module, which can verify the plane clipping module algorithm and architecture in the early stages of chip design, greatly shortening the project development cycle. Summary of the invention

[0005] Based on the problems existing in the background technology, the present invention provides a TLM device and operation method of a GPU plane clipping module based on a SysML view, which converts complex, cumbersome and ambiguous text into a clear graphic mode, and realizes the preliminary verification of the GPU plane clipping module architecture.

[0006] The technical solution of the present invention is:

[0007] A TLM device of a GPU plane clipping module based on a SysML view, which is special in that: it includes several processes and sockets; the above processes include a geu2sgu_pcu_busy_manage_thread process and a PCU_process_cthread process; the above PCU_process_cthread process is used to realize clipping of three basic graphic elements, namely, points, lines and triangles, according to the clipping plane and plane coefficient enabled by the user, and compose new basic graphic elements with the clipped vertex information;

[0008] The above sockets include geu2sgu_pcu_busy_socket socket, pcu2fifo01_vertex_data_initiator_socket socket, pcu2fifo02_vertex_data_initiator_socket socket, and pcu2gp_bitfiled_initiator_socket socket;

[0009] The above socket is used to realize the interconnection communication function with external modules.

[0010] An operation method of a TLM device of a GPU plane clipping module based on a SysML view is special in that it includes the following operation steps:

[0011] 1) Variable initialization;

[0012] 2) Determine the plane clipping FIFO status

[0013] When the FIFO status is empty, set geu2sgu_pcu_busy to 0 and return to step 1;

[0014] When the FIFO status is not empty, set geu2sgu_pcu_busy to 1;

[0015] 3) Get complete clipping data from the plane clipping FIFO

[0016] 4) Determine currPktType

[0017] When currPktType is glEnd packet, primVertex data is passed to projection transformation FIFO, then currVertexNum is cleared, and the process returns to step 2) to determine the state of plane clipping FIFO;

[0018] When currPktType is not a glEnd package, check whether clamp_vertex_color is on. If it is on, the components of the primary and secondary colors of the vertex are clamped to [0,1]. If it is not on, proceed to the next step.

[0019] 5) Get the plane parameters, get the clipping enable and A / B / C / D coefficients of the 7 planes. The enable information of the default plane is always valid;

[0020] 6) Determine whether the current plane is enabled

[0021] If enabled, the relationship between the primitive vertices and the plane is calculated first, and then the primitives are clipped according to the point, line, and triangle categories;

[0022] If it is not enabled, determine whether the current plane index is equal to 7. If it is not equal to 7, continue to determine whether the next plane is enabled. If it is equal to 7, pass the primVertex data to the projection transformation FIFO or split the polygon into triangles and pass them to the projection transformation FIFO for processing according to currVertexNum, then clear currVertexNum and return to step 2) determine the plane clipping FIFO state;

[0023] 7) After the points, lines, and triangles are clipped in step 6, the clipping results are determined.

[0024] As a preferred embodiment: the above step 3) specifically includes:

[0025] 3.1) Determine whether the current packet is a glEnd packet by using vabFlag and vaoFlag;

[0026] 3.2) The rasterPosFlag flag is used to determine whether the current package is a raster coordinate package;

[0027] 3.3) Parse the vtFlag field through simple_or_complex_mode, determine the primitive type and number of primitive vertices of the current packet in turn, and use vabFlag and vaoFlag to obtain all vertex information of the current primitive from the plane clipping FIFO.

[0028] As a preferred embodiment: in the above step 7), if the clipping is retained, it is determined whether the current plane index is equal to 7. If it is not equal to 7, it continues to determine whether the next plane is enabled. If it is equal to 7, it passes the primVertex data to the projection transformation FIFO or splits the polygon into triangles and passes them to the projection transformation FIFO for processing according to currVertexNum, then clears currVertexNum, and returns to step 2) to determine the plane clipping FIFO state;

[0029] If the clipping is discarded, determine the current command packet type. If it is the rasterPos packet type, set the 0th bit of the packet header to 1, then pass the primVertex data to the projection transformation FIFO, clear currVertexNum, and return to step 2 to determine the plane clipping FIFO status; if the packet type is not rasterPos, directly clear currVertexNum and return to step 2 to determine the plane clipping FIFO status.

[0030] The present invention has the following advantages:

[0031] The present invention provides a TLM device of a GPU plane clipping module based on a SysML view, which presents the overall design of the GPU plane clipping module function from two perspectives through the internal block diagram and activity diagram of the plane clipping module, converts complex and ambiguous text into a clear graphic mode, realizes the preliminary verification of the GPU plane clipping module architecture, provides modeling and visualization support for software and hardware development, shortens the design cycle, speeds up the development progress, and assists system design and verification. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 is an internal block diagram of the GPU plane clipping module of the present invention;

[0033] Figure 2 This is an activity diagram of the GPU plane clipping module processing process of the present invention. DETAILED DESCRIPTION

[0034] The technical solution of the present invention is described clearly and completely below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the protection scope of the present invention.

[0035] See also Figure 1-2 , a TLM device of a GPU plane clipping module based on a SysML view, comprising a plurality of processes and sockets; the processes comprising a geu2sgu_pcu_busy_manage_thread process and a PCU_process_cthread process; the PCU_process_cthread process is used to clip three basic primitives, namely, points, lines and triangles, according to the clipping planes and plane coefficients enabled by the user, and to form new basic primitives from the clipped vertex information;

[0036] The above sockets include geu2sgu_pcu_busy_socket socket, pcu2fifo01_vertex_data_initiator_socket socket, pcu2fifo02_vertex_data_initiator_socket socket, and pcu2gp_bitfiled_initiator_socket socket;

[0037] The above socket is used to realize the interconnection communication function with external modules.

[0038] An operation method of a TLM device of a GPU plane clipping module based on a SysML view comprises the following operation steps:

[0039] 1) Variable initialization;

[0040] 2) Determine the plane clipping FIFO status

[0041] When the FIFO status is empty, set geu2sgu_pcu_busy to 0 and return to step 1;

[0042] When the FIFO status is not empty, set geu2sgu_pcu_busy to 1;

[0043] 3) Get complete clipping data from the plane clipping FIFO

[0044] 4) Determine currPktType

[0045] When currPktType is glEnd packet, primVertex data is passed to projection transformation FIFO, then currVertexNum is cleared, and the process returns to step 2) to determine the state of plane clipping FIFO;

[0046] When currPktType is not a glEnd package, check whether clamp_vertex_color is on. If it is on, the components of the primary and secondary colors of the vertex are clamped to [0,1]. If it is not on, proceed to the next step.

[0047] 5) Get the plane parameters, get the clipping enable and A / B / C / D coefficients of the 7 planes. The enable information of the default plane is always valid;

[0048] 6) Determine whether the current plane is enabled

[0049] If enabled, the relationship between the primitive vertices and the plane is calculated first, and then the primitives are clipped according to the point, line, and triangle categories;

[0050] If it is not enabled, determine whether the current plane index is equal to 7. If it is not equal to 7, continue to determine whether the next plane is enabled. If it is equal to 7, pass the primVertex data to the projection transformation FIFO or split the polygon into triangles and pass them to the projection transformation FIFO for processing according to currVertexNum, then clear currVertexNum and return to step 2) determine the plane clipping FIFO state;

[0051] 7) After the points, lines, and triangles are clipped in step 6, the clipping results are determined.

[0052] As a preferred embodiment: the above step 3) specifically includes:

[0053] 3.1) Determine whether the current packet is a glEnd packet by using vabFlag and vaoFlag;

[0054] 3.2) The rasterPosFlag flag is used to determine whether the current package is a raster coordinate package;

[0055] 3.3) Parse the vtFlag field through simple_or_complex_mode, determine the primitive type and number of primitive vertices of the current packet in turn, and use vabFlag and vaoFlag to obtain all vertex information of the current primitive from the plane clipping FIFO.

[0056] As a preferred embodiment: in the above step 7), if the clipping is retained, it is determined whether the current plane index is equal to 7. If it is not equal to 7, it continues to determine whether the next plane is enabled. If it is equal to 7, it passes the primVertex data to the projection transformation FIFO or splits the polygon into triangles and passes them to the projection transformation FIFO for processing according to currVertexNum, then clears currVertexNum, and returns to step 2) to determine the plane clipping FIFO state;

[0057] If the clipping is discarded, determine the current command packet type. If it is the rasterPos packet type, set the 0th bit of the packet header to 1, then pass the primVertex data to the projection transformation FIFO, clear currVertexNum, and return to step 2 to determine the plane clipping FIFO status; if the packet type is not rasterPos, directly clear currVertexNum and return to step 2 to determine the plane clipping FIFO status.

[0058] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for operating a TLM device of a GPU plane clipping module based on a SysML view, characterized in that: The TLM device includes several processes and sockets; the processes include a geu2sgu_pcu_busy_manage_thread process and a PCU_process_cthread process; the PCU_process_cthread process is used to implement clipping of three basic primitives, namely, points, lines and triangles, according to the clipping planes and plane coefficients enabled by the user, and to form new basic primitives from the clipped vertex information; The socket includes a geu2sgu_pcu_busy_socket socket, pcu2fifo01_vertex_data_initiator_socket socket, pcu2fifo02_vertex_data_initiator_socket socket, pcu2gp_bitfiled_initiator_socket socket; The socket is used to realize the interconnection communication function with the external module. The operation method comprises the following steps: 1) Variable initialization; 2) Determine the plane clipping FIFO status When the FIFO status is empty, set geu2sgu_pcu_busy to 0 and return to step 1; When the FIFO status is not empty, set geu2sgu_pcu_busy to 1; 3) Get complete clipping data from the plane clipping FIFO 4) Determine currPktType When currPktType is glEnd packet, primVertex data is passed to projection transformation FIFO, then currVertexNum is cleared, and the process returns to step 2) to determine the state of plane clipping FIFO; When currPktType is not a glEnd package, check whether clamp_vertex_color is on. If it is on, the components of the primary and secondary colors of the vertex are clamped to [0,1]. If it is not on, proceed to the next step. 5) Get the plane parameters, get the clipping enable and A / B / C / D coefficients of the 7 planes. The enable information of the default plane is always valid; 6) Determine whether the current plane is enabled If enabled, the relationship between the primitive vertices and the plane is calculated first, and then the primitives are clipped according to the point, line, and triangle categories; If not enabled, determine whether the current plane index is equal to 7. If not equal to 7, continue to determine whether the next plane is enabled. If equal to 7, pass the primVertex data to the projection transformation FIFO or split the polygon into triangles and pass them to the projection transformation FIFO for processing according to currVertexNum, then clear currVertexNum and return to step 2) determine the plane clipping FIFO state; 7) After the points, lines and triangles are clipped in step 6), the clipping result is determined.

2. The method for operating a TLM device of a GPU plane clipping module based on a SysML view according to claim 1, characterized in that: The step 3) specifically includes: 3.1) Determine whether the current packet is a glEnd packet by using vabFlag and vaoFlag; 3.2) The rasterPosFlag flag is used to determine whether the current package is a raster coordinate package; 3.3) Parse the vtFlag field through simple_or_complex_mode, determine the primitive type and number of primitive vertices of the current packet in turn, and use vabFlag and vaoFlag to obtain all vertex information of the current primitive from the plane clipping FIFO.

3. The method for operating a TLM device of a GPU plane clipping module based on a SysML view according to claim 2, characterized in that: In step 7), if the clipping is retained, it is determined whether the current plane index is equal to 7. If it is not equal to 7, the next plane is enabled. If it is equal to 7, the primVertex data is passed to the projection transformation FIFO or the polygon is split into triangles and passed to the projection transformation FIFO for processing according to currVertexNum, and then currVertexNum is cleared, and the process returns to step 2) to determine the plane clipping FIFO state; If the clipping is discarded, determine the current command packet type. If it is the rasterPos packet type, set the 0th bit of the packet header to 1, then pass the primVertex data to the projection transformation FIFO, clear currVertexNum, and return to step 2 to determine the plane clipping FIFO status; if the packet type is not rasterPos, directly clear currVertexNum and return to step 2 to determine the plane clipping FIFO status.