# US 12,119,072 B2 · Protection circuit, method and apparatus for data path, and computer readable storage medium

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

- Number: US 12,119,072 B2
- Document ID: US12119072B2
- Status: Granted
- Kind: B2
- Application number: 17/907,680
- Filed: 2022-02-11
- Published: 2024-06-27
- Granted: 2024-10-15
- Earliest claimed: 2021-03-31
- Assignees: Horizon Journey (Hangzhou) Artificial Intelligence Technology Co., Ltd.
- Applicants: Horizon Journey (Hangzhou) Artificial Intelligence Technology Co., Ltd.
- Inventors: Jing Li; Yi Zhou; Luyang Zhang; Wenxing Li
- Web page: https://patentgrep.com/patent/US12119072B2

## CPC

- G11C 29/42: using error correcting codes [ECC] or parity check
- G06F 11/1004: {to protect a block of data words, e.g. CRC or checksum (G06F11/1076 takes precedence; security arrangements for protecting computers or computer systems against unauthorized activity G06F21/00)}
- G11C 2029/0411: {Online error correction}
- G11C: STATIC STORES (semiconductor memory devices H10B)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Disclosed are protection circuit, method and apparatus for data path and a computer readable storage medium. The circuit includes an input processing circuit, an output processing circuit, and a comparison module. The comparison module is electrically connected to the input processing circuit and the output processing circuit, respectively; the input processing circuit is configured to perform a check operation on an input data frame according to a preset check mode to obtain a first operation result; the output processing circuit is configured to perform a check operation on an output data frame corresponding to the input data frame according to the preset check mode to obtain a second operation result; and the comparison module is configured to acquire the first operation result and the second operation result, and generate a first error alarm signal for the data path based on the first operation result and the second operation result.

## Claims

### Claim 1

A protection circuit for a data path, including an input processing circuit, an output processing circuit, and a comparison module; wherein
the input processing circuit is electrically connected with the input data bus of the data path, the output processing circuit is electrically connected with the output data bus of the data path, an input terminal of the data path is electrically connected with the input data bus, and an output terminal of the data path is electrically connected with the output data bus;
the comparison module is electrically connected to the input processing circuit and the output processing circuit, respectively;
the input processing circuit is configured to perform a check operation on an input data frame obtained from the input data bus according to a preset check mode to obtain a first operation result;
the output processing circuit is configured to perform a check operation on an output data frame obtained from the output data bus and corresponding to the input data frame according to the preset check mode to obtain a second operation result; and
the comparison module is configured to acquire the first operation result and the second operation result, and generate a first error alarm signal for the data path based on the first operation result and the second operation result.

### Claim 2 (depends on 1)

The protection circuit according to claim 1, wherein the input processing circuit includes a first signal generation module and a first processing module;
the first signal generation module is electrically connected to the first processing module, and the first processing module is further electrically connected to the comparison module;
the first signal generation module is configured to generate and transmit an input frame end signal when it is determined, based on an input control signal, that the first processing module has acquired a whole of the input data frame; and
the first processing module is configured to obtain and output the first operation result in response to the input frame end signal from the first signal generation module, so that the comparison module acquires the first operation result.

### Claim 3 (depends on 2)

The protection circuit according to claim 2, wherein the protection circuit further includes a storage module;
the storage module is electrically connected to the first signal generation module, the first processing module, and the comparison module, respectively;
the first signal generation module is further configured to generate and transmit a data write signal when it is determined, based on the input control signal, that the first processing module has acquired the whole of the input data frame;
the first processing module is configured to transmit the first operation result in response to the input frame end signal from the first signal generation module; and
the storage module is configured to store the first operation result from the first processing module in response to the data write signal from the first signal generation module, and the storage module is further configured to transmit the first operation result.

### Claim 4 (depends on 2)

