A TLM device and operation method of GPU primitive assembly module based on SysML view

Through the TLM device of the GPU primitive assembly module based on the SysML view, the problem that the existing technology is difficult to meet the graphics processing needs is solved, the rapid verification and evaluation of the GPU system architecture is achieved, and the reliability and efficiency of the system model are improved.

CN112581584BActive Publication Date: 2024-10-29西安翔腾微电子科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing technology is difficult to meet graphics processing needs, especially when GPU development capabilities are weak, and there is a lack of effective hardware modeling tools to verify and understand the GPU system architecture.

Method used

The TLM device uses the GPU primitive assembly module based on the SysML view, including the PAU Block, PAU_CORE Block and PAU SC_CTHREAD modules. It performs data transmission and communication through socket channels and API services, provides API functions and Driver processes, and realizes primitive assembly and verification. .

Benefits of technology

Through hardware modeling in SysML view, the GPU system architecture can be quickly evaluated and verified, avoiding cumbersome circuit signal design, suitable for early system-level design and development of circuits, and improving the reliability and efficiency of the system model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112581584B_ABST
    Figure CN112581584B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of computer hardware modeling, and relates to a TLM device and an operation method of a GPU primitive assembly module based on a SysML view. It includes a PAU Block module, a PAU_CORE Block module and a PAU SC_CTHREAD module; the method steps include 1) variable initialization, fifoFlag is set to 0; 2) judging the value of fifoFlag; 3) judging whether geu_fifo1 and geu_fifo0 are empty; 4) obtaining a simple or complex mode; 5) get_data_from_fifo00(), get_data_from_fifo01(), assembling primitives for discrete vertexs and sending them to the PUC unit fifo. The present invention provides a TLM device and an operation method of a GPU primitive assembly module based on a SysML view, which can help developers better understand the system architecture, establish a more reliable and complete system model, and more efficiently verify the feasibility of the back-face blanking hardware structure.
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 primitive assembly module, and in particular to a TLM device and an operation method of a GPU primitive assembly module based on a SysML view. Background Art

[0002] With the continuous increase of graphical applications, the early solutions that relied solely on CPU for graphics rendering have been unable to meet the graphics processing needs of the growing performance and technology, and the Graphics Processing Unit (GPU) came into being. GPU uses a large number of computing units and has large-scale parallel computing capabilities, providing a good operating platform for graphics processing and general parallel computing. At present, my country's GPU research and development capabilities are weak, and a large number of commercial GPU chips imported from abroad are used in display control systems in various fields.

[0003] SysML (System Modeling Language), also known as system modeling language, is a general graphical modeling language for describing, analyzing, designing and verifying complex systems, providing modeling and visualization support for software development. SysML can help designers shorten design time, reduce improvement costs, and optimize the hardware and software segmentation.

[0004] Modeling back side culling through the SysML-based hardware TLM model for the GPU back side culling module can help developers better understand the system architecture, build a more reliable and complete system model, and more efficiently verify the feasibility of the back side culling hardware structure. 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 primitive assembly module based on a SysML view, which can help developers better understand the system architecture, establish a more reliable and complete system model, and more efficiently verify the feasibility of the back-face culling hardware structure.

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

[0007] A TLM device for GPU primitive assembly module based on SysML view, which is special in that:

[0008] Includes PAU Block module, PAU_CORE Block module and PAU SC_CTHREAD module;

[0009] The PAU Block module includes a pin-port port; the pin-port port includes a geu2sgu_bcu_busy port and simple_complex_fla and shadingstate_flag ports;

[0010] The PAU Block module also includes several socket channels for mutual communication; the socket channels include Pau2fifo00_vertex_data_initiator_socket channel,

[0011] Pau2fifo10_vertex_data_initiator_socket channel,

[0012] Pau2fifo01_vertex_data_initiator_socket channel,

[0013] Pau2fifo11_vertex_data_initiator_socket channel,

[0014] Pau2gp_bitfiled_initiator_socket channel;

[0015] The above PAU Block module, PAU_CORE Block module and PAU SC_CTHREAD module provide API services, as follows:

