# US 9,354,850 B2 · Method and apparatus for instruction scheduling using software pipelining

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

- Number: US 9,354,850 B2
- Document ID: US9354850B2
- Status: Granted
- Kind: B2
- Application number: 14/507,272
- Filed: 2014-10-06
- Published: 2015-04-09
- Granted: 2016-05-31
- Earliest claimed: 2013-10-07
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Min-wook Ahn; Won-sub Kim; Tai-song Jin; Seung-won Lee; Jin-seok Lee
- Web page: https://patentgrep.com/patent/US9354850B2

## CPC

- G06F 8/443: {Optimisation}
- G06F 8/433: {Dependency analysis; Data or control flow analysis}
- G06F 8/4452: {Software pipelining}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for scheduling loop processing of a reconfigurable processor includes generating a dependence graph of instructions for the loop processing; mapping a first register file of the reconfigurable processor on an arrow indicating inter-iteration dependence on the dependence graph; and searching for schedules of the instructions based on the mapping result.

## Claims

### Claim 1

A method for scheduling processing of a loop in a reconfigurable processor, the method comprising:
generating a dependence graph of instructions for the processing of the loop;
detecting an arrow of the dependence graph indicating inter-iteration dependence on the dependence graph;
mapping a register file of the reconfigurable processor on the detected arrow of the dependence graph indicating the inter-iteration dependence on the dependence graph; and
searching for schedules of the instructions for the processing of the loop based on the mapping.

### Claim 2 (depends on 1)

The method of claim 1, wherein the register file is a central register file connected to at least one load/store unit of the reconfigurable processor implementing a memory access instruction.

### Claim 3 (depends on 1)

The method of claim 1, wherein the mapping of the register file comprises:
adding a node between a function-unit-type (FU-type) node when the arrow is directed towards the FU-type node; and
allocating the register file to the node.

### Claim 4 (depends on 1)

The method of claim 1, wherein the mapping of the register file comprises allocating the register file to a register-file-type (RF-type) node when the arrow is directed towards the RF-type node.

### Claim 5 (depends on 1)

The method of claim 1, further comprising adding a node onto the dependence graph, wherein the node resets a control signal for storing a context of the reconfigurable processor in a predetermined cycle.

### Claim 6 (depends on 5)

The method of claim 5, wherein the predetermined cycle is an integer-multiple cycle of an initiation interval between iterations of the loop.

### Claim 7 (depends on 5)

The method of claim 5, further comprising adding another node onto the dependence graph, wherein the another node temporarily stops the processing of the loop when the control signal is reset or an end condition of the loop is satisfied.

### Claim 8 (depends on 1)

A non-transitory computer-readable recording medium having recorded thereon a computer program for executing the method of claim 1.

### Claim 9

A scheduling apparatus comprising:
a memory that stores instructions for processing of a loop; and
a modulo scheduler that generates a dependence graph of the instructions for the processing of the loop and schedules operations of a reconfigurable processor that processes the loop,
wherein the modulo scheduler detects an arrow of the dependence graph indicating inter-iteration dependence on the dependence graph, maps a register file of the reconfigurable processor on the detected arrow of the dependence graph indicating the inter-iteration dependence on the dependence graph, and searches for schedules of the instructions for the processing of the loop based on the mapping.

### Claim 10 (depends on 9)

The scheduling apparatus of claim 9, wherein the modulo scheduler adds a node between a function-unit-type (FU-type) node when the arrow is directed towards the FU-type node in order to allocate the register file to the node, and allocates the register file to a register-file-type (RF-type) node when the arrow is directed towards the RF-type node.

### Claim 11 (depends on 9)

The scheduling apparatus of claim 9, wherein the modulo scheduler adds a node onto the dependence graph that resets a control signal to store a context while processing the loop, and adds another node onto the dependence graph that temporarily stops the processing of the loop according to an input of the control signal.