The protection circuit according to claim 2, wherein the first processing module includes a first signal processing unit and a first check unit;
the first signal processing unit is electrically connected to the first check unit, and the first check unit is further electrically connected to the first signal generation module and the comparison module, respectively;
the first signal processing unit is configured to perform, based on the input control signal, sampling and packaging on valid signals of the input data signals, and transmit a first sampling and packaging result; and
the first check unit is configured to generate, based on the first sampling and packaging result from the first signal processing unit, the first operation result that is obtained through performing the check operation on the input data frame.

### Claim 5 (depends on 1)

The protection circuit according to claim 1, wherein the protection circuit further includes a control signal detection module; and
the control signal detection module is configured to generate a third error alarm signal for the data path when a volume of valid data carried in the input control signal is different from a preset data volume, and/or a duration for frame transmission carried in the input control signal is greater than a preset duration.

### Claim 6 (depends on 1)

The protection circuit according to claim 1, wherein the output processing circuit includes a second signal generation module and a second processing module;
the second signal generation module is electrically connected to the second processing module and the comparison module, respectively, and the second processing module is further electrically connected to the comparison module;
the second signal generation module is configured to generate and transmit an output frame end signal and a comparison enable signal when it is determined, based on an output control signal, that the second processing module has acquired a whole of the output data frame;
the second processing module is configured to obtain and transmit the second operation result in response to the output frame end signal from the second signal generation module; and
the comparison module is configured to compare the first operation result with the second operation result in response to the comparison enable signal from the second signal generation module, and generate the first error alarm signal when a comparison result is that the first operation result and the second operation result do not match with each other.

### Claim 7 (depends on 6)

The protection circuit according to claim 6, wherein the protection circuit further includes a storage module;
the storage module is electrically connected to the input processing circuit, the comparison module, and the second signal generation module, respectively;
the input processing circuit is further configured to transmit the first operation result;
the storage module is configured to store the first operation result from the input processing circuit;
the second signal generation module is further configured to generate a data read signal and transmit when it is determined, based on the output control signal, that the second processing module has acquired the whole of the output data frame; and
the storage module is further configured to read and transmit the stored first operation result in response to the data read signal from the second signal generation module.

### Claim 8

A protection method for a data path, including steps of:
electrically connecting an input processing circuit with an input data bus of a data path;
electrically connecting an output processing circuit with an output data bus of the data path;
electrically connecting an input terminal of the data path with the input data bus;
electrically connecting an output terminal of the data path with the output data bus;
performing a check operation on an input data frame obtained from the input data bus according to a preset check mode to obtain a first operation result;
performing a check operation on an output data frame obtained from the output data bus and corresponding to the input data frame according to the preset check mode to obtain a second operation result; and
generating a first error alarm signal for the data path based on the first operation result and the second operation result.

### Claim 9 (depends on 8)

The protection method according to claim 8, further including steps of:
generating a second error alarm signal for the data path when the number of the same operation results among N first operation results corresponding to N consecutive input data frames and N satisfy a preset relation, where N is an integer greater than or equal to 2;
and/or
generating a third error alarm signal for the data path when a volume of valid data carried in an input control signal is different from a preset data volume, and/or a duration for frame transmission carried in the input control signal is greater than a preset duration.

### Claim 10 (depends on 8)

The protection method according to claim 8, wherein the step of performing a check operation on an input data frame according to a preset check mode to obtain a first operation result includes:
generating and transmitting an input frame end signal when it is determined, based on an input control signal, that a whole of the input data frame has been acquired; and
performing, based on the input control signal, sampling and packaging on valid signals of the input data signals, and transmitting a first sampling and packaging result; and
generating, based on the first sampling and packaging result, the first operation result that is obtained through performing the check operation on the input data frame.

### Claim 11 (depends on 8)

A computer readable storage medium, in which a computer program is stored and used for implementing the protection method for the data path according to claim 8.

### Claim 12 (depends on 8)

An electronic device, including:
a processor; and
a memory, configured to store a processor-executable instruction; wherein
the processor is configured to read the executable instruction from the memory and execute the instruction to implement the protection method for the data path according to claim 8.

