# US 7,130,987 B2 · Reconfigurable semantic processor

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

- Number: US 7,130,987 B2
- Document ID: US7130987B2
- Status: Granted
- Kind: B2
- Application number: 10/351,030
- Filed: 2003-01-24
- Published: 2004-07-29
- Granted: 2006-10-31
- Earliest claimed: 2003-01-24
- Assignees: Mistletoe Technologies, Inc.
- Inventors: Somsubhra Sikdar
- Web page: https://patentgrep.com/patent/US7130987B2

## CPC

- G06F 9/45508: {Runtime interpretation or emulation, e g. emulator loops, bytecode interpretation}
- G06F 8/427: {Parsing}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Data processors and methods for their configuration and use are disclosed. As opposed to traditional von Neumann microprocessors, the disclosed processors are semantic processors—they parse an input stream and direct one or more semantic execution engines to execute code segments, depending on what is being parsed. For defined-structure input streams such as packet data streams, these semantic processors can be both economical and fast as compared to a von Neumann system. Several optional components can augment device operation. For instance, a machine context data interface relieves the semantic execution engines from managing physical memory, allows the orderly access to memory by multiple engines, and implements common access operations. Further, a simple von Neumann exception-processing unit can be attached to a semantic execution engine to execute more complicated, but infrequent or non-time-critical operations.

## Claims

### Claim 1

A data processing system comprising:
an input port to receive data symbols;
a direct execution parser having a stack to store stack symbols, the parser capable of processing stack symbols in response to the received data symbols;
a parser table accessible by the parser, the parser table capable of population with production rule codes indexable by the combination of at least one received data symbol and a stack symbol supplied by the parser;
a production rule table accessible by the parser, the production rule table capable of population with production rules indexable by production rule codes;
a first semantic code execution engine capable of executing machine instructions when prompted by the direct execution parser, using machine instruction segments indicated by the parser; and
a semantic code table accessible by the semantic code execution engine, the semantic code table capable of population with machine instruction segments indexable by production rule codes.

### Claim 2 (depends on 1)

The system of claim 1, further comprising a second semantic code execution engine capable of executing machine instructions when prompted by the direct execution parser, using machine instructions indicated by the parser, the first and second semantic code execution engines capable of parallel machine instruction execution.

### Claim 3 (depends on 2)

The system of claim 2, further comprising an exception processing unit having a microprocessor and associated memory, the exception processing unit capable of performing tasks at the request of at least one of the semantic code execution engines.

### Claim 4 (depends on 2)

The system of claim 2, further comprising a block input/output port connected to at least one of the semantic code execution engines, the block input/output port capable of initiating block input/output operations under control of the at least one semantic code execution engine.

### Claim 5 (depends on 2)

The system of claim 2, wherein a production rule code allows the direct execution parser to determine whether a corresponding segment of semantic code table machine instructions can be directed to any available semantic code execution engine, or whether that segment should be directed to a specific semantic code execution engine.

### Claim 6 (depends on 1)

The system of claim 1, further comprising an interface between the direct execution parser and the semantic code execution engine, the interface having the capability to suspend stack symbol processing by the direct execution parser when directed by the semantic code execution engine.

### Claim 7 (depends on 1)

The system of claim 1, wherein the parser table, production rule table, and semantic code table at least partially reside in reprogrammable storage.

### Claim 8 (depends on 7)

The system of claim 7, wherein the system processes data packets, each data packet formatted according to one or more network protocols, the parser table, production rule table, and semantic code table reprogrammable to support parsing for different network protocols.

### Claim 9 (depends on 8)

The system of claim 8, wherein the system can load parser table reprogrammable storage with a network protocol while the system is processing data packets.

### Claim 10 (depends on 1)

The system of claim 1, further comprising a machine context data interface connected to a data storage area and accessible by the semantic code execution engine, the machine context data interface managing the data storage area and performing data operations in response to machine context instructions issued by the semantic code execution engine.

### Claim 11 (depends on 10)

The system of claim 10, the machine context data interface comprising a variable machine context data interface and an array machine context data interface, the array machine context data interface capable of managing and performing data operations on array data.

### Claim 12 (depends on 11)

The system of claim 11, wherein the array machine context data interface accesses at least one data storage area with a data access format different from that of the data storage area accessed by the variable machine context data interface.

### Claim 13 (depends on 1)

The system of claim 1, wherein at least the direct execution parser, the parser table, and the production rule table are implemented using software to configure a microprocessor and its attached memory.

### Claim 14 (depends on 1)

The system of claim 1, wherein the production rule table is capable of storing bitmasked terminal symbols, each bitmasked terminal symbol capable of indicating that selected bits in a corresponding input symbol are “don't care” bits.

### Claim 15 (depends on 1)

