# US 2021/0240382 A1 · Device and method for checking register data

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

- Number: US 2021/0240382 A1
- Document ID: US20210240382A1
- Status: Published application
- Kind: A1
- Application number: 17/139,376
- Filed: 2020-12-31
- Published: 2021-08-05
- Earliest claimed: 2020-02-03
- Assignees: Realtek Semiconductor Corp.
- Applicants: Realtek Semiconductor Corporation
- Inventors: ZAN LI; PAN-TING JIANG
- Web page: https://patentgrep.com/patent/US20210240382A1

## CPC

- G06F 3/0655: {Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices}
- G06F 21/64: Protecting data integrity, e.g. using checksums, certificates or signatures
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0673: {Single storage device}
- G06F 21/79: in semiconductor storage media, e.g. directly-addressable memories
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Disclosed is a register data checking device including: an original parity-bit generator generating an original parity bit according to register data to be inputted into a register, and then writing the original parity bit to the register; and a detecting circuit. The detecting circuit includes: a scanning circuit reading the register data and the original parity-bit from the register; an arbitrator enabling the scanning circuit when an access status of the register is free, and thereby forwarding the register data and the original parity bit from the scanning circuit; at least one controlled parity-bit generator generating a controlled parity bit according to the register data from the arbitrator when the access status of the register is free; and at least one parity-bit checking circuit comparing the original parity bit from the arbitrator with the controlled parity bit when the access status is free, and thereby outputting a check result.

## Claims

### Claim 1

A register data checking device, comprising:
an original parity-bit generator configured to generate an original parity bit according to register data to be inputted into a register, and then writing the original parity bit to the register; and
a detecting circuit including a scanning circuit, an arbitrator, at least one controlled parity-bit generator, and at least one parity-bit checking circuit, wherein:
the scanning circuit is configured to read the register data and the original parity-bit from the register according to a register address;
the arbitrator is configured to disable the scanning circuit on condition that a status signal is indicative of an access status of the register being busy;
the arbitrator is configured to enable the scanning circuit on condition that the status signal is indicative of the access status of the register being free, and thereby forward the register data and the original parity-bit from the scanning circuit to the at least one controlled parity-bit generator and at least one parity-bit checking circuit respectively;
the at least one controlled parity-bit generator is configured to generate a controlled parity bit according to the register data from the arbitrator on condition that the status signal is indicative of the access status of the register being free; and
the at least one parity-bit checking circuit is configured to compare the original parity bit from the arbitrator with the controlled parity bit on condition that the status signal is indicative of the access status of the register being free, and thereby output a check result indicating whether the register data come from the register are erroneous.

### Claim 2 (depends on 1)

The register data checking device of claim 1, wherein on condition that the status signal is indicative of the access status of the register being busy, the at least one controlled parity-bit generator is configured to generate the controlled parity bit according to the register data being read out from the register; and then the at least one parity-bit checking circuit is configured to compare the original parity-bit from the register and the controlled parity-bit and thereby output the check result.

### Claim 3 (depends on 2)

The register data checking device of claim 2, wherein the at least one controlled parity-bit generator includes a first controlled parity-bit generator and a second controlled parity-bit generator; the first controlled parity-bit generator is coupled to the arbitrator, and configured to generate the controlled parity bit according to the register data from the arbitrator; and the second controlled parity-bit generator is coupled to the register, and configured to generate the controlled parity bit according to the register data from the register.

### Claim 4 (depends on 3)

The register data checking device of claim 3, wherein the at least one parity-bit checking circuit includes a first parity-bit checking circuit and a second parity-bit checking circuit; the first parity-bit checking circuit is coupled to the arbitrator, and configured to compare the original parity bit from the arbitrator with the controlled parity bit generated by the first controlled parity-bit generator and thereby output the check result; and the second parity-bit checking circuit is coupled to the register, and configured to compare the original parity bit from the register with the controlled parity bit generated by the second controlled parity-bit generator and thereby output the check result.

### Claim 5 (depends on 1)

The register data checking device of claim 1, wherein at least one of a scanning speed and a scanning cycle of the scanning circuit is adjustable.

### Claim 6 (depends on 5)

The register data checking device of claim 5, further comprising: at least one timer configured to provide at least one control signal for the scanning circuit to control at least one of the scanning speed and the scanning cycle.

### Claim 7 (depends on 1)

The register data checking device of claim 1, wherein after the register data and the original parity bit are read out, the scanning circuit reads next register data and a next original parity bit from a next register according to a next register address.

### Claim 8 (depends on 7)

The register data checking device of claim 7, further comprising: an address generator configured to provide the register address for the scanning circuit, and to provide the next register address by updating the register address.

### Claim 9 (depends on 8)

The register data checking device of claim 8, wherein after the check result indicates that the original parity bit is different from the controlled parity bit, the address generator updates the register address and thereby provides the next register address; and after the check result indicates that the original parity bit is identical to the controlled parity bit, the address generator updates the register address according to a control signal and thereby provides the next register address.

### Claim 10 (depends on 1)

The register data checking device of claim 1, wherein on condition that the check result indicates that the original parity bit is different from the controlled parity bit, the at least one parity-bit checking circuit outputs a message according to the check result to suggest that a system or a user updates the register data according to the message.

### Claim 11 (depends on 1)

The register data checking device of claim 1, wherein the register data checking device is included in an application specific integrated circuit (ASIC).

### Claim 12

A register data checking method, comprising:
generating an original parity bit according to register data to be inputted into a register, and then writing the original parity bit to the register;
generating a next original parity bit according to next register data to be inputted into a next register, and then writing the next original parity bit to the next register;
reading the register data and the original parity-bit from the register according to a register address;
generating a controlled parity bit according to the register data come from the register;
comparing the controlled parity bit with the original parity bit, and thereby outputting a check result indicating whether the register data come from the register are erroneous;
updating the register address and thereby obtaining a next register address;
reading the next register data and the next original parity bit from the next register according to the next register address;
generating a next controlled parity bit according to the next register data come from the next register; and
comparing the next controlled parity bit with the next original parity bit, and thereby outputting a next check result indicating whether the next register data come from the next register are erroneous.

### Claim 13 (depends on 12)

The register data checking method of claim 12, further comprising: after the check result indicates that the original parity bit is different from the controlled parity bit, updating the register address and thereby providing the next register address; and after the check result indicates that the original parity bit is identical to the controlled parity bit, updating the register address according to a control signal and thereby provides the next register address.

### Claim 14 (depends on 12)

The register data checking method of claim 12, further comprising: on condition that the check result indicates that the original parity bit is different from the controlled parity bit, outputting a message according to the check result to suggest that a system or a user updates the register data according to the message.
