Verification method and device of tracking encoder and electronic equipment

By adding a time period attribute to the input stimulus, the problem that tracking encoder models based on C or Python cannot recognize the order of input stimuli is solved, achieving efficient circuit function verification, reducing complexity and improving reusability.

CN116166324BActive Publication Date: 2026-12-04BEIJING ESWIN COMPUTING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211546001.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-02
Publication Date
2026-12-04
Estimated Expiration
2042-12-02

AI Technical Summary

Technical Problem

Tracking encoder models based on C or Python languages ​​cannot receive input stimuli and simulate circuit behavior in real time, and cannot identify the order of input stimuli, thus failing to effectively simulate the functions of the circuit design.

Method used

By adding a time period attribute to the input stimulus, each input stimulus is identified and executed sequentially. Preprocessing and analog trace coding methods are used to generate the desired output result to verify the circuit function.

Benefits of technology

It reduces the coupling of circuit functions, improves the reusability of the model, shortens the verification cycle, reduces verification costs, and can detect circuit anomalies in advance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116166324B_ABST
    Figure CN116166324B_ABST
Patent Text Reader

Abstract

This disclosure provides a verification method, apparatus, and electronic device for a tracking encoder. The method includes: acquiring a first output result of an input stimulus of the tracking encoder; wherein the first output result is an output result generated by performing a test tracking encoding on the input stimulus; preprocessing the input stimulus to obtain a preprocessed input stimulus; performing simulated tracking encoding on the preprocessed input stimulus to obtain a second output result; and obtaining a tracking encoding result for the input stimulus based on the first output result and the second output result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of tracking encoder technology, and more specifically, to a method, apparatus, and electronic device for verifying a tracking encoder. Background Technology

[0002] The trace encoder (TE) operates according to the trace protocol (e.g., Nexus 5001 Forum). TM Standard and Efficient Trace for RISC-V generate encoded data packets from the Core Retirement Program Counter (PC) and attributes associated with the Core Retirement PC. The Trace Decoder (TD) parses the encoded data packets according to the Trace protocol to generate the PC.

[0003] TE circuits can configure registers in real time according to the actual application scenario to control the circuit's function. For example, within cycle time A, the instruction address can be updated by configuring registers to implement filtering conditions and update modes. However, TE models based on C or Python languages ​​differ from those based on System Verilog. C or Python-based TE models cannot receive input stimuli and simulate circuit behavior in real time; they directly load all input stimuli into the program model during simulation, rather than loading each input stimuli sequentially in time intervals. Therefore, when loading stimulus files, the TE model cannot recognize the order of input stimuli, cannot simulate the circuit design function sequentially, and cannot obtain the expected model results. Summary of the Invention

[0004] This disclosure presents a verification method, apparatus, and electronic device for a tracking encoder.

[0005] According to a first aspect of this disclosure, a verification method for a tracking encoder is proposed, comprising: obtaining a first output result of an input stimulus of the tracking encoder; wherein the first output result is an output result generated by performing a tracking code on the input stimulus; preprocessing the input stimulus to obtain a preprocessed input stimulus; performing simulated tracking code on the preprocessed input stimulus to obtain a second output result; and obtaining a tracking code result for the input stimulus based on the first output result and the second output result.

[0006] For example, the input stimulus includes instruction counter stimulus and register configuration stimulus; wherein, the input stimulus is preprocessed to obtain preprocessed input stimulus, including: generating input cycles corresponding to instruction counter stimulus and register configuration stimulus respectively according to the input time of instruction counter stimulus and input time of register configuration stimulus.

[0007] For example, the input cycles of each input stimulus in the preprocessed input stimulus are different from each other.

[0008] For example, the preprocessed input stimulus is simulated and traced to obtain a second output result, including: obtaining N unexecuted instruction counter stimuli from the preprocessed instruction counter stimuli; wherein the input period of the first instruction counter stimulus, the input period of the second instruction counter stimulus, ..., the input period of the Nth instruction counter stimulus increases sequentially, and N is a positive integer; determining whether there is an unexecuted first register configuration stimulus whose input period is less than the input period of the first instruction counter stimulus in the register configuration stimulus, and obtaining a first determination result; and executing the first register configuration stimulus and the first instruction counter stimulus sequentially according to the first determination result to obtain a second output result for the first register configuration stimulus and the first instruction counter stimulus.

[0009] For example, based on the first determination result, the first register configuration stimulus and the first instruction counter stimulus are executed sequentially to obtain a second output result for the first register configuration stimulus and the first instruction counter stimulus, including: if the first determination result indicates that there is an unexecuted first register configuration stimulus in the register configuration stimulus whose input period is less than the input period of the first instruction counter stimulus, the first register configuration stimulus and the first instruction counter stimulus are executed sequentially to obtain a second output result for the first register configuration stimulus and the first instruction counter stimulus; if the first determination result indicates that there is no unexecuted first register configuration stimulus in the register configuration stimulus whose input period is less than the input period of the first instruction counter stimulus, the first instruction counter stimulus is executed sequentially to obtain a second output result for the first instruction counter stimulus.