The system of claim 1, wherein the direct execution parser performs a parsing method selected from the group of methods including LL parsing, LR parsing, LALR parsing, and recursive descent parsing.

### Claim 16 (depends on 1)

The system of claim 1, wherein the direct execution parser is capable of parsing input symbols using a variable input symbol look-ahead that can be varied for each stack symbol.

### Claim 17 (depends on 16)

The system of claim 16, wherein the variable input symbol look-ahead can be stored as a value in the production rule table along with the production rules, and wherein the direct execution parser loads the variable input symbol look-ahead when it loads a production rule into the stack.

### Claim 18 (depends on 16)

The system of claim 16, wherein the parser table comprises a binary or ternary content-addressable memory (CAM) with a word size capable of storing entries corresponding to the combination of a stack symbol and up to N input symbols.

### Claim 19 (depends on 18)

The system of claim 18, wherein the parser supplies N input symbols to the parser table on each access, each CAM entry determining which of the N input symbols affect the lookup for that CAM entry.

### Claim 20

An integrated circuit comprising:
an input port to receive data symbols;
a direct execution parser having a stack to store stack symbols, the parser capable of processing stack symbols in response to the received data symbols;
a parser table accessible by the parser, the parser table capable of population with production rule codes indexable by the combination of a received data symbol and a stack symbol supplied by the parser;
a production rule table accessible by the parser, the production rule table capable of population with production rules indexable by production rule codes;
a first semantic code execution engine capable of executing machine instructions when prompted by the direct execution parser, using machine instruction segments indicated by the parser; and
a semantic code table accessible by the semantic code execution engine, the semantic code table capable of population with machine instruction segments indexable by production rule codes.

### Claim 21 (depends on 20)

The integrated circuit of claim 20, further comprising a second semantic code execution engine capable of executing machine instructions when prompted by the direct execution parser, using machine instructions indicated by the parser, the first and second semantic code execution engines capable of parallel machine instruction execution.

### Claim 22 (depends on 21)

The integrated circuit of claim 21, further comprising an exception processing unit having a microprocessor, the exception processing unit capable of performing programmable tasks at the request of at least one of the semantic code execution engines.

### Claim 23 (depends on 21)

The integrated circuit of claim 21, further comprising a block input/output port connected to at least one of the semantic code execution engines, the block input/output port capable of initiating block input/output operations under control of the at least one semantic code execution engine.

### Claim 24 (depends on 21)

The integrated circuit of claim 21, wherein a production rule code allows the direct execution parser to determine whether a corresponding segment of semantic code table machine instructions can be directed to any available semantic code execution engine, or whether that segment should be directed to a specific semantic code execution engine.

### Claim 25 (depends on 20)

The integrated circuit of claim 20, further comprising an interface between the direct execution parser and the semantic code execution engine, the interface having the capability to suspend stack symbol processing by the direct execution parser when directed by the semantic code execution engine.

### Claim 26 (depends on 20)

The integrated circuit of claim 20, wherein the parser table, production rule table, and semantic code table at least partially reside in reprogrammable storage.

### Claim 27 (depends on 26)

The integrated circuit of claim 26, wherein the parser table, production rule table, and semantic code table comprise caches for larger table residing in memory separate from the integrated circuit.

### Claim 28 (depends on 20)

The integrated circuit of claim 20, further comprising a machine context data interface connectable to a data storage area and accessible by the semantic code execution engine, the machine context data interface managing the data storage area and performing data operations in response to machine context instructions issued by the semantic code execution engine.

### Claim 29 (depends on 28)

The integrated circuit of claim 28, wherein the data storage area is at least partially integrated on the integrated circuit.

### Claim 30 (depends on 28)

The integrated circuit of claim 28, the machine context data interface comprising a variable machine context data interface and an array machine context data interface, the array machine context data interface capable of managing and performing data operations on array data.

### Claim 31 (depends on 30)

The integrated circuit of claim 30, wherein the array machine context data interface accesses at least one data storage area with a data access format different from that of the data storage area accessed by the variable machine context data interface.

### Claim 32

An integrated circuit comprising:
an input port to receive data symbols;
a direct execution parser having a stack to store stack symbols, the parser capable of processing stack symbols in response to the received data symbols;
a parser table accessible by the parser, the parser table capable of population with production rule codes indexable by the combination of a received data symbol and a stack symbol supplied by the parser;
a production rule table accessible by the parser, the production rule table capable of population with production rules indexable by production rule codes;
multiple semantic code execution engines, each capable of executing machine instructions when prompted by the direct execution parser, using machine instruction segments indicated by the parser;
a semantic code table accessible by the semantic code execution engines, the semantic code table capable of population with machine instruction segments indexable by production rule codes; and
a machine context data interface connectable to a data storage area and accessible by the semantic code execution engines, the machine context data interface managing the data storage area and performing data operations in response to machine context instructions issued by the semantic code execution engines.

