# US 2022/0291739 A1 · Neural network inference circuit employing dynamic memory sleep

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

- Number: US 2022/0291739 A1
- Document ID: US20220291739A1
- Status: Published application
- Kind: A1
- Application number: 17/827,625
- Filed: 2022-05-27
- Published: 2022-09-15
- Earliest claimed: 2019-01-23
- Assignees: Perceive Corporation
- Applicants: Perceive Corporation
- Inventors: Jung Ko; Kenneth Duong; Steven L. Teig
- Web page: https://patentgrep.com/patent/US20220291739A1

## CPC

- G06F 1/3225: of memory devices
- G06F 1/3287: by switching off individual functional units in the computer system
- G06F 1/3275: {Power saving in memory, e.g. RAM, cache}
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/048: Activation functions
- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 3/0499: Feedforward networks
- G06N 3/063: using electronic means
- G06N 3/045: Combinations of networks
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

For a neural network inference circuit that executes a neural network including multiple computation nodes at multiple layers for which data is stored in a plurality of memory banks, some embodiments provide a method for dynamically putting memory banks into a sleep mode of operation to conserve power. The method tracks the accesses to individual memory banks and, if a certain number of clock cycles elapse with no access to a particular memory bank, sends a signal to the memory bank indicating that it should operate in a sleep mode. Circuit components involved in dynamic memory sleep, in some embodiments, include a core RAM pipeline, a core RAM sleep controller, a set of core RAM bank select decoders, and a set of core RAM memory bank wrappers.

## Claims

### Claim at position 1

1-20. (canceled)

### Claim 21

For a sleep control circuit for a memory unit of a neural network inference circuit configured to execute a neural network, a method comprising:
determining a value indicating a length of time since the memory unit was last accessed; and
when the determined value is at least a threshold value, sending a signal to the memory unit to operate in a sleep mode.

### Claim 22 (depends on 21)

The method of claim 21, wherein the sleep mode is a power-saving mode of operation that maintains data stored in the memory unit.

### Claim 23 (depends on 22)

The method of claim 22, wherein the memory unit stores neural network weight data that is loaded onto the memory unit when the neural network inference circuit is booted up, the weight data for use each time the neural network inference circuit executes the neural network.

### Claim 24 (depends on 21)

The method of claim 21, wherein the value is determined and the signal sent by a finite state machine of the sleep control circuit.

### Claim 25 (depends on 21)

The method of claim 21 further comprising:
after sending the signal to the memory unit to operate in sleep mode, receiving a signal indicating that the memory unit has been selected for one of a read operation and a write operation; and
based on the signal indicating that the memory unit has been selected, sending a signal to the memory unit to operate in non-sleep mode.

### Claim 26 (depends on 25)

The method of claim 25 further comprising resetting to zero the value indicating the length of time since the memory unit was last accessed.

### Claim 27 (depends on 21)

The method of claim 21, wherein the length of time is a number of clock cycles since the memory unit was last accessed.

### Claim 28 (depends on 27)

The method of claim 27, wherein the sleep control circuit determines the value each clock cycle of the neural network inference circuit.

### Claim 29 (depends on 28)

The method of claim 28, wherein each clock cycle, the sleep control circuit sends one of (i) the signal to operate in sleep mode and (ii) a signal to operate in non-sleep mode.

### Claim 30 (depends on 21)

The method of claim 21, wherein the neural network inference circuit comprises:
a plurality of independently-controlled memory units; and
for each memory unit, a corresponding sleep control circuit.

### Claim 31 (depends on 30)

The method of claim 30, wherein each respective sleep control circuit maintains a respective value indicating a length of time since its corresponding memory unit was last accessed.

### Claim 32 (depends on 31)

The method of claim 31, wherein the neural network inference circuit further comprises a memory unit selection decoder circuit that provides, to each of the sleep control circuits, a signal indicating whether the memory unit corresponding to the sleep control circuit is selected for access.

### Claim 33 (depends on 32)

The method of claim 32, wherein:
the plurality of memory units are part of a random-access memory (RAM) element of a dot product core of the neural network inference circuit; and
an access to the RAM element indicates (i) a particular one of the memory units to access and (ii) an address in the particular memory unit.

### Claim 34 (depends on 34)

The method of claim 34, wherein a signal indicating that the particular memory unit is selected is received at the sleep control circuit for the particular memory unit prior to the particular memory unit receiving input for the memory access.

### Claim 35 (depends on 34)

The method of claim 34, wherein the sleep control circuit for the particular memory unit sends a signal to the particular memory unit to operate in non-sleep mode prior to the particular memory unit receiving input for the memory access so that the particular memory unit has fully entered non-sleep mode when the input is received.

### Claim 36 (depends on 35)

The method of claim 35, wherein the neural network inference circuit comprises a set of registers that introduce latency into a memory access path.

### Claim 37 (depends on 30)

The method of claim 30, wherein a compiler arranges for storage of weight and activation data in the plurality of memory units in order to conserve power by increasing an amount of time that the memory units operate in sleep mode.

### Claim 38 (depends on 21)

The method of claim 21, wherein the memory unit comprises a first input for the signal to operate in sleep mode and a second input for a shutdown signal that indicates for the memory unit to power down.

### Claim 39 (depends on 38)

The method of claim 38, wherein the memory unit maintains data when operating in sleep mode but does not maintain data when powered down.