[0010] For example, the method further includes: determining whether there is an unexecuted second register configuration stimulus whose input period is less than the input period of a second instruction counter stimulus, and obtaining a second determination result; and, based on the second determination result, sequentially executing the second register configuration stimulus and the second instruction counter stimulus to obtain a second output result for the second register configuration stimulus and the second instruction counter stimulus.

[0011] For example, the method further includes: determining whether there is an unexecuted Nth register configuration stimulus whose input period is less than the input period of the Nth instruction counter stimulus, and obtaining the Nth determination result; and, based on the Nth determination result, sequentially executing the Nth register configuration stimulus and the Nth instruction counter stimulus to obtain a second output result for the Nth register configuration stimulus and the Nth instruction counter stimulus.

[0012] According to a second aspect of the present disclosure, a verification apparatus for a tracking encoder is provided, comprising: an acquisition unit configured to acquire a first output result of an input stimulus of the tracking encoder; wherein the first output result is an output result generated by performing a test tracking encoding on the input stimulus; an stimulus preprocessing unit configured to preprocess the input stimulus to obtain a preprocessed input stimulus; a simulated tracking encoding unit configured to perform simulated tracking encoding on the preprocessed input stimulus to obtain a second output result; and a result analysis unit configured to obtain a tracking encoding result for the input stimulus based on the first output result and the second output result.

[0013] For example, the input stimulus includes instruction counter stimulus and register configuration stimulus; wherein, the stimulus preprocessing unit is configured to generate input cycles corresponding to the instruction counter stimulus and register configuration stimulus respectively, based on the input time of the instruction counter stimulus and the input time of the register configuration stimulus.

[0014] For example, the analog tracing encoding unit is configured to: acquire N unexecuted instruction counter stimuli from the preprocessed instruction counter stimuli; wherein the input period of the first instruction counter stimuli, the input period of the second instruction counter stimuli, ..., the input period of the Nth instruction counter stimuli increase sequentially, and N is a positive integer; determine whether there is an unexecuted first register configuration stimuli in the register configuration stimuli whose input period is less than the input period of the first instruction counter stimuli, and obtain a first determination result; and, based on the first determination result, execute the first register configuration stimuli and the first instruction counter stimuli sequentially to obtain a second output result for the first register configuration stimuli and the first instruction counter stimuli.

[0015] For example, the analog tracing encoding unit is further configured to: determine whether there is an unexecuted second register configuration stimulus whose input period is less than the input period of the second instruction counter stimulus, and obtain a second determination result; and, based on the second determination result, execute the second register configuration stimulus and the second instruction counter stimulus in sequence to obtain a second output result for the second register configuration stimulus and the second instruction counter stimulus.

[0016] For example, the analog tracing encoding unit is further configured to: determine whether there is an unexecuted Nth register configuration stimulus whose input period is less than the input period of the Nth instruction counter stimulus, and obtain the Nth determination result; and, based on the Nth determination result, execute the Nth register configuration stimulus and the Nth instruction counter stimulus in sequence to obtain a second output result for the Nth register configuration stimulus and the Nth instruction counter stimulus.

[0017] According to a third aspect of the present disclosure, an electronic device is provided, comprising: a tracking and encoding unit under test configured to perform tracking and encoding on an input stimulus to obtain a first output result; at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform a method provided according to the present disclosure.

[0018] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions for causing a computer to perform a method provided according to the present disclosure.

[0019] According to a fifth aspect of the present disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the method provided according to the present disclosure.

[0020] According to the technical solution of the disclosed embodiments, a verification method for a tracking encoder is provided. This method adds a time period attribute to each input stimulus, enabling the TE Model to identify the order of the input stimulus based on the input period attribute when performing simulated tracking encoding on each input stimulus, and to execute each input stimulus sequentially. This method reduces the coupling of circuit functions, improves the reusability of the TE Model, and does not increase the complexity of the TE Model. Furthermore, this method shortens the verification cycle of circuit functions, reduces verification costs, and facilitates the early detection of circuit anomalies. Attached Figure Description

[0021] The above and other objects, features, and advantages of this disclosure will become clearer from the following description of embodiments in conjunction with the accompanying drawings. It should be noted that throughout the drawings, the same elements are indicated by the same or similar reference numerals. In the figures:

[0022] Figure 1 A schematic diagram illustrating an application scenario of a verification method for a tracking encoder according to an embodiment of the present disclosure is shown.

[0023] Figure 2 A flowchart of a verification method for a tracking encoder according to an embodiment of the present disclosure is shown;

[0024] Figure 3A and Figure 3B Schematic diagrams of instruction counter activation before and after preprocessing according to an embodiment of the present disclosure are shown respectively;