[0016] API::get_simple_complex_flag()、

[0017] API::get_shadingstate_flag()、

[0018] API::get_data_from_fifo00()、

[0019] API::get_data_from_fifo10()、

[0020] API::send_data_to_fifo01(),

[0021] API::send_data_to_fifo11(),

[0022] api::get_pau_busy_status();

[0023] A Driver process is also set between the above PAU Block module, PAU_CORE Block module and PAU SC_CTHREAD module, as follows:

[0024] Geu2sgu_pau_busy_manage_thread;

[0025] The meaning of the above API functions is: if the parent class wants to access the function method in the child class, it needs to implement the pure virtual function in the parent class, declare and instantiate the API function in the child class; the above pure virtual function is the function name of the corresponding API;

[0026] The meaning of the above API function is: the subclass can directly inherit the API function in the parent class, and the subclass can directly call this API function;

[0027] The above socket channel is a bidirectional channel that can transmit data in both directions.

[0028] The above Pau2fifo00_vertex_data_initiator_socket obtains the vertex data information from the OCU module, and is processed by the primitive assembly of the PAU module, and is sent to the plane clipping module (PCU) fifo by Pau2fifo01_vertex_data_initiator_socket;

[0029] The above Pau2fifo10_vertex_data_initiator_socket obtains another set of vertex data information from the OCU module, and is processed by the primitive assembly of the PAU module, and is sent to the plane clipping module (PCU) fifo by Pau2fifo11_vertex_data_initiator_socket;

[0030] The above Pau2gp_bitfiled_initiator_socket channel is used by the PAU_CORE module to access the register data information in the GP, and the accsee_gp_bitfield() function is called during access.

[0031] The above API::get_simple_complex_flag() and API::get_shadingstate_flag() are used to obtain different flag signals. The driver process of Geu2sgu_pau_busy_manage_thread monitors the geu2sgu_pau_busy signal, and the PAU_CORE module calls api::get_pau_busy_status() to obtain the signal.

[0032] An operation method of a TLM device of a GPU primitive assembly module based on a SysML view is characterized in that it comprises the following steps:

[0033] 1) Initialize the variables and set fifoFlag to 0;

[0034] 2) Determine the value of fifoFlag;

[0035] 3) Determine whether geu_fifo1 and geu_fifo0 are empty;

[0036] 4) Get simple or complex mode;

[0037] 5) get_data_from_fifo00(), get_data_from_fifo01(), assemble the discrete vertexes into primitives and send them to the PUC unit fifo.

[0038] The above step 2) determines that the value of fifoFlag requires dual-path parallel processing of vertex data; the above TLM device input end accesses one fifo each time, and the two fifos need to be accessed in turn; the above TLM device has two socket channels and two fifos at the input end, and each socket channel accesses its corresponding fifo; the above TLM device output end is provided with two socket channels;

[0039] The above fifoFlag is used as a mark. When it is 0, access fifo0. If it is empty, Geu2sgu_pau_busy is set to 0 to continue waiting; if it is not empty, Geu2sgu_pau_busy is set to 1, fifoFlag is set to 1, and execution continues; when it is 1, access fifo1. If it is empty, Geu2sgu_pau_busy is set to 0 to continue waiting; if it is not empty, Geu2sgu_pau_busy is set to 1, fifoFlag is set to 0, and execution continues.

[0040] The above step 5) discrete vertexes in the primitive assembly process includes the following steps:

[0041] 5.1) When the discrete vertexs is of glEnd type, check the line loop status. If it is established, assemble the last line primitive of the line loop, glBeginflag = 0, fifoFlag = 0; if it is not established, glBeginflag = 0, fifoFlag = 0;

[0042] 5.2) When the discrete vertexs is of type raspos, determine the value of glBeginflag. If it is 1, pause and exit. If it is not 1, continue to execute downward.

