# US 2022/0294447 A1 · High-performance table-based state machine

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

- Number: US 2022/0294447 A1
- Document ID: US20220294447A1
- Status: Published application
- Kind: A1
- Application number: 17/832,379
- Filed: 2022-06-03
- Published: 2022-09-15
- Earliest claimed: 2020-09-15
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Daniel LO; Blake D. PELTON
- Web page: https://patentgrep.com/patent/US20220294447A1

## CPC

- G06F 7/544: for evaluating functions by calculation {(G06F7/4824 takes precedence)}
- H03K 19/09425: {Multistate logic (H03K19/096 takes precedence)}
- H03K 19/096: Synchronous circuits, i.e. using clock signals {(H03K19/01728, H03K19/01855 take precedence)}
- H03K 19/1737: {using multiplexers (H03K19/1738 takes precedence)}
- H03K 19/17728: Reconfigurable logic blocks, e.g. lookup tables
- 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

A table-based state machine is improved by reducing critical dependence path. In one aspect, all current states for a given input are read from a state table circuit, and the next state and output are then selected therefrom by an output multiplexer based on the current state, removing dependence on the current state from the table read, and allowing the read(s) to be pipelined. In a further aspect, multiple input units are configured to operate on multiple inputs in parallel, with each input unit propagating its state table circuit for its current input to the next downstream input unit. Each downstream input unit is configured to use the propagated state table circuit to provide the state table circuit reads to the proper output multiplexer input. The number of possible output states for a given input may be dynamically reduced, reducing the size of the output multiplexer selecting the next state.

## Claims

### Claim 1

A system configured to process a stream of inputs in parallel, comprising:
a first table-based state machine configured to generate a first set of state table circuit outputs, each state table circuit output of the first set generated based on a first input and a corresponding predetermined state of a set of predetermined states;
a second table-based state machine configured to generate a second set of state table circuit outputs, each state table circuit output of the second set generated based on a second input and a corresponding predetermined state of the set of predetermined states;
a first output multiplexer (MUX) configured to select a first state machine output from the first set of state table circuit outputs based on a current state;
a state propagator configured to select respective outputs of the second set of state table circuit outputs as a set of state propagator outputs based on the first set of state table circuit outputs; and
a second output MUX configured to select a second state machine output from among the set of state propagator outputs based on the current state.

### Claim 2 (depends on 1)

The system of claim 1, wherein each state table circuit output of the first and second sets of state table circuit outputs comprises an output value and a state value, and wherein the first and second state machine outputs comprise output values.

### Claim 3 (depends on 2)

The system of claim 2, wherein the state propagator is further configured to select which of respective ones of the second set of state table circuit outputs to route to respective outputs of the state propagator based on state values corresponding to each state table circuit output of the first set of state table circuit outputs.

### Claim 4 (depends on 2)

The system of claim 2, wherein the first output MUX is further configured to select the first state machine output from among the output values that correspond to each state table circuit output of the first set of state table circuit outputs.

### Claim 5 (depends on 2)

The system of claim 2, further comprising:
a state MUX configured to receive the current state and state values corresponding to the second set of state table circuit outputs, and to select a next state of the system.

### Claim 6 (depends on 1)

The system of claim 1, wherein the first table-based state machine includes a first set of state table circuits corresponding to the predetermined states of the set of predetermined states; and
the second table-based state machine includes a second set of state table circuits corresponding to the predetermined states of the set of predetermined states.

### Claim 7 (depends on 1)

The system of claim 1, further comprising:
an additional table-based state machine configured to generate an additional set of state table circuit outputs, each state table circuit output of the additional set generated based on an additional input and a corresponding predetermined state of the set of predetermined states;
an additional state propagator configured to select respective outputs of the additional set of state table circuit outputs as an additional set of state propagator outputs based on the additional set of state table circuit outputs; and
an additional output MUX configured to select an additional state machine output from among the additional set of state propagator outputs based on the current state.

### Claim 8