[0025] Figure 4A and Figure 4B Schematic diagrams of register configuration stimuli before and after preprocessing according to an embodiment of the present disclosure are shown respectively;

[0026] Figure 5 A flowchart illustrating analog tracking encoding of preprocessed input stimuli according to an embodiment of the present disclosure is shown;

[0027] Figure 6 A structural block diagram of a verification apparatus for a tracking encoder according to an embodiment of the present disclosure is shown;

[0028] Figure 7 A block diagram of an electronic device to which a verification method of a tracking encoder can be applied according to an embodiment of the present disclosure is shown. Detailed Implementation

[0029] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this disclosure. Based on the described embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure. In the following description, some specific embodiments are for descriptive purposes only and should not be construed as limiting this disclosure in any way, but are merely examples of embodiments of this disclosure. Conventional structures or constructions will be omitted where they may cause confusion in understanding this disclosure. It should be noted that the shapes and dimensions of the components in the figures do not reflect actual size and proportion, but are only schematic representations of the contents of the embodiments of this disclosure.

[0030] Unless otherwise defined, the technical or scientific terms used in the embodiments of this disclosure shall have the ordinary meaning as understood by those skilled in the art. The terms "first," "second," "third," and similar words used in the embodiments of this disclosure do not indicate any order, quantity, or importance, but are merely used to distinguish different components.

[0031] This disclosure provides a method, apparatus, electronic device, storage medium, and program product for verifying a tracking encoder.

[0032] According to embodiments of this disclosure, a verification method for a tracking encoder is provided, comprising: obtaining a first output result of an input stimulus of the tracking encoder; wherein the first output result is an output result generated by performing a test tracking encoding on the input stimulus; preprocessing the input stimulus to obtain a preprocessed input stimulus; performing simulated tracking encoding on the preprocessed input stimulus to obtain a second output result; and obtaining a tracking encoding result for the input stimulus based on the first output result and the second output result.

[0033] Figure 1 An exemplary system architecture 100, applicable to a verification method for a tracking encoder according to embodiments of this disclosure, is illustrated schematically. It should be noted that... Figure 1 The examples shown are merely examples of system architectures that can be applied to the embodiments of this disclosure, in order to help those skilled in the art understand the technical content of this disclosure, but do not mean that the embodiments of this disclosure cannot be used in other devices, systems, environments or scenarios.

[0034] like Figure 1 As shown, the system architecture 100 according to this embodiment includes a Trace Encoder Design Under Test (TE DUT) 110, an excitation preprocessing module 120, a TE Model 130, and a result analysis module 140.

[0035] The TE DUT 110 is a circuit module from TE, containing components such as power supply circuits, photoelectric conversion circuits, and signal processing circuits. System verification engineers input the input stimulus into the TE DUT 110, which then performs a test tracking encoding on the input stimulus to obtain the actual output result.

[0036] For example, input stimuli can be the instruction counter (PC) stimulus and the register configuration stimulus. The PC stimulus indicates the address of the instruction to be executed. The register configuration stimulus is used to perform a function of the register to complete the circuit function detection.

[0037] The excitation preprocessing module 120 is used to preprocess the input excitation to obtain the preprocessed input excitation.

[0038] For example, the process of preprocessing input stimuli can involve adding an input cycle attribute to each input stimulus in the program input file. For instance, based on the input time of each input stimulus, an input cycle corresponding to each input stimulus can be generated.

[0039] For example, the register configuration scenario of the TE DUT 110 does not support inputting register configuration stimuli within the same cycle as the PC stimulus input. Therefore, the cycle time of each PC stimulus and the cycle time of each register configuration stimulus are different from each other.

[0040] TE Model 130 is used to perform analog tracking encoding on the preprocessed input stimulus to obtain the second output result.

[0041] For example, the second output result can be the expected output result, used to verify whether the register function is working properly.

[0042] For example, TE Model 130 can be a TE Model implemented in C or Python.

[0043] The results analysis module 140 is used to compare and analyze the actual output results and the expected output results, and output the tracking coding results for the input stimulus.

[0044] For example, the results analysis module 140 can be implemented by scripts to automatically compare and analyze the output results.

[0045] For example, if the actual output and the expected output are the same, the trace code result indicates that the TE's circuitry is functioning normally. If the actual output and the expected output are different, the trace code result indicates that the TE's circuitry is malfunctioning.

[0046] It should be understood that Figure 1 The connections and number of TE DUTs, excitation preprocessing modules, TE Models, and result analysis modules shown are merely illustrative. Depending on implementation needs, any number of TE DUTs, excitation preprocessing modules, TE Models, and result analysis modules can be included.

[0047] Figure 2 A flowchart illustrating a verification method for a tracking encoder according to an embodiment of the present disclosure is shown.

[0048] like Figure 2 As shown, the verification method 200 for the tracking encoder includes operations S210 to S240.