[0043] 5.3) When the discrete vertexs are of vertex type; judge the value of assembleflag. If it is not 0, set assembleflag to 0. If it is 0, judge the value of glBeginflag. If the value of glBeginflag is 1, judge the magnitudes of currNUM and needNUM. If currNUM >= needNUM, assemble the graphic primitive. If currNUM < needNUM, exit the process. If the value of glBeginflag is not 1, obtain the type of the graphic primitive to be assembled and the number of vertices of the basic graphic primitive needVertexNum, set glBeginflag = 1, and primitiveStart = true;

[0044] 5.4) Judge the type of the graphic primitive;

[0045] If the type of the graphic primitive is GL_LINE_LOOP, save the information of the first vertex. If it is not GL_LINE_LOOP, do nothing. Then continue to judge the magnitudes of currNUM and needNUM;

[0046] 5.5) After the processing of the three types of graphic primitives is completed, judge the value of ClipFifoFlag. If ClipFifoFlag is 0, send the assembled graphic primitive to the planar clipping FIFO0, and at the same time set ClipFifoFlag to 1. If ClipFifoFlag is not 0, send the assembled graphic primitive to the planar clipping FIFO1, and at the same time set ClipFifoFlag to 0.

[0047] Advantages and effects of the present invention:

[0048] A TLM device and operation method of a GPU graphic primitive assembly module based on SysML views provided by the present invention. The hardware view device for GPU graphic primitive assembly of SysML includes a SysML basic structure diagram and a SysML basic flowchart. The SysML basic structure diagram includes processes, ports, and interfaces, and the SysML basic flowchart describes the GPU graphic primitive assembly process. The method adopted by the present invention is to use SYSML for hardware view modeling, which can avoid cumbersome circuit signal design and quickly evaluate the architecture of large-scale hardware systems, and is applicable to the system-level design and development in the early stage of circuits. Description of the drawings

[0049] Figure 1 It is a structure diagram of the TLM device for the GPU graphic primitive assembly module of the SysML view;

[0050] Figure 2 It is a flowchart (a) of the TLM device for the GPU graphic primitive assembly module of the SysML view;

[0051] Figure 3 TLM device flow chart for GPU primitive assembly module of SysML view (b);

[0052] Among them, 1-PAU Block module, 2-PAU_CORE Block module, 3-PAU SC_CTHREAD module. DETAILED DESCRIPTION

[0053] 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.

[0054] See also Figure 1-3 , a TLM device for GPU primitive assembly module based on SysML view, which is special in that:

[0055] It includes PAU Block module 1, PAU_CORE Block module 2 and PAU SC_CTHREAD module 3;

[0056] The PAU Block module includes a pin-port port; the pin-port port includes a geu2sgu_bcu_busy port and simple_complex_fla and shadingstate_flag ports;

[0057] The PAU Block module also includes several socket channels for mutual communication; the socket channels include Pau2fifo00_vertex_data_initiator_socket channel,

[0058] Pau2fifo10_vertex_data_initiator_socket channel,

[0059] Pau2fifo01_vertex_data_initiator_socket channel,

[0060] Pau2fifo11_vertex_data_initiator_socket channel,

[0061] Pau2gp_bitfiled_initiator_socket channel;

[0062] The above PAU Block module, PAU_CORE Block module and PAU SC_CTHREAD module provide API services, as follows:

[0063] API::get_simple_complex_flag()、

[0064] API::get_shadingstate_flag()、

[0065] API::get_data_from_fifo00()、

[0066] API::get_data_from_fifo10()、

[0067] API::send_data_to_fifo01(),

[0068] API::send_data_to_fifo11(),

[0069] api::get_pau_busy_status();

[0070] A Driver process is also set between the above PAU Block module, PAU_CORE Block module and PAU SC_CTHREAD module, as follows:

[0071] Geu2sgu_pau_busy_manage_thread;

[0072] The meaning of the above API functions is: if the parent class wants to access the function method in the child class, it needs to implement the pure virtual function in the parent class, declare and instantiate the API function in the child class; the above pure virtual function is the function name of the corresponding API;

[0073] The meaning of the above API function is: the subclass can directly inherit the API function in the parent class, and the subclass can directly call this API function;

[0074] The above socket channel is a bidirectional channel that can transmit data in both directions.

