A TLM device and operation method of a GPU backside blanking module based on SysML view
Through the GPU back blanking module TLM device based on SysML view, the problem of insufficient security and reliability of the graphics processor chip in the military environment is solved, a more reliable system model and efficient hardware verification are achieved, and the development of my country's display system is promoted. Independent research and development.
Patent Information
- Application Number
- CN202011542848.9
- 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
Existing technology is difficult to meet the security and reliability requirements of graphics processor chips in military environments, resulting in restrictions on the independent research and development of my country's display systems.
The TLM device using the GPU backside blanking module based on SysML view, including BCU Block, BCU_CORE Block and BCU SC_CTHREAD modules, performs hardware modeling through API services and monitoring processes to achieve verification and optimization of the backside blanking function.
Through the SysML view model, developers can better understand the system architecture, build a more reliable system model, improve the feasibility and efficiency of the backside blanking hardware structure, and are suitable for early system-level design and development of circuits.
Smart Images

Figure CN112581587B_ABST
Abstract
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 backside blanking module, and in particular to a TLM device and an operation method of a GPU backside blanking 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 drawing 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. Especially in the military field, imported commercial GPU chips from abroad have hidden dangers in terms of security, reliability, and security, and cannot meet the needs of military environments; the above problems have seriously restricted the independent research and development of my country's display systems, and it is urgent to break through the key technologies of graphics processors and develop graphics processor chips.
[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 a SysML-based hardware TLM device 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 back side culling 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 side culling hardware structure.
[0006] The technical solution of the present invention is:
[0007] A TLM device for GPU backface blanking module based on SysML view, which is special in that:
[0008] Includes BCU Block module, BCU_CORE Block module and BCU SC_CTHREAD module;
[0009] The BCU Block module includes a pin-port port; the pin-port port includes a geu2sgu_bcu_busy port and a geu_exception_status port;
[0010] The BCU Block module also includes several socket channels for mutual communication; the socket channels include geu2axi0_initiator_socket channel,
[0011] bcu2fifo05_vertex_data_initiator_socket channel,
[0012] sgu2geu_funcode_target_socket channel,
[0013] bcu2fifo06_vertex_data_initiator_socket channel,
[0014] Geu2jsu_register_domain_initiator_socket channel,
[0015] Bcu2gp_bitfiled_initiator_socket channel,
[0016] bcu2ip_register_domain_initiator_socket channel;
[0017] The BCU Block module, BCU_CORE Block module and BCU SC_CTHREAD module provide API services, as follows:
[0018] API::send_feedback / selectdata_to_axi0()、
[0019] API::get_data_from_fifo05()、
[0020] API::send_data_to_fifo06(),
[0021] API::access_gvp_bitfiled(),
[0022] API::access_ip_bitfiled(),
[0023] api::get_bcu_busy_status(),
[0024] api::get_exception_status()、
[0025] api::send_funcode_to_geu();
[0026] A monitor process is also provided between the BCU Block module, the BCU_CORE Block module and the BCU SC_CTHREAD module, as follows:
[0027] Geu2sgu_bcu_busy_manage_thread,
[0028] Geu2sgu_exception_initiator_method;
[0029] 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;
[0030] 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;
[0031] As a preferred embodiment: the above socket channel is a bidirectional channel, which can perform bidirectional data transmission;
[0032] As a preferred embodiment: the bcu2fifo05_vertex_data_initiator_socket channel obtains the vertex data information from the OCU module, and sends it to the rasterization module (PRU) fifo through the bcu2fifo06_vertex_data_initiator_socket channel through the primitive blanking processing of the BCU module;
[0033] As a preferred embodiment: the geu2axi0_initiator_socket channel obtains the function code information from the BCU module, and is sent to the rasterization module (PRU) fifo by the Bcu2fifo11_vertex_data_initiator_socket channel through the selection feedback processing of the BCU module;
[0034] As a preferred embodiment: the bcu2gp_bitfiled_initiator_socket channel is used by the BCU_CORE module to access the register data information in the GP, and the accsee_gp_bitfield() function is called during access;
[0035] As a preferred embodiment: the above API::get_simple_complex_flag() and API::get_shadingstate_flag() are used to obtain different flag signals;
[0036] As a preferred embodiment: the Monitor process of the above-mentioned Geu2sgu_bcu_busy_manage_thread monitors the geu2sgu_bcu_busy signal, and the BCU_CORE module calls api::get_bcu_busy_status() to obtain the signal;
[0037] As a preferred embodiment: the Monitor process of the above-mentioned Geu2sgu_exception_initiator_method monitors the geu_exception_status signal, and the BCU_CORE module calls api::get_exception_status() to obtain the signal.
[0038] An operation method of a TLM device of a GPU backside blanking module based on a SysML view, which is special in that it comprises the following steps:
[0039] 1) Variable initialization
[0040] Determine whether the back blanking FIFO is empty. If it is not empty, BUSY is set to 1.
[0041] 2) Backface culling
[0042] Get the image data from FIFO and then perform backface culling.
[0043] 3) Determine the function code
[0044] When FIFO is empty, the funcodeValid value is judged. If it is true, BUSY is set to 1, the function code is judged, and different operations are taken for different function codes.
[0045] As a preferred embodiment: the above step 2) needs to determine the packet type;
[0046] When the packet type is a glEnd packet, it is sent to the PRU unit FIFO;
[0047] When the packet type is not a triangle packet type, it is sent to the PRU unit FIFO;
[0048] When the package type is a triangle package type, the viewpoint is calculated to see whether the triangle is the back or front side, and then the face of the triangle is hidden to determine the hidden result; if it is not culled, the triangle is subjected to point drawing, line drawing and filling operations; if it is hidden culled, the triangle is not output and the CurrentVertexNum value is cleared.
[0049] As a preferred embodiment: the above step 3) determining the function code includes:
[0050] When the function code is glRendMode, determine the selectFlag value, if it is 1, update the DDR buffer;
[0051] When the function code is glBitmap, glDrawPixel, glCopyPixel, glPassThrough, determine the state of the sampling register;
[0052] If it is feedback, get RasterPos coordinates, primary color, and zero-layer texture coordinates (s, t, r, q) from IPU and JSU, and update the corresponding buffer;
[0053] If it is glInitName, glPopName, glPushName, glLoadName, determine the state of the sampling register;
[0054] If it is select, determine the selectFlag value. If it is 1, update the click record, update the corresponding buffer, and set selectFlag to 0. If selectFlag is not 1, update the num and name of name in the name stack. Finally, after all branches are completed, generate a function completion signal pulse.
[0055] The present invention has the following advantages:
[0056] The present invention provides a GPU back-face blanking module TLM model based on SysML view. The present invention relates to the technical field of computer hardware modeling, and in particular to a hardware TLM model of a GPU back-face blanking module based on SysML view. The hardware view model of the GPU back-face blanking of SysML includes a SysML basic structure diagram and a SysML basic flow chart. The SysML basic structure diagram includes processes, ports and interfaces, and the SysML basic flow chart describes the GPU back-face blanking process. The method adopted by the present invention is to use SYSML for hardware view modeling, which can avoid cumbersome circuit signal design, quickly evaluate the architecture of large-scale hardware systems, and is suitable for early system-level design and development of circuits. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 It is a schematic diagram of the TLM device structure of the GPU back surface blanking module in SysML view;
[0058] Among them, 1-BCU Block module, 2-BCU_CORE Block module, 3-BCU SC_CTHREAD module. DETAILED DESCRIPTION
[0059] 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.
[0060] See also Figure 1 , a TLM device of GPU backface blanking module based on SysML view, its special features are:
[0061] It includes BCU Block module 1, BCU_CORE Block module 2 and BCU SC_CTHREAD module 3;
[0062] The BCU Block module includes a pin-port port; the pin-port port includes a geu2sgu_bcu_busy port and a geu_exception_status port;
[0063] The BCU Block module also includes several socket channels for mutual communication; the socket channels include geu2axi0_initiator_socket channel,
[0064] bcu2fifo05_vertex_data_initiator_socket channel,
[0065] sgu2geu_funcode_target_socket channel,
[0066] bcu2fifo06_vertex_data_initiator_socket channel,
[0067] Geu2jsu_register_domain_initiator_socket channel,
[0068] Bcu2gp_bitfiled_initiator_socket channel,
[0069] bcu2ip_register_domain_initiator_socket channel;
[0070] The above BCU Block module, BCU_CORE Block module and BCU SC_CTHREAD module provide API services, as follows:
[0071] API::send_feedback / selectdata_to_axi0()、
[0072] API::get_data_from_fifo05()、
[0073] API::send_data_to_fifo06(),
[0074] API::access_gvp_bitfiled(),
[0075] API::access_ip_bitfiled(),
[0076] api::get_bcu_busy_status(),
[0077] api::get_exception_status()、
[0078] api::send_funcode_to_geu();
[0079] A monitor process is also set between the above BCU Block module, BCU_CORE Block module and BCU SC_CTHREAD module, as follows:
[0080] Geu2sgu_bcu_busy_manage_thread,
[0081] Geu2sgu_exception_initiator_method;
[0082] 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;
[0083] 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;
[0084] The above socket channel is a bidirectional channel that can transmit data in both directions;
[0085] The bcu2fifo05_vertex_data_initiator_socket channel obtains the vertex data information from the OCU module, passes through the primitive blanking process of the BCU module, and is sent to the rasterization module (PRU) fifo by the bcu2fifo06_vertex_data_initiator_socket channel;
[0086] The above-mentioned geu2axi0_initiator_socket channel obtains the function code information from the BCU module, is processed by the selection feedback of the BCU module, and is sent to the rasterization module (PRU) fifo by the Bcu2fifo11_vertex_data_initiator_socket channel;
[0087] The bcu2gp_bitfiled_initiator_socket channel is used by the BCU_CORE module to access the register data information in the GP, and the accsee_gp_bitfield() function is called during access.
[0088] The above API::get_simple_complex_flag() and API::get_shadingstate_flag() are used to obtain different flag signals;
[0089] The Monitor process of the above Geu2sgu_bcu_busy_manage_thread monitors the geu2sgu_bcu_busy signal, and the BCU_CORE module calls api::get_bcu_busy_status() to obtain the signal;
[0090] The Monitor process of the above Geu2sgu_exception_initiator_method monitors the geu_exception_status signal, and the BCU_CORE module calls api::get_exception_status() to obtain the signal.
[0091] An operation method of a TLM device of a GPU backside blanking module based on a SysML view, which is special in that it comprises the following steps:
[0092] 1) Variable initialization
[0093] Determine whether the back blanking FIFO is empty. If it is not empty, BUSY is set to 1.
[0094] 2) Backface culling
[0095] Get the image data from FIFO and then perform backface culling.
[0096] 3) Determine the function code
[0097] When FIFO is empty, the funcodeValid value is judged. If it is true, BUSY is set to 1, the function code is judged, and different operations are taken for different function codes.
[0098] The above step 2) requires determining the packet type;
[0099] When the packet type is a glEnd packet, it is sent to the PRU unit FIFO;
[0100] When the packet type is not a triangle packet type, it is sent to the PRU unit FIFO;
[0101] When the package type is a triangle package type, the viewpoint is calculated to see whether the triangle is the back or front side, and then the face of the triangle is hidden to determine the hidden result; if it is not culled, the triangle is subjected to point drawing, line drawing and filling operations; if it is hidden culled, the triangle is not output and the CurrentVertexNum value is cleared.
[0102] The above step 3) determines the function code including:
[0103] When the function code is glRendMode, determine the selectFlag value, if it is 1, update the DDR buffer;
[0104] When the function code is glBitmap, glDrawPixel, glCopyPixel, glPassThrough, determine the state of the sampling register;
[0105] If it is feedback, get RasterPos coordinates, primary color, and zero-layer texture coordinates (s, t, r, q) from IPU and JSU, and update the corresponding buffer;
[0106] If it is glInitName, glPopName, glPushName, glLoadName, determine the state of the sampling register;
[0107] If it is select, determine the selectFlag value. If it is 1, update the click record, update the corresponding buffer, and set selectFlag to 0. If selectFlag is not 1, update the num and name of name in the name stack. Finally, after all branches are completed, generate a function completion signal pulse.
[0108] 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 TLM device for GPU backside blanking module based on SysML view, characterized in that: Includes BCU Block module, BCU_CORE Block module and BCU SC_CTHREAD module; The BCU Block module includes a pin-port port; the pin-port port includes a geu2sgu_bcu_busy port and a geu_exception_status port; The BCU Block module also includes several socket channels for mutual communication; the socket channels include geu2axi0_initiator_socket channel, bcu2fifo05_vertex_data_initiator_socket channel, sgu2geu_funcode_target_socket channel, bcu2fifo06_vertex_data_initiator_socket channel, Geu2jsu_register_domain_initiator_socket channel, Bcu2gp_bitfiled_initiator_socket channel, bcu2ip_register_domain_initiator_socket channel; The BCU Block module, BCU_CORE Block module and BCU SC_CTHREAD module provide API services, as follows: API::send_feedback / selectdata_to_axi0(), API::get_data_from_fifo05()、 API::send_data_to_fifo06(), API::access_gvp_bitfiled(), API::access_ip_bitfiled(), api::get_bcu_busy_status(), api::get_exception_status()、 api::send_funcode_to_geu(); A monitor process is also provided between the BCU Block module, the BCU_CORE Block module and the BCU SC_CTHREAD module, as follows: Geu2sgu_bcu_busy_manage_thread, Geu2sgu_exception_initiator_method; 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 bcu2fifo05_vertex_data_initiator_socket channel obtains vertex data information from the OCU module, passes through the primitive blanking process of the BCU module, and is sent to the rasterization module (PRU) fifo by the bcu2fifo06_vertex_data_initiator_socket channel; The geu2axi0_initiator_socket channel obtains the function code information from the BCU module, and is sent to the rasterization module (PRU) fifo by the Bcu2fifo11_vertex_data_initiator_socket channel through the selection feedback processing of the BCU module; The bcu2gp_bitfiled_initiator_socket channel is used by the BCU_CORE module to access the register data information in the GP, and the accsee_gp_bitfield() function is called during access; API::get_simple_complex_flag() and API::get_shadingstate_flag() are used to obtain different flag signals; The Monitor process of the Geu2sgu_bcu_busy_manage_thread monitors the geu2sgu_bcu_busy signal, and the BCU_CORE module calls api::get_bcu_busy_status() to obtain the signal; The Monitor process of the Geu2sgu_exception_initiator_method monitors the geu_exception_status signal, and the BCU_CORE module calls api::get_exception_status() to obtain the signal.
2. The TLM device of the GPU backside blanking 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 a TLM device of a GPU backface blanking module based on a SysML view according to claim 2, characterized in that: The following steps are involved: 1) Variable initialization Determine whether the back blanking FIFO is empty. If it is not empty, BUSY is set to 1. 2) Backface culling Get the image data from FIFO and then perform backface culling. 3) Determine the function code When FIFO is empty, the funcodeValid value is judged. If it is true, BUSY is set to 1, the function code is judged, and different operations are taken for different function codes.
4. The method for operating a TLM device of a GPU backface blanking module based on a SysML view according to claim 3, characterized in that: The step 2) requires determining the packet type; When the packet type is a glEnd packet, it is sent to the PRU unit FIFO; When the packet type is not a triangle packet type, it is sent to the PRU unit FIFO; When the package type is a triangle package type, the viewpoint is calculated to see whether the triangle is the back or front side, and then the face of the triangle is hidden to determine the hidden result; if it is not culled, the triangle is subjected to point drawing, line drawing and filling operations; if it is hidden culled, the triangle is not output and the CurrentVertexNum value is cleared.
5. The method for operating a TLM device of a GPU backface blanking module based on a SysML view according to claim 4, characterized in that: The step 3) determining the function code comprises: When the function code is glRendMode, determine the selectFlag value, if it is 1, update the DDR buffer; When the function code is glBitmap, glDrawPixel, glCopyPixel, glPassThrough, determine the state of the sampling register; If it is feedback, get RasterPos coordinates, primary color, and zero-layer texture coordinates (s, t, r, q) from IPU and JSU, and update the corresponding buffer; If it is glInitName, glPopName, glPushName, glLoadName, determine the state of the sampling register; If it is select, determine the selectFlag value. If it is 1, update the click record, update the corresponding buffer, and set selectFlag to 0. If selectFlag is not 1, update the num and name of name in the name stack. Finally, after all branches are completed, generate a function completion signal pulse.
Citation Information
Patent Citations
Advanced blanking geometry engine structure
CN108022202A
A graphic pipeline device based on a GPU chip and a modeling method
CN109598077A
