首页 / 专利库 / 人工智能 / 语言代码 / Condition concentrator and control store for a reduction processor evaluating programs stored as binary directed graphs employing variable-free applicative language codes

Condition concentrator and control store for a reduction processor evaluating programs stored as binary directed graphs employing variable-free applicative language codes

阅读:559发布:2021-03-17

专利汇可以提供Condition concentrator and control store for a reduction processor evaluating programs stored as binary directed graphs employing variable-free applicative language codes专利检索,专利查询,专利分析的服务。并且Parallel register-transfer mechanism and control section have been disclosed above for use in a reduction processor for the evaluation of expressions of a variable-free applicative language stored as binary directed graphs. The expressions are reduced through a series of transformations until a result is obtained.,下面是Condition concentrator and control store for a reduction processor evaluating programs stored as binary directed graphs employing variable-free applicative language codes专利的具体信息内容。

What is claimed is:1. In a reduction processing system having storage means for receiving two-cell nodes representing binary directed graphs employing a variable-free applicative language code, one of such cells in some of each nodes containing a storage address of another node, another of said cells in some of each nodes containing a code representing a functional variable and another of said cells in some of each nodes containing a variable-free operator code specifying a function substitution, a processor comprising:a plurality of registers coupled to said storage means for receiving a plurality of said nodes for reduction by a function substitution;condition testing means coupled to various fields of said registers containing said nodes to detect what function substitution is to be performed and to generate a displacement address therefrom; andcontrol store means coupled to said condition detection means for receiving said displacement address to retrieve a set of control signals to activate transfer between said registers to accomplish said function substitution.2. A processor according to claim 1 wherein:said condition testing means includes a set of boolean logic circuits each coupled to selected ones of said registers to receive different ones of a plurality of information signals and to generate different boolean combinations of said information signals in response to control signals received from said control store.3. A processor according to claim 2 wherein:said condition detection means includes a set of signal lines arranged in an order from a highest priority signal line to a lowest priority signal line, each of said signal lines being coupled to selected ones of said sets of boolean logic circuits.4. A processor according to claim 3 wherein:said condition testing means includes priority encoding means coupled to said signal lines to detect the highest priority signal line receiving a set of signals from one or more of said boolean logic circuits and to generate a displacement address in the form of the rank of the highest priority signal line being activated by one or more of said boolean logic circuits.5. A processor according to claim 4 wherein each cell has a cell-type field specifying whether that cell contains a variable-free operator code and wherein:said condition testing means is coupled to said cell-type fields to detect a variable-free operator code.6. A processor according to claim 5 wherein each cell has a contents field and wherein:said condition testing means is coupled to said contents field to detect the nature of an operator in one of said contents fields.7. In a reduction processing system having storage means for receiving two-cell nodes representing binary directed graphs employing a variable-free applicative language code, one of such cells in some of each nodes containing a storage address of another node, another of said cells in some of each nodes containing a code representing a functional variable and another of said cells in some of each nodes containing a variable-free operator code specifying a function substitution, each cell containing a cell-type field and a contents field, a processor comprising:a plurality of registers coupled to said storage means for receiving a plurality of said nodes for reduction by a function substitution;condition testing means coupled to various contents fields of said registers containing said nodes to detect the nature of an operator code and to generate a displacement address therefrom; andcontrol store means coupled to said condition detection means for receiving said displacement address to retrieve a set of control signals to activate transfer between said registers to accomplish said function substitution.8. A processor according to claim 7 wherein:said condition testing means includes a set of boolean logic circuits each coupled to selected ones of said registers to receive different ones of a plurality of information signals and to generate different boolean combinations of said information signals in response to control signals received from said control store.9. A processor according to claim 8 wherein:said condition detection means includes a set of signal lines arranged in an order from a highest priority signal line to a lowest priority signal line, each of said signal lines being coupled to selected ones of said sets of boolean logic circuits.10. A processor according to claim 9 wherein:said condition testing means includes priority encoding means coupled to said signal lines to detect the highest priority signal line receiving a set of signals from one or more of said boolean logic circuits and to generate a displacement address in the form of the rank of the highest priority signal line being activated by one or more of said boolean logic circuits.

