CN115758963A - Device, method and system for processing printing information in chip EDA simulation - Google Patents

Device, method and system for processing printing information in chip EDA simulation Download PDF

Info

Publication number
CN115758963A
CN115758963A CN202211439284.5A CN202211439284A CN115758963A CN 115758963 A CN115758963 A CN 115758963A CN 202211439284 A CN202211439284 A CN 202211439284A CN 115758963 A CN115758963 A CN 115758963A
Authority
CN
China
Prior art keywords
printing
simulation
information
file
module
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.)
Pending
Application number
CN202211439284.5A
Other languages
Chinese (zh)
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.)
Mouxin Technology Shanghai Co ltd
Original Assignee
Mouxin Technology Shanghai Co ltd
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 Mouxin Technology Shanghai Co ltd filed Critical Mouxin Technology Shanghai Co ltd
Priority to CN202211439284.5A priority Critical patent/CN115758963A/en
Publication of CN115758963A publication Critical patent/CN115758963A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The invention discloses a device, a method and a system for processing printing information in chip EDA simulation, and relates to the technical field of chip simulation. The device comprises: the information acquisition module is used for acquiring a printing control command input by a user in a command line and configuring the printing information in the EDA simulation tool to control whether the printing information is displayed and output; the command analysis module is used for analyzing the printing control command to obtain the simulation file and the IP module information to which the printing information to be displayed and not to be displayed and output belongs; and the printing control module is used for matching the simulation files of the IP modules in the EDA simulation tool based on the regular expressions according to the analysis result, normally printing and outputting the printing information to be displayed and output, and annotating the printing information not to be displayed and output so as to control the printing information not to be printed. The invention has simple and flexible operation and accurate printing information, and saves time resources and computing resources.

Description