A method for processing a stream of inputs in parallel, comprising:
generating a first set of state table circuit outputs, each state table circuit output of the first set generated based on a first input and a corresponding predetermined state of a set of predetermined states;
generating a second set of state table circuit outputs, each state table circuit output of the second set generated based on a second input and a corresponding predetermined state of the set of predetermined states;
selecting a first state machine output from the first set of state table circuit outputs based on a current state;
selecting respective outputs of the second set of state table circuit outputs as a set of state propagator outputs based on the first set of state table circuit outputs; and
selecting a second state machine output from among the set of state propagator outputs based on the current state.

### Claim 9 (depends on 8)

The method of claim 8, wherein each state table circuit output of the first and second sets of state table circuit outputs comprises an output value and a state value, and wherein the first and second state machine outputs comprise output values.

### Claim 10 (depends on 9)

The method of claim 9, wherein said selecting respective outputs comprises:
selecting which of respective ones of the second set of state table circuit outputs to route to respective outputs of a state propagator based on state values corresponding to each state table circuit output of the first set of state table circuit outputs.

### Claim 11 (depends on 9)

The method of claim 9, wherein said selecting a first state machine output comprises:
selecting the first state machine output from among the output values that correspond to each state table circuit output of the first set of state table circuit outputs.

### Claim 12 (depends on 9)

The method of claim 9, further comprising:
receiving the current state and state values corresponding to the second set of state table circuit outputs, and
selecting a next state.

### Claim 13 (depends on 8)

The method of claim 8, wherein the first table-based state machine includes a first set of state table circuits corresponding to the predetermined states of the set of predetermined states; and
the second table-based state machine includes a second set of state table circuits corresponding to the predetermined states of the set of predetermined states.

### Claim 14 (depends on 8)

The method of claim 8, further comprising:
generating an additional set of state table circuit outputs, each state table circuit output of the additional set generated based on an additional input and a corresponding predetermined state of the set of predetermined states;
selecting respective outputs of the additional set of state table circuit outputs as an additional set of state propagator outputs based on the additional set of state table circuit outputs; and
selecting an additional state machine output from among the additional set of state propagator outputs based on the current state.

### Claim 15

A computer program product comprising a computer-readable memory device having computer program logic recorded thereon that when executed by at least one processor of a computing device causes the at least one processor to perform operations for processing a stream of inputs in parallel, the operations comprising:
generating a first set of state table circuit outputs, each state table circuit output of the first set generated based on a first input and a corresponding predetermined state of a set of predetermined states;
generating a second set of state table circuit outputs, each state table circuit output of the second set generated based on a second input and a corresponding predetermined state of the set of predetermined states;
selecting a first state machine output from the first set of state table circuit outputs based on a current state;
selecting respective outputs of the second set of state table circuit outputs as a set of state propagator outputs based on the first set of state table circuit outputs; and
selecting a second state machine output from among the set of state propagator outputs based on the current state.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein each state table circuit output of the first and second sets of state table circuit outputs comprises an output value and a state value, and wherein the first and second state machine outputs comprise output values.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein said selecting respective outputs comprises:
selecting which of respective ones of the second set of state table circuit outputs to route to respective outputs of a state propagator based on state values corresponding to each state table circuit output of the first set of state table circuit outputs.

### Claim 18 (depends on 16)

The computer program product of claim 16, wherein said selecting a first state machine output comprises:
selecting the first state machine output from among the output values that correspond to each state table circuit output of the first set of state table circuit outputs.

### Claim 19 (depends on 16)

The computer program product of claim 16, the operations further comprising:
receiving the current state and state values corresponding to the second set of state table circuit outputs, and
selecting a next state.

### Claim 20 (depends on 15)

The computer program product of claim 15, wherein the first table-based state machine includes a first set of state table circuits corresponding to the predetermined states of the set of predetermined states; and
the second table-based state machine includes a second set of state table circuits corresponding to the predetermined states of the set of predetermined states.