[0049] In operation S210, the first output result of the input stimulus of the tracking encoder is obtained. The first output result is the output result generated by performing the tracking encoding on the input stimulus.

[0050] In this embodiment of the disclosure, the verification method 200 can be performed by the TE DUT 110. A system verification engineer can send input stimuli to the TE DUT 110 for performing circuit functions. The TE DUT 110 receives the input stimuli for performing the circuit functions, executes the input stimuli, and outputs a first output result.

[0051] For example, input stimuli can be the PC stimulus and register configuration stimuli. The PC stimulus indicates the address of the instruction to be executed. The register configuration stimulus is used to perform a specific function of the register to complete the circuit function detection.

[0052] For example, the input stimulus can be one or more input stimuli.

[0053] For example, the first output result can be the actual output result of the circuit function test verification. The first output result can indicate whether the circuit function is normal or abnormal.

[0054] In operation S220, the input stimulus is preprocessed to obtain the preprocessed input stimulus.

[0055] In this embodiment of the disclosure, the process of preprocessing the input stimuli can be to add a Cycle Time attribute to each input stimulus in the program input file that stores each input stimulus.

[0056] For example, based on the input time of each input stimulus, a Cycle Time corresponding to that input stimulus is generated.

[0057] For example, the input time of the first input stimulus in the input stimulus is a1 hour b1 minute c1 second, and the corresponding Cycle Time of the first input stimulus is A. A represents the clock cycle difference between the first input stimulus and the previous input stimulus O. Similarly, the input time of the second input stimulus in the input stimulus is a1 hour b1 minute c2 second, and the corresponding Cycle Time of the second input stimulus is B. B represents the clock cycle difference between the second input stimulus and input stimulus O. Based on this, the Cycle Time of each input stimulus is different from each other.

[0058] It should be noted that the input time and Cycle Time in the above embodiments are merely illustrative examples to help those skilled in the art understand the solutions disclosed herein, and do not constitute a limitation on the embodiments of this disclosure.

[0059] In operation S230, the preprocessed input stimulus is simulated and tracked to obtain the second output result.

[0060] For example, the preprocessed PC stimulus includes the first PC stimulus, the second PC stimulus, ..., the Kth PC stimulus. The cycle time of the first PC stimulus, the second PC stimulus, ..., the Kth PC stimulus increases sequentially. K is an integer greater than or equal to 2.

[0061] In this embodiment, simulating tracking encoding on the preprocessed input stimuli can be used to obtain the first PC stimulus that has not been executed in the preprocessed input stimuli, which has the minimum cycle time among the preprocessed PC stimuli. It is then determined whether there are any unexecuted first register configuration stimuli in the preprocessed register configuration stimuli whose input cycle is shorter than the input cycle of the first PC stimulus. Based on the determination result, the first register configuration stimulus and the first PC stimulus are executed sequentially to obtain a second output result for the first register configuration stimulus and the first PC stimulus.

[0062] For example, after executing the first register configuration stimulus and the first PC stimulus sequentially, it is further determined whether there are any unexecuted second register configuration stimuli in the preprocessed register configuration stimuli whose input period is shorter than the input period of the second PC stimulus. Based on the determination result, the second register configuration stimulus and the second PC stimulus are executed sequentially to obtain a second output result for the second register configuration stimulus and the second PC stimulus.

[0063] For example, following this process, after sequentially executing the (K-1)th register configuration stimulus and the (K-1)th PC stimulus, it is further determined whether there are any unexecuted Kth register configuration stimuli in the preprocessed register configuration stimuli whose input period is shorter than the input period of the Kth PC stimulus. Based on the determination result, the Kth register configuration stimulus and the Kth PC stimulus are executed sequentially to obtain the second output result for the Kth register configuration stimulus and the Kth PC stimulus, until the simulation tracing encoding of all input stimuli in the program input file is completed.

[0064] For example, after each partial input stimulus is executed, the status of these executed input stimuli can be updated to "executed" to facilitate the identification of unexecuted and executed input stimuli in the program input file.

[0065] For example, the second output result is the expected output result for each input stimulus, which is used to compare and analyze with the actual output result, thereby discovering any abnormalities in the function of the TE circuit.

[0066] In operation S240, based on the first output result and the second output result, the tracking encoding result for the input stimulus is obtained.

[0067] In this embodiment of the disclosure, the first output result and the second output result are compared and analyzed. Specifically, the execution result of the k-th register configuration stimulus in the first output result and the execution result of the k-th register configuration stimulus in the second output result are compared and analyzed to obtain the tracing encoding result for the k-th register configuration stimulus. 1≤k≤K, where k is an integer.

[0068] For example, if the execution result of the k-th register configuration stimulus in the first output result is the same as the execution result of the k-th register configuration stimulus in the second output result, the trace code result indicates that the circuit corresponding to the k-th register configuration is functioning normally. If the execution result of the k-th register configuration stimulus in the first output result is different from the execution result of the k-th register configuration stimulus in the second output result, the trace code result indicates that the circuit corresponding to the k-th register configuration is malfunctioning.