Device, method and system for processing printing information in chip EDA simulation
Technical Field
The invention relates to the technical field of chip simulation, in particular to a device, a method and a system for processing printing information in chip Electronic Design Automation (EDA) simulation.
Background
In the field of IC design, mainstream Chip design is more and more prone to System on Chip (SoC) design using a reusable IP core (also referred to as an IP module), and the SoC Chip is a highly concentrated embedded System on Chip, which can improve Chip design efficiency and shorten design cycle. In the development and design process of the SoC chip, EDA (Electronic design automation) simulation verification needs to be performed on system functions of the chip, wherein simulation verification on an IP module of the chip is an important link in the chip simulation process, common IP modules such as a CPU module, a DDR module, a USB module, an AXI module, an AHB module, a PCIE module and the like may be verified and debugged by different verification engineers. In the process of verifying and debugging the IP module, a verification engineer in charge of the module usually adds a print command of related information to a simulation file to obtain simulation related information (including various simulation process information, simulation result information, and the like) more intuitively in order to debug and trace simulation information. According to the print command in the simulation file, the print information is output to the display for displaying, and the function (or print function) of adding the print information in the simulation file is the most common way. For example, in an EDA simulation tool, print commands are usually from functions such as $ display (), "uvm _ info () in files such as verilog, systemverilog, etc., and the $ display statement is used for display output of system information (such as character string, simulation time, etc.) and will automatically change lines after each $ display execution; the function of the "uvm _ info statement is similar to that of the $ display statement, but the function is more powerful, and a redundancy threshold of the print information can be set to control the output of the print information.
At present, the verification environment of the SoC chip is usually maintained by multiple persons, and in the simulation process, each person can add printing information in a simulation file corresponding to the verification environment according to own simulation requirements, and all the added printing information can be output. For example, a verification engineer in charge of verifying the DDR module may add printing information related to the verification and debugging of the DDR module in the verification environment to know the real-time simulation process, and a verification engineer in charge of verifying the USB module may also add printing information related to the verification and debugging of the USB module in the verification environment to know the real-time simulation process. In the process of EDA simulation verification of a large SoC chip, verification debugging of a plurality of IP modules is included, and a plurality of verilog and system verilog simulation files are also included, and printing information in the plurality of simulation files not only causes information redundancy, but also influences the simulation progress. For example, a verification engineer in charge of verifying the DDR module adds related print information X in a verification environment, the verification engineer in charge of verifying the USB module adds related print information Y when performing simulation verification of the USB module, and since the simulation of the USB module calls the DDR module, the verification engineer of the USB module receives not only the print information Y of the USB module but also the print information X of the DDR module during the simulation process, and when the simulation of the USB module calls other modules, the verification engineer of the USB module also receives the print information of the other modules, but the verification engineer of the USB module often only needs to use the print information of the USB module without using the print information of the other modules. The phenomenon is also very common when the actual simulation is carried out, not only is the hardware simulation load increased, but also the simulation process is slowed down, the simulation progress is influenced, meanwhile, the verification engineer can not accurately obtain the printing information required by the verification engineer, and a large amount of time resources of the verification engineer are wasted.
On the other hand, the prior art also discloses some output control schemes for the printing information aiming at the problems of redundant printing information and complicated printing output control operation in the software development and debugging process. For example, chinese patent application CN202010090890.5 discloses a data printing method: detecting a serial port input printing command by using a target thread, wherein the printing command comprises an instruction character string and a keyword; and determining a printing function corresponding to the instruction character string, and executing the printing parameters by taking the keywords as input parameters of the printing function. According to the scheme, the output is controlled by inputting the printing command through the serial port, and the printing output of the concerned variable can be flexibly controlled by combining the predefined printing function without additionally printing the statement, so that the complexity of code modification is reduced. However, in the above technical solution, the debugging personnel needs to define the printing function, such as the accurate reading function, the matching reading function, the detection reading function, the accurate writing function, and the like, and preset and store the corresponding relationship between the command character string and the printing function, so that the operation is complicated, and different debugging personnel may define various printing functions based on their own requirements and styles, which results in debugging and printing of different modules and different personnel in various styles, and is difficult to maintain and diagnose in the later period, and is particularly not suitable for the SoC chip simulation scene requiring multi-user co-maintenance.
In summary, as the design scale of the SoC chip is larger and larger, and the number of IP modules is larger and larger, how to control the printing information of the IP modules in the EDA simulation of the chip is an urgent technical problem to be solved.
Disclosure of Invention
The invention aims to: the defects of the prior art are overcome, and the device, the method and the system for processing the printing information in the simulation of the chip EDA are provided. The device provided by the invention can collect the printing control command of the user, and analyze the printing control command to judge whether to annotate the function statement in the simulation file of the IP module, thereby controlling the output of the printing information.
In order to achieve the above object, the present invention provides the following technical solutions:
a processing apparatus for printing information in chip EDA simulation, comprising:
the information acquisition module is used for acquiring a printing control command input by a user in a command line, and the printing control command is used for configuring the printing information in the EDA simulation tool so as to control whether the printing information is displayed and output;
the command analysis module is used for analyzing the printing control command to obtain the simulation file and the IP module information of the printing information to be displayed and output in the printing control command and the simulation file and the IP module information of the printing information not to be displayed and output; the simulation files are arranged corresponding to the IP modules, and different IP modules correspond to different simulation files;
the printing control module is used for matching the simulation files of all IP modules in the EDA simulation tool based on the regular expression according to the analysis result of the command analysis module, executing the printing operation of the simulation files on the display terminal of the user after acquiring the simulation file information to which the printing information to be displayed and output belongs, and annotating the printing function in the simulation files after acquiring the simulation file information to which the printing information not to be displayed and output belongs so that the corresponding simulation files do not perform the printing operation on the display terminal of the user; and the annotated printing statement corresponding to the printing function is retained in the simulation file with the annotation information and does not execute the printing operation.
Further, the print control command comprises control command options and file keywords, the control command options at least comprise a Log _ on option and a Log _ off option, and the file keywords comprise a first file keyword and a second file keyword;
the first file keyword is used as an input parameter of a log _ on option and is used for configuring simulation file name information corresponding to the printing information to be displayed and output;
the second file keyword is used as an input parameter behind a Log _ off option and is used for configuring simulation file name information corresponding to the printing information which is not required to be displayed and output;
the name information of the simulation files comprises the IP module information of the simulation files so as to distinguish the IP modules of the simulation files.
Further, the printing control module comprises an annotation unit and a printing unit;
the annotation unit is configured to: acquiring a second file keyword after a command log _ off option, matching the simulation file names of all IP modules in an EDA simulation tool based on a regular expression, and after acquiring all simulation files of which the names contain the second file keyword, annotating all printing functions corresponding to printing information contained in the simulation files on a display terminal of the user so as to control the printing sentences of the simulation files not to be displayed and output;
the printing unit is configured to: acquiring a first file keyword after a command log _ on option, matching the simulation file names of all IP modules in an EDA simulation tool based on a regular expression, acquiring all simulation files of which the names contain the first file keyword, and executing printing operation on the simulation files on a display terminal of the user so as to control the printing statement display output of the simulation files.
Further, the simulation file name of each IP module includes the name and/or number information of the IP module, and the name and/or number information of the IP module is added to the corresponding simulation file name in a prefix manner.
Further, the printing control command further comprises content keywords, the control command options further comprise a Log _ on _ word option and a Log _ off _ word option, and the content keywords comprise a first content keyword and a second content keyword;
the first content keyword is used as an input parameter of a log _ on _ word option and is used for configuring content information contained in the print information to be displayed and output, and at the moment, the content of the print information contains an execution print operation of the first content keyword;
and the second content keyword is used as an input parameter behind a Log _ off _ word option and is used for configuring content information contained in the print information which is not required to be displayed and output, and at the moment, the content of the print information contains the second content keyword and the printing operation is not executed.
Further, analyzing input parameters after the Log _ on _ word option and the Log _ off _ word option of the command by a command analyzing module, and sending an analysis result to a printing control module;
the print control module is configured to:
matching the printing sentences corresponding to the printing information in the EDA simulation tool based on the regular expression according to the first content keywords after the command log _ on _ word option, acquiring all the printing sentences containing the first content keywords in the printing information, and executing printing operation on the printing sentences on the display terminal of the user so as to control the display and output of the printing sentences; and (c) a second step of,
and matching the printing sentences corresponding to the printing information in the EDA simulation tool based on the regular expressions according to the second content keywords after the command log _ off _ word option, acquiring all the printing sentences containing the second content keywords in the printing information, and executing comment-off operation on the printing sentences on the display terminal of the user so as to control the printing sentences not to be displayed and output.
Further, the simulation file is a simulation file based on verilog language or systemverilog language, and the printing function is a $ display function or a' uvm _ info function.
Further, the IP module includes two or more of a CPU module, a DDR module, a USB module, an AXI module, an AHB module, and a PCIE module.
The invention also provides a method for processing the printing information in the simulation of the chip EDA, which comprises the following steps:
collecting a printing control command input by a user in a command line, wherein the printing control command is used for configuring printing information in an EDA simulation tool so as to control whether the printing information is displayed and output; collecting the display terminal information of the user;
analyzing the printing control command to obtain a simulation file and IP module information to which the printing information to be displayed and output belongs and simulation file and IP module information to which the printing information not to be displayed and output belongs in the printing control command; the simulation files are arranged corresponding to the IP modules, and different IP modules correspond to different simulation files;
matching simulation files of all IP modules in the EDA simulation tool based on a regular expression according to the analysis result of the command analysis module, and executing the printing operation of the simulation files on the display terminal of the user after acquiring the simulation file information to which the printing information to be displayed and output belongs; after acquiring the simulation file information to which the print information which is not required to be displayed and output belongs, annotating the print function in the simulation file so as to prevent the corresponding simulation file from being printed on the display terminal of the user; and the printing statement corresponding to the annotated printing function is reserved in the simulation file as the annotation information and does not execute the printing operation any more.
The invention also provides a chip EDA simulation system, which comprises a printer connected with the EDA simulation platform, wherein the printer comprises the device of any one of the preceding claims.
Due to the adoption of the technical scheme, compared with the prior art, the invention has the following advantages and positive effects as examples: the device provided by the invention can collect the printing control command of the user, and analyze the printing control command to judge whether to annotate the function statement in the simulation file of the IP module, thereby controlling the output of the printing information.
Drawings
Fig. 1 is a schematic block structure diagram of a processing apparatus for printing information in chip EDA simulation according to an embodiment of the present invention.
Fig. 2 is a diagram illustrating an exemplary example of a print control command according to an embodiment of the present invention.
Fig. 3 is an exemplary diagram of an analysis result of the command analysis module according to the embodiment of the present invention.
Fig. 4 is a flowchart of a method for processing print information in chip EDA simulation according to an embodiment of the present invention.
Description of the reference numerals
The device 100, the information acquisition module 110, the command analysis module 120 and the printing control module 130.
Detailed Description
The following describes the device, method and system for processing print information in the EDA simulation of a chip according to the present disclosure in further detail with reference to the accompanying drawings and specific embodiments. It should be noted that technical features or combinations of technical features described in the following embodiments should not be considered as being isolated, and they may be combined with each other to achieve better technical effects. In the drawings of the embodiments described below, the same reference numerals appearing in the respective drawings denote the same features or components, and may be applied to different embodiments. Thus, once an item is defined in one drawing, it need not be further discussed in subsequent drawings.
It should be noted that the structures, proportions, sizes, and other dimensions shown in the drawings and described in the specification are only for the purpose of understanding and reading the present disclosure, and are not intended to limit the scope of the invention, which is defined by the claims, and any modifications of the structures, changes in the proportions and adjustments of the sizes and other dimensions, should be construed as falling within the scope of the invention unless the function and objectives of the invention are affected. The scope of the preferred embodiments of the present invention includes additional implementations in which functions may be executed out of order from that described or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate. In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
The control of printing of the print information according to the present invention means control of display and output of the print information.
Examples
Referring to fig. 1, the invention provides a processing apparatus for printing information in simulation of a chip EDA. The apparatus 100 includes an information collection module 110, a command parsing module 120, and a print control module 130.
And the information acquisition module 110 is used for acquiring a printing control command input by a user in a command line, wherein the printing control command is used for configuring the printing information in the EDA simulation tool so as to control whether the printing information is displayed and output.
A command analysis module 120, configured to analyze the print control command to obtain a simulation file and IP module information to which print information to be displayed and output belongs, and a simulation file and IP module information to which print information not to be displayed and output belongs; the simulation files are arranged corresponding to the IP modules, and different IP modules correspond to different simulation files.
A print control module 130, configured to match, according to an analysis result of the command analysis module, the simulation files of the IP modules in the EDA simulation tool based on the regular expression, execute the print operation of the simulation file on the display terminal of the user after acquiring the simulation file information to which the print information to be displayed and output belongs, and annotate the print function in the simulation file after acquiring the simulation file information to which the print information not to be displayed and output belongs, so that the corresponding simulation file is not printed on the display terminal of the user. And the annotated printing statement corresponding to the printing function is retained in the simulation file with the annotation information and does not execute the printing operation.
The simulation file is preferably a simulation file based on verilog language or systemverilog language, and the printing function is a $ display function or a' uvm _ info function.
The IP module may be specifically a CPU module, a DDR module, a USB module, an AXI module, an AHB module, and a PCIE module.
In this embodiment, the print control command may specifically include a control command option and a file keyword. The control command options include at least a Log _ on option and a Log _ off option. The file keywords include a first file keyword and a second file keyword.
The first file keyword is used as an input parameter of a log _ on option and is used for configuring simulation file name information corresponding to the printing information to be displayed and output. And the second file keyword is used as an input parameter behind a Log _ off option and is used for configuring simulation file name information corresponding to the printing information which is not required to be displayed and output. The name information of the simulation files comprises the IP module information of the simulation files so as to distinguish the IP modules of the simulation files.
By way of example and not limitation, a user may enter a command in the command line as:
-log_on < file1 >
-log_off <file2 >
the information collecting module 110 collects the command information of the user and then sends the command information to the command parsing module 120. The command parsing module 120 parses the control command options and the file keywords in the commands, and obtains parsing results as follows: the printing information in the simulation file with the name of the simulation file containing the log _ on input parameter < file1> is normally printed, and the printing information in the simulation file with the name of the simulation file containing the log _ off input parameter < file2> is not printed. Then, the print control module 130 controls whether the print information is printed or not according to the analysis result of the command analysis module 120.
In a specific setting, the simulation file name information may be configured as a keyword in a simulation file name. At this time, the simulation file having the first file keyword in the simulation file name performs the printing operation, and the simulation file having the second file keyword in the simulation file name does not perform the printing operation. That is, the simulation files having the file names including the first file keywords are normally printed out, and the simulation files having the file names including the second file keywords are not printed out.
Alternatively, the emulated file name information is configured as a full name of the emulated file. At this time, the simulation file having the simulation file name of the first file keyword executes the printing operation, and the simulation file having the simulation file name of the second file keyword does not execute the printing operation. That is, the simulation file having the file name of the first file keyword is normally printed out, and the simulation file having the file name of the second file keyword is not printed out.
In this embodiment, the print control module may specifically include an annotation unit and a printing unit.
The annotation unit may be specifically configured to: and acquiring a second file keyword after a command log _ off option, matching the simulation file names of all IP modules in the EDA simulation tool based on a regular expression, and after acquiring all simulation files of which the names contain the second file keyword, annotating all printing functions corresponding to printing information contained in the simulation files on a display terminal of the user so as to control the printing sentences of the simulation files not to be displayed and output.
The printing unit may specifically be configured to: acquiring a first file keyword after a command log _ on option, matching the simulation file names of all IP modules in an EDA simulation tool based on a regular expression, acquiring all simulation files of which the names contain the first file keyword, and executing printing operation on the simulation files on a display terminal of the user so as to control the printing statement display output of the simulation files.
In a preferred embodiment, the simulation file name of each IP module may include the name and/or number information of the IP module, and the name and/or number information of the IP module is added to the corresponding simulation file name in a prefix manner. As a typical example, for example, the emulation file name of the USB module is usually prefixed by USB, the file name of the DDR module is usually prefixed by DDR, and the file name of the CPU module is usually prefixed by CPU.
In another implementation manner of this embodiment, the print control command may further include content keywords, and the control command options may further include a Log _ on _ word option and a Log _ off _ word option, where the content keywords include a first content keyword and a second content keyword.
The first content keyword is used as an input parameter of a log _ on _ word option and is used for configuring content information contained in the print information to be displayed and output, and at the moment, the content of the print information contains the executed print operation of the first content keyword. And the second content keyword is used as an input parameter behind a Log _ off _ word option and is used for configuring content information contained in the print information which is not to be displayed and output, and at the moment, the content of the print information contains the second content keyword, and the printing operation is not executed.
And analyzing the input parameters after the Log _ on _ word option and the Log _ off _ word option of the command by the command analysis module, and sending the analysis result to the printing control module.
At this time, the print control module is configured to: matching the printing sentences corresponding to the printing information in the EDA simulation tool based on the regular expression according to the first content keywords after the command log _ on _ word option, acquiring all the printing sentences containing the first content keywords in the printing information, and executing printing operation on the printing sentences on the display terminal of the user so as to control the display and output of the printing sentences; and matching the printing sentences corresponding to the printing information in the EDA simulation tool based on the regular expressions according to the second content keywords after the command log _ off _ word option, acquiring all the printing sentences containing the second content keywords in the printing information, and executing comment-off operation on the printing sentences on the display terminal of the user so as to control the printing sentences not to be displayed and output.
By way of example and not limitation, a user may enter a command in the command line as:
-log_on_word <word1>
-log_off_word <word2>
the information collecting module 110 collects the command information of the user and then sends the command information to the command parsing module 120. The command parsing module 120 parses the control command options and the content keywords in the commands, and obtains parsing results as follows: normally printing the printing information containing the Log _ on _ word parameter < word1> in the printing content, and not printing the printing information containing the Log _ off _ word parameter < word2> in the printing content. Then, the print control module 130 controls whether the print information is printed or not according to the analysis result of the command analysis module 120.
The print control process of the present embodiment is described in detail below with reference to fig. 2 and 3.
When a USB verification engineer (i.e. a user) calls the DDR module when simulating the USB module, and the USB verification engineer wants to receive print information of the simulation file from the USB module but not receive print information of the simulation file from the DDR module, and wants to receive print information of the simulation file which is successfully tested but not receive print information of the simulation file which is failed to be tested, the USB verification engineer may input the following print control command through a command line:
-log_on usb*
-log_off ddr*
-log_on_word success
-log_off_word fail
the command parsing module parses 4 control command options "log _ on", "log _ off", "log _ on _ word", and "log _ off _ word" in the aforementioned commands and their corresponding file keywords or content keywords, respectively, as shown in fig. 2.
The analysis result obtained by the command analysis module is shown in fig. 3: controlling printing information in all simulation files (the simulation file name of the USB module comprises a prefix USB) under the USB module to be printed normally, and controlling printing information in all simulation files (the simulation file name of the DDR module comprises a prefix DDR) under the DDR module not to be printed; and controlling the printing information containing the keyword success in the printing content to be printed normally, and controlling the printing information containing the keyword fail in the printing content not to be printed.
The print control module 130 controls whether the print information is printed or not according to the analysis result of the command analysis module 120. Specifically, after acquiring an input parameter "USB ″" of the log _ on command, the printing unit of the print control module 130 matches the simulation files of the IP modules in the EDA simulation tool based on the regular expression, and after acquiring all the simulation files with file names beginning with USB, controls the print information of these simulation files to perform the printing operation, as shown in fig. 3, the print information in the simulation files with names beginning with USB in the table (including USB _1.V, USB _2.V, \8230;, USB _ n.v, where n is an integer greater than 1) is normally printed on the display terminal of the USB verification engineer. After obtaining the input parameter "ddr" of the log _ off command, the annotating unit of the print control module 130 matches the simulation files of the IP modules in the EDA simulation tool based on the regular expression, and after obtaining all the simulation files with file names beginning with ddr, annotates the function statements such as the print functions $ display (), "uvm _ info (), i.e., annotates the print functions with annotation symbols. After the print function is annotated, the corresponding print statements are not run but are kept in the simulation files as annotation information, so that the print information of the simulation files can be controlled not to be printed and output in the display terminal of the USB verification engineer, as shown in FIG. 3, the print information in the simulation files (including ddr _1.V, ddr _2.V, \ 8230; \8230;, ddr _ m.v, < m > 1 integer) with the names ddr in the table is not printed and displayed in the display terminal of the USB verification engineer.
Meanwhile, after acquiring the input parameter "success" of the log _ word _ on command, the printing unit of the printing control module 130 matches the printing information in the simulation file of each IP module in the EDA simulation tool in the regular expression manner, and after acquiring the printing statements including "success" in the printing information, controls the printing statements to be printed and output, as shown in fig. 3, the printing information "Test success" in the file1.V simulation file in the table includes "success", and the printing information of the simulation file is normally printed in the display terminal of the USB verification engineer. After acquiring the input parameter "fail" of the log _ off _ on command, the annotating unit of the print control module 130 matches the print information in the simulation file of each IP module in the EDA simulation tool in a regular expression manner, acquires the print statement including "fail" in the print information, annotates the print function in the simulation file, and after the print function is annotated, the corresponding print statement will not run but will be retained in the simulation file as the annotation information, as shown in fig. 3, the print information "Test fail" in the file2.V simulation file in the table includes "fail", and the print information in the simulation file is no longer printed and output in the display terminal of the USB verification engineer.
Therefore, when the verification engineer simulates, the printing information in the simulation files can be flexibly configured according to needs, so that the printing information of some simulation files is not required to be output, and the printing information of other simulation files is normally output. In particular, the verification engineer can flexibly control the output of relevant printing information and the non-output of non-relevant printing information based on the IP module in charge of the verification engineer, the operation is simple and flexible, the printing information is accurate, and time resources and computing resources for modifying and compiling a code file for controlling the output of the printing information are saved.
The invention further provides a method for processing the printing information in the simulation of the EDA of the chip.
Referring to fig. 4, the method includes the following steps.
S100, collecting a printing control command input by a user in a command line, wherein the printing control command is used for configuring printing information in an EDA simulation tool so as to control whether the printing information is displayed and output; and collecting the display terminal information of the user.
S200, analyzing the printing control command to obtain a simulation file and IP module information to which the printing information to be displayed and output belongs and simulation file and IP module information to which the printing information not to be displayed and output belongs; the simulation files are arranged corresponding to the IP modules, and different IP modules correspond to different simulation files.
S300, matching simulation files of all IP modules in the EDA simulation tool based on a regular expression according to the analysis result of the command analysis module, and executing the printing operation of the simulation files on the display terminal of the user after acquiring the simulation file information to which the printing information to be displayed and output belongs; after acquiring the simulation file information to which the print information which is not required to be displayed and output belongs, annotating the print function in the simulation file so as to prevent the corresponding simulation file from being printed on the display terminal of the user; and the annotated printing statement corresponding to the printing function is retained in the simulation file with the annotation information and does not execute the printing operation.
Specifically, the print control command may include control command options and file keywords, the control command options including at least a Log _ on option and a Log _ off option, and the file keywords including a first file keyword and a second file keyword. The first file keyword is used as an input parameter of a log _ on option and is used for configuring simulation file name information corresponding to the printing information to be displayed and output. And the second file keyword is used as an input parameter behind a Log _ off option and is used for configuring simulation file name information corresponding to the printing information which is not required to be displayed and output. The simulation file name information includes the IP module information of the simulation file so as to distinguish the IP module of each simulation file.
Specifically, an annotation unit and a printing unit may be provided. The annotation unit is configured to: and acquiring a second file keyword after a command log _ off option, matching the simulation file names of all IP modules in the EDA simulation tool based on a regular expression, and after acquiring all simulation files of which the names contain the second file keyword, annotating all printing functions corresponding to printing information contained in the simulation files on a display terminal of the user so as to control the printing sentences of the simulation files not to be displayed and output. The printing unit is configured to: acquiring a first file keyword after a command log _ on option, matching the simulation file names of all IP modules in an EDA simulation tool based on a regular expression, acquiring all simulation files of which the names contain the first file keyword, and executing printing operation on the simulation files on a display terminal of the user so as to control the printing statement display output of the simulation files.
In this embodiment, the print control command may further include content keywords, the control command options may further include a Log _ on _ word option and a Log _ off _ word option, and the content keywords include a first content keyword and a second content keyword.
The first content keyword is used as an input parameter of a log _ on _ word option and is used for configuring content information included in the print information to be displayed and output, and at this time, the content of the print information includes an executed print operation of the first content keyword. And the second content keyword is used as an input parameter behind a Log _ off _ word option and is used for configuring content information contained in the print information which is not to be displayed and output, and at the moment, the content of the print information contains the second content keyword, and the printing operation is not executed.
And analyzing the input parameters after the Log _ on _ word option and the Log _ off _ word option of the command by the command analysis module, and sending the analysis result to the printing control module.
At this time, the print control module may be configured to: matching the printing sentences corresponding to the printing information in the EDA simulation tool based on the regular expression according to the first content keywords after the command log _ on _ word option, acquiring all the printing sentences containing the first content keywords in the printing information, and executing printing operation on the printing sentences on the display terminal of the user so as to control the display and output of the printing sentences; and matching the printing sentences corresponding to the printing information in the EDA simulation tool based on the regular expressions according to the second content keywords after the command log _ off _ word option, acquiring all the printing sentences containing the second content keywords in the printing information, and executing comment-off operation on the printing sentences on the display terminal of the user so as to control the printing sentences not to be displayed and output.
Other technical features are referred to the description of the previous embodiment and are not described in detail herein.
The invention further provides a chip EDA simulation system. The chip EDA simulation system includes a printer connected to an EDA simulation platform, the printer including the apparatus of any of the preceding claims.
Other technical features are referred to the description of the previous embodiment and are not described in detail herein.
In the foregoing description, the disclosure of the present invention is not intended to limit itself to these aspects. Rather, the various components may be selectively and operatively combined in any number within the intended scope of the disclosure. In addition, terms like "comprising," "including," and "having" should be interpreted as inclusive or open-ended, rather than exclusive or closed-ended, by default, unless explicitly defined to the contrary. All technical, scientific, or other terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs, unless defined otherwise. Common terms found in dictionaries should not be interpreted too ideally or too realistically in the context of related art documents unless the present disclosure expressly limits them to that. Any changes and modifications of the present invention based on the above disclosure may be made by those of ordinary skill in the art and shall fall within the scope of the appended claims.

