# US 2012/0233578 A1 · Performance counters for integrated circuits

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

- Number: US 2012/0233578 A1
- Document ID: US20120233578A1
- Status: Published application
- Kind: A1
- Application number: 13/042,646
- Filed: 2011-03-08
- Published: 2012-09-13
- Earliest claimed: 2011-03-08
- Assignees: Oracle International Corporation
- Inventors: Martin KARLSSON
- Web page: https://patentgrep.com/patent/US20120233578A1

## CPC

- G06F 30/331: with hardware acceleration, e.g. by using field programmable gate array [FPGA] or emulation
- G06F 30/327: Logic synthesis; Behaviour synthesis, e.g. mapping logic, HDL to netlist, high-level language to RTL or netlist
- G06F 30/333: Design for testability [DFT], e.g. scan chain or built-in self-test [BIST]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems, methods, and other embodiments associated with performance counters are described. In one embodiment, a method includes generating a first register transfer level (RTL) description of an integrated circuit that includes a performance counter. The integrated circuit is emulated in hardware and statistical data is collected with the performance counter. The performance counter is then removed from the integrated circuit.

## Claims

### Claim 1

A method, comprising:
generating a first register transfer level (RTL) description of an integrated circuit that includes a performance counter;
emulating the integrated circuit in hardware using one or more field programmable gate arrays;
executing a test program in the emulated integrated circuit and collecting statistical data with the performance counter; and
after the statistical data is collected, generating a second register transfer level (RTL) description of the integrated circuit where the performance counter is removed from the integrated circuit.

### Claim 2 (depends on 1)

The method of claim 1, wherein the first register transfer level (RTL) description describes the performance counter as connected to a component in the integrated circuit and configured to collect signals from the component.

### Claim 3 (depends on 1)

The method of claim 1, wherein generating the second register transfer level (RTL) description includes setting a flag for code that describes the performance counter, where the flag causes a compiler to exclude the code from a netlist of the integrated circuit.

### Claim 4 (depends on 1)

The method of claim 1, wherein emulating the integrated circuit in hardware comprises loading a circuit design of the integrated circuit into the one or more field programmable gate arrays that are configured to function to emulate the integrated circuit.

### Claim 5 (depends on 1)

The method of claim 1, wherein emulating the integrated circuit comprises:
executing the test program on an instruction set simulator that simulates an architectural state of the integrated circuit; and
stopping the instruction set simulator at a checkpoint and capturing the architectural state;
wherein executing the test program in the emulated integrated circuit comprises loading the architectural state from the instruction set simulator into the hardware and continue executing the test program from the checkpoint.

### Claim 6 (depends on 1)

The method of claim 1, wherein after the statistical data is collected, the method comprises:
analyzing the statistical data from the performance counter and debugging the integrated circuit; and
revising the first register transfer level (RTL) description based on the debugging to generate the second register transfer level (RTL) description.

### Claim 7 (depends on 1)

The method of claim 1, further including:
selecting the performance counter from a software library of performance counters prior to generating the first register transfer level (RTL) description; and
adding the selected performance counter to the integrated circuit via the first register transfer level (RTL) description.

### Claim 8

A non-transitory computer-readable medium storing computer-executable instructions that when executed by a computer cause the computer to perform a method, the method comprising:
generating a hardware description code that describes an integrated circuit;
wherein the hardware description code includes a description of a performance counter that is configured to connect to and collect run-time data from a component within the integrated circuit;
generating an emulation circuit of the integrated circuit including the performance counter into a reconfigurable logic using the hardware description code;
executing a test program using the emulation circuit;
collecting the run-time data with the performance counter during the execution of the test program; and
after a designated time, ending the execution and reconfiguring the hardware description code to remove the performance counter from the integrated circuit.

### Claim 9 (depends on 8)

The non-transitory computer-readable medium of claim 8, wherein the reconfigurable logic comprises at least one field programmable gate array (FPGA).

### Claim 10 (depends on 8)

The non-transitory computer-readable medium of claim 8, wherein reconfiguring the hardware description code comprises setting a flag associated with performance counter code that describes the performance counter, wherein the flag causes a compiler to exclude the performance counter code from a final netlist of the integrated circuit.

### Claim 11 (depends on 8)

The non-transitory computer-readable medium of claim 8, wherein generating the hardware description code comprises generating a register transfer level (RTL) description that describes digital circuits in the integrated circuit and interconnections to inputs and outputs.

### Claim 12 (depends on 8)

The non-transitory computer-readable medium of claim 8, further comprising:
executing the test program on an instruction set simulator that simulates an architectural state of the integrated circuit;
stopping the instruction set simulator at a checkpoint and capturing the architectural state; and
wherein executing the test program in the emulation circuit comprises loading the architectural state from the instruction set simulator into the emulation circuit and continue executing the test program from the checkpoint.

### Claim 13 (depends on 8)

The non-transitory computer-readable medium of claim 8, wherein after the execution of the test program is ended, the method comprises analyzing the run-time data and debugging the integrated circuit; and
revising the hardware description code based on the debugging.

### Claim 14 (depends on 8)

The non-transitory computer-readable medium of claim 8, wherein the performance counter is configured to perform a distribution function using the run-time data.

### Claim 15 (depends on 8)

The non-transitory computer-readable medium of claim 8, further comprising:
a library that stores a plurality of performance counters wherein each performance counter is designed to connect to an integrated circuit component and to collect signals during run-time; and
a user interface configured to allow a user to select one or more of the plurality of performance counters from the library and add the selected performance counters to the integrated circuit via the hardware description code.

### Claim 16

A non-transitory computer-readable medium storing computer-executable instructions that when executed by a computer cause the computer to perform a method, the method comprising:
generating a first register transfer level (RTL) description of an integrated circuit that includes a temporary performance counter;
implementing the integrated circuit in hardware using reconfigurable logic;
emulating the integrated circuit with the reconfigurable logic and collecting statistical data with the temporary performance counter during emulation; and
redesigning the integrated circuit based at least in part on the statistical data collected, and generating a final netlist of the integrated circuit wherein the temporary performance counter is removed from the integrated circuit.

### Claim 17 (depends on 16)

The non-transitory computer-readable medium of claim 16, wherein the reconfigurable logic includes one or more field programmable gate arrays or programmable logic devices.

### Claim 18 (depends on 16)

The non-transitory computer-readable medium of claim 16, further comprising generating a netlist from the final register level (RTL) description.

### Claim 19 (depends on 16)

The non-transitory computer-readable medium of claim 16, further comprising validating the integrated circuit based at least in part on analyzing the statistical data.

### Claim 20 (depends on 16)

The non-transitory computer-readable medium of claim 16, wherein the final netlist is used to fabricate a physical chip on silicon.