[0069] According to embodiments of this disclosure, by comparing the execution results of each register configuration stimulus in the first output result and the execution results of each register configuration stimulus in the second output result one by one, the functional verification results of the TE circuit module can be obtained, so as to discover any abnormalities in the TE circuit module.

[0070] The method provided in this disclosure adds a time period attribute to each input stimulus, enabling the TE Model to identify the order of input stimuli based on the input period attribute when performing analog tracking encoding on each input stimulus, and to execute each input stimulus sequentially. This method reduces the coupling of circuit functions, improves the reusability of the TE Model, and does not increase the complexity of the TE Model. Furthermore, this method shortens the verification cycle of circuit functions, reduces verification costs, and facilitates the early detection of circuit anomalies.

[0071] Figure 3A and Figure 3B Schematic diagrams of instruction counter activation before and after preprocessing according to an embodiment of the present disclosure are shown respectively. Figure 4A and Figure 4B Schematic diagrams of register configuration stimuli before and after preprocessing according to an embodiment of the present disclosure are shown respectively.

[0072] According to embodiments of this disclosure, the input stimulus is preprocessed to obtain the preprocessed input stimulus, including generating an input cycle corresponding to the PC stimulus and the register configuration stimulus respectively, based on the input time of the PC stimulus and the input time of the register configuration stimulus.

[0073] like Figure 3AAs shown, the program input file 300A stores multiple unprocessed PC stimuli, namely 8000_0000, 8000_0004, 8000_0008, ..., 8000_0080. xx represents the data pointed to by each PC stimulus, which is not limited in the embodiments of this disclosure.

[0074] like Figure 3B As shown, the program input file 300B stores multiple preprocessed PC stimuli, namely 8000_0000 (cycle_time: 12), 8000_0004 (cycle_time: 15), 8000_0008 (cycle_time: 17), ..., 8000_0080 (cycle_time: 98). Figure 3B In the example, the Cycle Time of each preprocessed PC stimulus is different from each other.

[0075] like Figure 4A As shown, the program input file 400A stores multiple unprocessed register configuration stimuli, namely Addr: 'h0010, Addr: 'h0014, ..., Addr: 'h0014, ..., Addr: 'h0018, Addr: 'h0010'. xx represents the configuration data when each register configuration stimulus is executed; this disclosure does not limit the specific implementation.

[0076] For example, the configuration data corresponding to each register configuration stimulus can be either a write data type or a read data type. The data type can be identified by the RW attribute of the configuration data `data` corresponding to each register configuration stimulus. For example, RW=0 represents read data, and RW=1 represents write data.

[0077] like Figure 4B As shown, the program input file 400B stores multiple preprocessed register configuration stimuli, namely Addr: 'h0010(cycle_time: 9), Addr: 'h0014(cycle_time: 11), ..., Addr: 'h0014(cycle_time: 61), ..., Addr: 'h0018(cycle_time: 70), Addr: 'h0010(cycle_time: 96). Figure 4B In the example, the Cycle Time of each preprocessed register configuration stimulus is different from each other.

[0078] In this embodiment of the disclosure, the register configuration scenario of the TE DUT does not support inputting register configuration stimuli within the same cycle as the PC stimulus input. Therefore, the cycle time of each PC stimulus and each register configuration stimulus is different from each other.

[0079] For example, the input stimulus preprocessing process can be implemented by a script, and the embodiments of this disclosure are not limited to this.

[0080] It should be noted that the attributes and Cycle Time of each input stimulus in the above embodiments are merely illustrative examples and do not constitute a limitation of the embodiments disclosed herein.

[0081] Figure 5 A flowchart illustrating the analog tracking encoding of preprocessed input stimuli according to an embodiment of the present disclosure is shown.

[0082] like Figure 5 As shown, the simulation tracking encoding process for the preprocessed input stimulus includes operations S510 to S550.

[0083] In operation S510, N unexecuted PC stimuli are obtained from the preprocessed PC stimuli. The input period of the first PC stimulus, the input period of the second PC stimulus, ..., the input period of the Nth PC stimulus increase sequentially. N is a positive integer.

[0084] For example, each preprocessed PC stimulus has a Cycle Time attribute. The Cycle Time attribute is used to identify the order in which each preprocessed PC stimulus is processed, so that multiple PC stimuli can be processed sequentially.

[0085] In operation S520, it is determined whether there is an unexecuted nth register configuration stimulus whose input period is less than the input period of the nth PC stimulus, thus obtaining the nth determination result. 1≤n≤N, where n is an integer.

