# US 2017/0255728 A1 · Capturing Time-Slice of Emulation Data for Offline Embedded Software Debug

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

- Number: US 2017/0255728 A1
- Document ID: US20170255728A1
- Status: Published application
- Kind: A1
- Application number: 15/449,877
- Filed: 2017-03-03
- Published: 2017-09-07
- Earliest claimed: 2016-03-04
- Assignees: Synopsys, Inc.
- Applicants: Synopsys, Inc.
- Inventors: Alexander John Wakefield; Jefferry Phuong Vo; Joerg Horst Richter; Kai Thorsten Schuetz
- Web page: https://patentgrep.com/patent/US20170255728A1

## CPC

- G06F 30/331: with hardware acceleration, e.g. by using field programmable gate array [FPGA] or emulation
- G06F 9/00: Arrangements for program control, e.g. control units (program control for peripheral devices G06F13/10)
- G06F 11/00: Error detection; Error correction; Monitoring (error detection, correction or monitoring in information storage based on relative movement between record carrier and transducer G11B20/18; monitoring, i.e. supervising the progress of recording or reproducing G11B27/36; in static stores G11C29/00)
- G06F 11/261: {by simulating additional hardware, e.g. fault simulation}
- G06F 30/3312: Timing analysis
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Disclosed is a method (or a system or a non-transitory computer readable medium) for recreating states of an embedded processing unit of a design under test (DUT). In one aspect, a host system configures an emulator to implement the DUT. The DUT includes the embedded processing unit and a memory unit. The host system configures the emulator to execute design instructions for testing an operation of the DUT through the embedded processing unit. The host system receives a stream of values stored by the memory unit of the DUT. The values indicate execution results of the design instructions executed by the embedded processing unit. The host system stores the stream of the values and generates a log file for recreating one or more states of the embedded processing unit based on the stored stream of the values.

## Claims

### Claim 1

A system comprising:
an emulator comprised of:
a reconfigurable circuit to implement a design under test (DUT) to be tested, the DUT including an embedded processing unit, the embedded processing unit to execute design instructions for testing an operation of the DUT, the design instructions executable by the embedded processing unit during clock cycles of the DUT, and
an embedded processor logger, the embedded processor logger configured to generate a stream of values indicative of a portion of execution results, the portion of the execution results corresponding to a portion of the clock cycles; and
a host system communicatively coupled to the emulator through an interface, the host system configured to generate a log file based on the stream of values, the log file including a list of the design instructions executed by the embedded processing unit and the portion of the execution results.

### Claim 2 (depends on 1)

The system of claim 1, wherein the host system further comprises:
a debugger configured to generate one or more states of the embedded processing unit based on the log file, the one or more states corresponding to the clock cycles of the DUT.

### Claim 3 (depends on 2)

The system of claim 2, wherein the log file does not include another portion of the execution results, said another portion of the execution results corresponding to another clock cycle of the DUT.

### Claim 4 (depends on 3)

The system of claim 3, wherein the host is further configured to generate one or more states of the embedded processing unit based on the log file, the one or more states corresponding to said another clock cycle of the DUT.

### Claim 5 (depends on 1)

The system of claim 1, wherein the emulator further comprises:
an embedded memory unit configured to store memory values of the portion of the execution results of the design instructions executed by the embedded processing unit, and
one or more registers configured to store register values of the portion of the execution results of the design instructions executed by the embedded processing unit.

### Claim 6 (depends on 5)

The system of claim 5, wherein the host system further comprises:
a memory mirror configured to extract the memory values from the stream of the values and to store the memory values, and
a register mirror configured to extract the register values from the stream of the values and to store the register values.

### Claim 7 (depends on 5)

The system of claim 5, wherein the register values include more frequently accessed data of the portion of the execution results than the memory values.

### Claim 8

An emulator communicatively coupled to a host system, the emulator comprising:
a reconfigurable circuit to implement a design under test (DUT) to be tested, the DUT including an embedded processing unit, the embedded processing unit to execute design instructions for testing an operation of the DUT, the design instructions executable by the embedded processing unit during clock cycles of the DUT; and
an embedded processor logger, the embedded processor logger configured to generate a stream of values indicative of a portion of execution results, the portion of the execution results corresponding to a portion of the clock cycles,
wherein the host system is configured to generate a log file based on the stream of values, the log file including a list of the design instructions executed by the embedded processing unit and the portion of the execution results.

### Claim 9 (depends on 8)

The emulator of claim 8, wherein the host system is further configured to generate one or more states of the embedded processing unit based on the log file, the one or more states corresponding to the clock cycles of the DUT.

### Claim 10 (depends on 8)

The emulator of claim 8, further comprising a design logic including logic circuits to be tested, the logic circuits to operate in conjunction with the embedded processing unit for testing the operation of the DUT.

### Claim 11 (depends on 8)

The emulator of claim 8, further comprising:
an embedded memory unit configured to store memory values of the portion of the execution results of the design instructions executed by the embedded processing unit; and
one or more registers configured to store register values of the portion of the execution results of the design instructions executed by the embedded processing unit.

### Claim 12

A non-transitory computer readable medium storing instructions, the instructions when executed by a host system cause the host system to:
configure an emulator to implement a design under test (DUT) on a reconfigurable circuit of the emulator, the DUT including an embedded processing unit and a memory unit;
configure the emulator to execute design instructions for testing an operation of the DUT through the embedded processing unit, the design instructions executable by the embedded processing unit during clock cycles of the DUT;
receive a stream of values, the values indicative of a portion of execution results of the design instructions executed by the embedded processing unit of the DUT, the values stored by the memory unit of the DUT;
store the stream of the values at one or more storage units of the host system; and
generate a log file based on the stored stream of the values, the log file including a list of the design instructions executed by the embedded processing unit and the portion of the execution results.

### Claim 13 (depends on 12)

The non-transitory computer readable medium of claim 12, further comprising instructions that when executed by the host system further cause the host system to:
generate one or more states of the embedded processing unit based on the log file, the one or more states corresponding to the clock cycles of the DUT.

### Claim 14 (depends on 12)

The non-transitory computer readable medium of claim 12, wherein the log file does not include another portion of the execution results, said another portion of the execution results corresponding to another clock cycle of the DUT.

### Claim 15 (depends on 14)

The non-transitory computer readable medium of claim 14, further comprising instructions that when executed by the host system further cause the host system to:
generate one or more states of the embedded processing unit based on the log file, the one or more states corresponding to said another clock cycle of the DUT.

### Claim 16 (depends on 12)

The non-transitory computer readable medium of claim 12, wherein the emulator comprises:
an embedded memory unit configured to store memory values of the portion of the execution results of the design instructions executed by the embedded processing unit, and
one or more registers configured to store register values of the portion of the execution results of the design instructions executed by the embedded processing unit.

### Claim 17 (depends on 16)

The non-transitory computer readable medium of claim 16, further comprising instructions that when executed by the host system further cause the host system to:
extract the memory values from the stream of the values and to store the memory values, and
extract the register values from the stream of the values and to store the register values.

### Claim 18 (depends on 17)

The non-transitory computer readable medium of claim 17, wherein the register values include more frequently accessed data of the portion of the execution results than the memory values.