### Claim 13 (depends on 12)

The electronic device according to claim 12, wherein the protection method further includes steps of:
generating a second error alarm signal for the data path when the number of the same operation results among N first operation results corresponding to N consecutive input data frames and N satisfy a preset relation, where N is an integer greater than or equal to 2;
and/or
generating a third error alarm signal for the data path when a volume of valid data carried in an input control signal is different from a preset data volume, and/or a duration for frame transmission carried in the input control signal is greater than a preset duration.

### Claim 14 (depends on 13)

The electronic device according to claim 13, wherein the step of performing a check operation on an input data frame according to a preset check mode to obtain a first operation result includes:
generating and transmitting an input frame end signal when it is determined, based on an input control signal, that a whole of the input data frame has been acquired; and
performing, based on the input control signal, sampling and packaging on valid signals of the input data signals, and transmitting a first sampling and packaging result; and
generating, based on the first sampling and packaging result, the first operation result that is obtained through performing the check operation on the input data frame.

### Claim 15 (depends on 14)

The electronic device according to claim 14, wherein the step of performing a check operation on an output data frame corresponding to the input data frame according to the preset check mode to obtain a second operation result includes:
generate and transmit an output frame end signal and a comparison enable signal when it is determined, based on an output control signal, that a whole of the output data frame has been acquired;
performing, based on the output control signal, sampling and packaging on valid signals of the output data signals, and transmitting a second sampling and packaging result; and generating, based on the second sampling and packaging result, the second operation result that is obtained through performing the check operation on the output data frame.

### Claim 16 (depends on 10)

The protection method according to claim 10, wherein the step of performing a check operation on an output data frame corresponding to the input data frame according to the preset check mode to obtain a second operation result includes:
generating and transmitting an output frame end signal and a comparison enable signal when it is determined, based on an output control signal, that a whole of the output data frame has been acquired;
performing, based on the output control signal, sampling and packaging on valid signals of the output data signals, and transmitting a second sampling and packaging result; and
generating, based on the second sampling and packaging result, the second operation result that is obtained through performing the check operation on the output data frame.

### Claim 17 (depends on 16)

The protection method according to claim 16, wherein the step of generating a first error alarm signal for the data path based on the first operation result and the second operation result includes:
comparing the first operation result with the second operation result in response to the comparison enable signal, and generating the first error alarm signal when a comparison result is that the first operation result and the second operation result do not match with each other.

### Claim 18 (depends on 11)

The computer readable storage medium according to claim 11, wherein the protection method further includes steps of:
generating a second error alarm signal for the data path when the number of the same operation results among N first operation results corresponding to N consecutive input data frames and N satisfy a preset relation, where N is an integer greater than or equal to 2; and/or
generating a third error alarm signal for the data path when a volume of valid data carried in an input control signal is different from a preset data volume, and/or a duration for frame transmission carried in the input control signal is greater than a preset duration.

### Claim 19 (depends on 18)

The computer readable storage medium according to claim 18, wherein the step of performing a check operation on an input data frame according to a preset check mode to obtain a first operation result includes:
generating and transmitting an input frame end signal when it is determined, based on an input control signal, that a whole of the input data frame has been acquired; and
performing, based on the input control signal, sampling and packaging on valid signals of the input data signals, and transmitting a first sampling and packaging result; and
generating, based on the first sampling and packaging result, the first operation result that is obtained through performing the check operation on the input data frame.

### Claim 20 (depends on 19)

The computer readable storage medium according to claim 19, wherein the step of performing a check operation on an output data frame corresponding to the input data frame according to the preset check mode to obtain a second operation result includes:
generate and transmit an output frame end signal and a comparison enable signal when it is determined, based on an output control signal, that a whole of the output data frame has been acquired;
performing, based on the output control signal, sampling and packaging on valid signals of the output data signals, and transmitting a second sampling and packaging result; and
generating, based on the second sampling and packaging result, the second operation result that is obtained through performing the check operation on the output data frame.