### Claim 33 (depends on 32)

The integrated circuit of claim 32, further comprising:
a first bus between the semantic code execution engines and the semantic code table; and
a second bus between the semantic code execution engines and the machine context data interface.

### Claim 34 (depends on 33)

The integrated circuit of claim 33, further comprising an input bus to allow the semantic code execution engines access to the data symbols.

### Claim 35 (depends on 32)

The integrated circuit of claim 32, further comprising an interface between the direct execution parser and the semantic code execution engines, the interface having access to status information for each semantic code execution engine and having the capability to suspend stack symbol processing by the direct execution parser based on the status of a semantic code execution engine.

### Claim 36 (depends on 35)

The integrated circuit of claim 35, wherein the status information comprises a set of semaphores corresponding to the semantic code execution engines and settable by the corresponding semantic code execution engines.

### Claim 37 (depends on 36)

The integrated circuit of claim 36, further comprising at least a section of the parser table, production rule table, and semantic code table integrated on the circuit.

### Claim 38 (depends on 36)

The integrated circuit of claim 36, wherein the production rule table is capable of storing bitmasked terminal symbols, each bitmasked terminal symbol capable of indicating that selected bits in a corresponding input symbol are “don't care” bits.

### Claim 39 (depends on 36)

The integrated circuit of claim 36, wherein the direct execution parser performs a parsing method selected from the group of methods including LL parsing, LR parsing, LALR parsing, and recursive descent parsing.

### Claim 40 (depends on 36)

The integrated circuit of claim 36, wherein the direct execution parser is capable of parsing input symbols using a variable input symbol look-ahead that can be varied for each stack symbol.

### Claim 41 (depends on 40)

The integrated circuit of claim 40, wherein the variable input symbol look-ahead can be stored as a value in the production rule table along with the production rules, and wherein the direct execution parser loads the variable input symbol look-ahead when it loads a production rule into the stack.

### Claim 42 (depends on 40)

The integrated circuit of claim 40, wherein the parser table comprises a ternary content-addressable memory (CAM) with a word size capable of storing entries corresponding to the combination of a stack symbol and up to N input symbols.

### Claim 43 (depends on 42)

The integrated circuit of claim 42, wherein the parser supplies N input symbols to the parser table on each access, each CAM entry determining which of the N input symbols affect the lookup for that CAM entry.

### Claim 44

A computer-readable storage medium containing computer instructions that, when executed by a processor, perform a method to configure a semantic parsing system to parse packets, the method comprising:
electrically generating a set of parseable grammatical production rules used by the semantic parsing system, each comprising at least one symbol selected from the group of terminal and non-terminal symbols, and a set of machine context tasks to be performed for at least some of the production rules by an execution engine;
electrically assigning a non-terminal code and a production rule code to each production rule used by the semantic parsing system;
electrically storing the grammatical production rules used by the semantic parsing system in a machine-storable format in a production rule memory, indexable by the semantic parsing system according to production rule codes;
electrically storing the machine context tasks in an execution-engine instruction code format in a semantic code memory, indexable by the semantic parsing system according to the production rule code associated with the corresponding production rule used by the semantic parsing system; and
electrically generating a parser table of production rule codes used by the semantic parsing system in machine-storable format, indexable by the semantic parsing system according to the combination of a non-terminal symbol and at least one symbol appearing in a packet to be parsed by the semantic parsing system.

### Claim 45 (depends on 44)

The computer-readable storage medium containing computer instructions that, when executed by the processor, perform the method of claim 44, the method further comprising electrically affixing a prefix code to the symbols in the machine-storable format production rules, the prefix code indicating whether each symbol is a terminal or non-terminal symbol.

### Claim 46 (depends on 45)

The computer-readable storage medium containing computer instructions that, when executed by the processor, perform the method of claim 45, wherein the prefix code further indicating whether a terminal symbol can match any network packet protocol symbol that it is paired with.

### Claim 47 (depends on 44)

The computer-readable storage medium containing computer instructions that, when executed by the processor, perform the method of claim 44, the method further comprising, for at least one terminal symbol, electrically assigning a bitmask to that symbol and storing the bitmask with the production rule containing that symbol.

### Claim 48 (depends on 44)

The computer-readable storage medium containing computer instructions that, when executed by the processor, perform the method of claim 44, the method further comprising electrically setting at least some indices in the parser table based on the combination of a non-terminal symbol and multiple input symbols.

### Claim 49 (depends on 48)

The computer-readable storage medium containing computer instructions that, when executed by the processor, perform the method of claim 48, wherein each index in the parser table can be based on up to N input symbols in N index positions, and wherein setting at least some indices in the parser table comprises, for each indice, using between 1 and N index positions and setting the remainder of the index positions, if any, to a “don't care” condition.