[0086] For example, when n=1, it is determined whether there is an unexecuted first register configuration stimulus whose input period is less than the input period of the first PC stimulus, thus obtaining a first determination result. This first determination result indicates whether there is an unexecuted first register configuration stimulus whose input period is less than the input period of the first PC stimulus, or whether there is no unexecuted first register configuration stimulus whose input period is less than the input period of the first PC stimulus.

[0087] For example, continue to use Figure 3B The example shown is of multiple preprocessed PC stimuli, and the example continues as follows: Figure 4BThe example shown illustrates the configuration of multiple preprocessed register stimuli. Among them, PC stimulus 8000_0000 has the shortest input cycle, so PC stimulus 8000_0000 is designated as the first input stimulus. For example... Figure 4B In the preprocessed register configuration stimuli shown, the input cycles of Addr: 'h0010' and Addr: 'h0014 are less than the input cycle of PC stimulus 8000_0000. Therefore, the first determination result indicates that there is an unexecuted first register configuration stimulus whose input cycle is less than the input cycle of the first PC stimulus, including Addr: 'h0010' and Addr: 'h0014.

[0088] For example, when n=2, it is determined whether there is an unexecuted second register configuration stimulus whose input period is less than the input period of the second PC stimulus, thus obtaining a second determination result. This second determination result indicates whether there is an unexecuted second register configuration stimulus whose input period is less than the input period of the second PC stimulus, or whether there is no unexecuted second register configuration stimulus whose input period is less than the input period of the second PC stimulus.

[0089] For example, when n = N, it is determined whether there is an unexecuted Nth register configuration stimulus whose input period is less than the input period of the Nth PC stimulus, thus obtaining the Nth determination result. This Nth determination result indicates whether there is an unexecuted Nth register configuration stimulus whose input period is less than the input period of the Nth PC stimulus, or whether there is no unexecuted Nth register configuration stimulus whose input period is less than the input period of the Nth PC stimulus.

[0090] In operation S530, if the result of the nth determination indicates that there is an unexecuted input period of the nth register configuration stimulus that is less than the input period of the nth PC stimulus, the nth register configuration stimulus and the nth PC stimulus are executed sequentially.

[0091] In this embodiment of the disclosure, if the nth determination result indicates that there is an unexecuted nth register configuration stimulus whose input period is less than the input period of the nth PC stimulus, the register configuration stimuli in the nth register configuration stimulus are executed sequentially according to the input period size, and then the nth PC stimulus is executed.

[0092] For example, if the first determination result indicates that there is an unexecuted first register configuration stimulus in the register configuration stimulus whose input period is less than the input period of the first PC stimulus, the first PC stimulus is executed after each register configuration stimulus in the first register configuration stimulus is executed in sequence according to the input period size.

[0093] For example, following the above embodiment, the first register configuration stimulus Addr: 'h0010' and Addr: 'h0014' are executed sequentially according to the input cycle size, and then the PC stimulus 80000000 is executed.

[0094] For example, after Addr: 'h0010, Addr: 'h0014, and 80000000 are executed, the status of Addr: 'h0010, Addr: 'h0014, and 80000000 can be updated to "executed" to facilitate the identification of unexecuted input stimuli and executed input stimuli Addr: 'h0010, Addr: 'h0014, and 80000000 in the program input file.

[0095] For example, if the second determination result indicates that there is an unexecuted second register configuration stimulus in the register configuration stimulus whose input period is less than the input period of the second PC stimulus, the second PC stimulus is executed after each register configuration stimulus in the second register configuration stimulus is executed in sequence according to the input period size.

[0096] For example, if the result of the Nth determination indicates that there is an unexecuted Nth register configuration stimulus whose input period is less than the input period of the Nth PC stimulus, the register configuration stimuli in the Nth register configuration stimulus are executed sequentially according to the input period size, and then the Nth PC stimulus is executed.

[0097] In operation S540, if the result of the nth determination indicates that there is no unexecuted input period of the nth register configuration stimulus that is less than the input period of the nth PC stimulus, the nth PC stimulus is executed.

[0098] For example, if the first determination result indicates that there is no unexecuted first register configuration stimulus whose input period is less than the input period of the first PC stimulus in the register configuration stimulus, the first PC stimulus is executed.

[0099] For example, if the second determination result indicates that there is no unexecuted second register configuration stimulus in the register configuration stimulus whose input period is less than the input period of the second PC stimulus, then the second PC stimulus is executed.

[0100] For example, if the result of the Nth determination indicates that there is no unexecuted Nth register configuration stimulus whose input period is less than the input period of the Nth PC stimulus, then the Nth PC stimulus is executed.

[0101] In operation S550, based on the execution results of sequentially executing the nth register configuration stimulus and the nth PC stimulus or the execution result of executing the nth PC stimulus, a second output result for the nth register configuration stimulus and the nth PC stimulus or a second output result for the nth PC stimulus is generated.