[0075] The above Pau2fifo00_vertex_data_initiator_socket obtains the vertex data information from the OCU module, and is processed by the primitive assembly of the PAU module, and is sent to the plane clipping module (PCU) fifo by Pau2fifo01_vertex_data_initiator_socket;

[0076] The above Pau2fifo10_vertex_data_initiator_socket obtains another set of vertex data information from the OCU module, and is processed by the primitive assembly of the PAU module, and is sent to the plane clipping module (PCU) fifo by Pau2fifo11_vertex_data_initiator_socket;

[0077] The above Pau2gp_bitfiled_initiator_socket channel is used by the PAU_CORE module to access the register data information in the GP, and the accsee_gp_bitfield() function is called during access.

[0078] The above API::get_simple_complex_flag() and API::get_shadingstate_flag() are used to obtain different flag signals. The driver process of Geu2sgu_pau_busy_manage_thread monitors the geu2sgu_pau_busy signal, and the PAU_CORE module calls api::get_pau_busy_status() to obtain the signal.

[0079] An operation method of a TLM device of a GPU primitive assembly module based on a SysML view is characterized in that it comprises the following steps:

[0080] 1) Initialize the variables and set fifoFlag to 0;

[0081] 2) Determine the value of fifoFlag;

[0082] 3) Determine whether geu_fifo1 and geu_fifo0 are empty;

[0083] 4) Get simple or complex mode;

[0084] 5) get_data_from_fifo00(), get_data_from_fifo01(), assemble the discrete vertexes into primitives and send them to the PUC unit fifo.

[0085] The above step 2) determines that the value of fifoFlag requires dual-path parallel processing of vertex data; the above TLM device input end accesses one fifo each time, and the two fifos need to be accessed in turn; the above TLM device has two socket channels and two fifos at the input end, and each socket channel accesses its corresponding fifo; the above TLM device output end is provided with two socket channels;

[0086] The above fifoFlag serves as a marker. When it is 0, fifo0 is accessed. If it is empty, Geu2sgu_pau_busy is set to 0 and continues to wait; if it is not empty, Geu2sgu_pau_busy is set to 1, fifoFlag is set to 1, and execution continues downward. When it is 1, fifo1 is accessed. If it is empty, Geu2sgu_pau_busy is set to 0 and continues to wait; if it is not empty, Geu2sgu_pau_busy is set to 1, fifoFlag is set to 0, and execution continues downward.

[0087] The above step 5) The discrete vertexs in the primitive assembly process include the following steps:

[0088] 5.1) When the discrete vertexs are of the glEnd type, check the line loop status. If it holds, assemble the last line primitive of the line loop, glBeginflag = 0, fifoFlag = 0; if it does not hold, glBeginflag = 0, fifoFlag = 0;

[0089] 5.2) When the discrete vertexs are of the raspos type, judge the value of glBeginflag. If it is 1, pause and exit; if it is not 1, continue to execute downward;

[0090] 5.3) When the discrete vertexs are of the vertex type; judge the value of assembleflag. If it is not 0, assembleflag is set to 0; if it is 0, judge the value of glBeginflag; if the value of glBeginflag is 1, judge the size of currNUM and needNUM. If currNUM >= needNUM, assemble the primitive; if currNUM < needNUM, exit the process; if the value of glBeginflag is not 1, obtain the type of the primitive to be assembled and the number of vertices of the basic primitive needVertexNum, glBeginflag = 1, primitiveStart = true;

[0091] 5.4) Judge the primitive type;

[0092] If the primitive type is GL_LINE_LOOP, save the information of the first vertex; if it is not GL_LINE_LOOP, do nothing; then continue to judge the size of currNUM and needNUM;

[0093] 5.5) After the three types of primitives are processed, the value of ClipFifoFlag is determined. If ClipFifoFlag is 0, the assembled primitives are sent to plane clipping FIFO0, and ClipFifoFlag is set to 1; if ClipFifoFlag is not 0, the assembled primitives are sent to plane clipping FIFO1, and ClipFifoFlag is set to 0.

[0094] Example

