# US 2025/0165362 A1 · Self-contained and configurable debugging mechanism for stream-based hardware accelerators

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

- Number: US 2025/0165362 A1
- Document ID: US20250165362A1
- Status: Published application
- Kind: A1
- Application number: 18/513,380
- Filed: 2023-11-17
- Published: 2025-05-22
- Earliest claimed: 2023-11-17
- Assignees: STMicroelectronics International N.V.
- Applicants: STMicroelectronics International N.V.
- Inventors: Antonio DE VITA; David SIORPAES; Thomas BOESCH; Giuseppe DESOLI
- Web page: https://patentgrep.com/patent/US20250165362A1

## CPC

- G06F 11/221: {to test buses, lines or interfaces, e.g. stuck-at or open line faults}
- G06F 11/2268: {Logging of test results}
- G06F 11/3041: {where the computing system component is an input/output interface (interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units G06F13/00)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A hardware accelerator includes a plurality of functional circuits, a stream switch, a plurality of direct memory access (DMA) channels coupled to the plurality of functional circuits via the stream switch to stream data to and from functional circuits of the plurality of functional circuits, and a debug and trace unit coupled to the stream switch, wherein in operation, the debug and trace unit monitors a set of data signals to and from the stream switch via wired probes and implements one or more event counters, one or more triggers, and one or more tracers using components internal to the hardware accelerator including one or more registers of the hardware accelerator, and wherein the one or more tracers output trace data packets via the stream switch.

## Claims

### Claim 1

A hardware accelerator, comprising:
a plurality of functional circuits;
a stream switch;
a plurality of direct memory access (DMA) channels coupled to the plurality of functional circuits via the stream switch to stream data to and from functional circuits of the plurality of functional circuits; and
a debug and trace unit coupled to the stream switch, wherein in operation, the debug and trace unit monitors a set of data signals to and from the stream switch via wired probes and implements one or more event counters, one or more triggers, and one or more tracers using components internal to the hardware accelerator including one or more registers of the hardware accelerator, and wherein the one or more tracers output trace data packets via the stream switch.

### Claim 2 (depends on 1)

The hardware accelerator of claim 1, wherein the debug and trace unit does not require at least one of dedicated memories, dedicated buses, or dedicated debugging interfaces.

### Claim 3 (depends on 2)

The hardware accelerator of claim 2, wherein the debug and trace unit shares a bus with the plurality of functional circuits.

### Claim 4 (depends on 3)

The hardware accelerator of claim 3, wherein access to the debug and trace unit has a lowest priority on the shared bus to avoid interfering with system behavior of the hardware accelerator.

### Claim 5 (depends on 1)

The hardware accelerator of claim 1, wherein a quantity of at least one of the one or more event counters, one or more triggers, or one or more tracers is subject to configuration.

### Claim 6 (depends on 5)

The hardware accelerator of claim 5, wherein the configuration is performed based on one or more configuration registers of the hardware accelerator.

### Claim 7 (depends on 1)

The hardware accelerator of claim 1, wherein the trace data packets are output via the stream switch to at least one of the DMA channels.

### Claim 8 (depends on 1)

The hardware accelerator of claim 1, wherein the trace data packets are output via the stream switch to at least a local buffer of the hardware accelerator.

### Claim 9 (depends on 8)

The hardware accelerator of claim 8, wherein the local buffer is coupled to at least one of the DMA channels via the stream switch.

### Claim 10

A system, comprising:
a host device; and
a hardware accelerator, the hardware accelerator including:
a plurality of functional circuits;
a stream switch;
a plurality of direct memory access (DMA) channels coupled to the plurality of functional circuits via the stream switch to stream data to and from functional circuits of the plurality of functional circuits; and
a debug and trace unit coupled to the stream switch, wherein in operation, the debug and trace unit monitors a set of data signals to and from the stream switch via wired probes and implements one or more event counters, one or more triggers, and one or more tracers using components internal to the hardware accelerator including one or more registers of the hardware accelerator, and wherein the one or more tracers output trace data packets via the stream switch.

### Claim 11 (depends on 10)

The system of claim 10, wherein the debug and trace unit does not require at least one of dedicated memories, dedicated buses, or dedicated debugging interfaces.

### Claim 12 (depends on 11)

The system of claim 11, wherein the debug and trace unit shares a bus with the plurality of functional circuits.

### Claim 13 (depends on 12)

The system of claim 12, wherein access to the debug and trace unit has a lowest priority on the shared bus to avoid interfering with system behavior of the hardware accelerator.

### Claim 14 (depends on 10)

The system of claim 10, wherein a quantity of at least one of the one or more event counters, one or more triggers, or one or more tracers is subject to configuration.

### Claim 15 (depends on 14)

The system of claim 14, wherein the configuration is performed based on one or more configuration registers of the hardware accelerator.

### Claim 16 (depends on 10)

The system of claim 10, wherein the trace data packets are output via the stream switch to at least one of the DMA channels.

### Claim 17 (depends on 10)

The system of claim 10, wherein the trace data packets are output via the stream switch to at least a local buffer of the hardware accelerator.

### Claim 18 (depends on 17)

The system of claim 17, wherein the local buffer is coupled to at least one of the DMA channels via the stream switch.

### Claim 19

A method, comprising:
streaming data between a plurality of direct memory access (DMA) channels of a hardware accelerator and a plurality of functional circuits of the hardware accelerator via a stream switch;
implementing debug and trace functions within the hardware accelerator based on configurations obtained via configuration registers;
monitoring data signals to and from the stream switch; and
outputting trace data via the stream switch.

### Claim 20 (depends on 19)

The method of claim 19, wherein implementing the debug and trace functions within the hardware accelerator does not require at least one of dedicated memories, dedicated buses, or dedicated debugging interfaces.

### Claim 21 (depends on 20)

The method of claim 20, wherein implementing the debug and trace functions comprises sharing a bus with the plurality of functional circuits.

### Claim 22 (depends on 21)

The method of claim 21, wherein access to the debug and trace functions has a lowest priority on the shared bus to avoid interfering with system behavior of the hardware accelerator.

### Claim 23 (depends on 19)

The method of claim 19, wherein the configuration registers include configuration information to configure at least one of one or more event counters, one or more triggers, or one or more tracers corresponding to the debug and trace functions.

### Claim 24 (depends on 19)

The method of claim 19, wherein the trace data is output via the stream switch to at least one of the DMA channels.

### Claim 25 (depends on 19)

The method of claim 19, wherein the trace data is output via the stream switch to at least a local buffer of the hardware accelerator.

### Claim 26 (depends on 25)

The method of claim 25, wherein the local buffer is further used to output the trace data to at least one of the DMA channels via the stream switch.

### Claim 27

A non-transitory computer-readable medium having contents which cause a system including one or more processors to perform actions comprising:
streaming data between a plurality of direct memory access (DMA) channels of a hardware accelerator and a plurality of functional circuits of the hardware accelerator via a stream switch;
implementing debug and trace functions within the hardware accelerator based on configurations obtained via configuration registers;
monitoring data signals to and from the stream switch; and
outputting trace data via the stream switch.

### Claim 28 (depends on 27)

The non-transitory computer-readable medium of claim 27, wherein implementing the debug and trace functions within the hardware accelerator does not require at least one of dedicated memories, dedicated buses, or dedicated debugging interfaces.

### Claim 29 (depends on 28)

The non-transitory computer-readable medium of claim 28, wherein implementing the debug and trace functions comprises sharing a bus with the plurality of functional circuits.

### Claim 30 (depends on 29)

The non-transitory computer-readable medium of claim 29, wherein access to the debug and trace functions has a lowest priority on the shared bus to avoid interfering with system behavior of the hardware accelerator.

### Claim 31 (depends on 27)

The non-transitory computer-readable medium of claim 27, wherein the configuration registers include configuration information to configure at least one of one or more event counters, one or more triggers, or one or more tracers corresponding to the debug and trace functions.

### Claim 32 (depends on 27)

The non-transitory computer-readable medium of claim 27, wherein the trace data is output via the stream switch to at least one of the DMA channels.

### Claim 33 (depends on 27)

The non-transitory computer-readable medium of claim 27, wherein the trace data is output via the stream switch to at least a local buffer of the hardware accelerator.

### Claim 34 (depends on 33)

The non-transitory computer-readable medium of claim 33, wherein the local buffer is further used to output the trace data to at least one of the DMA channels via the stream switch.