[0102] For example, after executing the nth register configuration stimulus and the nth PC stimulus, the generated coded data packet is written into the second output result generated in the previous time step to generate a second output result for the nth register configuration stimulus and the nth PC stimulus. Alternatively, after executing the nth PC stimulus, the generated coded data packet is written into the second output result generated in the previous time step to generate a second output result for the nth PC stimulus.

[0103] For example, the execution process of each input stimulus may include executing the input stimulus and the attributes corresponding to that input stimulus. Input stimulus attributes may include instruction parameters, instruction type, instruction length, etc.

[0104] In this embodiment, after executing the results of the nth register configuration stimulus and the nth PC stimulus sequentially, or after executing the nth PC stimulus, the (n+1)th PC stimulus in the program input file, which has the second smallest input cycle time than the nth PC stimulus, is obtained. It is determined whether there are any unexecuted (n+1)th register configuration stimuli whose input cycle is shorter than the (n+1)th PC stimulus, thus obtaining the (n+1)th determination result. Based on the (n+1)th determination result, the (n+1)th register configuration stimulus and the (n+1)th PC stimulus are executed sequentially, and a corresponding second output result is generated. This process is repeated until all register configuration stimuli and all PC stimuli are executed, generating a second output result.

[0105] The method provided in this disclosure offers a solution for TE models based on C or Python languages. This method configures the input period attribute for input stimuli, enabling the TE model to identify the order of initial input stimuli even when the C or Python-based TE model cannot recognize the sequence of initial input stimuli. The method then identifies the order of each input cycle based on the input period attribute, executing the input stimuli sequentially according to their duration to verify the functional modules of the TE circuit. This method reduces the complexity of the TE model, increases reusability, shortens the verification cycle, and facilitates early detection of TE circuit anomalies.

[0106] Figure 6 A structural block diagram of a verification apparatus for a tracking encoder according to an embodiment of the present disclosure is shown.

[0107] like Figure 6As shown, the verification 600 of the tracking encoder can implement method 200, including: acquisition unit 610, excitation preprocessing unit 620, simulation tracking encoding unit 630 and result analysis unit 640.

[0108] The acquisition unit 610 is configured to acquire the first output result of the input stimulus of the tracking encoder. The first output result is the output result generated by performing a test tracking encoding on the input stimulus.

[0109] For example, the first acquisition unit 610 is used to perform operation S210 in the above embodiment, which will not be described again.

[0110] The excitation preprocessing unit 620 is configured to preprocess the input excitation to obtain the preprocessed input excitation.

[0111] For example, the excitation preprocessing unit 620 is used to perform operation S220 in the above embodiment, which will not be described again.

[0112] The analog tracking encoding unit 630 is configured to perform analog tracking encoding on the preprocessed input stimulus to obtain a second output result.

[0113] For example, the analog tracking encoding unit 630 is used to perform operation S230 in the above embodiment, which will not be described again.

[0114] The result analysis unit 640 is configured to obtain the tracking coding result for the input stimulus based on the first output result and the second output result.

[0115] For example, the result analysis unit 640 is used to perform operation S240 in the above embodiment, which will not be described again.

[0116] According to embodiments of this disclosure, the input stimulus includes an instruction counter stimulus and a register configuration stimulus. The stimulus preprocessing unit 620 is configured to generate input cycles corresponding to the instruction counter stimulus and the register configuration stimulus, respectively, based on the input times of the instruction counter stimulus and the register configuration stimulus.

[0117] According to an embodiment of this disclosure, the analog tracking encoding unit 630 is configured to acquire N unexecuted instruction counter stimuli from the preprocessed instruction counter stimuli; wherein the input period of the first instruction counter stimuli, the input period of the second instruction counter stimuli, ..., the input period of the Nth instruction counter stimuli increase sequentially, and N is a positive integer; determine whether there is an unexecuted first register configuration stimuli in the register configuration stimuli whose input period is less than the input period of the first instruction counter stimuli, and obtain a first determination result; and, based on the first determination result, execute the first register configuration stimuli and the first instruction counter stimuli sequentially to obtain a second output result for the first register configuration stimuli and the first instruction counter stimuli.

[0118] According to an embodiment of this disclosure, the analog tracking encoding unit 630 is further configured to determine whether there is an unexecuted second register configuration stimulus whose input period is less than the input period of the second instruction counter stimulus, and obtain a second determination result; and, based on the second determination result, sequentially execute the second register configuration stimulus and the second instruction counter stimulus to obtain a second output result for the second register configuration stimulus and the second instruction counter stimulus.

[0119] According to an embodiment of this disclosure, the analog tracking encoding unit 630 is further configured to determine whether there is an unexecuted Nth register configuration stimulus whose input period is less than the input period of the Nth instruction counter stimulus, and obtain an Nth determination result; and, based on the Nth determination result, sequentially execute the Nth register configuration stimulus and the Nth instruction counter stimulus to obtain a second output result for the Nth register configuration stimulus and the Nth instruction counter stimulus.