说明书全文

RELATED U.S. PATENT APPLICATIONS

U.S. patent applications directly or indirectly related to the subject application are the following:

Ser. No.: 617,531, filed June 5, 1984, by Gary E. Logsdon, et al. and entitled "Parallel Register Transfer Mechanism for a Reduction Processor Evaluating Programs Stored as Binary Directed Graphs Employing Variable-Free Applicative Language Codes";

Ser. No.: 617,526, filed June 5, 1984, by Gary E. Logsdon, et al. and entitled "Graph Manager for a Reduction Processor Evaluating Programs Stored as Binary Directed Graphs Employing Variable-Free Applicative Language Codes".

BACKGROUND OF THE INVENTION

1. Field of the Invention

This invention relates to a parallel register transfer mechanism for a digital processor which is adapted to evaluate programs represented as binary directed graphs, and more particularly to a processor that evaluates such graphs by progressive substitutions of equivalent graphs.

2. Description of the Prior Art

Most digital computers on the market today are still of the type first postulated by John von Neumann and are sequential in their execution of commands. The first higher-level languages for programming computers, such as FORTRAN and COBOL, reflected this organization, and left with the programmer the responsibilities of storage management and control-flow management, as well as the design of the algorithm to be implemented by the computer. Pure applicative languages, such as pure LISP, differ from imperative languages by relieving the programmer of these management responsibilities.

An alternative to pure LISP is the Saint Andrews Static Language, or SASL, which was developed by David A. Turner (SASL Language Manual, University of St. Andrews, (1976)). By introducing a number of constants called "combinators", this language may be transformed into a variable-free notation (D. A. Turner, "A New Implementation Technique for Applicative Languages", Software - Practice and Experience, Vol. 9, pp. 31-49, 1979). This notation is particularly advantageous for handling higher-order functions (which may take functions as arguments and return functions as results) and non-strict functions (which may return a result even if one or more arguments are undefined).

The implementation technique developed by Turner employs a set of primitive functions such as plus, minus, and so forth, and a set of combinators, which are higher-order non-strict functions. These operators are formally defined by substitution rules, some examples of which are ##EQU1##

Other combinators and their definitions are to be found in the above referenced Turner publication.

This combinator notation may be conveniently represented as a binary directed graph in which each node represents the application of a function to an argument. (These graphs are known as SK-graphs from the names of the first two combinators.) The substitution rules may then be interpreted as graph transformation rules, and these graphs (and, therefore, the programs they represent) may be evaluated, in a process known as reduction, by a processor of a fairly simple nature. Such a reduction processor is disclosed in the Bolton et al. U.S. Pat. No. 4,447,875, entitled "Reduction Processor for Executing Programs Stored as Treelike Graphs Employing Variable-Free Applicative Language Codes".

Details of the reduction process can be found in the Turner paper, but a brief example is helpful. FIGS. 1A-D illustrate the reduction of a graph representing the SASL program. ##EQU2## This program is translated (compiled) into the combinator expression

C I 2 (plus 1)

that is represented by the graph in FIG. 1A. Successive transformations of this graph yield ##EQU3##

The substitutions performed to reduce a graph require the manipulation of a number of different pieces of data, such as pointers and combinator codes, which are shifted from one location to another in a register file. In the embodiment disclosed in the above referenced Bolton et al. application, each graph-reduction step required a sequence of register-file transfers. In many cases, however, the required transfers between registers could be performed simultaneously, with a consequent increase in speed.

After performing one of these transformations, the processor must traverse the graph in search of the next transformation site (called a "redex"). During this search nodes are examined and a variety of tests are performed, such as determining whether the left side of a node represents a pointer or a combinator. Again, in the machine described in the Bolton et al. application, these tests must be made sequentially: in many cases, though, these tests could be performed simultaneously.