Claims (10)

1. A processing apparatus for printing information in chip EDA simulation, comprising:
the information acquisition module is used for acquiring a printing control command input by a user in a command line, and the printing control command is used for configuring the printing information in the EDA simulation tool so as to control whether the printing information is displayed and output;
the command analysis module is used for analyzing the printing control command to obtain a simulation file and IP module information which the printing information to be displayed and output belongs to and simulation file and IP module information which the printing information not to be displayed and output belongs to in the printing control command; the simulation files are arranged corresponding to the IP modules, and different IP modules correspond to different simulation files;
the printing control module is used for matching simulation files of all IP modules in the EDA simulation tool based on a regular expression according to the analysis result of the command analysis module, executing the printing operation of the simulation files on the display terminal of the user after acquiring the simulation file information to which the printing information to be displayed and output belongs, and annotating the printing function in the simulation files after acquiring the simulation file information to which the printing information not to be displayed and output belongs so that the corresponding simulation files do not print on the display terminal of the user; and the annotated printing statement corresponding to the printing function is retained in the simulation file with the annotation information and does not execute the printing operation.
2. The apparatus of claim 1, wherein: the printing control command comprises a control command option and a file keyword, the control command option at least comprises a Log _ on option and a Log _ off option, and the file keyword comprises a first file keyword and a second file keyword;
the first file keyword is used as an input parameter of a log _ on option and is used for configuring simulation file name information corresponding to the printing information to be displayed and output;
the second file keyword is used as an input parameter behind a Log _ off option and is used for configuring simulation file name information corresponding to the printing information which is not required to be displayed and output;
the name information of the simulation files comprises the IP module information of the simulation files so as to distinguish the IP modules of the simulation files.
3. The apparatus of claim 2, wherein: the printing control module comprises an annotation unit and a printing unit;
the annotation unit is configured to: acquiring a second file keyword after a command log _ off option, matching the simulation file names of all IP modules in an EDA simulation tool based on a regular expression, and after acquiring all simulation files of which the names contain the second file keyword, annotating all printing functions corresponding to printing information contained in the simulation files on a display terminal of the user so as to control the printing sentences of the simulation files not to be displayed and output;
the printing unit is configured to: acquiring a first file keyword after a command log _ on option, matching the simulation file names of all IP modules in an EDA simulation tool based on a regular expression, acquiring all simulation files of which the names contain the first file keyword, and executing printing operation on the simulation files on a display terminal of the user so as to control the printing statement display output of the simulation files.
4. The apparatus of claim 3, wherein: the simulation file name of each IP module comprises the name and/or the number information of the IP module, and the name and/or the number information of the IP module is added into the corresponding simulation file name in a prefix mode.
5. The apparatus of claim 2, wherein: the printing control command further comprises content keywords, the control command options further comprise a Log _ on _ word option and a Log _ off _ word option, and the content keywords comprise a first content keyword and a second content keyword;
the first content keyword is used as an input parameter of a log _ on _ word option and is used for configuring content information contained in the print information to be displayed and output, and at the moment, the content of the print information contains the executed print operation of the first content keyword;
and the second content keyword is used as an input parameter behind a Log _ off _ word option and is used for configuring content information contained in the print information which is not to be displayed and output, and at the moment, the content of the print information contains the second content keyword, and the printing operation is not executed.
6. The apparatus of claim 5, wherein: analyzing the input parameters of the commands after the Log _ on _ word option and the Log _ off _ word option through a command analyzing module, and sending the analysis result to a printing control module;
the print control module is configured to:
matching the printing sentences corresponding to the printing information in the EDA simulation tool based on the regular expression according to the first content keywords after the command log _ on _ word option, acquiring all the printing sentences containing the first content keywords in the printing information, and executing printing operation on the printing sentences on the display terminal of the user so as to control the display and output of the printing sentences; and (c) a second step of,
and matching the printing sentences corresponding to the printing information in the EDA simulation tool based on the regular expressions according to the second content keywords after the command log _ off _ word option, acquiring all the printing sentences containing the second content keywords in the printing information, and executing comment-off operation on the printing sentences on the display terminal of the user so as to control the printing sentences not to be displayed and output.
7. The apparatus of claim 1, wherein: the simulation file is a simulation file based on verilog language or systemverilog language, and the printing function is a $ display function or a' uvm _ info function.
8. The apparatus of claim 1, wherein: the IP module comprises two or more than two of a CPU module, a DDR module, a USB module, an AXI module, an AHB module and a PCIE module.
9. A method for processing printing information in chip EDA simulation is characterized by comprising the following steps:
collecting a printing control command input by a user in a command line, wherein the printing control command is used for configuring printing information in an EDA simulation tool so as to control whether the printing information is displayed and output; collecting the display terminal information of the user;
analyzing the printing control command to obtain a simulation file and IP module information to which the printing information to be displayed and output belongs and simulation file and IP module information to which the printing information not to be displayed and output belongs in the printing control command; the simulation files are arranged corresponding to the IP modules, and different IP modules correspond to different simulation files;
matching simulation files of all IP modules in the EDA simulation tool based on a regular expression according to the analysis result of the command analysis module, and executing the printing operation of the simulation files on the display terminal of the user after acquiring the simulation file information to which the printing information to be displayed and output belongs; after acquiring the simulation file information to which the print information which is not required to be displayed and output belongs, annotating the print function in the simulation file so as to prevent the corresponding simulation file from being printed on the display terminal of the user; and the printing statement corresponding to the annotated printing function is reserved in the simulation file as the annotation information and does not execute the printing operation any more.
10. A chip EDA simulation system comprising a printer connected to an EDA simulation platform, characterized in that: the printer comprises the apparatus of any one of claims 1-8.
CN202211439284.5A 2022-11-17 2022-11-17 Device, method and system for processing printing information in chip EDA simulation Pending CN115758963A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211439284.5A CN115758963A (en) 2022-11-17 2022-11-17 Device, method and system for processing printing information in chip EDA simulation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211439284.5A CN115758963A (en) 2022-11-17 2022-11-17 Device, method and system for processing printing information in chip EDA simulation

