Database historical path UI display system based on configuration file
Through a system that automatically generates database history path UI based on configuration files, the chip design debugging tool has poor development efficiency and scalability when supporting multiple database types, and the function of quickly adapting to new database types is achieved, which improves development efficiency and scalability.
Patent Information
- Application Number
- CN202411988644.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-11
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In chip design and verification scenarios, when the existing technology supports multiple database types, it leads to poor development efficiency and scalability of chip design debugging tools, and requires frequent update of the user interface to adapt to new database types.
Through a system that automatically generates database history path UI based on configuration files, the database type and history path information in the configuration files are used to dynamically generate menu items, button items and user interfaces to avoid frequent manual updates.
Improves the development efficiency and scalability of chip design debugging tools, and can quickly adapt to the newly supported database types without frequent updates to the user interface.
Smart Images

Figure CN119808667A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of user interface generation, and in particular to a system for automatically generating a database history path UI based on a configuration file. Background Art
[0002] In chip design and verification scenarios, debugging tools for chip design and verification often need to load different types of database files with different path information to debug the code. Therefore, during the development of debugging tools, each time a function is needed to restore the path information of a new type of database, a corresponding user interface menu and button need to be added to record the path information of that type of database.
[0003] However, as the number of supported database types continues to increase, new recovery functions need to be frequently developed for new database types, resulting in poor development efficiency and scalability of chip design and debugging tools. Therefore, how to improve the development efficiency and scalability of chip design and debugging tools has become an urgent problem to be solved. Summary of the invention
[0004] In view of the above technical problems, the technical solution adopted by the present invention is:
[0005] A system for automatically generating a database history path UI based on a configuration file, the system comprising: M databases {a 1 , a 2 , …, a m , …, a M}, a processor and a memory storing a computer program, wherein a m is the mth database, where m is an integer in the range [1, M], and a m Include configuration file b m , b m Include database type c m and historical path information set D m ={d m 1 , d m 2 , …, d m n(m) , …, d m N(m)}, d m n(m) D m The n(m)th historical path information in D, where n(m) is an integer in the range [1, N(m)], and N(m) is m The computer program includes the amount of historical path information, and when the computer program is executed by the processor, the following steps are implemented:
[0006] S101, read configuration file b 1 , b 2 , …, b m , …, b M .
[0007] S102, according to c 1 , c 2 , …, c m , …, c M , determine M menu items e 1 , e 2 ,…,e m ,…,e M , e m It is the menu item corresponding to the mth database type.
[0008] S103, for c m , according to D m The access time of each historical path information in c is determined m The corresponding path information queue F m ={f m 1 , f m 2 , …, f m k(m) , …, f m K(m)}, where f m k(m) is the k(m)th historical path information in the mth path information queue, k(m) is an integer in the range [1, K(m)], and K(m) is F m Contains the number of historical route information.
[0009] S104, according to F m Generate stack G m .
[0010] S105, according to G m , determine e m Corresponding K(m) button items.
[0011] S106: Generate a user interface according to the M menu items and their corresponding button items.
[0012] Compared with the prior art, the present invention has obvious beneficial effects. By means of the above technical solution, the system for automatically generating a database history path UI based on a configuration file provided by the present invention can achieve considerable technical advancement and practicality, and has wide industrial utilization value, and has at least the following beneficial effects:
[0013] The present invention provides a system for automatically generating a database history path UI based on a configuration file, the system comprising: M databases {a 1 , a 2 , …, a m , …, a M}, a processor and a memory storing a computer program, wherein a m is the mth database, where m is an integer in the range [1, M], and a m Include configuration file b m , b m Include database type c m and historical path information set D m ={d m 1 , d m 2 , …, d m n(m) , …, d m N(m)}, d m n(m) D m The n(m)th historical path information in D, where n(m) is an integer in the range [1, N(m)], and N(m) is m The number of historical path information is included. When the computer program is executed by the processor, the following steps are implemented: reading the configuration file b 1 , b 2 , …, b m , …, b M , according to c 1 , c 2 , …, c m , …, c M , determine M menu items e 1 , e 2 ,…,e m ,…,e M , e m The menu item corresponding to the mth database type, for c m , according to D m The access time of each historical path information in c is determined m The corresponding path information queue F m ={f m 1 , f m 2 , …, f m k(m) , …, f m K(m)}, where f m k(m)is the k(m)th historical path information in the mth path information queue, k(m) is an integer in the range [1, K(m)], and K(m) is F m Contains the number of historical path information, according to F m Generate stack G m , according to G m , determine e m The corresponding K(m) button items generate a user interface according to the M menu items and their corresponding button items.
[0014] It can be seen that according to the configuration files of different types of databases, menu items corresponding to the database types are automatically generated, and a path information queue is formed according to the historical path information of the database type. The stack generated by the path information queue automatically determines a number of button items corresponding to the database type, and then the user interface of the chip design and debugging tool is automatically generated according to the menu items and their corresponding button items. There is no need to manually update the user interface frequently, which greatly improves the development efficiency and scalability of the chip design and debugging tool, and can quickly adapt to database types that require new support. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0016] Figure 1 A flowchart diagram of a computer program executed by a processor in a system for automatically generating a database history path UI based on a configuration file provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0017] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0018] This embodiment provides a system for automatically generating a database history path UI based on a configuration file, the system comprising: M databases {a 1 , a 2 , …, a m , …, a M}, a processor and a memory storing a computer program, wherein a mis the mth database, where m is an integer in the range [1, M], and a m Include configuration file b m , b m Include database type c m and historical path information set D m ={d m 1 , d m 2 , …, d m n(m) , …, d m N(m)}, d m n(m) D m The n(m)th historical path information in D, where n(m) is an integer in the range [1, N(m)], and N(m) is m Contains the number of historical path information, see Figure 1 , is a flow chart of a computer program executed by a processor in a system for automatically generating a database history path UI based on a configuration file provided by an embodiment of the present invention. When the computer program is executed by the processor, the following steps are implemented:
[0019] S101, read configuration file b 1 , b 2 , …, b m , …, b M .
[0020] S102, according to c 1 , c 2 , …, c m , …, c M , determine M menu items e 1 , e 2 ,…,e m ,…,e M , e m It is the menu item corresponding to the mth database type.
[0021] S103, for c m , according to D m The access time of each historical path information in c is determined m The corresponding path information queue F m ={f m 1 , f m 2 , …, f m k(m) , …, f m K(m)}, where f m k(m)is the k(m)th historical path information in the mth path information queue, k(m) is an integer in the range [1, K(m)], and K(m) is F m Contains the number of historical route information.
[0022] S104, according to F m Generate stack G m .
[0023] S105, according to G m , determine e m Corresponding K(m) button items.
[0024] S106: Generate a user interface according to the M menu items and their corresponding button items.
[0025] The database type may include source code type, coverage type, waveform type, etc., and the historical path information may refer to the access path of the user when accessing the corresponding type of database.
[0026] Path Information Queue F m is a first-in-first-out queue, stack G m For first-in, last-out stacking, the user interface may refer to a user interface of a chip design debugging tool.
[0027] Specifically, when there is a database of a newly added database type, M may be adjusted accordingly, thereby generating a corresponding menu item for a database of each database type.
[0028] In a specific implementation, when the computer program is executed by a processor, the following steps are also implemented:
[0029] Configuration m The corresponding user interface position;
[0030] Accordingly, generating a user interface according to the M menu items and the plurality of button items corresponding thereto respectively includes:
[0031] The user interface is generated according to the M menu items and their corresponding user interface positions, and the plurality of button items corresponding to the M menu items.
[0032] The user interface position may be used to indicate the position information of the menu item in the user interface to be automatically generated, and the user interface position may be represented by the coordinate information of a bounding box or the like.
[0033] In a specific implementation, when the computer program is executed by a processor, the following steps are also implemented:
[0034] Configuration m The corresponding maximum display quantity h m .
[0035] Among them, the maximum display number h m Can refer to menu item e m The maximum number of button items contained below.
[0036] In a specific implementation, K(m) satisfies the condition: K(m)≤h m .
[0037] Where K(m)≤h m Indicates the path information queue F m The maximum number of historical path information is h m , when K(m)=h m And there is a waiting to be added F m When the historical path information is updated, F is updated in a first-in-first-out manner. m .
[0038] In a specific embodiment, the stack G m The corresponding stack capacity i m Satisfy the conditions: i m ≥h m .
[0039] Among them, in order to ensure the path information queue F m The historical path information in can generate corresponding button items, so in this embodiment, the constraint i m ≥h m .
[0040] In one implementation, there may be no limit on the stack capacity to reduce the demand for memory space capacity.
[0041] In a specific implementation, step S105 includes the following steps:
[0042] S1051, for G m Perform a pop operation and use the pop operation result as the button item;
[0043] S1052, if the number of button items is less than h m And G m If the stack is not empty, the process returns to step S1051.
[0044] Among them, continuous m Perform a pop operation and use the pop operation result as the button item until the number of button items equals h m or G m is an empty stack, that is, G m The historical path information is no longer included.
[0045] In a specific implementation, when the computer program is executed by a processor, the following steps are also implemented:
[0046] S201, when the user's m When the access information is obtained, the access information is used to update F m and b m , the access information includes access path information and database type;
[0047] S202: If the access information is used to update F m When there is a dequeue operation and G m If the top of the stack is a non-empty element, execute step S203, otherwise, execute step S204;
[0048] S203, Clear G m , according to the updated F m Generate stack G m ', according to G m 'Update the user interface;
[0049] S204, adding the access information to G m , according to G m The user interface is updated.
[0050] Where, F is updated using the access information m When F m If the queue is not full, there is no need to dequeue, only to enqueue. m If it is full, you need to perform dequeue and enqueue operations.
[0051] G m The top of the stack is a non-empty element, which can represent G m is full, then according to the updated F m The generated stack G m ' and G m The bottom of the stack is different, so G needs to be cleared m , according to G m 'Update the UI.
[0052] In a specific implementation, step S201 further includes the following steps:
[0053] When the user obtains a m When accessing information, obtain e m The corresponding maximum display quantity h m ';
[0054] Accordingly, step S203 includes:
[0055] Clear G m , according to the updated Fm Generate stack G m ', according to G m ' and h m ', update the user interface;
[0056] Step S204 includes:
[0057] Add the access information to G m , according to G m and h m ', update the user interface.
[0058] Among them, users can update e at any time according to actual needs m The corresponding maximum display quantity h m ', when updating the user interface, that is, according to the current maximum display quantity h m 'Generate button items.
[0059] In this embodiment, menu items corresponding to the database type are automatically generated based on configuration files of different types of databases, a path information queue is formed based on the historical path information of the database type, and a number of button items corresponding to the database type are automatically determined through the stack generated by the path information queue. Then, the user interface of the chip design and debugging tool is automatically generated based on the menu items and their corresponding button items. There is no need to manually update the user interface frequently, which greatly improves the development efficiency and scalability of the chip design and debugging tool, and can quickly adapt to database types that require new support.
[0060] Although some specific embodiments of the present invention have been described in detail by way of example, it will be appreciated by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present invention. It will also be appreciated by those skilled in the art that various modifications may be made to the embodiments without departing from the scope and spirit of the present invention. The scope of the present invention is defined by the appended claims.
Claims
1. A system for automatically generating a database history path UI based on a configuration file, characterized in that: The system includes: M databases {a1, a2, ..., a m , …, a M }, a processor and a memory storing a computer program, wherein a m is the mth database, where m is an integer in the range [1, M], and a m Include configuration file b m , b m Include database type c m and historical path information set D m ={d m 1,d m 2, …, d m n(m) , …, d m N(m) }, d m n(m) D m The n(m)th historical path information in D, where n(m) is an integer in the range [1, N(m)], and N(m) is m The computer program includes the amount of historical path information, and when the computer program is executed by the processor, the following steps are implemented: S101, read configuration files b1, b2, ..., b m , …, b M ; S102, according to c1, c2, ..., c m , …, c M , determine M menu items e1, e2, ..., e m ,…,e M , e m The menu item corresponding to the mth database type; S103, for c m , according to D m The access time of each historical path information in c is determined m The corresponding path information queue F m ={f m 1, f m 2, …, f m k(m) , …, f m K(m) }, where f m k(m) is the k(m)th historical path information in the mth path information queue, k(m) is an integer in the range [1, K(m)], and K(m) is F m Contains the number of historical path information; S104, according to F m Generate stack G m ; S105, according to G m , determine e m The corresponding K(m) button items; S106: Generate a user interface according to the M menu items and their corresponding button items.
2. The system for automatically generating a database history path UI based on a configuration file according to claim 1, characterized in that: When the computer program is executed by a processor, the following steps are also implemented: Configuration m The corresponding user interface position; Accordingly, generating a user interface according to the M menu items and the plurality of button items corresponding thereto respectively includes: The user interface is generated according to the M menu items and their corresponding user interface positions, and the plurality of button items corresponding to the M menu items.
3. The system for automatically generating a database history path UI based on a configuration file according to claim 1, characterized in that: When the computer program is executed by a processor, the following steps are also implemented: Configuration m The corresponding maximum display quantity h m .
4. The system for automatically generating a database history path UI based on a configuration file according to claim 3, characterized in that: K(m) satisfies the condition: K(m)≤h m .
5. The system for automatically generating a database history path UI based on a configuration file according to claim 4, characterized in that: The stack G m The corresponding stack capacity i m Satisfy the conditions: i m ≥h m .
6. The system for automatically generating a database history path UI based on a configuration file according to claim 5, characterized in that: Step S105 includes the following steps: S1051, for G m Perform a pop operation and use the pop operation result as the button item; S1052: If the number of button items is less than h m And G m If the stack is not empty, the process returns to step S1051.
7. The system for automatically generating a database history path UI based on a configuration file according to claim 1, characterized in that: When the computer program is executed by a processor, the following steps are also implemented: S201, when the user's m When the access information is obtained, the access information is used to update F m and b m , the access information includes access path information and database type; S202: If the access information is used to update F m When there is a dequeue operation and G m If the top of the stack is a non-empty element, execute step S203, otherwise, execute step S204; S203, Clear G m , according to the updated F m Generate stack G m ’ , according to G m ’ updating the user interface; S204, adding the access information to G m , according to G m The user interface is updated.
8. The system for automatically generating a database history path UI based on a configuration file according to claim 7, characterized in that: Step S201 also includes the following steps: When the user obtains a m When accessing information, obtain e m The corresponding maximum display quantity h m ’ ; Accordingly, step S203 includes: Clear G m , according to the updated F m Generate stack G m ’ , according to G m ’ and h m ’ , updating the user interface; Step S204 includes: Add the access information to G m , according to G m and h m ’ , updating the user interface.
Citation Information
Patent Citations
Node task data display method and device, storage medium and computer equipment
CN107730077A
UI dynamic generation method
CN111597484A
Monitoring picture right-click menu generation method and device, equipment and storage medium
CN116010015A
Enterprise data management instrument board
CN116340434A
Dynamic generation of user interface components based on hierarchical component factories
US20190095225A1