It is then an object of the present invention to provide an improved processing system for the evaluation of binary directed graphs through a series of substitutions.

It is another object of the present invention to provide such a processor wherein each substitution can be accomplished by a number of simultaneous register transfers.

It is still a further object of the present invention to provide an improved register file and control section for such a reduction processor which control section selects the particular simultaneous transfer of register contents between the respective registers making up the file.

SUMMARY OF THE INVENTION

To accomplish the above-identified objects, the present invention resides in a register file and control section for employment in an applicative language reduction processor. The control section is coupled to the various registers in the register file to detect conditions and select the various register transfers required for a function substitution.

A feature then in the present invention resides in a parallel register transfer mechanism and control section for a reduction processor intended for evaluating applicative language programs represented as binary directed graphs.

BRIEF DESCRIPTION OF THE DRAWINGS

The above and other objects, advantages, and features of the present invention may become readily apparent from a review of the following specification when taken in conjunction with the drawings wherein:

FIGS. 1A, B, C, and D represent binary directed graphs of the type for which the present invention is intended;

FIG. 2 illustrates a system employing the present invention;

FIG. 3 is a diagram of the graph manager section of the present invention;

FIG. 4 is a diagram of the data section of the present invention;

FIG. 5 is a diagram of the condition concentrator of the present invention;

FIG. 6 is a diagram of the format of a node of the type from which graphs are formed;

FIG. 7A-F are diagrams detailing the register-transfer mechanism of the present invention.

GENERAL DESCRIPTION OF THE INVENTION

The system employing the present invention is illustrated in FIG. 2. The principal element is graph manager 10, which contains a data section which caches some of the nodes of a graph that is to be reduced and allows for those nodes to be manipulated to perform the series of substitutions required for the graph reduction. The system includes a system memory 11 which provides storage for all of the nodes of the graph and allocator 12 which scans the system memory for unused words whose addresses it queues for use by the graph manager. The allocator also maintains a count of the number of addresses queued. Service processor 13 supports a wide variety of data transfers to a host processor (not shown); it also provides a floating point arithmetic facility.

A particular problem with the graph reduction techniques of prior art systems can be better illustrated with reference again to FIGS. 1A-D. It will be appreciated that in the transformation of the graph in FIG. 1A to that of FIG. 1B, the contents of the right cell of node b must be transferred to the right cell of node a, the right cell of node c must be transferred to the left cell of node f and the right cell of node a must be transferred to the right cell of node f. In prior art reduction processors, this series of transfers was performed sequentially, and a similar series of transfers was performed to reduce the graph of FIG. 1B to that of FIG. 1C and so on. It is the purpose of the present invention to provide a parallel register-transfer mechanism by which each sequence of register transfers may be performed simultaneously, thus speeding up the reduction process.

A further problem with prior art systems relates to testing of conditions that guide the reduction process. Before the redex of FIG. 1A can be transformed, the processor must determine that several conditions hold. In prior art processors, these conditions are tested sequentially and the result of each test is used to select one path of a two-way branch. It is another purpose of the present invention to provide a condition testing mechanism by which several conditions may be tested simultaneously to select a single path of a multi-way branch.

DETAILED DESCRIPTION OF THE INVENTION

Graph manager 10 of FIG. 2 is shown in slightly more detail in FIG. 3, including its communications with allocator 12. The graph manager includes data section 20, condition concentrator 21, and control section 22.

Data section 20 stores a portion of the graph being reduced and allows fields to be transferred between various registers therein concurrently. Values of some of these fields are sent to condition concentrator 21 for reasons that will be described below. This data section is shown in more detail in FIG. 4 and its register file is shown in detail in FIGS. 7A-F.

Control section 22 is a simple state machine with a writable control store 22b in which the microprogram for the state machine is stored. Microinstruction addresses are generated by concatenating the displacement field received from condition concentrator 21 with the next-address field in control register 22a, which in turn receives the selected microinstruction.

The organization of data section 20 of FIG. 3, illustrated in FIG. 4, includes register file 30 which is the primary mechanism for parallel transfer between registers to perform a graph substitution. Also shown in FIG. 4 is path buffer 50, which is a stack memory used to store ancestors of the nodes stored in register file 30. Both the register file and the path buffer are more thoroughly described below in relation to FIGS. 7A-F. Arithmetic-logic unit 32 of FIG. 4 executes simple arithmetic operators, and bus interface unit 31 communicates with the system memory and other units of the system.

Condition concentrator 21 of FIG. 3 is illustrated in more detail in FIG. 5. It accepts input from regular file 30 as well as from arithmetic-logic unit 32, allocator 12, and service processor 13. These inputs are grouped into 13 "condition groups". Each guard generator, 40a-m, maps a condition group to a set of guards. This is described in more detail below. During a test cycle, each guard generator directs a subset of its guards to guard bus 41, which is a 16-line open-collector bus that is the input to priority encoder 42. The output of the priority encoder is 4 bits wide and identifies the highest-priority true guard, where the guard on line 0 has the highest priority and that on line 15 the lowest. This output is used as a displacement value which is concatenated with a base address from control register 22a of FIG. 3 to generate the address of the next microinstruction in control store 22b.

Node Format

As indicated above, FIG. 6 illustrates the format in which the nodes of the SK-graph reside in system memory 11, in the various registers of register file 30, and in path buffer 50. Each node contains a node-type field (NT) of four bits and left- and right-cell fields (LC and RC), each of 30 bits. The left- and right-cell fields are further subdivided into a cell-type field (CT) of two bits, a subtype field (ST) of four bits, and a contents field (C) of 24 bits. The various SK operators and values are encoded as combinations of particular values of these fields.

Parallel Register-Transfer Mechanism

Register file 31 of the data section illustrated in FIG. 4 is shown in detail in FIG. 7A along with an abridged representation of the interconnection network 59. This representation is abridged because of the complexity of network 59 which is actually four crossbar networks that are overlaid to form the total interconnection network. FIGS. 7C-F are tables indicating the actual sources and destination for each of the separate crossbar networks, and FIG. 7B is a table representing a composite of these networks, as will be more thoroughly described below.

With the exception of registers R, F, and NNA, the registers of FIG. 7A are designed to hold nodes of the type illustrated in FIG. 6. Buffer registers B0-B3 (registers 51a-c, 52a-c, 53a-c, 54a-c) store one node each, and usually contain a redex of the graph being reduced. Register T (55a-c) also stores one node, and is used as temporary storage during complicated transformations. As mentioned before, the path buffer (50a-c) is a stack memory used to hold nodes that are ancestors of the nodes in the data section. This path buffer may hold a maximum of 2048 nodes.

F and R (registers 56 and 57) store one cell each, and are principally used during graph traversal, NNA (register 58) stores the address of an unused node, and is 24 bits wide.

In addition to these registers, there are several buses into and out of the register file, and these are also described in FIGS. 7B-F. The buffer port (BP bus 60) is a bidirectional port used to transfer a node from buffer register B3 to the path buffer. BP bus 60 is also used to transfer nodes from the path buffer to the B3 or T registers. During any cycle, BP bus 60 can transfer data into or out of the data section, but it cannot do both.

The data port (DP bus 61) is a bidirectional port used to transfer nodes between the external data bus and the register file. Data transfers involving this port are the same as transfers with a register except that the data port cannot be a source and a destination simultaneously. Data port 61 serves, among other things, as the port to the system memory.

The address port (AP bus 62) is a unidirectional port used to transfer a contents field to the address bus. The data in this port is used to address the system memory. Data transfers involving this port are the same as transfers with a register except that the address port can only be a destination.

The new node port (NNP bus 64) is a unidirectional port used to fill NNA register 58 with addresses supplied by the allocator. This port is not accessible by any other register in the data section.

The function of the interconnection network 59 is, of course, to interconnect the registers and ports of the data section. As was explained above, FIG. 7A is abridged in that network 59 actually consists of four crossbar networks, each of which has its own set of sources, destinations, and controls. Each destination in one of these crossbars has at its input an n-input multiplexor, where n equals the number of possible sources for that destination. Separate control information for each multiplexor is provided by the control register 22a. In this manner, each destination may receive its contents simultaneously, and any register may be a source for more than one destination.

The four crossbar networks that constitute the interconnection network are the Node Type (FIG. 7C), Cell Type (FIG. 7D), Subtype (FIG. 7E), and Contents (FIG. 7F) networks. FIG. 7B is a composite of these four networks. These figures show the connection pattern of each network. Destinations are columns, titled at the top of the table. Sources form the rows of the table and are titled on the left. The X's indicate connections between sources and destinations. For example, in FIG. 7B, reading down the NNA column, one can determine that the NNA register 58 of FIG. 7A has only one source, namely, NNP bus 64. Conversely, by reading across a row, the allowed destination(s) for any particular source can be determined.

Condition Concentrator Mechanism

The condition concentrator illustrated in FIG. 5 tests up to 16 guards simultaneously, selecting one path of a multi-way branch according to the results of the test. Signals from other parts of the machine are grouped into 13 condition groups which serve as the inputs to guard generators 40a-m. Examples of these signals include the node type fields from the data section registers B0-B3 (registers 51a-54a in FIG. 7A), the cell-type and subtype fields from registers B0.RC-B3.RC (registers 51c-54c), and condition codes from the ALU.

Each guard generator produces a set of guards from its inputs. A guard is simply a boolean sum of products of selected terms. Consider, for example, a condition group that has the terms A, B, and C as its members. Guards that could be generated from this group include ##EQU4##

Each guard generator output is connected to one of the sixteen lines in guard bus 41. The control input to each guard generator from control register 22a selects the outputs to be enabled. Since guard bus 41 is an open-collector bus, several guard generators may simultaneously enable guards on the same line, thereby permitting guards that are the sum of individual guards from distinct condition groups. The combinatorial equations for the guards in each generator are a function of the specific microprogram in use, and are determined when the microprogram is compiled.

Guard bus 41 is the input to priority encoder 42. The output of this encoder is the four-bit displacement 44 which identifies the highest priority true guard on bus 41, where line 0 has highest priority and line 15 lowest. This displacement is concatenated with a base address from control register 22a to obtain the address of the next micro-instruction. In this way, up to a 16-way branch can be performed in one instruction cycle.

EPILOGUE

A parallel register-transfer mechanism and control section have been disclosed above for use in the evaluation of expressions of a variable-free applicative language stored as binary directed graphs. The expression is reduced through a series of transformations until a result is obtained. During the reduction process, the processor transfers nodes to and from memory and performs various operations on those nodes. The processor can also create new nodes in memory and delete unused ones. With the present invention, each reduction can be performed in far fewer steps than in prior art systems.

While but one embodiment of the present invention has been disclosed, it will be apparent to those skilled in the art that variations and modifications may be made therein without departing from the spirit and the scope of the invention as claimed.

高效检索全球专利

专利汇是专利免费检索,专利查询,专利分析-国家发明专利查询检索分析平台,是提供专利分析,专利查询,专利检索等数据服务功能的知识产权数据服务商。

我们的产品包含105个国家的1.26亿组数据,免费查、免费专利分析。

申请试用

分析报告

专利汇分析报告产品可以对行业情报数据进行梳理分析,涉及维度包括行业专利基本状况分析、地域分析、技术分析、发明人分析、申请人分析、专利权人分析、失效分析、核心专利分析、法律分析、研发重点分析、企业专利处境分析、技术处境分析、专利寿命分析、企业定位分析、引证分析等超过60个分析角度,系统通过AI智能系统对图表进行解读,只需1分钟,一键生成行业专利分析报告。

申请试用

QQ群二维码
意见反馈