Publications (1)

Publication Number Publication Date
CN115758963A true CN115758963A (en) 2023-03-07

Family

ID=85372468

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211439284.5A Pending CN115758963A (en) 2022-11-17 2022-11-17 Device, method and system for processing printing information in chip EDA simulation

Country Status (1)

Country Link
CN (1) CN115758963A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116595932A (en) * 2023-07-17 2023-08-15 芯耀辉科技有限公司 Log printing method and related device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116595932A (en) * 2023-07-17 2023-08-15 芯耀辉科技有限公司 Log printing method and related device
CN116595932B (en) * 2023-07-17 2023-10-20 芯耀辉科技有限公司 Log printing method and related device

Similar Documents

Publication Publication Date Title
CN110632499B (en) Test vector generation method based on test object and storage medium
CN112580295A (en) Automatic verification method, system and device for multi-core SoC chip
CN111523284B (en) Method, device and application for converting chip EDA simulation configuration
KR20000029237A (en) Semiconductor integrated circuit evaluation system
CN112444731B (en) Chip testing method and device, processor chip and server
CN115543797A (en) Bus conversion bridge verification method, device, equipment and storage medium based on UVM
CN115562982A (en) Reference model debugging method and device, electronic equipment and storage medium
CN115758963A (en) Device, method and system for processing printing information in chip EDA simulation
US8904247B2 (en) Test pattern generation apparatus, test program generation apparatus, generation method, program, and test apparatus
JPWO2005036402A1 (en) Test program debug device, semiconductor test device, test program debug method, and test method
CN115656791A (en) Test method and test platform for chip testability design
CN110688269B (en) RTL code automatic verification device and method adopting AXI bus interface
CN116049014A (en) AMBA bus verification platform generation method and device
CN114692533A (en) Method and device for checking clock in chip EDA simulation
JP2886191B2 (en) Instruction analysis apparatus and method
CN111624475B (en) Method and system for testing large-scale integrated circuit
CN112346918A (en) Method and application for assisting waveform debug in chip verification
CN105760638A (en) SOC-chip simulation accelerating method
CN101159492A (en) Simulation checking system and its method for SDH logical design
CN115684894B (en) Test method and test platform for chip testability design
US6536020B2 (en) Efficient generation of optimum test data
CN112380133B (en) Method and device for simulating instruction set simulator by utilizing function library
JP5327019B2 (en) Software automatic test method
CN112462248A (en) Test signal output system and use method thereof
CN107872358B (en) Automatic simulation test method for HDLC protocol

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