# US 8,578,131 B2 · Sub SN, Sub SN calling system and method for calling the Sub SN

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

- Number: US 8,578,131 B2
- Document ID: US8578131B2
- Status: Granted
- Kind: B2
- Application number: 10/520,469
- Filed: 2003-07-08
- Published: 2006-05-18
- Granted: 2013-11-05
- Earliest claimed: 2002-07-09
- Applicants: Zhaochang Xu
- Inventors: Zhaochang Xu
- Web page: https://patentgrep.com/patent/US8578131B2

## CPC

- G06F 9/4843: {by program, e.g. task dispatcher, supervisor, operating system}
- G06F 9/4812: {by interrupt, e.g. masked}
- G06F 9/5027: {the resource being a machine, e.g. CPUs, Servers, Terminals}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

This invention is involving the creation of a sub-sequence net (hereafter briefly as Sub SN). The Sub SN is a kind of sequence net encapsulation that includes sub-routine structure of N+1 single machines. Based on the fact that the sequence net call instruction of sequence net call function in the environment of sequence net computers of this invention is a single machine instruction which can call the operation of a Sub SN comprising N+1 branch programs. In N+1 branch programs, the sequence net call instruction calls Sub SN devices and realizes the call of sequence net. In this invention, grade call and sequence call of sequence net are created to meet requirements of random events and ordered events of models.

## Claims

### Claim 1

A Sub Sequence Net (SN), comprising:
an SN including N+1 branch programs which are run in parallel respectively running on N+1 computers including a Sub SN calling device and more than one distributed data tokens;
wherein each of the distributed data tokens comprises a consistency token instruction, a source data token instruction and multiple target data token instructions, and each of the 1st to Nth branch programs is composed by one or more source data token instructions and one or more of the target data token instructions, the N+1th branch program is a consistency program which is composed by the consistency token instructions;
wherein each of the N+1 branch programs includes a return instruction, and wherein N is a positive integer; and
wherein a calling instruction of the Sub SN is a single machine SN calling instruction; the call instruction calls the Sub SN by activating the Sub SN calling device.

### Claim 2 (depends on 1)

The Sub SN of claim 1, wherein the Sub SN calling device comprises a calling bus device for establishing a connection between a calling position of a single machine and the Sub SN.

### Claim 3 (depends on 2)

The Sub SN of claim 2, wherein
the Sub SN calling device is activated by the single machine SN calling instruction;
a calling parameter of the single machine SN calling instruction is broadcasted to N+1 units associated with the N+1 computers and is used as a calling entry address of the N+1 branch programs of the Sub SN;
an on-site protection is performed when each of the N+1 branch programs is entered; and
each of the N+1 branch programs is exited by the return instruction.

### Claim 4 (depends on 2)

The Sub SN of claim 2, wherein the Sub SN calling device comprises an activating device for transferring the single machine SN calling instruction from a serial single machine to the parallel N+1 branch programs.

### Claim 5 (depends on 2)

The Sub SN of claim 2, wherein the Sub SN calling device comprises a call contention device for processing a plurality of simultaneously occurred requests.

### Claim 6 (depends on 2)

The Sub SN of claim 2, wherein the Sub SN calling device comprises a device for transmitting a calling parameter from serial to parallel and for activating parallel interrupts.

### Claim 7 (depends on 1)

A Sub Sequence Net (SN) calling system for calling the Sub SN according to claim 1, comprising:
N+1 computers, for running the N+1 branch programs, which are run in parallel, of the Sub SN, wherein the N+1 computers include a Sub SN calling device and more than one distributed data tokens, each of the distributed data tokens in the SN comprises a consistency token instruction, a source data token instruction and multiple target data token instructions, and each of the 1st to Nth branch programs is composed by one or more source data token instructions and one or more of the target data token instructions, the N+1th branch program is a consistency program which is composed by the consistency token instructions;
N+1 SN calling devices, for handling call contentions, storing SN calling parameters, and identifying SN calling instructions; and
a group of buses, for connecting the SN calling devices together, the group of buses comprising:
a call activating bus, for receiving an activating level sent by one of the SN calling devices;
a data bus; and
a shared clock bus.

### Claim 8 (depends on 7)

The Sub SN calling system of claim 7, wherein each of the SN calling devices comprises:
a call requesting device, for receiving an SN calling instruction, generating an activating level at a next clock pulse, and delivering the activating level to the call activating bus;
a call contention device, for arbitrating a call of a highest priority as valid;
a call parameter and interrupt device, for determining a source of an SN call parameter based on an output of the call contention device, and sending an interrupt level to an associated computer.

### Claim 9 (depends on 8)

The Sub SN calling system of claim 8, wherein each of the SN calling devices further comprises a registering and comparing device, for storing a local weight, and for comparing the local weight with a global weight in order to determine whether the respective SN calling device is the source of the SN calling parameter.

### Claim 10 (depends on 9)

The Sub SN calling system of claim 9, wherein the registering and comparing device further comprises a system grade register and a request grade register, when the SN calling device receives a grade calling request, if an output of the request grade register is greater than an output of the system grade register, the registering and comparing device generates a permission signal to the call requesting device, so that the call requesting device generates the activating level to the activating bus, and when the output of the request grade register is smaller than or equal to the output of the system grade register, the registering and comparing device does not generate the permission signal and thus no activating level is generated.