[0095] A TLM device of a GPU primitive assembly module based on a SysML view includes a GPU primitive assembly module (PAU) structure diagram based on a SysML view, a GPU primitive assembly module (PAU) flow chart based on a SysML view (a), and a GPU primitive assembly module (PAU) flow chart based on a SysML view (b).

[0096] like Figure 1A TLM device structure diagram of a GPU primitive assembly module based on SysML view is shown, wherein the GPU primitive assembly module (PAU) structure diagram includes three modules: PAUBlock, PAU_CORE Block, and PAU SC_CTHREAD; a portion of the pin-port ports are as follows: geu2sgu_pau_busy, simple_complex_fla, and shadingstate_flag; a portion of the socket channels are as follows: Pau2fifo00_vertex_data_initiator_socket, Pau2fifo10_vertex_data_initiator_socket, Pau2fifo01_vertex_data_initiator_socket, Pau2fifo11_vertex_data_initiator_socket, and Pau2gp_bitfiled_i nitiator_socket; API services are provided between different submodules, as follows: API::get_simple_complex_flag(), API::get_shadingstate_flag(), API::get_data_from_fifo00(), API::get_data_from_fifo10(), API::send_data_to_fifo01(), API::send_data_to_fifo11(), api::get_pau_busy_status(); and a Driver process Geu2sgu_pau_busy_manage_thread. The meaning of the API function is as follows. If the parent class wants to access the function method in the child class, it needs to implement a pure virtual function (corresponding to the API function name) in the parent class, declare and instantiate the API function in the child class. The meaning of the api function is as follows. The child class can directly inherit the api function in the parent class, and can directly call this api function in the child class. Modules communicate using socket channels. Socket is a two-way channel that can transmit data in both directions.Pau2fifo00_vertex_data_initiator_socke obtains vertex data information from the OCU module, and through the primitive assembly processing of the PAU module, it is sent to the plane clipping module (PCU) fifo by Pau2fifo01_vertex_data_initiator_socket; Pau2fifo10_vertex_data_initiator_socke obtains another set of vertex data information from the OCU module, and through the primitive assembly processing of the PAU module, it is sent to the plane clipping module (PCU) fifo by Pau2fifo11_vertex_data_initiator_socket. The Pau2gp_bitfiled_initiator_socket channel is used for the PAU_CORE module to access the register data information in the GP, and the accsee_gp_bitfield() function is called when accessing. API::get_simple_complex_flag() and API::get_shadingstate_flag() are used to obtain different flag signals. The driver process of geu2sgu_pau_busy_manage_thread monitors the geu2sgu_pau_busy signal, and the PAU_CORE module calls api::get_pau_busy_status() to obtain the signal.

[0097] like Figure 2The flowchart of the GPU primitive assembly module (PAU) based on the SysML view (a), its behavior steps include: variable initialization (fifoFlag is set to 0), judging the value of fifoFlag, judging whether geu_fifo1 is empty, judging whether geu_fifo0 is empty, obtaining simple / complex mode, get_data_from_fifo00(), get_data_from_fifo01(), assembling discrete vertexes and sending them to the PUC unit fifo. The specific assembly process is described in the flowchart of the GPU primitive assembly module (PAU) based on the SysML view (b). The flowchart of the GPU primitive assembly module (PAU) based on the SysML view (a) mainly describes how the primitive assembly unit realizes dual-path parallel processing of vertex data. The PAU accesses one fifo each time, and the two fifos need to be accessed in turn. There are two sockets and two fifos at the input end of a PAU, and each socket accesses its corresponding fifo. Similarly, the output end of the PAU is designed in the same way. As a flag, when it is 0, access fifo0. If it is empty, Geu2sgu_pau_busy is set to 0 and continue to wait. If it is not empty, Geu2sgu_pau_busy is set to 1, fifoFlag is set to 1, and the execution continues. When it is 1, access fifo1. If it is empty, Geu2sgu_pau_busy is set to 0 and continue to wait. If it is not empty, Geu2sgu_pau_busy is set to 1, fifoFlag is set to 0, and the execution continues.

