CN110032781B - Editing time sequence constraint method and device, computer equipment and storage medium - Google Patents

Editing time sequence constraint method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN110032781B
CN110032781B CN201910237999.4A CN201910237999A CN110032781B CN 110032781 B CN110032781 B CN 110032781B CN 201910237999 A CN201910237999 A CN 201910237999A CN 110032781 B CN110032781 B CN 110032781B
Authority
CN
China
Prior art keywords
command
time sequence
constraint
basic
editing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910237999.4A
Other languages
Chinese (zh)
Other versions
CN110032781A (en
Inventor
李元策
毛忠亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gowin Semiconductor Corp
Original Assignee
Gowin Semiconductor Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gowin Semiconductor Corp filed Critical Gowin Semiconductor Corp
Priority to CN201910237999.4A priority Critical patent/CN110032781B/en
Publication of CN110032781A publication Critical patent/CN110032781A/en
Application granted granted Critical
Publication of CN110032781B publication Critical patent/CN110032781B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/39Circuit design at the physical level
    • G06F30/398Design verification or optimisation, e.g. using design rule check [DRC], layout versus schematics [LVS] or finite element methods [FEM]

Abstract

The invention discloses an editing time sequence constraint method, an editing time sequence constraint device, computer equipment and a storage medium, wherein the editing time sequence constraint method comprises the following steps: acquiring a time sequence constraint command editing request, and entering a time sequence constraint editing interface based on the time sequence constraint command editing request; analyzing the basic elements displayed in the element display area based on the netlist, and determining target elements; determining a time sequence constraint command to be edited based on a basic time sequence constraint command displayed in a time sequence constraint command management area; entering a corresponding command editing graphical interface based on the target element and the time sequence constraint command to be edited; and acquiring a command parameter option value corresponding to the command parameter option based on at least one command parameter option in the command editing graphical interface, and generating a target timing constraint command corresponding to the target element. The method can quickly and conveniently generate the required target time sequence constraint command based on the time sequence command editing request, and obviously improves the engineering design development efficiency.

Description

Editing time sequence constraint method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of circuit design, and in particular, to a method and an apparatus for constraining edit timing, a computer device, and a storage medium.
Background
Timing analysis is one of the important steps in the design of timing circuits, and the quality of the timing analysis directly affects the product development result. Timing analysis is generally divided into dynamic timing analysis and static timing analysis, wherein static timing analysis is the mainstream analysis method adopted by current timing analysis, and does not care about the functionality of a circuit, but determines whether a designed circuit meets the timing requirement according to a circuit netlist and a timing constraint condition. The static timing constraints have two main roles: firstly, the designed working frequency is improved, and for the digital circuit design, the improvement of the working frequency is important, and the high working frequency corresponds to high chip processing capacity; and secondly, obtaining a correct time sequence analysis report, wherein the static time sequence analysis takes the constraint as a standard for judging whether the time sequence meets the design requirement, and the correct time sequence analysis report can be obtained only if the time sequence constraint is correctly input.
At present, a user generally writes a timing constraint command to add a static timing constraint, but as the design scale is larger and larger, more ports, connecting lines and basic unit devices are designed, so that the user manually writes the timing constraint more and more complicated and is prone to errors. How to realize accurate timing constraint on a complex timing circuit design becomes a problem to be solved urgently.
Disclosure of Invention
The embodiment of the invention provides an editing time sequence constraint method, an editing time sequence constraint device, computer equipment and a storage medium, and aims to solve the problem of realizing accurate time sequence constraint on a complex time sequence circuit design.
An edit timing constraint method, comprising:
acquiring a time sequence constraint command editing request, and entering a time sequence constraint editing interface based on the time sequence constraint command editing request, wherein the time sequence constraint editing interface comprises a netlist analysis element display area, a time sequence constraint command management area and a time sequence constraint command display area;
analyzing at least one basic element displayed in the element display area based on the netlist, and determining a target element;
determining a time sequence constraint command to be edited based on at least one basic time sequence constraint command displayed in the time sequence constraint command management area;
based on the target element and the time sequence constraint command to be edited, entering a corresponding command editing graphical interface, wherein the command editing graphical interface comprises at least one command parameter option;
acquiring a command parameter option value corresponding to the command parameter option based on at least one command parameter option in the command editing graphical interface, and generating a target time sequence constraint command corresponding to the target element;
and displaying the target time sequence constraint command in a preset display mode on the time sequence constraint command display area.
An edit timing constraint apparatus comprising:
the acquisition command request module is used for acquiring a time sequence constraint command editing request and entering a time sequence constraint editing interface based on the time sequence constraint command editing request, wherein the time sequence constraint editing interface comprises a netlist analysis element display area, a time sequence constraint command management area and a time sequence constraint command display area;
a target element determining module for determining a target element based on at least one basic element displayed in the netlist parsing element display region;
the timing constraint command management module is used for managing at least one basic timing constraint command displayed in the area based on the timing constraint command and determining a timing constraint command to be edited;
the command input interface module is used for inputting a corresponding command editing graphical interface based on the target element and the time sequence constraint command to be edited, and the command editing graphical interface comprises at least one command parameter option;
the constraint command generation module is used for acquiring a command parameter option value corresponding to a command parameter option based on at least one command parameter option in the command editing graphical interface and generating a target time sequence constraint command corresponding to a target element;
and the display constraint command module is used for displaying the target time sequence constraint command in a preset display mode on the time sequence constraint command display area.
A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the above editing timing constraint method when executing the computer program.
A computer-readable storage medium storing a computer program which, when executed by a processor, implements the above-described editing timing constraint method.
According to the editing time sequence constraint method, the editing time sequence constraint device, the computer equipment and the storage medium, the time sequence constraint command editing request is obtained to enter the time sequence constraint editing interface, the target element is determined in the netlist analysis element display area on the time sequence constraint editing interface, the time sequence constraint command to be edited is determined in the time sequence constraint command management area, the time sequence constraint command to be edited adopted for the target element can be visually and effectively confirmed, and developers do not need to manually input the target element and the time sequence constraint command to be edited; meanwhile, a command editing graphical interface can be generated based on the target element and the time sequence constraint command to be edited, so that developers can conveniently perform parameter editing on the time sequence constraint command to be edited on the graphical interface, the process of performing parameter editing on the time sequence constraint command to be edited is simple and easy to use, and the correctness of inputting the time sequence constraint command is improved; and finally, a target time sequence constraint command formed by the edited time sequence constraint command to be edited can be displayed on the time sequence constraint command display area, so that developers can easily check the target time sequence constraint command applied to the target element, and the engineering design development efficiency is obviously improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a flow diagram of a method for editing timing constraints in an embodiment of the invention;
FIG. 2 is a diagram illustrating an editing interface for editing timing constraints in a method for editing timing constraints according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a command editing graphical interface in a method for editing temporal constraints according to an embodiment of the invention;
FIG. 4 is another flow chart of a method for editing timing constraints in an embodiment of the invention;
FIG. 5 is another flow chart of a method for editing timing constraints in an embodiment of the invention;
FIG. 6 is another flow chart of a method for editing timing constraints in an embodiment of the invention;
FIG. 7 is another flow chart of a method for editing timing constraints in an embodiment of the invention;
FIG. 8 is another flow chart of a method for editing timing constraints in an embodiment of the invention;
FIG. 9 is a diagram illustrating an apparatus for editing timing constraints according to an embodiment of the present invention;
FIG. 10 is a schematic diagram of a computer device in an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The editing time sequence constraint method provided by the embodiment of the invention is applied to an editing time sequence constraint system, the editing time sequence constraint system comprises a client and a server, and the client and the server are communicated through a network and are used for simply and quickly completing time sequence constraint in a time sequence circuit design process. The client is also called a user side, and refers to a program corresponding to the server and providing local services for the client. The client may be installed on, but not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices for human-computer interaction with a user. The server may be implemented as a stand-alone server or as a server cluster consisting of a plurality of servers.
In an embodiment, as shown in fig. 1, an edit timing constraint method is provided, which is described by taking the server in fig. 1 as an example, and specifically includes the following steps:
s10, acquiring a time sequence constraint command editing request, and entering a time sequence constraint editing interface based on the time sequence constraint command editing request, wherein the time sequence constraint editing interface comprises a netlist analysis element display area, a time sequence constraint command management area and a time sequence constraint command display area.
Wherein, the timing constraint command editing request is a request sent by a developer to an editing timing constraint system to edit the timing constraint of the target element in the netlist design file. The netlist design file is a source file for displaying the specific positions of basic elements such as basic unit devices, wires and ports on the netlist and the wire relation between each basic unit device or port.
As shown in fig. 2, the timing constraint editing interface is an interface of the netlist parsing element display area, the timing constraint command management area, and the timing constraint command display area. The netlist analyzing element display area is used for displaying basic elements such as each port, connecting line and basic unit device in the netlist design file. The timing constraint command management area is used for displaying each preset basic timing management command. The basic timing constraint command is a command preset in the edit timing constraint system for all the basic elements that can edit the timing command, for example, the basic timing constraint command includes a timing constraint for editing a maximum path or a minimum path, and the like, which is not limited herein.
The time sequence constraint command display area is used for displaying a target time sequence constraint command formed after the time sequence command is edited on the target element.
Specifically, the edit timing constraint system may receive the netlist design file, analyze the netlist design file to obtain at least one basic element corresponding to each element type, and display the basic elements in the netlist analysis element display area according to the element types. Meanwhile, the editing time sequence constraint system can also display at least one preset basic time sequence constraint command which is displayed in a classified mode according to the time sequence constraint types in the time sequence constraint command management area.
In step S10, after receiving the time sequence constraint command editing request, the editing time sequence constraint system may enter a time sequence constraint editing interface, which is beneficial for developers to edit commands of the target element on the graphical interface based on the netlist parsing element display area and the time sequence constraint command management area provided by the time sequence constraint editing interface, and is simple and fast, thereby improving the accuracy and rapidity of inputting the target time sequence constraint command.
And S20, analyzing at least one basic element displayed in the element display area based on the netlist, and determining a target element.
The basic element is each element displayed in the netlist resolution element display area, and includes, but is not limited to, elements corresponding to element types such as basic unit devices, wires, and ports. For example, for port types, the basic elements include port one, port two, port three, and so on.
The target element is a basic element selected based on the current timing constraint command editing request to edit the timing command.
In step S20, the edit timing constraint system may receive a basic element selected by the developer from the netlist analysis element display area as the target element, and the selection method is convenient and fast, so as to avoid the developer from performing map search in the netlist design file and then performing target element confirmation, thereby improving the efficiency and accuracy of obtaining the target element.
And S30, determining a time sequence constraint command to be edited based on at least one basic time sequence constraint command displayed in the time sequence constraint command management area.
The basic timing constraint command is a command preset in the edit timing constraint system for editing all target elements that can edit the timing command, for example, the basic timing constraint command includes a timing constraint for editing a maximum path or a minimum path, and the like, which is not limited herein.
In step S30, the editing timing constraint system can receive a basic timing constraint command selected by the developer from the timing constraint command management area as the timing constraint command to be edited, the selection is convenient and fast, the developer is prevented from memorizing a large number of basic timing constraint commands and manually inputting the timing constraint command to be edited, and the efficiency and accuracy of obtaining the timing constraint command to be edited are improved.
And S40, entering a corresponding command editing graphical interface based on the target element and the time sequence constraint command to be edited, wherein the command editing graphical interface comprises at least one command parameter option.
The command editing graphical interface is a graphical interface used for parameter editing of the timing constraint command to be edited, and is beneficial for developers to intuitively know each command parameter option to be filled based on the graphical interface, as shown in fig. 3.
The command parameter options are specifically included in each to-be-edited timing constraint command, and are used for a user to add a timing constraint parameter value according to a timing constraint test scenario, for example, for the to-be-edited timing constraint command to create a clock, the included command parameter options include a clock name (clock _ name), a clock period (period), a time frequency (frequency), a clock peak value (rising), a clock valley value (falling), an object (object), and the like.
In step S40, the editing timing constraint system may enter a command editing graphical interface including at least one command parameter option after receiving the confirmed target element and the timing constraint command to be edited, which is beneficial for developers to intuitively know each command parameter option to be filled based on the graphical interface, and it is not necessary to memorize the editing code of the command parameter option by themselves, thereby improving the efficiency of editing the constraint timing command.
S50, obtaining a command parameter option value corresponding to the command parameter option based on at least one command parameter option in the command editing graphical interface, and generating a target time sequence constraint command corresponding to the target element.
The command parameter option value is a timing constraint parameter value of the test scenario corresponding to the command parameter option, for example, for time frequency, the command parameter option value may be 100 MHz.
The target time sequence constraint command is a complete command for carrying out time sequence constraint on the target element, which is formed after adding corresponding command parameter option values to each command parameter option in the time sequence command to be edited.
Specifically, the editing timing constraint system may sequentially read the command parameter option values filled in each command parameter option, add the command parameter option values to the timing command to be edited, and form the target timing constraint command.
In step S50, the edit timing constraint system can automatically read each command parameter option value to generate a target timing constraint command corresponding to the target component, thereby improving the efficiency and accuracy of generating the target timing constraint command.
And S60, displaying the target time sequence constraint command in a preset display mode on the time sequence constraint command display area.
The preset display mode is a display mode for displaying the target timing constraint command in the timing constraint command display area, for example, all the target timing constraint commands may be displayed in a table form, each target timing constraint command is a row in the table, all command parameter option values in the target timing constraint command may be displayed, and the present invention is not limited herein.
In step S60, the editing timing constraint system may display the target timing constraint command on the timing constraint command display area according to a preset display manner, which is beneficial for developers to clearly view command parameters, specifically command parameter options and corresponding command parameter option values, for implementing the target timing constraint command on the target element.
In the editing timing constraint method provided by the embodiment, the editing timing constraint system enters a timing constraint editing interface by acquiring a timing constraint command editing request, a netlist analysis element display area on the timing constraint editing interface determines a target element, a to-be-edited timing constraint command is determined in a timing constraint command management area, the to-be-edited timing constraint command adopted for the target element can be visually and effectively confirmed, developers do not need to manually input the target element and the to-be-edited timing constraint command, and the efficiency and the accuracy are improved; meanwhile, a command editing graphical interface can be generated based on the target element and the time sequence constraint command to be edited, so that developers can conveniently perform parameter editing on the time sequence constraint command to be edited on the graphical interface, the process of performing parameter editing on the time sequence constraint command to be edited is simple and easy to use, and the accuracy and the efficiency of inputting the time sequence constraint command are improved; finally, the target time sequence constraint command formed by the edited time sequence constraint command to be edited can be displayed on the time sequence constraint command display area, so that developers can easily view command parameters for implementing the target time sequence constraint command on the target element, and the engineering design development efficiency is obviously improved.
In one embodiment, as shown in fig. 4, before step S10, that is, before acquiring the timing constraint command edit request, the method for editing timing constraint further includes:
s111, obtaining a netlist design file, analyzing the netlist design file, obtaining at least one element type and at least one basic element corresponding to each element type, and forming a classification element table.
The component types are types of various components included in the netlist design file, and in this embodiment, the component types include three types, namely a port, a line and a basic unit device.
The classification element list is formed by the editing sequential constraint system based on classification statistics of each port, connecting line and basic unit device in the netlist design file, and records all basic elements included in each element type. For example, for a port, this element type includes port one, port two, etc.
In step S111, the edit timing constraint system creates a classified component table to facilitate the subsequent rapid and accurate import of each component type recorded according to the table into each base component.
And S112, classifying the classified component table by adopting a netlist analysis interface pre-configured on the netlist analysis component display area so as to display at least one basic component corresponding to each component type on the netlist analysis component display area according to a first preset display structure in a classified mode.
The netlist parsing interface is used for reading the component classification table and importing each basic component included in the component classification table into the interface of the editing timing constraint system.
The first predetermined display structure is a predetermined structure for displaying each basic element, such as a tree structure or a Hierarchical structure, and is not limited herein.
In step S112, the edit timing constraint system may display at least one basic element corresponding to each element type according to the first preset display structure, so as to facilitate a developer to quickly query the corresponding basic elements in sequence according to the element types.
In steps S111 to S112, the editing timing constraint system creates a classified component table, which facilitates to quickly and accurately import each basic component according to each component type recorded in the table. The editing time sequence constraint system can display at least one basic element corresponding to each element type in a classified mode according to a first preset display structure, and developers can conveniently and rapidly inquire the corresponding basic elements in sequence according to the element types.
In one embodiment, the netlist resolution device display area includes a device search field and a device presentation field. As shown in fig. 5, in step S20, determining the target component based on the at least one basic component displayed in the netlist resolving component display area includes:
s21, receiving a component search instruction obtained based on the component search column, wherein the component search instruction comprises a component keyword.
The element search column is used for reading element keywords manually input by a developer. The column is established, so that a developer can find the corresponding basic elements more quickly through the edit timing constraint system without inquiring the required target elements one by one from the netlist resolution element display area.
The element display column is a column for displaying each base element. The component search instruction is an instruction to search for each base component including the key keyword. The element keyword is a word included in the name corresponding to the target element to be found.
In step S21, the editing timing constraint system may accept a component search command including a component keyword obtained based on the component search field, and prepare a data base for subsequently querying a corresponding target component in the classified component table based on the component keyword.
S22, inquiring the classified component table based on the component keywords, obtaining at least one basic component corresponding to the component keywords, and displaying the at least one basic component corresponding to the component keywords on a component display column of the netlist analysis component display area.
In step S22, the editing timing constraint system can quickly search out at least one basic element corresponding to the element keyword from the classified element table, and display at least one basic element containing the element keyword in the element display bar, so that developers can intuitively obtain at least one basic element corresponding to the element keyword from the element display bar in time for further screening, and finally obtain the target element.
And S23, receiving a component selection instruction triggered by any basic component on the netlist analysis component display area, and determining a target component.
The component selection instruction is an instruction for selecting any basic component on the netlist analysis component display area as a target component, and may be specifically an instruction formed by mouse click or the like, which is not limited herein.
In step S23, the editing timing constraint system performs preliminary screening on all basic elements to obtain simplified basic elements, and provides the simplified basic elements to developers, and determines a target element through an element selection instruction, which can improve the efficiency of selecting the target element, thereby improving the efficiency of editing the timing constraint command.
In steps S21 through S23, the editing timing constraint system may accept a component search command including a component keyword obtained based on the component search field, and prepare a data base for a subsequent query of a corresponding target component in the sorted component table based on the component keyword. The editing time sequence constraint system can quickly inquire at least one basic element corresponding to the element key words in the classification element table, and at least one basic element containing the element key words is displayed in the element display bar, so that developers can visually and further screen the at least one basic element corresponding to the element key words displayed on the element display bar, and finally obtain the target element. The editing time sequence constraint system performs preliminary screening on all basic elements to obtain simplified basic elements and provides the simplified basic elements for developers, and determines a target element through an element selection instruction, so that the efficiency of selecting the target element can be improved, and the efficiency of editing a time sequence constraint command is improved.
In one embodiment, as shown in fig. 6, before step S10, that is, before acquiring the timing constraint command edit request, the method for editing timing constraint further includes:
s121, a time sequence constraint command list is obtained, wherein the time sequence constraint command list comprises at least one time sequence constraint type, and the time sequence constraint type comprises at least one basic time sequence constraint command.
The timing constraint command table is a table for recording all executable basic timing constraint commands according to the timing constraint types.
The timing constraint category is a constraint category divided by a timing constraint object, such as a clock category or a pin category.
The basic timing constraint command is a command preset in the edit timing constraint system for editing all the target elements that can edit the timing command, for example, the basic timing constraint command includes a timing constraint for editing a maximum path or a minimum path, and the like, and is not limited herein.
In step S121, the editing timing constraint system obtains the timing constraint command table, reads each basic timing constraint command according to each timing constraint type in the timing constraint command table, and prepares a data base for a timing constraint command management area for subsequently importing each basic timing constraint command into the editing timing constraint system.
And S122, classifying the time sequence constraint command list by adopting a command management interface which is pre-configured on the time sequence constraint command management area, so as to display the basic time sequence constraint commands corresponding to each time sequence constraint type on the time sequence constraint command management area according to a second preset display structure in a classified manner.
The command management interface is used for reading each basic timing constraint command in the timing constraint command table to an interface on the timing constraint command management area.
The second predetermined display structure is a predetermined structure for displaying each basic timing constraint command, such as a tree structure or a Hierarchical structure, and is not limited herein.
In step S122, the edit timing constraint system may display at least one basic timing constraint command corresponding to each timing constraint category according to a second preset display structure, so as to facilitate a developer to sequentially and rapidly query the corresponding basic timing constraint commands according to the timing constraint categories.
In steps S121 to S122, the editing timing constraint system obtains the timing constraint command list, reads each basic timing constraint command according to each timing constraint type in the timing constraint command list, and prepares a data base for a timing constraint command management area for subsequently importing each basic timing constraint command into the editing timing constraint system. The editing time sequence constraint system can display at least one basic time sequence constraint command corresponding to each time sequence constraint type in a classified mode according to a second preset display structure, and developers can conveniently and rapidly inquire the corresponding basic time sequence constraint commands according to the time sequence constraint types.
In an embodiment, the base timing constraint command includes a command ID. As shown in fig. 7, before step S10, that is, before the time series constraint command edit request is acquired, the edit time series constraint method further includes:
s131, acquiring a management time sequence constraint command request, and entering a manageable command interface based on the management time sequence constraint command request.
The command ID is an identifier used by the editing timing constraint system to distinguish each basic timing constraint command.
The management timing constraint command request is a request received by the editing timing constraint system to manage a specified basic timing constraint command, wherein specific management actions comprise an adding action, a deleting action and the like.
The manageable command interface is an interface corresponding to the timing constraint command management area and can manage each basic timing constraint command in the timing constraint command management area.
In step S131, the edit timing constraint system can enter the manageable command interface based on the manage timing constraint command request, thereby improving the flexibility and extensibility of the manage basic timing constraint command.
S132, receiving a command management request formed based on the manageable command interface, wherein the command management request comprises a management action and a command ID.
The management action is an action for specifically managing the basic timing constraint command, such as adding or deleting.
In step S132, the edit timing constraint system can accept the command management request including the management action and the command ID, and prepare the data base for subsequently and accurately taking the management action for the basic timing constraint command corresponding to the command ID.
And S133, processing the basic timing sequence constraint command corresponding to the command ID according to the management action based on the manageable command interface.
In step S133, the edit timing constraint system processes the basic timing constraint command corresponding to the command ID according to the management action, thereby improving the flexibility and elasticity of the edit timing constraint system in managing the basic timing constraint command.
In steps S131 to S133, the edit timing constraint system may enter the manageable command interface based on the management timing constraint command request, thereby improving the flexibility and extensibility of the management basic timing constraint command. The editing timing constraint system can receive a command management request comprising a management action and a command ID, and prepare a data base for processing a basic timing constraint command corresponding to the command ID for accurately taking the management action subsequently. The basic time sequence constraint command corresponding to the command ID is processed by the editing time sequence constraint system according to the management action, so that the flexibility and elasticity of the basic time sequence constraint command managed by the editing time sequence constraint system are improved.
In an embodiment, as shown in fig. 8, in step S133, that is, based on the manageable command interface, the processing the basic timing constraint command corresponding to the command ID according to the management action includes:
s1331, if the management action is an adding command, adding a basic time sequence constraint command corresponding to the command ID to a time sequence constraint command management area according to the time sequence constraint type.
Wherein the add command is a command to add a base timing constraint command onto the timing constraint command management area.
Specifically, the edit timing constraint system can add the basic timing constraint command to be added (i.e., the basic timing constraint command corresponding to the command ID) to the timing constraint command table, then call the timing constraint command table on the manageable command interface, obtain all the basic timing constraint commands to be added on the table, and display the obtained basic timing constraint commands, so that developers can find the corresponding basic timing constraint commands to be added from the manageable command interface in time to add the basic timing constraint commands.
In step S1331, the edit timing constraint system may accept the basic timing constraint command corresponding to the added command ID and add the basic timing constraint command to the timing constraint command management area according to the type of the timing constraint, thereby improving the extensibility of the edit timing constraint system.
And S1332, if the management action is a deleting command, deleting the basic timing constraint command corresponding to the command ID on the timing constraint command management area.
The delete command is a command for deleting the basic timing constraint command from the timing constraint command management area.
In step S1332, the edit timing constraint system may delete the basic timing constraint command corresponding to the command ID from the timing constraint command management area, thereby improving the availability of the edit timing constraint system.
In steps S1331 to S1332, the edit timing constraint system may accept the basic timing constraint command corresponding to the added command ID and add the basic timing constraint command to the timing constraint command management area according to the type of the timing constraint, thereby improving the extensibility of the edit timing constraint system. The editing time sequence constraint system can delete the basic time sequence constraint command corresponding to the command ID from the time sequence constraint command management area, and the availability of the editing time sequence constraint system is improved.
In the editing timing constraint method provided by the embodiment, the editing timing constraint system enters a timing constraint editing interface by acquiring a timing constraint command editing request, a netlist analysis element display area on the timing constraint editing interface determines a target element, a to-be-edited timing constraint command is determined in a timing constraint command management area, the to-be-edited timing constraint command adopted for the target element can be visually and effectively confirmed, and developers do not need to manually input the target element and the to-be-edited timing constraint command; meanwhile, a command editing graphical interface can be generated based on the target element and the time sequence constraint command to be edited, so that developers can conveniently perform parameter editing on the time sequence constraint command to be edited on the graphical interface, the process of performing parameter editing on the time sequence constraint command to be edited is simple and easy to use, and the correctness of inputting the time sequence constraint command is improved; finally, the target time sequence constraint command formed by the edited time sequence constraint command to be edited can be displayed on the time sequence constraint command display area, so that developers can easily check the command execution process of implementing the target time sequence constraint command on the target element, and the engineering design development efficiency is obviously improved.
Further, the edit timing constraint system creates a sorted list of components that facilitates the rapid and accurate import of each base component for each component type subsequently recorded in the list. The editing time sequence constraint system can display at least one basic element corresponding to each element type in a classified mode according to a first preset display structure, and developers can conveniently and rapidly inquire the corresponding basic elements in sequence according to the element types.
Further, the editing timing constraint system can receive a component search command including a component keyword, which is obtained based on the component search field, and prepare a data base for subsequently querying a corresponding target component in the classified component table based on the component keyword. The editing time sequence constraint system can quickly inquire at least one basic element corresponding to the element keyword in the classified element list, and at least one basic element containing the element keyword is displayed in the element display bar, so that developers can visually obtain the at least one basic element corresponding to the element keyword from the element display bar in time for further screening, and finally obtain the target element. The editing time sequence constraint system performs preliminary screening on all basic elements to obtain simplified basic elements and provides the simplified basic elements for developers, and determines a target element through an element selection instruction, so that the correctness of the selected target element can be improved, and the efficiency of editing time sequence constraint commands is improved.
Furthermore, the editing time sequence constraint system acquires a time sequence constraint command list, reads each basic time sequence constraint command according to each time sequence constraint type in the time sequence constraint command list, and prepares a data base for a time sequence constraint command management area for subsequently importing each basic time sequence constraint command into the editing time sequence constraint system. The editing time sequence constraint system can display at least one basic time sequence constraint command corresponding to each time sequence constraint type in a classified mode according to a second preset display structure, and developers can conveniently and rapidly inquire the corresponding basic time sequence constraint commands according to the time sequence constraint types.
Furthermore, the editing time sequence constraint system can enter a manageable command interface based on the management time sequence constraint command request, and the flexibility and the expandability of the management basic time sequence constraint command are improved. The editing timing constraint system can accept a command management request including a management action and a command ID, and prepare a data base for subsequently and accurately taking the management action on a basic timing constraint command corresponding to the command ID. The editing time sequence constraint system processes the basic time sequence constraint command corresponding to the command ID according to the management action, and the flexibility and the elasticity of the editing time sequence constraint system for managing the basic time sequence constraint command are improved.
Furthermore, the editing time sequence constraint system can accept basic time sequence constraint commands corresponding to the added command IDs and add the basic time sequence constraint commands to the time sequence constraint command management area according to the time sequence constraint types, and the expandability of the editing time sequence constraint system is improved. The editing time sequence constraint system can delete the basic time sequence constraint command corresponding to the command ID from the time sequence constraint command management area, and the availability of the editing time sequence constraint system is improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In an embodiment, an editing timing constraint device is provided, and the editing timing constraint device corresponds to the editing timing constraint method in the above embodiments one to one. As shown in fig. 9, the edit timing constraint apparatus includes a get command request module 10, a determine target element module 20, a determine constraint command module 30, an enter command interface module 40, a generate constraint command module 50, and a display constraint command module 60. The functional modules are explained in detail as follows:
the obtaining command request module 10 is configured to obtain a timing constraint command editing request, and enter a timing constraint editing interface based on the timing constraint command editing request, where the timing constraint editing interface includes a netlist parsing element display area, a timing constraint command management area, and a timing constraint command display area;
a determine target component module 20, configured to determine a target component based on at least one basic component displayed in the netlist parsing component display area;
a determining constraint command module 30, configured to determine a to-be-edited timing constraint command based on at least one basic timing constraint command displayed in the timing constraint command management area;
an entry command interface module 40, configured to enter a corresponding command editing graphical interface based on the target element and the to-be-edited timing constraint command, where the command editing graphical interface includes at least one command parameter option;
a generate constraint command module 50, configured to obtain a command parameter option value corresponding to a command parameter option based on at least one command parameter option in the command editing graphical interface, and generate a target timing constraint command corresponding to a target element;
and a display constraint command module 60, configured to display the target timing constraint command in a preset display manner on the timing constraint command display area.
Preferably, the editing timing constraint device further comprises a design file acquisition module 111 and a display basic element module 112.
The design file obtaining module 111 is configured to obtain a netlist design file, analyze the netlist design file, obtain at least one component type and at least one basic component corresponding to each component type, and form a classification component table;
and a display basic element module 112, configured to perform classification processing on the classified element table by using a netlist parsing interface pre-configured on the netlist parsing element display area, so as to display at least one basic element corresponding to each element type in a classification manner according to a first preset display structure on the netlist parsing element display area.
Preferably, the target component determination module includes a search instruction receiving unit, an acquisition base component unit, and a target component determination unit.
And a receiving search instruction unit for receiving a component search instruction acquired based on the component search field, the component search instruction including a component keyword.
And the basic element obtaining unit is used for inquiring the classified element table based on the element key words, obtaining at least one basic element corresponding to the element key words, and displaying at least one basic element corresponding to the element key words on an element display column of the netlist analysis element display area.
And the target element determining unit is used for receiving an element selecting instruction triggered by any basic element on the netlist analysis element display area and determining the target element.
Preferably, the editing timing constraint device further comprises an acquisition constraint command list module and a display constraint command module.
And the acquisition constraint command list module is used for acquiring a time sequence constraint command list, wherein the time sequence constraint command list comprises at least one time sequence constraint type, and the time sequence constraint type comprises at least one basic time sequence constraint command.
And the display constraint command module is used for classifying the time sequence constraint command list by adopting a command management interface which is pre-configured on the time sequence constraint command management area so as to display the basic time sequence constraint commands corresponding to each time sequence constraint type on the time sequence constraint command management area according to a second preset display structure in a classified mode.
Preferably, the editing timing constraint device further comprises an entering command interface module, an updating request receiving module and a processing management action module.
And the entry command interface module is used for acquiring the management time sequence constraint command request and entering the manageable command interface based on the management time sequence constraint command request.
And the update request receiving module is used for receiving a command management request formed based on the manageable command interface, and the command management request comprises a management action and a command ID.
And the processing and management action module is used for processing the basic time sequence constraint command corresponding to the command ID according to the management action based on the manageable command interface.
Preferably, the process management action module includes an add constraint command unit and a delete constraint command unit.
And the constraint adding command unit is used for adding the basic timing constraint command corresponding to the command ID to the timing constraint command management area according to the timing constraint type if the management action is an increasing command.
And the deletion constraint command unit is used for deleting the basic timing constraint command corresponding to the command ID on the timing constraint command management area if the management action is the deletion command.
For the specific definition of the edit timing constraint device, reference may be made to the above definition of the edit timing constraint method, which is not described herein again. The modules in the edit timing restriction apparatus can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 10. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used to compile data relating to the timing constraint method. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement an edit timing constraint method.
In one embodiment, a computer device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the computer program implements the above-described editing timing constraint method, such as S10 to S60 shown in fig. 1. Alternatively, the processor, when executing the computer program, implements the functions of the respective modules/units of the editing timing constraint apparatus in the above-described embodiment, for example, the functions of the modules 10 to 60 shown in fig. 9. To avoid repetition, further description is omitted here.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program is executed by a processor to implement the editing timing constraint method of the above embodiments, such as S10 to S60 shown in fig. 1. Alternatively, the computer program, when executed by the processor, implements the functions of each module/unit in the edit timing restriction apparatus in the above-described apparatus embodiment, for example, the functions of the modules 10 to 60 shown in fig. 9. To avoid repetition, further description is omitted here.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by instructing the relevant hardware through a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments of the present application may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. An edit timing constraint method, comprising:
acquiring a time sequence constraint command editing request, and entering a time sequence constraint editing interface based on the time sequence constraint command editing request, wherein the time sequence constraint editing interface comprises a netlist analysis element display area, a time sequence constraint command management area and a time sequence constraint command display area;
receiving a netlist design file, analyzing the netlist design file to obtain at least one basic element corresponding to each element type, displaying the basic element on a netlist analysis element display area according to the element type, and determining a target element based on at least one basic element displayed in the netlist analysis element display area, wherein the element type comprises a basic unit device, a connecting line and a port;
determining a time sequence constraint command to be edited based on at least one basic time sequence constraint command displayed in the time sequence constraint command management area;
based on the target element and the to-be-edited time sequence constraint command, entering a corresponding command editing graphical interface, wherein the command editing graphical interface comprises at least one command parameter option;
acquiring a command parameter option value corresponding to a command parameter option based on at least one command parameter option in a command editing graphical interface, and generating a target timing constraint command corresponding to the target element;
and displaying the target time sequence constraint command in a preset display mode on the time sequence constraint command display area.
2. The edit timing constraint method of claim 1 wherein, prior to the get timing constraint command edit request, the edit timing constraint method further comprises:
obtaining a netlist design file, analyzing the netlist design file, obtaining at least one element type and at least one basic element corresponding to each element type, and forming a classification element table;
and classifying the classified component table by adopting a netlist analysis interface pre-configured on the netlist analysis component display area so as to display at least one basic component corresponding to each component type on the netlist analysis component display area according to a first preset display structure in a classified mode.
3. The edit timing constraint method according to claim 2, wherein the netlist resolving element display region includes an element search field and an element presentation field;
the determining a target element based on at least one basic element displayed in the netlist resolution element display area comprises:
receiving a component search instruction acquired based on the component search bar, wherein the component search instruction comprises a component keyword;
querying the classified component table based on the component keyword, acquiring at least one basic component corresponding to the component keyword, and displaying at least one basic component corresponding to the component keyword on the component display bar of the netlist parsing component display area;
and receiving a component selection instruction triggered by any basic component on the netlist resolution component display area, and determining a target component.
4. The edit timing constraint method of claim 1 wherein, prior to the get timing constraint command edit request, the edit timing constraint method further comprises:
acquiring a time sequence constraint command list, wherein the time sequence constraint command list comprises at least one time sequence constraint type, and the time sequence constraint type comprises at least one basic time sequence constraint command;
and classifying the time sequence constraint command list by adopting a command management interface which is pre-configured on the time sequence constraint command management area, so as to display the basic time sequence constraint commands corresponding to each time sequence constraint type on the time sequence constraint command management area according to a second preset display structure in a classified manner.
5. The edit timing constraint method of claim 1 wherein the base timing constraint command includes a command ID;
before the obtaining a timing constraint command edit request, the edit timing constraint method further includes:
acquiring a management time sequence constraint command request, and entering a manageable command interface based on the management time sequence constraint command request;
receiving a command management request formed based on the manageable command interface, wherein the command management request comprises a management action and a command ID;
and processing the basic timing constraint command corresponding to the command ID according to the management action based on the manageable command interface.
6. The editing temporal constraint method of claim 5, wherein the processing the basic temporal constraint command corresponding to the command ID according to the management action based on the manageable command interface comprises:
if the management action is an adding command, adding a basic time sequence constraint command corresponding to the command ID to the time sequence constraint command management area according to the time sequence constraint type;
and if the management action is a deleting command, deleting the basic timing constraint command corresponding to the command ID on the timing constraint command management area.
7. An edit timing constraint apparatus, comprising:
the command acquisition request module is used for acquiring a time sequence constraint command editing request and entering a time sequence constraint editing interface based on the time sequence constraint command editing request, wherein the time sequence constraint editing interface comprises a netlist analysis element display area, a time sequence constraint command management area and a time sequence constraint command display area;
a target element determining module, configured to receive a netlist design file, parse the netlist design file to obtain at least one basic element corresponding to each element type, display the basic element on a netlist parsing element display region according to the element type, and determine a target element based on at least one basic element displayed in the netlist parsing element display region, where the element type includes a basic unit device, a connection, and a port;
the timing constraint command management module is used for managing at least one basic timing constraint command displayed in a region to be edited according to the timing constraint command;
the command entering interface module is used for entering a corresponding command editing graphical interface based on the target element and the to-be-edited timing sequence constraint command, and the command editing graphical interface comprises at least one command parameter option;
the generation constraint command module is used for acquiring a command parameter option value corresponding to a command parameter option based on at least one command parameter option in a command editing graphical interface and generating a target time sequence constraint command corresponding to the target element;
and the display constraint command module is used for displaying the target time sequence constraint command in a preset display mode on the time sequence constraint command display area.
8. The edit timing restriction apparatus according to claim 7, further comprising:
the device comprises a design file acquisition module, a design file classification module and a classification component table, wherein the design file acquisition module is used for acquiring a netlist design file, analyzing the netlist design file, acquiring at least one component type and at least one basic component corresponding to each component type, and forming the classification component table;
and the basic element display module is used for classifying the classified element list by adopting a netlist analysis interface which is configured in advance on the netlist analysis element display area so as to display at least one basic element corresponding to each element type on the netlist analysis element display area according to a first preset display structure in a classified mode.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the edit timing constraint method of any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the edit timing constraint method according to any one of claims 1 to 6.
CN201910237999.4A 2019-03-27 2019-03-27 Editing time sequence constraint method and device, computer equipment and storage medium Active CN110032781B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910237999.4A CN110032781B (en) 2019-03-27 2019-03-27 Editing time sequence constraint method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910237999.4A CN110032781B (en) 2019-03-27 2019-03-27 Editing time sequence constraint method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110032781A CN110032781A (en) 2019-07-19
CN110032781B true CN110032781B (en) 2020-04-17

Family

ID=67236978

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910237999.4A Active CN110032781B (en) 2019-03-27 2019-03-27 Editing time sequence constraint method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110032781B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112464636B (en) * 2020-11-25 2024-02-09 海光信息技术股份有限公司 Constraint file comparison method and device, electronic equipment and storage medium
CN117010307B (en) * 2023-10-07 2024-03-19 北京象帝先计算技术有限公司 Port timing constraint method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101436225A (en) * 2008-12-11 2009-05-20 国网电力科学研究院 Implementing method of dynamic local reconstructing embedded type data controller chip
CN105701266A (en) * 2014-11-28 2016-06-22 国际商业机器公司 Static timing analysis method and system used in circuit design
CN105808795A (en) * 2014-12-29 2016-07-27 京微雅格(北京)科技有限公司 FPGA chip global placement optimization method based on temporal constraint
CN106407489A (en) * 2015-07-31 2017-02-15 展讯通信(上海)有限公司 Timing constraint checking method
CN106682285A (en) * 2016-12-09 2017-05-17 深圳市紫光同创电子有限公司 Static timing analysis method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101436225A (en) * 2008-12-11 2009-05-20 国网电力科学研究院 Implementing method of dynamic local reconstructing embedded type data controller chip
CN105701266A (en) * 2014-11-28 2016-06-22 国际商业机器公司 Static timing analysis method and system used in circuit design
CN105808795A (en) * 2014-12-29 2016-07-27 京微雅格(北京)科技有限公司 FPGA chip global placement optimization method based on temporal constraint
CN106407489A (en) * 2015-07-31 2017-02-15 展讯通信(上海)有限公司 Timing constraint checking method
CN106682285A (en) * 2016-12-09 2017-05-17 深圳市紫光同创电子有限公司 Static timing analysis method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
altera小实验——TimeQuest Timing Analyzer初步使用;moom9999;《https://blog.csdn.net/moon9999/article/details/73610455》;20170622;第1-8页 *
Vivado集成开发环境时序约束介绍;haoxingheng;《https://wenku.baidu.com/view/d11a4476ff00bed5b8f31d28.html》;20141207;第3-5页,第72-76页 *

Also Published As

Publication number Publication date
CN110032781A (en) 2019-07-19

Similar Documents

Publication Publication Date Title
CN111026645B (en) User interface automatic test method and device, storage medium and electronic equipment
CN113127347B (en) Interface testing method, device, equipment and readable storage medium
CN111026670B (en) Test case generation method, test case generation device and storage medium
CN110737594A (en) Database standard conformance testing method and device for automatically generating test cases
CN111026647B (en) Method and device for acquiring code coverage rate, computer equipment and storage medium
CN110032781B (en) Editing time sequence constraint method and device, computer equipment and storage medium
CN110908895A (en) Page automatic testing method and device, computer equipment and storage medium
CN110069404B (en) Code debugging method, device, equipment and medium
CN111522728A (en) Method for generating automatic test case, electronic device and readable storage medium
WO2020186808A1 (en) Page permission testing method and apparatus, computer device and storage medium
CN111190827A (en) Interface automation test method and device, storage medium and electronic equipment
CN110879781A (en) Program debugging method and device, electronic equipment and computer readable storage medium
CN110750443A (en) Webpage testing method and device, computer equipment and storage medium
CN113342685A (en) Precise test method and device, computer equipment and storage medium
CN108255967B (en) Method and device for calling storage process, storage medium and terminal
CN112631926A (en) Code test coverage rate display method and device, computer equipment and storage medium
CN111694550A (en) Page display control method, device and system
CN114610635A (en) Interface test case generation method and device, computer equipment and storage medium
CN113778878A (en) Interface testing method and device, electronic equipment and storage medium
CN113485882A (en) Chip verification method and device and computer readable storage medium
CN111737148A (en) Automatic regression testing method and device, computer equipment and storage medium
CN113282476B (en) Interface performance testing method and device and electronic equipment
CN116204396A (en) Test method and device for performance of analytical database
CN114860608A (en) Scene construction based system automation testing method, device, equipment and medium
CN114996127A (en) Intelligent test method and system for solid state disk firmware module

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant