# US 2019/0244095 A1 · Deep learning fpga converter

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

- Number: US 2019/0244095 A1
- Document ID: US20190244095A1
- Status: Published application
- Kind: A1
- Application number: 15/891,762
- Filed: 2018-02-08
- Published: 2019-08-08
- Earliest claimed: 2018-02-08
- Assignees: Quanta Computer Inc.
- Applicants: Quanta Computer Inc.
- Inventors: Kuan-Chieh HUANG; Yi-Ting PENG
- Web page: https://patentgrep.com/patent/US20190244095A1

## CPC

- G06N 3/08: Learning methods
- G06F 9/5011: {the resources being hardware resources other than CPUs, Servers and Terminals}
- G06F 9/5061: {Partitioning or combining of resources}
- G06F 30/34: for reconfigurable circuits, e.g. field programmable gate arrays [FPGA] or programmable logic devices [PLD]
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 3/082: modifying the architecture, e.g. adding, deleting or silencing nodes or connections
- G06N 3/105: {Shells for specifying net layout}
- H03K 19/177: arranged in matrix form
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H03K: PULSE TECHNIQUE (measuring pulse characteristics G01R; modulating sinusoidal oscillations with pulses H03C; transmission of digital information H04L; discriminator circuits detecting phase difference between two signals by counting or integrating cycles of oscillation H03D3/04; automatic control, starting, synchronisation or stabilisation of generators of electronic oscillations or pulses where the type of generator is irrelevant or unspecified H03L; coding, decoding or code conversion, in general H03M)

## Abstract

Systems and methods for programming field programmable gate array (FPGA) devices are provided. A trained model for a deep learning process is obtained and converted to design abstraction (DA) code defining logic block circuits for programming an FPGA device. Each of these logic block circuits represents one of a plurality of modules that executes a processing step between different layers of the deep learning process.

## Claims

### Claim 1

A method, comprising:
obtaining a trained model for a deep learning process;
converting the trained model to design abstraction (DA) code;
programming a field programmable gate array (FPGA) device in a system based on the DA code,
wherein the DA code comprises code for programming a plurality of logic block circuits in the FPGA device, each of the plurality of logic block circuits representing one of a plurality of modules for executing a processing step between different layers of the deep learning process.

### Claim 2 (depends on 1)

The method of claim 1, wherein the DA code comprises register-transfer level code.

### Claim 3 (depends on 1)

The method of claim 1, wherein converting comprises the specifying of a flow of data through the plurality of logic block circuits, and wherein the DA code specifies an interconnection of the plurality of logic block circuits in the FPGA device to provide the flow of data.

### Claim 4 (depends on 3)

The method of claim 3, wherein the converting comprises:
identifying a plurality of processing steps in the trained model;
associating each of the plurality of processing steps associated with one of the plurality of modules; and
for each of the plurality of processing steps with one of the plurality of modules, encoding a one of the plurality of logic block circuits corresponding to the one of the plurality of modules.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
prior to the programming, the determining that the FPGA device is insufficient for the plurality of logic block circuits required by the DA code;
in response to determining that the FPGA device is insufficient for the plurality of logic block circuits required by the DA code, implementing an alternate programming mode for the FPGA device during the programming.

### Claim 6 (depends on 5)

The method of claim 5, wherein implementing the alternate programming mode during the programming comprises:
identifying DA code corresponding to one or more of the plurality of logic blocks circuits performing duplicates of an operation to yield duplicate logic block circuits;
deleting all but one of the duplicate logic block circuits from the DA code; and
updating the DA code to configure the FPGA device to perform the duplicates of the operation using the one of the duplicate logic block circuits.

### Claim 7 (depends on 5)

The method of claim 5, wherein implementing the alternate programming mode during the programming comprises:
identifying DA code corresponding to one or more of the plurality of logic blocks circuits representing an operation performed by another component in the system to yield duplicate logic block circuits;
deleting the duplicate logic block circuits from the DA code; and
updating the DA code to configure the FPGA device to perform the duplicates of the operation using the other component.

### Claim 8

A system, comprising:
a processor;
a field programmable gate array (FPGA) communicatively coupled to the processor; and
a memory, having stored therein instructions for causing the processor to perform steps comprising:
obtaining a trained model for a deep learning process;
converting the trained model to design abstraction (DA) code; and
programming the FPGA based on the DA code,
wherein the DA code comprises code for programming a plurality of logic block circuits in the FPGA device, each of the plurality of logic block circuits representing one of a plurality of modules for executing a processing step between different layers of the deep learning process.

### Claim 9 (depends on 8)

The system of claim 8, wherein the DA code comprises register-transfer level code.

### Claim 10 (depends on 8)

The system of claim 8, wherein converting comprises the specifying of a flow of data through the plurality of logic block circuits, and wherein the DA code specifies an interconnection of the plurality of logic block circuits in the FPGA device to provide the flow of data.

### Claim 11 (depends on 10)

The system of claim 10, wherein the converting comprises:
identifying a plurality of processing steps in the trained model;
associating each of the plurality of processing steps with one of the plurality of modules; and
for each of the plurality of processing steps associated with one of the plurality of modules, encoding a one of the plurality of logic block circuits corresponding to the one of the plurality of modules.

### Claim 12 (depends on 8)

The system of claim 8, further comprising:
prior to the programming, the determining that the FPGA device is insufficient for the plurality of logic block circuits required by the DA code;
in response to determining that the FPGA device is insufficient for the plurality of logic block circuits required by the DA code, implementing an alternate programming mode for the FPGA device during the programming.

### Claim 13 (depends on 12)

The system of claim 12, wherein implementing the alternate programming mode during the programming comprises:
identifying DA code corresponding to one or more of the plurality of logic blocks circuits performing duplicates of an operation to yield duplicate logic block circuits;
deleting all but one of the duplicate logic block circuits from the DA code; and
updating the DA code to configure the FPGA device to perform the duplicates of the operation using the one of the duplicate logic block circuits.

### Claim 14 (depends on 12)

The system of claim 12, wherein implementing the alternate programming mode during the programming comprises:
identifying DA code corresponding to one or more of the plurality of logic blocks circuits performing an operation performed by another component in the system to yield duplicate logic block circuits;
deleting the duplicate logic block circuits from the DA code; and
updating the DA code to configure the FPGA device to perform the duplicates of the operation using the other component.

### Claim 15

A non-transitory computer-readable medium, having stored thereon a computer program executable by a computing device, the computer program comprising a plurality of code sections for causing the computing device to perform steps comprising:
obtaining a trained model for a deep learning process;
converting the trained model to a design abstraction (DA) code;
programming a field programmable gate array (FPGA) device in a system based on the DA code,
wherein the DA code comprises code for programming a plurality of logic block circuits in the FPGA device, each of the plurality of logic block circuits representing one of a plurality of modules for executing a processing step between different layers of the deep learning process.

### Claim 16 (depends on 15)

The computer-readable medium of claim 15, wherein the design abstraction code comprises register-transfer level code.

### Claim 17 (depends on 15)

The computer-readable medium of claim 15, wherein converting comprises the specifying of a flow of data through the plurality of logic block circuits, and wherein the DA code specifies an interconnection of the plurality of logic block circuits in the FPGA device to provide the flow of data.

### Claim 18 (depends on 17)

The computer-readable medium of claim 17, wherein the converting comprises:
identifying a plurality of processing steps in the trained model;
associating each of the plurality of processing steps with one of the plurality of modules; and
for each of the plurality of processing steps with one of the plurality of modules, encoding a one of the plurality of logic block circuits corresponding to the one of the plurality of modules.

### Claim 19 (depends on 15)

The computer-readable medium of claim 15, further comprising:
prior to the programming, the determining that the FPGA device is insufficient for the plurality of logic block circuits required by the DA code;
in response to determining that the FPGA device is insufficient for the plurality of logic block circuits required by the DA code, implementing an alternate programming mode for the FPGA device during the programming.

### Claim 20 (depends on 19)

The computer-readable medium of claim 19, wherein implementing the alternate programming mode during the programming comprises:
identifying DA code corresponding to one or more of the plurality of logic blocks circuits performing duplicates of an operation to yield duplicate logic block circuits;
deleting all but one of the duplicate logic block circuits from the DA code; and
updating the DA code to configure the FPGA device to perform the duplicates of the operation using the one of the duplicate logic block circuits.