[0098] The flowchart of the GPU primitive assembly module (PAU) based on the SysML view (b) includes the following steps: determining the glEnd package type, determining the raspos package type, determining the vertex package type, assembling primitives, obtaining the type of primitives to be assembled and the basic primitive fixed-point number needVertexNum, assembling the last primitive of the line loop, sending the assembled primitives to the plane clipping FIFO1, sending the assembled primitives to the plane clipping FIFO0, saving the first vertex information, etc.

[0099] Flowchart (b) of the GPU primitive assembly module (PAU) based on SysML views mainly describes how the primitive assembly unit realizes assembling vertices into primitives according to primitive types and sending them to the next-level fifo. First, judge the packet type. If it is the glEnd type (this path is recorded as process 1), check the line loop status. If it holds, assemble the last line primitive of the line loop, glBeginflag = 0, fifoFlag = 0; if it does not hold, glBeginflag = 0, fifoFlag = 0. If it is the raspos type (this path is recorded as process 2), judge the value of glBeginflag. If it is 1, pause and exit; if it is not 1, continue to execute downward. If it is the vertex type, judge the value of assembleflag. If it is not 0, set assembleflag to 0; if it is 0, judge the value of glBeginflag. If the value of glBeginflag is 1, judge the magnitudes of currNUM and needNUM. If currNUM >= needNUM, assemble the primitive; if currNUM < needNUM, exit the process. If the value of glBeginflag is not 1, obtain the primitive type to be assembled and the number of vertices of the basic primitive needVertexNum, glBeginflag = 1, primitiveStart = true. Judge the primitive type (graphDrawType). If it is GL_LINE_LOOP, save the information of the first vertex; if it is not GL_LINE_LOOP, do nothing. Then continue to judge the magnitudes of currNUM and needNUM, and the process is as shown above. After processing the three primitive types, judge the value of ClipFifoFlag. If ClipFifoFlag is 0, send the assembled primitive to the plane clipping FIFO0, and at the same time set ClipFifoFlag to 1; if ClipFifoFlag is not 0, send the assembled primitive to the plane clipping FIFO1, and at the same time set ClipFifoFlag to 0. Immediately afterwards, continue to select and judge the branch of the value of glBeginflag, and the specific process is as shown above.

[0100] 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 them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A TLM device for GPU primitive assembly module based on SysML view, characterized in that: Includes PAU Block module, PAU_CORE Block module and PAU SC_CTHREAD module; The PAU Block module includes a pin-port port; the pin-port port includes a geu2sgu_bcu_busy port and a simple_complex_fla and a shadingstate_flag port; The PAU Block module also includes several socket channels for mutual communication; the socket channels include Pau2fifo00_vertex_data_initiator_socket channel, Pau2fifo10_vertex_data_initiator_socket channel, Pau2fifo01_vertex_data_initiator_socket channel, Pau2fifo11_vertex_data_initiator_socket channel, Pau2gp_bitfiled_initiator_socket channel; The PAU Block module, PAU_CORE Block module and PAU SC_CTHREAD module provide API services, as follows: API::get_simple_complex_flag(), API::get_shadingstate_flag()、 API::get_data_from_fifo00()、 API::get_data_from_fifo10()、 API::send_data_to_fifo01(), API::send_data_to_fifo11(), api::get_pau_busy_status(); A Driver process is also provided between the PAU Block module, the PAU_CORE Block module and the PAU SC_CTHREAD module, as follows: Geu2sgu_pau_busy_manage_thread; The API function means: if the parent class wants to access the function method in the child class, it needs to implement the pure virtual function in the parent class and declare and instantiate the API function in the child class; the pure virtual function is the function name of the corresponding API; The API function means that the subclass can directly inherit the API function in the parent class, and the subclass can directly call this API function; The Pau2fifo00_vertex_data_initiator_socket obtains the vertex data information from the OCU module, and is processed by the primitive assembly of the PAU module, and is sent to the plane clipping module (PCU) fifo by the Pau2fifo01_vertex_data_initiator_socket; The Pau2fifo10_vertex_data_initiator_socket obtains another set of vertex data information from the OCU module, and is processed by the primitive assembly of the PAU module, and is sent to the plane clipping module (PCU) fifo by the Pau2fifo11_vertex_data_initiator_socket; The Pau2gp_bitfiled_initiator_socket channel is used by the PAU_CORE module to access the register data information in the GP, and the accsee_gp_bitfield() function is called during access; The API::get_simple_complex_flag() and API::get_shadingstate_flag() are used to obtain different flag signals; the driver process of Geu2sgu_pau_busy_manage_thread monitors the geu2sgu_pau_busy signal, and the PAU_CORE module calls api::get_pau_busy_status() to obtain the signal.

