CN-121981035-A - Method, system, device and medium for recording important signal behavior through module bind
Abstract
The application discloses a method, a system, equipment and a medium for recording important signal behaviors through module bind, and relates to the technical field of verification, wherein the method comprises the steps of creating a module file for monitoring and setting an input port of the module file according to a signal to be monitored; the method comprises the steps of processing signals of an input port according to a preset protocol, identifying a time point corresponding to effective operation in the signals, setting an intermediate variable, setting the intermediate variable to be in a first state when the effective operation is identified, setting the intermediate variable to be in a second state after the effective operation is completed, recording relevant information of the effective operation into a log file created, and correspondingly connecting the input port with the signals to be monitored by a module file bind of the set input port to a designated DUT internal interface. The application can debug and monitor key signals through waveforms, and is independent of UVM and simple to use.
Inventors
- Rong Daohui
- MA YI
- XIONG WEI
Assignees
- 芯盛智能科技(湖南)有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260408
Claims (9)
- 1. A method of recording important signal behavior by means of module bind, comprising: creating a module file for monitoring; setting input ports of module files according to all signals to be monitored; Processing signals of the input ports according to a preset protocol, and identifying a time point corresponding to effective operation in the signals; Setting at least one intermediate variable, setting the corresponding intermediate variable to a first state when a valid operation is identified, and setting the corresponding intermediate variable to a second state after the identified valid operation is completed; Creating a log file, and recording the identified relevant information of the effective operation into the log file; and connecting the module file bind with the set input port to a designated DUT internal interface, and connecting the input port with the signals to be monitored in a one-to-one correspondence manner, so as to record the signals to be monitored.
- 2. The method of recording important signal behavior by module bind according to claim 1, wherein said preset protocol comprises amba ahb protocol and ddr protocol.
- 3. The method of recording vital signal behavior via a module bond of claim 1, wherein the active operation comprises a read operation or a write operation.
- 4. The method for recording important signal behavior through module bind according to claim 1, wherein said processing the signal of the input port according to the preset protocol specifically comprises: If the preset protocol is amba ahb, identifying whether the effective operation is a read operation or a write operation according to hwrite and htrans signals, if the effective operation is the write operation, writing a mark of the write operation into a log file, and recording an address and data of the write operation into the log file; If the preset protocol is ddr, MRS, REF, SRE, SRX, PRE, PREA, RFU, ACT, WR, RD, NOP, DES, PDE, PDX, ZQCL and ZQCS operations are identified by CKE, cs_n, act_ n, ADDR, BG, BA, and C signal determination.
- 5. The method for recording critical signal behavior via module bind of claim 4, wherein a first intermediate variable of a write operation is set to logic 1 if a write operation is recognized, the first intermediate variable is set to logic 0 when a write operation is completed, a second intermediate variable of a read operation is set to logic 1 if a read operation is recognized, and the second intermediate variable is set to 0 when a read operation is completed.
- 6. The method of recording important signal behavior through module bind according to claim 4, wherein the values represented by MRS, REF, SRE, SRX, PRE, PREA, RFU, ACT, WR, RD, NOP, DES, PDE, PDX, ZQCL and ZQCS operations are assigned to a third intermediate variable, which is directly viewed when the waveform is viewed.
- 7. A system for recording important signal behavior by means of module bind, employing the method for recording important signal behavior by means of module bind according to any one of claims 1-6, characterized in that it comprises: the input port definition module is used for setting an input port of a module file according to a signal to be monitored; The identification module is used for identifying a time point corresponding to effective operation in the signal according to a preset protocol; The intermediate state management module is used for setting at least one intermediate variable, setting the intermediate variable into a first state when the start of effective operation is identified, and setting the intermediate variable into a second state when the end of effective operation is identified; the log triggering module is used for collecting relevant information when the effective operation is identified and sending a log record request; The log management module is used for creating log files and writing relevant information of effective operation into the log files according to the log record request; and the binding configuration module is used for binding the module file with the set input port to the appointed DUT internal interface, correspondingly connecting the input port with the signals to be monitored one by one and recording the signals to be monitored.
- 8. An electronic device, the electronic device comprising: A memory storing executable instructions; a processor executing the executable instructions in the memory to implement the method of recording important signal behavior by module bind of any of claims 1-6.
- 9. A computer storage medium, characterized in that the medium has stored thereon a computer program which is executed by a processor to carry out the method of recording important signal behavior by means of module bind according to any of claims 1-6.
Description
Method, system, device and medium for recording important signal behavior through module bind Technical Field The invention relates to the technical field of verification, in particular to a method, a system, equipment and a medium for recording important signal behaviors through module bind. Background In the current verification environment, UVM is used as a widely applied verification methodology, so that convenience and a unified verification idea are provided for vast verification staff, and communication cost among the verification staff is reduced. The agent of UVM can be used as master or slave to send or receive command and data stream, and the verifier can record the command and data stream through relevant sequence to save the command and data stream into a file for verification and debug by the designer. Meanwhile, the verifier can acquire the related signals of the DUT through sequence to carry out logic combination, and detect the internal behavior of the DUT. The following are simple examples of prior art master behavior recorded by UVM sequence: class example_seq_extends uvm_sequence; integer file_handle; function new(); super.new(); file name of// save file_handle = $fopen(“cfg.log”); endfunction By way of example of a write register virtual task cpu_write_reg(input bit[31:0] addr, input bit[31:0]data); Write call cpu_write_reg written address and data to file over $ fdisplay $fdisplay(file_handle, “0x%0h =>‘h%0h, addr, data); endtask endclass However, this debug method has a limitation in the soc, and if the command issuing party is cpu and not UVM agent, the command cannot be saved by sequence, and there is no way to detect the key signal. Meanwhile, agents need to be instantiated and configured layer by layer, file management is complex, and certain complexity is brought to verification environment construction. Disclosure of Invention The invention aims to overcome the defects of the prior art and provides a method, a system, equipment and a medium for recording important signal behaviors through module bind. The aim of the invention is realized by the following technical scheme: In a first aspect, the application discloses a method for recording important signal behavior by means of module bind, comprising: creating a module file for monitoring; setting input ports of module files according to all signals to be monitored; Processing signals of the input ports according to a preset protocol, and identifying a time point corresponding to effective operation in the signals; Setting at least one intermediate variable, setting the corresponding intermediate variable to a first state when a valid operation is identified, and setting the corresponding intermediate variable to a second state after the identified valid operation is completed; Creating a log file, and recording the identified relevant information of the effective operation into the log file; and connecting the module file bind with the set input port to a designated DUT internal interface, and connecting the input port with the signals to be monitored in a one-to-one correspondence manner, so as to record the signals to be monitored. Based on the first aspect, the preset protocol includes amba ahb protocols and ddr protocols. Based on the first aspect, the active operation includes a read operation or a write operation. Based on the first aspect, the processing the signal of the input port according to the preset protocol specifically includes: If the preset protocol is amba ahb, identifying whether the effective operation is a read operation or a write operation according to hwrite and htrans signals, if the effective operation is the write operation, writing a mark of the write operation into a log file, and recording an address and data of the write operation into the log file; If the preset protocol is ddr, MRS, REF, SRE, SRX, PRE, PREA, RFU, ACT, WR, RD, NOP, DES, PDE, PDX, ZQCL and ZQCS operations are identified by CKE, cs_n, act_ n, ADDR, BG, BA, and C signal determination. Based on the first aspect, if a write operation is identified, a first intermediate variable of the write operation is set to logic 1, when the write operation is complete, the first intermediate variable is set to logic 0, if a read operation is identified, a second intermediate variable of the read operation is set to logic 1, when the read operation is complete, the second intermediate variable is set to 0. Based on the first aspect, the MRS, REF, SRE, SRX, PRE, PREA, RFU, ACT, WR, RD, NOP, DES, PDE, PDX, ZQCL and the value represented by the ZQCS operation are assigned to the third intermediate variable, and when the waveform is checked, the third intermediate variable is directly checked, so that the command sent by the ddr interface is intuitively known. In a second aspect, the present application discloses a system for recording important signal behaviors through module bind, and the method for recording important signal behaviors through module