# US 8,578,356 B1 · High-level language code sequence optimization for implementing programmable chip designs

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

- Number: US 8,578,356 B1
- Document ID: US8578356B1
- Status: Granted
- Kind: B1
- Application number: 12/966,882
- Filed: 2010-12-13
- Granted: 2013-11-05
- Earliest claimed: 2006-01-20
- Assignees: Altera Corporation
- Applicants: Jeffrey Orion Pritchard; Jarrod Colin James Blackburn; David James Lau; Philippe Molson; James L. Ball; Jesse Kempa
- Inventors: Jeffrey Orion Pritchard; Jarrod Colin James Blackburn; David James Lau; Philippe Molson; James L. Ball; Jesse Kempa
- Web page: https://patentgrep.com/patent/US8578356B1

## CPC

- G06F 8/443: {Optimisation}
- G06F 30/34: for reconfigurable circuits, e.g. field programmable gate arrays [FPGA] or programmable logic devices [PLD]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods and apparatus are provided for implementing a programmable chip using a high-level language. Code sequences such as high-level language software critical loops are converted into read/transform/write (RXW) processes with buffer based flow control between the processes. Having separate read and write processes allows an arbitrary number of sequential reads/writes to occur in any order, subject to buffer size, allowing bursting/sequential transactions that are more efficient than random accesses.

## Claims

### Claim 1

A method comprising:
identifying a code sequence included in a high-level language program configured to run on a processor, the code sequence associated with memory access; and
converting the code sequence into separate read process circuitry and write process circuitry corresponding to the code sequence to implement the code sequence on a programmable device, wherein the read process circuitry is operable to perform memory read accesses and the write process circuitry is operable to perform memory write accesses, wherein the separate read and write process circuitry allows sequential memory read access and memory write access to occur in any order.

### Claim 2 (depends on 1)

The method of claim 1, wherein the code sequence is further converted into transform process circuitry.

### Claim 3 (depends on 1)

The method of claim 1, wherein the read process circuitry and write process circuitry are configured to provide an arbitrary number of sequential memory read accesses and memory write accesses based on a buffer size.

### Claim 4 (depends on 1)

The method of claim 1, wherein converting the code sequence into read process circuitry and write process circuitry comprises:
identifying read and write pointers; and
extracting information used to loop pointer values.

### Claim 5 (depends on 1)

The method of claim 1, wherein converting the code sequence into read process circuitry and write process circuitry is based on identifying non-overlapping, unique, read and write pointer addresses.

### Claim 6 (depends on 5)

The method of claim 5, wherein read and write pointers are non-overlapping if there is no overlap upon iterating over symbolic values from read and write pointers.

### Claim 7 (depends on 1)

The method of claim 1, wherein converting the code sequence into separate read process circuitry and write process circuitry comprises traversing a loop flow graph until all upstream assignments that affect a plurality of pointer addresses are identified in said code sequence and initial conditions are reached.

### Claim 8 (depends on 1)

The method of claim 1, wherein converting the code sequence into separate read process circuitry and write process circuitry comprises determining a looping variable for each initial condition and traversing a data flow graph until initial conditions are reached.

### Claim 9 (depends on 1)

The method of claim 1, wherein converting the code sequence into separate read process circuitry and write process circuitry comprises determining a looping variable for each initial condition.

### Claim 10 (depends on 1)

The method of claim 1, wherein break points are set using sentinel logic.

### Claim 11 (depends on 1)

The method of claim 1, wherein data is reordered when passed from the read process circuitry to transform process circuitry.

### Claim 12

A device, comprising:
read process circuitry configured to perform memory read accesses associated with a high-level language code sequence operable to run on a processor; and
write process circuitry configured to perform memory write accesses associated with the high-level language code sequence, wherein the read process circuitry and write process circuitry are generated from the high-level language code sequence, wherein the read process circuitry is separate from the write process circuitry and is operable to perform a read access operation before the write process circuitry performs a write operation, and the read process circuitry is further operable to perform a read access operation after the write process circuitry performs a write operation.

### Claim 13 (depends on 12)

The device of claim 12, further comprising transform process circuitry configured to perform an operation associated with the high-level language code sequence.

### Claim 14 (depends on 13)

The device of claim 13, wherein the transform process circuitry is generated from the high-level language code sequence, and wherein generation of the read process circuitry, the transform process circuitry, and the write process circuitry comprise identifying read and write pointers and extracting information used to loop pointer values.

### Claim 15 (depends on 14)

The device of claim 14, wherein generating the read process circuitry, transform process circuitry, and write process circuitry comprises identifying non-overlapping read and write pointer addresses.

### Claim 16 (depends on 15)

The device of claim 15, wherein read and write pointers are non-overlapping pointers if there is no overlap upon iterating over symbolic values from read and write pointers.

### Claim 17 (depends on 13)

The device of claim 13, wherein generating the read process circuitry, the transform process circuitry, and the write process circuitry comprises traversing a loop flow graph until all upstream assignments that affect a plurality of pointer addresses are identified in said code sequence and initial conditions are reached.

### Claim 18 (depends on 13)

The device of claim 13, wherein generating the read process circuitry, transform process circuitry, and write process circuitry comprises determining a looping variable for each initial condition and traversing a data flow graph until initial conditions are reached.

### Claim 19 (depends on 13)

The device of claim 13, wherein generating the read process circuitry, transform process circuitry, and write process circuitry comprises determining a looping variable for each initial condition.

### Claim 20

A system comprising:
means for identifying a code sequence included in a high-level language program configured to run on a processor, the code sequence associated with memory access; and
means for converting the code sequence into separate read process circuitry and write process circuitry corresponding to the code sequence for implementation on a programmable device, wherein the read process circuitry is operable to perform memory read accesses and the write process circuitry is operable to perform memory write accesses, wherein having separate read and write process circuitry allows sequential memory read access and memory write access to occur in any order.