2. The TLM device of the GPU primitive assembly module based on SysML view according to claim 1, characterized in that: The socket channel is a bidirectional channel that can perform bidirectional data transmission.

3. The method for operating the TLM device of the GPU primitive assembly module based on SysML view according to claim 1, characterized in that: The following steps are involved: 1) Variable initialization, fifoFlag is set to 0; 2) Determine the value of fifoFlag; 3) Determine whether geu_fifo1 and geu_fifo0 are empty; 4) Get simple or complex patterns; 5) get_data_from_fifo00(), get_data_from_fifo01(), assemble the discrete vertexes into primitives and send them to the PUC unit fifo.

4. The method for operating a TLM device of a GPU primitive assembly module based on a SysML view according to claim 3, characterized in that: The step 2) determines that the value of fifoFlag requires dual-path parallel processing of vertex data; the input end of the TLM device accesses one fifo each time, and the two fifos need to be accessed in turn; the input end of the TLM device has two socket channels and two fifos, and each socket channel accesses its corresponding fifo; the output end of the TLM device is provided with two socket channels; The fifoFlag is used as a flag. When it is 0, fifo0 is accessed. If it is empty, Geu2sgu_pau_busy is set to 0 and waiting continues; if it is not empty, Geu2sgu_pau_busy is set to 1, fifoFlag is set to 1, and execution continues downward. When it is 1, fifo1 is accessed. If it is empty, Geu2sgu_pau_busy is set to 0 and waiting continues; if it is not empty, Geu2sgu_pau_busy is set to 1, fifoFla is set to 0, and execution continues downward.

5. The method for operating a TLM device of a GPU primitive assembly module based on a SysML view according to claim 4, characterized in that: The discrete vertexs in step 5) include the following steps during primitive assembly: 5.1) When the discrete vertexs are of the glEnd type, check the line loop status. If it holds, assemble the last line primitive of the line loop, glBeginflag = 0, fifoFlag = 0; if it does not hold, glBeginflag = 0, fifoFlag = 0; 5.2) When the discrete vertexs are of the raspos type, judge the value of glBeginflag. If it is 1, pause and exit; if it is not 1, continue execution downward; 5.3) When the discrete vertexs are of the vertex type; judge the value of assembleflag. If it is not 0, set assembleflag to 0; if it is 0, judge the value of glBeginflag; if the value of glBeginflag is 1, judge the sizes of currNUM and needNUM. If currNUM >= needNUM, assemble the primitive; if currNUM < needNUM, exit the process; if the value of glBeginflag is not 1, obtain the type of the primitive to be assembled and the number of vertices of the basic primitive needVertexNum, glBeginflag = 1, primitiveStart = true; 5.4) Judge the primitive type; If the primitive type is GL_LINE_LOOP, save the information of the first vertex; if it is not GL_LINE_LOOP, do nothing; then continue to judge the sizes of currNUM and needNUM; 5.5) After processing the three primitive types, judge the value of ClipFifoFlag. If ClipFifoFlag is 0, send the assembled primitive to the plane clipping FIFO0, and at the same time set ClipFifoFlag to 1; if ClipFifoFlag is not 0, send the assembled primitive to the plane clipping FIFO1, and at the same time set ClipFifoFlag to 0.

Citation Information

Patent Citations

  • System element view-based visual modelling method for constructing system view

    CA2952115A1

  • Function calling method and device

    CN105183571A