# US 2023/0274062 A1 · Signal detection method and apparatus

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0274062 A1
- Document ID: US20230274062A1
- Status: Published application
- Kind: A1
- Application number: 17/804,690
- Filed: 2022-05-31
- Published: 2023-08-31
- Earliest claimed: 2022-02-25
- Assignees: Changxin Memory Technologies, Inc.
- Applicants: Changxin Memory Technologies, Inc
- Inventors: Yuan CHEN
- Web page: https://patentgrep.com/patent/US20230274062A1

## CPC

- G06F 30/367: Design verification, e.g. using simulation, simulation program with integrated circuit emphasis [SPICE], direct methods or relaxation methods
- G06F 30/33: Design verification, e.g. functional simulation or model checking
- G06F 30/331: with hardware acceleration, e.g. by using field programmable gate array [FPGA] or emulation
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments of the present disclosure provide a signal detection method and apparatus. The signal detection apparatus defines information of a correct output waveform of a to-be-detected signal in an excitation file, simulates a to-be-detected chip by using a specified emulator, to generate a simulation file including information of a simulated waveform of the to-be-detected signal, filters out noise in the simulated waveform to obtain a to-be-compared file, and compares the to-be-compared file with the excitation file to generate a detection result file; or compares the correct output waveform with the simulated waveform to obtain a candidate detection result, and filters out a result of a noise point in the candidate detection result to generate a detection result file.

## Claims

### Claim 1

A signal detection method, comprising:
obtaining an excitation file, wherein the excitation file comprises information of a correct output waveform of a to-be-detected signal;
simulating a to-be-detected chip by using a specified emulator, to generate a simulation file, wherein the simulation file comprises information of a simulated waveform of the to-be-detected signal;
filtering out noise in the simulated waveform to obtain a to-be-compared file, wherein the to-be-compared file comprises information of a valid simulated waveform of the to-be-detected signal; and
comparing the to-be-compared file with the excitation file to generate a detection result file.

### Claim 2 (depends on 1)

The signal detection method according to claim 1, wherein the simulated waveform comprises a simulated waveform of a data signal and a simulated waveform of a data strobe signal, and the filtering out noise in the simulated waveform to obtain a to-be-compared file comprises:
obtaining a voltage reference line of the data strobe signal, wherein the voltage reference line is a straight line in a same dimension as the simulated waveform of the data strobe signal, and a voltage value corresponding to the voltage reference line is between a maximum voltage value and a minimum voltage value of the data strobe signal;
determining a change point of the data strobe signal based on a point of intersection between the simulated waveform of the data strobe signal and the voltage reference line; and
deleting an invalid change point in the change point of the data strobe signal to obtain the to-be-compared file.

### Claim 3 (depends on 2)

The signal detection method according to claim 2, wherein the obtaining a voltage reference line of the data strobe signal comprises:
determining half of a sum of the maximum voltage value and the minimum voltage value of the data strobe signal as a voltage reference value; and
generating the voltage reference line based on the voltage reference value and the simulated waveform of the data strobe signal, wherein the voltage reference line is a straight line that is in the same dimension as the simulated waveform of the data strobe signal and whose corresponding voltage value is equal to the voltage reference value.

### Claim 4 (depends on 3)

The signal detection method according to claim 3, wherein the invalid change point comprises one or more of the following change points:
a change point of the data strobe signal in a first time period, wherein in the first time period, the data strobe signal is in a state of not strobing the data signal; and
a point of intersection between a first change of a signal edge of the data strobe signal and the voltage reference line in a second time period, wherein in the second time period, the data strobe signal is in a state of strobing the data signal.

### Claim 5 (depends on 4)

The signal detection method according to claim 4, wherein the information of the correct output waveform of the to-be-detected signal is a correct logic voltage value of the data signal at each time point, and the comparing the to-be-compared file with the excitation file to generate a detection result file comprises:
calculating an average voltage value of the data signal based on a simulated waveform that is of the data signal and corresponds to adjacent valid change points of the data strobe signal;
converting the average voltage value of the data signal into a logic voltage value; and
comparing the logic voltage value with the correct logic voltage value of the data signal in the excitation file, and obtaining the detection result file.