### Claim 11 (depends on 8)

The Sub SN call system of claim 8, wherein the registering and comparing device further comprises a sequence calling register indicating a next sequence calling device number, when the SN calling device receives a sequence calling request, an output of the sequence calling register is compared with a local device number, if the comparison result is - the same- , the activating level is generated, otherwise, no activating level is generated.

### Claim 12 (depends on 7)

A method for calling a Sub Sequence Net (Sub SN) using the Sub SN calling device of claim 7, comprising the following steps:
a) one or more SN calling devices receiving one or more SN calling instructions from one or more computers, respectively;
b) each of the SN calling devices which receive the SN calling instructions sending an activating level via the activating bus to all the other SN calling devices;
c) when each of the SN calling devices which receive the SN calling instructions detects the activating level on the activating bus, each of the SN calling devices which receive the SN calling instructions sending its local weight to the data bus, then a global weight formed on the data bus being written in a temporary register of each of the SN calling devices; and
d) each of the SN calling devices which receive the SN calling instructions comparing a highest valid bit of the temporary register with its local weight, if the comparison result is - the same- , the call of the respective SN calling device is valid, otherwise, the call of the respective SN calling device is invalid, at least one call from one of the SN calling devices which receive an SN calling instructions is valid;
wherein the Sub Sequence Net (SN) comprising: an SN including N+1 branch programs which are run in parallel respectively running on N+1 computers including a Sub SN calling device and one or more distributed data tokens;
wherein each of the distributed data tokens comprises a consistency token instruction, a source data token instruction and multiple target data token instructions, and each of the 1st to Nth branch programs is composed by one or more source data token instructions and one or more of the target data token instructions, the N+1th branch program is a consistency program which is composed by the consistency token instructions;
wherein each of the N+1 branch programs includes a return instruction, and wherein N is a positive integer; and wherein a calling instruction of the Sub SN is a single machine SN calling instruction; the call instruction calls the Sub SN by activating the Sub SN calling device.

### Claim 13 (depends on 12)

The call method of claim 12, wherein step c) comprises an “or” operation of the local weights sent by the SN calling devices which receive SN calling instructions to form the global weight.

### Claim 14 (depends on 12)

The call method of claim 12, further comprising the following step between step a) and step b): at least one computer of the N+1 computers sending a grade calling instruction for supporting different importance grades.

### Claim 15 (depends on 14)

The call method of claim 14, further comprising a step of the at least one computer writing a request grade of the called Sub SN into a request grade register of the SN calling device before the at least one computer sends the grade calling instruction.

### Claim 16 (depends on 15)

The call method of claim 15, further comprising a step of comparing the request grade with a system grade, wherein if the request grade is lower than or equal to the system grade, then the grade calling request is not accepted, and if the request grade is higher than the current system grade, then the grade calling request is accepted, and the activating level is generated at step b) by the SN calling device.

### Claim 17 (depends on 16)

The call method of claim 16, further comprising the following steps between step b) and step c):
b1) on the activating bus, an “or” operation being performed on the activating levels from the SN calling devices which receive the SN grade calling instructions and the result of the “or” operation being delivered to all the SN calling devices;
b2) when each of the SN calling devices which receive the SN grade calling instructions detects an activating level on the activating bus, each of the SN calling devices which receive the SN grade calling instructions sending its local request grade to the data bus, then a global request grade formed on the data bus being written into the temporary register by each of the SN calling devices;
b3) each of the SN calling devices which receive the SN grade calling instructions comparing the global request in the temporary register with its local request grade, and if the comparison result is —the same—, the grade call of the SN calling device is valid; and
b4) writing the highest bit of the temporary register into a system grade register of each of the SN calling devices so that a new system grade is recorded.

### Claim 18 (depends on 12)

The call method of claim 12, further comprising the following step between step a) and step b): at least one computer of the N+1 computers sending a sequence calling request instruction of the SN for supporting sequenced events of a program processing and a complicated program structure.

### Claim 19 (depends on 18)

The call method of claim 18, further comprising a step of designating a next sequence calling device number in a next register of each of the SN calling devices.

### Claim 20 (depends on 19)

The call method of claim 19, further comprising the following steps between step b) and step c):
b′) each of the SN calling devices receive the sequence calling request instructions from the at least one computer; and
b″) comparing the next sequence calling device number with a local device number, if the comparison result is —the same—, the sequence calling request instruction is allowed and the activating level is sent to the activating bus, otherwise, the device number of the sequence call request is invalid and no activating level is sent to the activating bus.

### Claim 21 (depends on 20)

The call method of claim 20, further comprising the following steps between step c) and step d):
c′) the SN calling devices which receive the sequence calling request instructions sending sequence call feature data to the data bus;
c″) the SN calling devices which receive the sequence calling request instructions writing the content on the data bus into the temporary register, and checking the data in the temporary register for determining whether a sequence calling feature is satisfied, if it is satisfied, it is determined there is a grade call, otherwise, it is determined there is a sequence call.