[0120] It should be noted that any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of this disclosure, or at least part of the functions of any one or more of them, can be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of this disclosure can be divided into multiple modules for implementation. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of this disclosure can be at least partially implemented as hardware circuits, such as field-programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems-on-a-chip, systems-on-a-substrate, systems-on-package, application-specific integrated circuits (ASICs), or implemented in hardware or firmware by any other reasonable means of integrating or packaging circuits, or implemented in software, hardware, and firmware, or in any appropriate combination of any of these three implementation methods. Alternatively, one or more of the modules, sub-modules, units, and sub-units according to the embodiments of this disclosure can be at least partially implemented as computer program modules, which, when run, can perform corresponding functions.

[0121] For example, any plurality of the acquisition unit 610, stimulus preprocessing unit 620, analog tracing encoding unit 630, and result analysis unit 640 may be combined into one module, or any one of these modules may be split into multiple modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of other modules and implemented in one module. According to embodiments of the present disclosure, at least one of the acquisition unit 610, stimulus preprocessing unit 620, analog tracing encoding unit 630, and result analysis unit 640 may be at least partially implemented as hardware circuitry, such as a field-programmable gate array (FPGA), a programmable logic array (PLA), a system-on-a-chip, a system-on-a-substrate, a system-on-package, an application-specific integrated circuit (ASIC), or any other reasonable means of integrating or packaging the circuitry, or implemented in software, hardware, or firmware, or in any suitable combination of any of these three implementation methods. Alternatively, at least one of the acquisition unit 610, the excitation preprocessing unit 620, the analog tracking encoding unit 630, and the result analysis unit 640 can be at least partially implemented as a computer program module, which can perform corresponding functions when the computer program module is run.

[0122] Figure 7 A block diagram of an electronic device to which a verification method of a tracking encoder can be applied according to an embodiment of the present disclosure is shown. Figure 7 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0123] like Figure 7 As shown, the electronic device 700 described in this embodiment includes: a tracking code test unit 701, at least one processor 702, a memory 703, and a bus 704. The tracking code test unit 701, at least one processor 702, and memory 703 are interconnected via the bus 704.

[0124] The tracking-encoded unit under test 701 is configured to perform tracking encoding on the input stimulus to obtain a first output result. For example, the tracking-encoded unit under test 701 can be a circuit module of a TE, such as a power supply circuit, a photoelectric conversion circuit, a signal processing circuit, etc.

[0125] At least one processor 702 may include a single processing unit or multiple processing units for performing different actions of the method flow according to embodiments of the present disclosure.

[0126] The memory 703 is communicatively connected to at least one processor 702. The memory 703 stores various programs and data required for the operation of the electronic device 700.

[0127] For example, memory 703 stores instructions executable by at least one processor 702 to perform the verification method provided in embodiments of this disclosure. Processor 702 performs various operations of the method flow according to embodiments of this disclosure by executing a program in memory 703. It should be noted that the program may also be stored in one or more memories other than memory 703. Processor 702 may also perform various operations of the method flow according to embodiments of this disclosure by executing a program stored in one or more memories 703.

[0128] According to embodiments of this disclosure, the method flow according to embodiments of this disclosure can be implemented as a computer software program. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable storage medium, the computer program containing program code for performing the methods shown in the flowchart. In such embodiments, the computer program can be downloaded and installed from a network via a communication component, and / or installed from a removable medium. When the computer program is executed by processor 701, it performs the functions defined in the system of embodiments of this disclosure. According to embodiments of this disclosure, the systems, devices, apparatuses, modules, units, etc., described above can be implemented by computer program modules.

[0129] This invention also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or it may exist independently and not assembled into the device / apparatus / system. The computer-readable storage medium carries one or more programs, which, when executed, implement the method according to the embodiments of this disclosure.

[0130] According to embodiments of this disclosure, the computer-readable storage medium can be a non-volatile computer-readable storage medium, such as including, but not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In embodiments of this disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. For example, according to embodiments of this disclosure, the computer-readable storage medium can include the ROM and / or RAM described above and / or one or more memories other than ROM and RAM.

[0131] It should be noted that the functional modules in the various embodiments of the present invention can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product.

[0132] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0133] Those skilled in the art will understand that the features described in the various embodiments and / or claims of this disclosure can be combined and / or combined in various ways, even if such combinations or combinations are not explicitly described in this disclosure. In particular, the features described in the various embodiments and / or claims of this disclosure can be combined and / or combined in various ways without departing from the spirit and teachings of this disclosure. All such combinations and / or combinations fall within the scope of this disclosure.

[0134] Although this disclosure has been shown and described with reference to specific exemplary embodiments thereof, those skilled in the art will understand that various changes in form and detail may be made to this disclosure without departing from the spirit and scope of the disclosure as defined by the appended claims and their equivalents. Therefore, the scope of this disclosure should not be limited to the above embodiments, but should be defined not only by the appended claims, but also by their equivalents.