### Claim 6 (depends on 2)

The signal detection method according to claim 2, before the deleting an invalid change point in the change point of the data strobe signal, the signal detection method further comprises:
checking correctness of the simulated waveform of the data strobe signal.

### Claim 7 (depends on 6)

The signal detection method according to claim 6, wherein the checking correctness of the simulated waveform of the data strobe signal comprises:
obtaining a quantity of correct jumps of the data strobe signal in a data strobe cycle;
calculating a quantity of simulated jumps of the data strobe signal in each data strobe cycle based on the simulated waveform of the data strobe signal; and
comparing the quantity of simulated jumps of the data strobe signal in the data strobe cycle with the quantity of correct jumps, and generating a check result file of the data strobe signal based on a comparison result.

### Claim 8 (depends on 7)

The signal detection method according to claim 7, wherein the comparing the quantity of simulated jumps of the data strobe signal in the data strobe cycle with the quantity of correct jumps comprises:
when the quantity of simulated jumps of the data strobe signal in the data strobe cycle is the same as the quantity of correct jumps, determining that the simulated waveform of the data strobe signal in the data strobe cycle is normal; or
when the quantity of simulated jumps of the data strobe signal in the data strobe cycle is different from the quantity of correct jumps, determining that the simulated waveform of the data strobe signal in the data strobe cycle is abnormal.

### Claim 9

A signal detection method, comprising:
obtaining an excitation file, wherein the excitation file comprises information of a correct output waveform of a to-be-detected signal;
simulating a to-be-detected chip by using a specified emulator, to generate a simulation file, wherein the simulation file comprises information of a simulated waveform of the to-be-detected signal;
comparing the correct output waveform with the simulated waveform to obtain a candidate detection result; and
filtering out a result of a noise point in the candidate detection result to generate a detection result file.

### Claim 10 (depends on 9)

The signal detection method according to claim 9, wherein the comparing the correct output waveform with the simulated waveform to obtain a candidate detection result comprises:
sampling the correct output waveform and the simulated waveform under a same sampling condition, and comparing voltage values of the correct output waveform and the simulated waveform at each sampling time point.

### Claim 11 (depends on 10)

The signal detection method according to claim 10, wherein the same sampling condition comprises a sampling frequency, the sampling frequency is N times a frequency of a clock signal of the chip, and N is greater than or equal to 2.

### Claim 12 (depends on 11)

The signal detection method according to claim 11, wherein the comparing voltage values of the correct output waveform and the simulated waveform at each sampling time point comprises:
when voltage values of the correct output waveform and the simulated waveform at each sampling time point in a half cycle of the clock signal of the chip are not the same, determining that an error occurs on the simulated waveform of the to-be-detected signal in the half cycle of the clock signal of the chip; and
when voltage values of the correct output waveform and the simulated waveform at one or more sampling time points in the half cycle of the clock signal of the chip are the same, determining that no error occurs on the simulated waveform of the to-be-detected signal in the half cycle of the clock signal of the chip.

### Claim 13 (depends on 12)

The signal detection method according to claim 12, wherein the filtering out a result of a noise point in the candidate detection result to generate a detection result file comprises:
when a logic voltage value of at least one sampling time point in the half cycle of the clock signal of the chip is the same, determining another target sampling time point with a different logic voltage value in the half cycle as the noise point; and
filtering out a sampling result of the noise point to generate the detection result file.

### Claim 14 (depends on 9)

The signal detection method according to claim 9, wherein the to-be-detected signal is an external output signal of the to-be-detected chip.

### Claim 15

A signal detection apparatus, comprising:
one or more processors; and
a storage apparatus, configured to store one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to execute operations of:
obtaining an excitation file, wherein the excitation file comprises information of a correct output waveform of a to-be-detected signal;
simulating a to-be-detected chip by using a specified emulator, to generate a simulation file, wherein the simulation file comprises information of a simulated waveform of the to-be-detected signal;
filtering out noise in the simulated waveform to obtain a to-be-compared file, wherein the to-be-compared file comprises information of a valid simulated waveform of the to-be-detected signal; and
comparing the to-be-compared file with the excitation file to generate a detection result file.
