# US 2026/0310868 A1 · Collaborative debugging across firmware and hardware

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

- Number: US 2026/0310868 A1
- Document ID: US20260310868A1
- Status: Published application
- Kind: A1
- Application number: 19/171,211
- Filed: 2025-04-05
- Published: 2026-10-08
- Earliest claimed: 2025-04-05
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Pretty Mariam Jacob; Arun Joseph; Rohan Sharma; Carsten Otte; Sajay Mathew Karottukottarathil Baby
- Web page: https://patentgrep.com/patent/US20260310868A1

## CPC

- G06F 30/3308: using simulation
- G06F 11/3636: {by tracing the execution of the program}
- G06F 30/3323: using formal methods, e.g. equivalence checking or property checking
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computer-implemented method, system, and computer program product for testing and debugging firmware and hardware in a collaborative manner. A collaborative debug platform is utilized in which a snapshot of an architected state produced by a firmware simulator after executing firmware on the firmware simulator is captured. Furthermore, a hardware simulation model is initialized using the snapshot of the architected state. After such an initialization, one or more cycles of hardware execution are simulated on the hardware simulation model. Debugging on hardware facilities of interest (e.g., registers, memory, caches, signals, etc.) on the hardware simulation model is then performed. A snapshot and/or traces of states of the hardware facilities of interest produced by the hardware simulation model after performing the debugging are captured. Such a snapshot and/or traces of states of the hardware facilities of interest are then utilized in executing the firmware on the firmware simulator.

## Claims

### Claim 1

A computer-implemented method for testing and debugging firmware and hardware, the method comprising:
executing firmware on a firmware simulator;
capturing a snapshot of an architected state produced by said firmware simulator after executing said firmware on said firmware simulator;
initializing a hardware simulation model using said snapshot of said architected state;
simulating one or more cycles of hardware execution on said hardware simulation model after said initialization of said hardware simulation model;
performing debugging of hardware facilities of interest on said hardware simulation model after said simulation;
capturing one or more of a snapshot and traces of states of said hardware facilities of interest produced by said hardware simulation model after performing said debugging; and
executing said firmware on said firmware simulator using said one or more of said snapshot and said traces of states of said hardware facilities of interest.

### Claim 2 (depends on 1)

The method as recited in claim 1, wherein said captured snapshot of said architected state produced by said firmware simulator contains register values and memory data from a firmware simulation environment, wherein said snapshot of said architected state is captured using an interface description language template.

### Claim 3 (depends on 2)

The method as recited in claim 2 further comprising:
encoding, serializing, and storing said snapshot of said architected state.

### Claim 4 (depends on 2)

The method as recited in claim 2 further comprising:
initializing said hardware simulation model using said snapshot of said architected state using said interface description language template.

### Claim 5 (depends on 2)

The method as recited in claim 2 further comprising:
initializing debugging on said hardware simulation model using a second interface description language template to specify said hardware facilities of interest for debugging.

### Claim 6 (depends on 1)

The method as recited in claim 1 further comprising:
encoding, serializing, and storing said one or more of said snapshot and said traces of states of said hardware facilities of interest.

### Claim 7 (depends on 6)

The method as recited in claim 6 further comprising:
initializing said firmware simulator using one or more of said stored snapshot and said stored traces of states of said hardware facilities of interest using an interface description language template.

### Claim 8 (depends on 1)

The method as recited in claim 1 further comprising:
initializing non-architected state elements of said hardware simulation model; and
simulating said one or more cycles of hardware execution on said hardware simulation model after said initialization of said hardware simulation model and said initialization of said non-architected state elements of said hardware simulation model.

### Claim 9

A computer program product for testing and debugging firmware and hardware, the computer program product comprising one or more computer readable storage mediums having program code embodied therewith, the program code comprising programming instructions for:
executing firmware on a firmware simulator;
capturing a snapshot of an architected state produced by said firmware simulator after executing said firmware on said firmware simulator;
initializing a hardware simulation model using said snapshot of said architected state;
simulating one or more cycles of hardware execution on said hardware simulation model after said initialization of said hardware simulation model;
performing debugging of hardware facilities of interest on said hardware simulation model after said simulation;
capturing one or more of a snapshot and traces of states of said hardware facilities of interest produced by said hardware simulation model after performing said debugging; and
executing said firmware on said firmware simulator using said one or more of said snapshot and said traces of states of said hardware facilities of interest.

### Claim 10 (depends on 9)

The computer program product as recited in claim 9, wherein said captured snapshot of said architected state produced by said firmware simulator contains register values and memory data from a firmware simulation environment, wherein said snapshot of said architected state is captured using an interface description language template.

### Claim 11 (depends on 10)

The computer program product as recited in claim 10, wherein the program code further comprises the programming instructions for:
encoding, serializing, and storing said snapshot of said architected state.

### Claim 12 (depends on 10)

The computer program product as recited in claim 10, wherein the program code further comprises the programming instructions for:
initializing said hardware simulation model using said snapshot of said architected state using said interface description language template.

### Claim 13 (depends on 10)

The computer program product as recited in claim 10, wherein the program code further comprises the programming instructions for:
initializing debugging on said hardware simulation model using a second interface description language template to specify said hardware facilities of interest for debugging.

### Claim 14 (depends on 9)

The computer program product as recited in claim 9, wherein the program code further comprises the programming instructions for:
encoding, serializing, and storing said one or more of said snapshot and said traces of states of said hardware facilities of interest.

### Claim 15 (depends on 14)

The computer program product as recited in claim 14, wherein the program code further comprises the programming instructions for:
initializing said firmware simulator using one or more of said stored snapshot and said stored traces of states of said hardware facilities of interest using an interface description language template.

### Claim 16 (depends on 9)

The computer program product as recited in claim 9, wherein the program code further comprises the programming instructions for:
initializing non-architected state elements of said hardware simulation model; and
simulating said one or more cycles of hardware execution on said hardware simulation model after said initialization of said hardware simulation model and said initialization of said non-architected state elements of said hardware simulation model.

### Claim 17

A system, comprising:
a memory for storing a computer program for testing and debugging firmware and hardware; and
a processor connected to said memory, wherein said processor is configured to execute program instructions of the computer program comprising:
executing firmware on a firmware simulator;
capturing a snapshot of an architected state produced by said firmware simulator after executing said firmware on said firmware simulator;
initializing a hardware simulation model using said snapshot of said architected state;
simulating one or more cycles of hardware execution on said hardware simulation model after said initialization of said hardware simulation model;
performing debugging of hardware facilities of interest on said hardware simulation model after said simulation;
capturing one or more of a snapshot and traces of states of said hardware facilities of interest produced by said hardware simulation model after performing said debugging; and
executing said firmware on said firmware simulator using said one or more of said snapshot and said traces of states of said hardware facilities of interest.

### Claim 18 (depends on 17)

The system as recited in claim 17, wherein said captured snapshot of said architected state produced by said firmware simulator contains register values and memory data from a firmware simulation environment, wherein said snapshot of said architected state is captured using an interface description language template.

### Claim 19 (depends on 18)

The system as recited in claim 18, wherein the program instructions of the computer program further comprise:
encoding, serializing, and storing said snapshot of said architected state.

### Claim 20 (depends on 18)

The system as recited in claim 18, wherein the program instructions of the computer program further comprise:
initializing said hardware simulation model using said snapshot of said architected state using said interface description language template.
