WO2007139964A2 - Circular register arrays of a computer - Google Patents

Circular register arrays of a computer Download PDF

Info

Publication number
WO2007139964A2
WO2007139964A2 PCT/US2007/012539 US2007012539W WO2007139964A2 WO 2007139964 A2 WO2007139964 A2 WO 2007139964A2 US 2007012539 W US2007012539 W US 2007012539W WO 2007139964 A2 WO2007139964 A2 WO 2007139964A2
Authority
WO
WIPO (PCT)
Prior art keywords
registers
processor
stack
array
register
Prior art date
Application number
PCT/US2007/012539
Other languages
French (fr)
Other versions
WO2007139964A3 (en
Inventor
Charles H. Moore
Jeffrey Atrhur Fox
John W. Rible
Original Assignee
Vns Portfolio Llc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from US11/441,818 external-priority patent/US7934075B2/en
Priority claimed from US11/441,784 external-priority patent/US7752422B2/en
Priority claimed from US11/441,812 external-priority patent/US7913069B2/en
Priority claimed from US11/503,372 external-priority patent/US7617383B2/en
Application filed by Vns Portfolio Llc filed Critical Vns Portfolio Llc
Priority to JP2009513215A priority Critical patent/JP2009538488A/en
Publication of WO2007139964A2 publication Critical patent/WO2007139964A2/en
Publication of WO2007139964A3 publication Critical patent/WO2007139964A3/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30098Register arrangements
    • G06F9/3012Organisation of register space, e.g. banked or distributed register file
    • G06F9/30134Register stacks; shift registers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/32Address formation of the next instruction, e.g. by incrementing the instruction counter
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/38Concurrent instruction execution, e.g. pipeline, look ahead

Definitions

  • the present invention relates to the field of computers and computer processors, and more particularly to a method and means for a more efficient use of a stack within a stack computer processor.
  • Stack machines offer processor complexity that is much lower than that of Complex Instruction Set Computers (CISCs), and overall system complexity that is lower than that of either Reduced Instruction Set Computers (RICSs) or CISC machines. They do this without requiring complicated compilers or cache control hardware for good performance. They also attain competitive raw performance, and superior performance for a given price in most programming environments. Their first successful application area has been in real time embedded control environments, where they outperform other system design approaches by a wide margin. Where previously the stacks were kept mostly in program memory, newer stack machines maintain separate memory chips or even an area of on-chip memory for the stacks. These stack machines provide extremely fast subroutine calling capability and superior performance for interrupt handling and task switching. However, there is no hardware detection of stack overflow or underflow conditions.
  • Stack overflow occurs when there are not a sufficient number of registers available and results continue to be pushed onto the stack, causing the bottom register(s) to be overwritten.
  • Stack underflow occurs when all registers have been emptied, and continued popping of a stack produces unintentional or incorrect results.
  • Some other stack processors use stack pointers and memory management such that an error condition is flagged when a stack pointer goes out of range of memory allocated for the stack.
  • US Patent No. 6,367,005 issued to Zahir et al. disclose a register stack engine, which saves to memory sufficient registers of a register stack to provide more available registers in the event of stack overflow. The register stack engine also delays the microprocessor until the engine can restore an appropriate number of registers in the event of stack underflow.
  • US Patent No. 6,219,685 issued to Story discloses a method of comparing the results of an operation with a threshold value. However, this approach does not distinguish between results that are rounded down to the threshold value (which would raise an overflow exception) and results that just happen to equal the threshold value.
  • Another method disclosed by Story reads and writes hardware flags to identify overflow or underflow conditions. However, the instructions must be performed sequentially, and any instructions following a register read/write can not proceed until the read/write operation is completed, which makes for a slow process.
  • the above described dual stack processor can function as an independently functioning processor, or it can be used with several other like or different processors in an interconnected computer array.
  • Fig. 1 is a block diagram depicting a general layout of a stack computer
  • Fig. 2 is a data stack according to one embodiment of the present invention
  • Fig. 3 is a more detailed view of a single register of a stack
  • Fig. 4 is a return stack according to one embodiment of the present invention
  • Fig. 5 is a diagrammatic view of a computer array, including multiple iterations of the computer of Fig. 1;
  • Fig. 6 is a detailed diagram showing a subset of the computers of Fig. 5 and a more detailed view of the interconnecting data buses of Fig. 5.
  • Fig. 1 is a block diagram depicting the general layout of a dual stack computer 12 as used in the present invention.
  • the computer 12 is generally a self contained computer having its own RAM 24 and ROM 26.
  • the computer 12 is a dual stack computer having a data stack 34 and a separate return stack 28.
  • ALU arithmetic logic unit
  • the computer 12 is a dual stack computer having a data stack 34 and a separate return stack 28.
  • One skilled in the art will be generally familiar with the operation of stack based computers such as the computer
  • the instruction area 30 comprises a number of registers 40 including, in this example, an A register 40a, a B register 40b, and a P register 40c.
  • the A register 40a is a full eighteen-bit register
  • the B register 40b and the P register 40c are nine-bit registers.
  • the present invention discloses a stack computer processor in which the data and return stacks comprise an array of registers, which function in a cyclical, repeating, or circular pattern. The data stack and return stack are not arrays in memory accessed by a stack pointer, as in many prior art computers.
  • Figure 2 discloses an embodiment of an 18-bit data stack according to the present invention.
  • the top two registers in the data stack are an 18-bit T register and an 18-bit S register.
  • the remainder of the data stack comprises eight additional 18-bit hardware registers, numbered in this example as S 2 through S 9 .
  • the circular register array, S 2 — S 9 can operate in the absence of the T and S registers. However, the presence of at least the S register in combination with S 2 — S9 registers provides faster access circuitry and an optimum for timing, and therefore provides higher operating speed of the circular register array.
  • the S register acts as a buffer between the S 2 - S 9 addressable registers and the rest of the processor system. This provides independence of timing between the S 2 - S 9 registers and the rest of the processor system.
  • This embodiment also comprises a bi-directional shift register which contains a plurality of one bit shift registers.
  • the number of one bit shift registers is equal to the number of bottom stack registers, S 2 through S 9 located below the S register.
  • Each one bit shift register is connected to its corresponding S2 through S 9 stack register as shown in Fig. 2.
  • the one bit shift registers are electrically interconnected in an alternating pattern, such that the S 2 through S 9 registers of the stack function in the sequential circular interconnect pattern given by S 2 ⁇ S 4 - ⁇ S 6 ⁇ S 8 ⁇ S 9 ⁇ S 7 ⁇ S 5 ⁇ S 3 ⁇ S 2 as shown in Fig. 2.
  • This sequential selection of bottom stack registers operates in a circular repeating pattern.
  • Each one bit shift register of the bi-directional shift register is connected to a corresponding bottom stack register within the S 2 through S 9 array, where only one bit of the shift register is on (reads as a one) at a time, while all other bits read as a zero.
  • the shift register must be initialized to contain exactly one bit set to one and all other bits set to zero.
  • the shift register top bit points to S 2 for a read and points to interconnected adjacent register S 4 for a write, as shown by the dashed write line in Fig. 2.
  • the remaining bits of the single bit shift register are coupled similarly to corresponding ones of registers S 2 through S 4 , although the other write lines are not shown so as not to unnecessarily obscure the drawing.
  • a ten cell deep push down stack is formed by the registers T, S, and S 2 through S 9 . Because the bottom eight registers are in a circular buffer, the hardware wraps rather than overflows or underflows. One must not expect to put more than ten items there and get them all back, but one can keep taking more copies of the last eight items taken from the bottom of the stack forever. There is no underflow in the sense of it being an error. It is the fastest way to duplicate a pattern of eight words (or four or two or one) because the bottom eight will be read over and over if a program keeps taking values from the stack.
  • FIG 3 is an expanded view of each register within the data or return stack.
  • Each 18 bit register comprises 18 latches, numbered 0 through 17.
  • There is a set of 18 input pass gates (numbered 0 through 17), each of which selectively connects a respective one of the 18 latches to the write bus.
  • There is also a set of 18 output pass gates (numbered 0 through 17), each of which selectively connects a respective one of the 18 latches to the read bus.
  • the input pass gates are controlled by a write control signal asserted on the input control lines (write lines of Fig. 2) via the inverter amplifiers coupled to the input control lines
  • the output pass gates are controlled by a read control signal asserted on the output control lines (read lines of Fig. 2) via the inverter amplifiers coupled to the output control lines.
  • Figure 4 discloses an 18-bit return stack according to the present invention.
  • the top register in the return stack is an 18-bit R register, and eight additional 18-bit hardware registers are located below the R register, and are numbered here as Ri - Rg.
  • the bottom eight registers, R t — Re function in an alternating pattern as a repeating circular array, similar to the data stack disclosed above.
  • the circular register array, Ri - Rg can operate in the absence of the R register. However, the presence of the R register in combination with Ri - Re registers provides faster access circuitry and an optimum for timing, and therefore provides higher operating speed of the circular register array.
  • the R register acts as a buffer between the Ri - Re addressable registers and the rest of the processor system, which provides independence of timing between the Ri - Rg registers and the rest of the processor system.
  • This embodiment also comprises a bi-directional shift register which contains a plurality of one bit shift registers. The number of one bit shift registers is equal to the number of additional bottom registers, Ri through Rg located below the R register. Each one bit shift register is connected to its corresponding Ri through Rg bottom stack register as shown in Fig. 4.
  • the one bit shift registers of the bi-directional shift register are electrically interconnected in an alternating pattern, such that the Ri through Rg registers of the stack function in the sequential circular interconnect pattern given by Ri — » R3 — »• R5 — » R7 — » Rg — ⁇ Re — ⁇ R 4 ⁇ R 2 ⁇ Ri as shown in Fig. 4.
  • This sequential selection of registers operates in a circular repeating pattern.
  • the interconnecting wires of the shift register never span more than three adjacent one bit shift registers, which avoids the need for a long wire connecting the bottom one bit shift register to the top one bit shift register. These shorter wires require a smaller driver, and buffering is also minimized.
  • a read bus and a write bus interconnect registers Ri — Rg Each one bit register of the shift register is connected to a corresponding stack register within the Ri - Rg array. Only one bit of the shift register is on (reads as a one) at a time, while all other bits read as a zero. At power-up, the shift register must be initialized to contain exactly one bit set to one and all other bits set to zero. In the given example, the shift register top bit points or reads to Ri and writes to the interconnected adjacent register,
  • R 3 - there is no hardware detection of stack overflow or underflow conditions.
  • prior art processors use stack pointers and memory management, or the like, such that an error condition is flagged when a stack pointer goes out of the range of memory allocated for the stack.
  • an overflow or underflow would overwrite a stack item or use a stack item as something other than what it was intended.
  • bottom registers function as a circular array, the stacks cannot overflow or underflow out of the stack area. Instead, the circular arrays will merely wrap around the array of registers. Because the stacks have finite depth, pushing anything to the top of a stack means something on the bottom is being overwritten. Pushing more than ten items to the data stack, or more than nine items to the return stack in the given embodiments must be done with the knowledge that doing so will result in the item at the bottom of the stack being overwritten.
  • the software can take advantage of the circular arrays at the bottom of the stacks in several ways. As one example, the software can simply assume that a stack is 'empty' at any time. There is no need to clear old items from the stack as they will be pushed down towards the bottom where they will be lost as the stack fills, so there is nothing to initialize for a program to assume that the stack is empty.
  • Another advantage which can be utilized is to reuse the register items without having to reload those items for reuse.
  • the bottom eight items in these stacks can also be read or read and written in loops that take advantage of the stack wrap. After two data stack reads, T and S will have copies of two items from the circular array of the eight stack registers below. After eight more reads, T and S will be reloaded again with the same values read again from below using stack wrap. There is no limit to how many times those eight items can be read in sequence off of the stack without having to duplicate the items or write them back to the stack. Algorithms that cycle through a set of parameters that can repeat in eight, four, or two cells on the data or return stack can repeatedly read them from the stack as the bottom registers will just wrap, and if intentional is not a stack error.
  • the instant invention has been described in an embodiment for a data stack and return stack of a dual stack 18-bit processor, other bit size processors can be utilized with the present invention.
  • the above described circular register arrays were described with respect to a single dual stack processor.
  • multiple iterations of stack processors including the above described circular register arrays can be utilized in an array of self-contained computers, such as the computer array 10 shown in Fig. 5.
  • the computer array 10 has a plurality (twenty four in the example shown) of computers 12 (sometimes also referred to as "cores" or “nodes” in the example of an array).
  • all of the computers 12 are located on a single die 14.
  • each of the computers 12 is a generally independently functioning computer.
  • the computers 12 are interconnected by a plurality of interconnecting data buses 16.
  • the data buses 16 are bidirectional, asynchronous, high-speed parallel data buses, although it is within the scope of the invention that other interconnecting means might be employed for the purpose.
  • Computer 12e is an example of one of the computers 12 that is not on the periphery of the array 10. That is, computer 12e has four orthogonally adjacent computers 12a, 12b, 12c, and 12d. This grouping of computers 12a through 12e will be used, by way of example, hereinafter in relation to a more detailed discussion of the communications between the computers 12 of the array 10. As can be seen in the view of Fig.5, interior computers such as computer 12e will have four other computers 12 with which they can directly communicate via the buses 16. In the following discussion, the principles discussed will apply to all of the computers 12 except that the computers 12 on the periphery of the array 10 will be in direct communication with only three or, in the case of the corner computers 12, only two other of the computers 12.
  • Fig. 6 is a more detailed view of a portion of Fig. 5 showing only some of the computers 12 and, in particular, computers 12a through 12e, inclusive.
  • the view of Fig. 6 also reveals that the data buses 16 each have a read line 18, a write line 20, and a plurality (eighteen, in this example) of data lines 22.
  • the data lines 22 are capable of transferring all the bits of one eighteen-bit instruction word generally simultaneously in parallel.
  • a computer 12, such as the computer 12e can set high one, two, three, or all four of its read lines 18 such that it is prepared to receive data from the respective one, two, three, or all four adjacent computers 12.
  • a computer 12 can set one, two, three, or all four of its write lines 20 high.
  • the computer 12 When one of the adjacent computers 12a, 12b, 12c, or 12d sets a write line 20 between itself and the computer 12e high, if the computer 12e has already set the corresponding read line 18 high, then a word is transferred from that computer 12a, 12b, 12c, or 12d to the computer 12e on the associated data lines 22. Then, the sending computer 12 will release the write line 20 and the receiving computer (12e in this example) pulls both the write line 20 and the read line 18 low. The latter action will acknowledge to the sending computer 12 that the data has been received. As shown in Fig. I 5 in this embodiment of the invention, the computer 12 has four communication ports 38 for communicating with adjacent computers 12, as described above.
  • the communication ports 38 are tri-state drivers, having an off status, a receive status (for driving signals into the computer 12) and a send status (for driving signals out of the computer 12). If the particular computer 12 is not on the interior of the array (Fig. 5) such as the example of computer 12e, then one or more of the communication ports 38 will not be used in that particular computer at least for the purposes described above. However, those communication ports 38 that do abut the edge of the die can have additional circuitry, either designed into such computer 12 or else external to the computer 12 but associated therewith, to cause such communication port 38 to act as an external FO port 39 (Fig. 5).
  • external I/O ports 39 include, but are not limited to, USB (universal serial bus) ports, RS232 serial bus ports, parallel communications ports, analog to digital and/or digital to analog conversion ports, and many other possible variations.
  • an "edge" computer 12f is depicted with associated interface circuitry 80 for communicating through an external I/O port 39 with an external device 82.

Abstract

A stack processor comprises a data stack with a T register, an S register, and eight hardwired bottom registers which function in a circular repeating pattern. The stack processor also comprises a return stack containing an R register, and eight hardwired bottom registers which function in a circular repeating pattern. The circular register arrays described herein eliminate overflow and underflow stack conditions.

Description

CIRCULAR REGISTER ARRAYS OF A COMPUTER
BACKGROUND Field of the Invention
The present invention relates to the field of computers and computer processors, and more particularly to a method and means for a more efficient use of a stack within a stack computer processor.
Description of the Background Art
Stack machines offer processor complexity that is much lower than that of Complex Instruction Set Computers (CISCs), and overall system complexity that is lower than that of either Reduced Instruction Set Computers (RICSs) or CISC machines. They do this without requiring complicated compilers or cache control hardware for good performance. They also attain competitive raw performance, and superior performance for a given price in most programming environments. Their first successful application area has been in real time embedded control environments, where they outperform other system design approaches by a wide margin. Where previously the stacks were kept mostly in program memory, newer stack machines maintain separate memory chips or even an area of on-chip memory for the stacks. These stack machines provide extremely fast subroutine calling capability and superior performance for interrupt handling and task switching. However, there is no hardware detection of stack overflow or underflow conditions.
Stack overflow occurs when there are not a sufficient number of registers available and results continue to be pushed onto the stack, causing the bottom register(s) to be overwritten. Stack underflow occurs when all registers have been emptied, and continued popping of a stack produces unintentional or incorrect results. Some other stack processors use stack pointers and memory management such that an error condition is flagged when a stack pointer goes out of range of memory allocated for the stack. US Patent No. 6,367,005 issued to Zahir et al. disclose a register stack engine, which saves to memory sufficient registers of a register stack to provide more available registers in the event of stack overflow. The register stack engine also delays the microprocessor until the engine can restore an appropriate number of registers in the event of stack underflow.
US Patent No. 6,219,685 issued to Story discloses a method of comparing the results of an operation with a threshold value. However, this approach does not distinguish between results that are rounded down to the threshold value (which would raise an overflow exception) and results that just happen to equal the threshold value. Another method disclosed by Story reads and writes hardware flags to identify overflow or underflow conditions. However, the instructions must be performed sequentially, and any instructions following a register read/write can not proceed until the read/write operation is completed, which makes for a slow process.
With a stack in memory, an overflow or underflow would overwrite a stack item or use a stack item that was not intended to be part of the stack. A need exists for an improved method of reducing or eliminating overflow and underflow within a stack.
SUMMARY
It is an object of the present invention to provide an apparatus and method in which the data stack and return stack of a dual stack processor are not arrays in memory accessed by a stack pointer, but instead are hardwire accessed by a separate dedicated shift register. It is another object of the present invention to reduce or eliminate overflow and underflow of a data or return stack.
It is another object of the present invention to minimize the length of electrical connections between one bit stack registers of a bi-directional stack register, and thereby minimize the required driver size and minimize buffering. These and other objects are achieved by the presently described invention, in which a conventional stack is replaced by an array of registers which function in a circular, repeating pattern. This circular, repeating pattern is accomplished through utilization of an associated bi-directional shift register which contains a plurality of one bit shift registers electrically interconnected in an alternating pattern. This configuration prevents reading from outside of the stack, and prevents reading an unintended empty register value.
The above described dual stack processor can function as an independently functioning processor, or it can be used with several other like or different processors in an interconnected computer array. BRIEF DESCRIPTION OF THE DRAWINGS
Fig. 1 is a block diagram depicting a general layout of a stack computer; Fig. 2 is a data stack according to one embodiment of the present invention; Fig. 3 is a more detailed view of a single register of a stack;
Fig. 4 is a return stack according to one embodiment of the present invention; Fig. 5 is a diagrammatic view of a computer array, including multiple iterations of the computer of Fig. 1; and
Fig. 6 is a detailed diagram showing a subset of the computers of Fig. 5 and a more detailed view of the interconnecting data buses of Fig. 5.
DETAILED DESCRIPTION
This invention is described with reference to the Figures, in which like numbers represent the same or similar elements. While this invention is described in terms of modes for achieving this invention's objectives, it will be appreciated by those skilled in the art that variations may be accomplished in view of these teachings without deviating from the spirit or scope of the presently claimed invention.
The embodiments and variations of the invention described herein, and/or shown in the drawings, are presented by way of example only and are not limiting as to the scope of the invention. Unless otherwise specifically stated, individual aspects and components of the invention may be omitted or modified for a variety of applications while remaining within the spirit and scope of the claimed invention, since it is intended that the present invention is adaptable to many variations. Fig. 1 is a block diagram depicting the general layout of a dual stack computer 12 as used in the present invention. The computer 12 is generally a self contained computer having its own RAM 24 and ROM 26.
Other basic components of the computer 12 are a return stack 28, including an R register 29, an instruction area 30, an arithmetic logic unit (ALU or processor) 32, a data stack 34 and a decode logic section 36 for decoding instructions. The computer 12 is a dual stack computer having a data stack 34 and a separate return stack 28. One skilled in the art will be generally familiar with the operation of stack based computers such as the computer
12 of this example. In the presently described embodiment, the instruction area 30 comprises a number of registers 40 including, in this example, an A register 40a, a B register 40b, and a P register 40c. In this example, the A register 40a is a full eighteen-bit register, while the B register 40b and the P register 40c are nine-bit registers. The present invention discloses a stack computer processor in which the data and return stacks comprise an array of registers, which function in a cyclical, repeating, or circular pattern. The data stack and return stack are not arrays in memory accessed by a stack pointer, as in many prior art computers.
Figure 2 discloses an embodiment of an 18-bit data stack according to the present invention. The top two registers in the data stack are an 18-bit T register and an 18-bit S register. The remainder of the data stack comprises eight additional 18-bit hardware registers, numbered in this example as S2 through S9. The circular register array, S2 — S9 can operate in the absence of the T and S registers. However, the presence of at least the S register in combination with S2 — S9 registers provides faster access circuitry and an optimum for timing, and therefore provides higher operating speed of the circular register array. In addition, the S register acts as a buffer between the S2 - S9 addressable registers and the rest of the processor system. This provides independence of timing between the S2 - S9 registers and the rest of the processor system.
This embodiment also comprises a bi-directional shift register which contains a plurality of one bit shift registers. The number of one bit shift registers is equal to the number of bottom stack registers, S2 through S9 located below the S register. Each one bit shift register is connected to its corresponding S2 through S9 stack register as shown in Fig. 2. The one bit shift registers are electrically interconnected in an alternating pattern, such that the S2 through S9 registers of the stack function in the sequential circular interconnect pattern given by S2 → S4 -→ S6 → S8 → S9 → S7 → S5 → S3 → S2 as shown in Fig. 2. This sequential selection of bottom stack registers operates in a circular repeating pattern. The interconnecting wires of the one bit shift registers never span more than three adjacent shift registers, which avoids the need for a long wire connecting the bottom shift register to the top shift register. These shorter wires require a smaller driver, and buffering is also minimized. The embodiment given uses eight additional stack registers for the circular register array. However, other combinations of bottom registers used in multiples of four can also be utilized. Figure 2 also discloses a read bus and a write bus interconnecting registers S2 through S9 as well as the T register and the S register. Each one bit shift register of the bi-directional shift register is connected to a corresponding bottom stack register within the S2 through S9 array, where only one bit of the shift register is on (reads as a one) at a time, while all other bits read as a zero. At power-up, the shift register must be initialized to contain exactly one bit set to one and all other bits set to zero. In the given example, the shift register top bit points to S2 for a read and points to interconnected adjacent register S4 for a write, as shown by the dashed write line in Fig. 2. The remaining bits of the single bit shift register are coupled similarly to corresponding ones of registers S2 through S4, although the other write lines are not shown so as not to unnecessarily obscure the drawing.
A ten cell deep push down stack is formed by the registers T, S, and S2 through S9. Because the bottom eight registers are in a circular buffer, the hardware wraps rather than overflows or underflows. One must not expect to put more than ten items there and get them all back, but one can keep taking more copies of the last eight items taken from the bottom of the stack forever. There is no underflow in the sense of it being an error. It is the fastest way to duplicate a pattern of eight words (or four or two or one) because the bottom eight will be read over and over if a program keeps taking values from the stack.
Similarly, there is no stack overflow in the sense of stack pointers allowing the stack to step on anything else. It is finite and if more than ten items are put there, only the last ten will remain; each store after the first ten will overwrite one of the S2 through S9 registers. There is no need to 'initialize' the stack to a preset location; one just declares it empty by starting to use it from wherever it is.
Figure 3 is an expanded view of each register within the data or return stack. Each 18 bit register comprises 18 latches, numbered 0 through 17. There is a set of 18 input pass gates (numbered 0 through 17), each of which selectively connects a respective one of the 18 latches to the write bus. There is also a set of 18 output pass gates (numbered 0 through 17), each of which selectively connects a respective one of the 18 latches to the read bus. The input pass gates are controlled by a write control signal asserted on the input control lines (write lines of Fig. 2) via the inverter amplifiers coupled to the input control lines, and the output pass gates are controlled by a read control signal asserted on the output control lines (read lines of Fig. 2) via the inverter amplifiers coupled to the output control lines.
Figure 4 discloses an 18-bit return stack according to the present invention. The top register in the return stack is an 18-bit R register, and eight additional 18-bit hardware registers are located below the R register, and are numbered here as Ri - Rg. The bottom eight registers, Rt — Re function in an alternating pattern as a repeating circular array, similar to the data stack disclosed above.
The circular register array, Ri - Rg can operate in the absence of the R register. However, the presence of the R register in combination with Ri - Re registers provides faster access circuitry and an optimum for timing, and therefore provides higher operating speed of the circular register array. In addition, the R register acts as a buffer between the Ri - Re addressable registers and the rest of the processor system, which provides independence of timing between the Ri - Rg registers and the rest of the processor system. This embodiment also comprises a bi-directional shift register which contains a plurality of one bit shift registers. The number of one bit shift registers is equal to the number of additional bottom registers, Ri through Rg located below the R register. Each one bit shift register is connected to its corresponding Ri through Rg bottom stack register as shown in Fig. 4. The one bit shift registers of the bi-directional shift register are electrically interconnected in an alternating pattern, such that the Ri through Rg registers of the stack function in the sequential circular interconnect pattern given by Ri — » R3 — »• R5 — » R7 — » Rg — ► Re — ► R4 → R2 → Ri as shown in Fig. 4. This sequential selection of registers operates in a circular repeating pattern. The interconnecting wires of the shift register never span more than three adjacent one bit shift registers, which avoids the need for a long wire connecting the bottom one bit shift register to the top one bit shift register. These shorter wires require a smaller driver, and buffering is also minimized. Although eight additional return registers are disclosed in the given embodiment, other bottom register combinations which are a multiple of four can also be used in the circular register array. A read bus and a write bus interconnect registers Ri — Rg. Each one bit register of the shift register is connected to a corresponding stack register within the Ri - Rg array. Only one bit of the shift register is on (reads as a one) at a time, while all other bits read as a zero. At power-up, the shift register must be initialized to contain exactly one bit set to one and all other bits set to zero. In the given example, the shift register top bit points or reads to Ri and writes to the interconnected adjacent register,
R3- In the instant invention, there is no hardware detection of stack overflow or underflow conditions. Generally, prior art processors use stack pointers and memory management, or the like, such that an error condition is flagged when a stack pointer goes out of the range of memory allocated for the stack. When the stacks are located or managed in memory, an overflow or underflow would overwrite a stack item or use a stack item as something other than what it was intended. However, because the present invention bottom registers function as a circular array, the stacks cannot overflow or underflow out of the stack area. Instead, the circular arrays will merely wrap around the array of registers. Because the stacks have finite depth, pushing anything to the top of a stack means something on the bottom is being overwritten. Pushing more than ten items to the data stack, or more than nine items to the return stack in the given embodiments must be done with the knowledge that doing so will result in the item at the bottom of the stack being overwritten.
It is the responsibility of software to keep track of the number of items on the stacks and not try to put more items there than the respective stacks can hold. The hardware will not detect an overwriting of items at the bottom of the stack or flag it as an error. It should be noted that the software can take advantage of the circular arrays at the bottom of the stacks in several ways. As one example, the software can simply assume that a stack is 'empty' at any time. There is no need to clear old items from the stack as they will be pushed down towards the bottom where they will be lost as the stack fills, so there is nothing to initialize for a program to assume that the stack is empty.
Another advantage which can be utilized is to reuse the register items without having to reload those items for reuse. The bottom eight items in these stacks can also be read or read and written in loops that take advantage of the stack wrap. After two data stack reads, T and S will have copies of two items from the circular array of the eight stack registers below. After eight more reads, T and S will be reloaded again with the same values read again from below using stack wrap. There is no limit to how many times those eight items can be read in sequence off of the stack without having to duplicate the items or write them back to the stack. Algorithms that cycle through a set of parameters that can repeat in eight, four, or two cells on the data or return stack can repeatedly read them from the stack as the bottom registers will just wrap, and if intentional is not a stack error.
Although the instant invention has been described in an embodiment for a data stack and return stack of a dual stack 18-bit processor, other bit size processors can be utilized with the present invention. The above described circular register arrays were described with respect to a single dual stack processor. However, multiple iterations of stack processors including the above described circular register arrays can be utilized in an array of self-contained computers, such as the computer array 10 shown in Fig. 5. The computer array 10 has a plurality (twenty four in the example shown) of computers 12 (sometimes also referred to as "cores" or "nodes" in the example of an array). In the example shown, all of the computers 12 are located on a single die 14. According to one embodiment of the present invention, each of the computers 12 is a generally independently functioning computer. The computers 12 are interconnected by a plurality of interconnecting data buses 16. In this example, the data buses 16 are bidirectional, asynchronous, high-speed parallel data buses, although it is within the scope of the invention that other interconnecting means might be employed for the purpose.
Computer 12e is an example of one of the computers 12 that is not on the periphery of the array 10. That is, computer 12e has four orthogonally adjacent computers 12a, 12b, 12c, and 12d. This grouping of computers 12a through 12e will be used, by way of example, hereinafter in relation to a more detailed discussion of the communications between the computers 12 of the array 10. As can be seen in the view of Fig.5, interior computers such as computer 12e will have four other computers 12 with which they can directly communicate via the buses 16. In the following discussion, the principles discussed will apply to all of the computers 12 except that the computers 12 on the periphery of the array 10 will be in direct communication with only three or, in the case of the corner computers 12, only two other of the computers 12.
Fig. 6 is a more detailed view of a portion of Fig. 5 showing only some of the computers 12 and, in particular, computers 12a through 12e, inclusive. The view of Fig. 6 also reveals that the data buses 16 each have a read line 18, a write line 20, and a plurality (eighteen, in this example) of data lines 22. The data lines 22 are capable of transferring all the bits of one eighteen-bit instruction word generally simultaneously in parallel.
According to the present inventive method, a computer 12, such as the computer 12e can set high one, two, three, or all four of its read lines 18 such that it is prepared to receive data from the respective one, two, three, or all four adjacent computers 12. Similarly, it is also possible for a computer 12 to set one, two, three, or all four of its write lines 20 high.
When one of the adjacent computers 12a, 12b, 12c, or 12d sets a write line 20 between itself and the computer 12e high, if the computer 12e has already set the corresponding read line 18 high, then a word is transferred from that computer 12a, 12b, 12c, or 12d to the computer 12e on the associated data lines 22. Then, the sending computer 12 will release the write line 20 and the receiving computer (12e in this example) pulls both the write line 20 and the read line 18 low. The latter action will acknowledge to the sending computer 12 that the data has been received. As shown in Fig. I5 in this embodiment of the invention, the computer 12 has four communication ports 38 for communicating with adjacent computers 12, as described above. The communication ports 38 are tri-state drivers, having an off status, a receive status (for driving signals into the computer 12) and a send status (for driving signals out of the computer 12). If the particular computer 12 is not on the interior of the array (Fig. 5) such as the example of computer 12e, then one or more of the communication ports 38 will not be used in that particular computer at least for the purposes described above. However, those communication ports 38 that do abut the edge of the die can have additional circuitry, either designed into such computer 12 or else external to the computer 12 but associated therewith, to cause such communication port 38 to act as an external FO port 39 (Fig. 5). Examples of such external I/O ports 39 include, but are not limited to, USB (universal serial bus) ports, RS232 serial bus ports, parallel communications ports, analog to digital and/or digital to analog conversion ports, and many other possible variations. In Fig. 5, an "edge" computer 12f is depicted with associated interface circuitry 80 for communicating through an external I/O port 39 with an external device 82.
Various modifications may be made to the invention without altering its value or scope. For example, while this invention has been described herein using particular computers 12, many or all of the inventive aspects are readily adaptable to other computer designs, other computer arrays, and the like. While aspects of the present invention have been disclosed primarily herein in relation to communications between computers 12 in an array 10 on a single die 14, the same principles and methods can be used, or modified for use, to accomplish other inter-device communications, such as communications between a computer 12 and its dedicated memory or between a computer 12 in an array 10 and an external device. Similarly, while the present invention has been disclosed herein for a dual stack processor, the present invention can also be practiced for a single stack processor or a processor comprising more than two stacks.
All of the above are only some of the examples of available embodiments of the present invention. Those skilled in the art will readily observe that numerous other modifications and alterations may be made without departing from the spirit and scope of the invention. Accordingly, the disclosure herein is not intended as limiting and the appended claims are to be interpreted as encompassing the entire scope of the invention.

Claims

We claim:
L A stack computer, comprising: memory for storing data and code; a processor for processing said data and code; and a plurality of hardware registers usable by said processor as a stack.
2. The computer of claim 1, wherein: the registers of said plurality of registers are accessed according to a predetermined repeating sequence in either a forward or reverse order.
3. The computer of claim 2, wherein: when said registers are accessed in said forward order a first one of said registers in said sequence is accessed after a last one of said registers in said sequence; and when said registers are accessed in said reverse direction said last one of said registers is accessed after said first one of said registers.
4. The computer of claim 1, further comprising: a bi-directional shift register including a plurality of single bit regsiters, the output of each single bit register being coupled to at least partially control access to an associated one of said registers, whereby said bi-directional shift register functions as a stack pointer by shifting a bit along said single bit registers.
5. The computer of claim 1, wherein: 'the a last one of said single bit registers is coupled to a first one of said single bit registers such that said single bit registers provide a circular path for said bit being shifted along said single bit registers.
6. A stack computer processor, comprising: a data stack, comprising at least one data register; and a return stack, comprising at least one return register; wherein: each of said data stack and said return stack can accommodate an 18 bit instruction word.
7. The processor of claim 6, wherein said at least one data register comprises a top of stack (T) register.
8. The processor of claim 7, wherein said at least one data register further comprises a second position on the stack (S) register.
9. The processor of claim 6, wherein said at least one return register comprises a top register (R).
10. The processor of claim 6, wherein said data stack further comprises an array of hardware registers.
11. The processor of claim 6, wherein said return stack further comprises an array of hardware registers.
12. The processor of claim 10, wherein said array functions in a circular pattern.
13. The processor of claim 11 , wherein said array functions in a circular pattern.
14. A method of manipulating a computer processor, comprising: inputting a plurality of instruction words into a corresponding plurality of instruction cells of said processor; and processing said plurality of instruction words, wherein: there is no overflow or underflow of instructions as a result of said inputting and said processing.
15. The method of claim 14, wherein said inputting comprises filling all available instruction cells.
16. The method of claim 15, wherein said inputting further comprises inputting additional instruction words after all available instruction cells have been filled.
17. The method of claim 16, wherein said inputting and said processing occur without using a software implemented pointer.
18. The method of claim 14, wherein said processing comprises repeatedly reusing said plurality of instruction words without reloading said plurality of instruction words.
19. A computer processor, comprising: an array of registers; and a shift register, wherein: said shift register comprises a plurality of one bit shift registers which are interconnected by electrical wires, and wherein said plurality of one bit shift registers is equal in number to a number of registers in said array of registers.
20. The processor of claim 19, further comprising at least one register positioned above said array of registers.
21. The processor of claim 19, wherein said array of registers further comprises a read bus and a write bus interconnecting said array.
22. The processor of claim 19, wherein said array of registers functions in a circular pattern.
23. The processor of claim 20, wherein said array of registers are stacked.
24. The processor of claim 23, wherein said one bit shift registers are interconnected by said electrical wires in an alternating pattern.
25. The processor of claim 19, wherein said processor is a data stack.
26. The processor of claim 25, wherein said array of registers comprises eight data registers.
27. The processor of claim 25, wherein said array of registers comprises a multiple of four data registers.
28. The processor of claim 14, wherein said processor is a return stack.
29. The processor of claim 28, wherein said array of registers comprises eight return registers.
30. The processor of claim 28, wherein said array of registers comprises a multiple of four return registers.
31. A computer processor, comprising: an array of registers; and a bi-directional shift register hardwired to said array of registers, further comprising a plurality of one bit shift registers which are interconnected by electrical wires, and wherein said plurality of one bit shift registers is equal in number to a number of registers in said array of registers.
32. The processor of claim 31, further comprising at least one register positioned above said array of registers.
33. The processor of claim 31, wherein said shift register functions as a hardware pointer to said array of registers.
34. The processor of claim 31, further comprising a read bus and a write bus.
35. The processor of claim 31 , wherein each of said plurality of one bit shift registers corresponds to an associated register of said array of registers.
36. The processor ofclaim 35, wherein only one shift register of said plurality of one bit shift registers is activated at one time.
37. The processor of claim 31 , wherein said array of registers further comprises a read bus and a write bus interconnecting said array.
38. The processor of claim 31 , wherein said plurality of one bit shift registers are interconnected by electrical wires such that a size of a driver and buffering are minimized.
39. The processor of claim 31 , wherein all of said electrical wires extend between a maximum of three adjacent one bit shift registers.
40. The processor of claim 39, wherein said array of registers comprises eight registers.
41. The processor of claim 31 , wherein said processor is a data stack.
42. The processor of claim 31 , wherein said processor is a return stack.
PCT/US2007/012539 2006-05-26 2007-05-25 Circular register arrays of a computer WO2007139964A2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009513215A JP2009538488A (en) 2006-05-26 2007-05-25 Computer circular register array

Applications Claiming Priority (10)

Application Number Priority Date Filing Date Title
US11/441,818 US7934075B2 (en) 2006-02-16 2006-05-26 Method and apparatus for monitoring inputs to an asyncrhonous, homogenous, reconfigurable computer array
US11/441,818 2006-05-26
US11/441,784 2006-05-26
US11/441,812 2006-05-26
US11/441,784 US7752422B2 (en) 2006-02-16 2006-05-26 Execution of instructions directly from input source
US11/441,812 US7913069B2 (en) 2006-02-16 2006-05-26 Processor and method for executing a program loop within an instruction word
US81808406P 2006-06-30 2006-06-30
US60/818,084 2006-06-30
US11/503,372 US7617383B2 (en) 2006-02-16 2006-08-11 Circular register arrays of a computer
US11/503,372 2006-08-11

Publications (2)

Publication Number Publication Date
WO2007139964A2 true WO2007139964A2 (en) 2007-12-06
WO2007139964A3 WO2007139964A3 (en) 2009-01-15

Family

ID=38779252

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US2007/012539 WO2007139964A2 (en) 2006-05-26 2007-05-25 Circular register arrays of a computer

Country Status (3)

Country Link
JP (1) JP2009538488A (en)
KR (1) KR20090019806A (en)
WO (1) WO2007139964A2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101831420B1 (en) 2015-07-09 2018-02-23 국민대학교산학협력단 combination generating system for emotional-lighting color connected with playing sound source, method for the same, and computer-readable recording medium for the same

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6449709B1 (en) * 1998-06-02 2002-09-10 Adaptec, Inc. Fast stack save and restore system and method
US6725361B1 (en) * 2000-06-16 2004-04-20 Transmeta Corporation Method and apparatus for emulating a floating point stack in a translation process

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5179734A (en) * 1984-03-02 1993-01-12 Texas Instruments Incorporated Threaded interpretive data processor
JPH06101235B2 (en) * 1986-02-18 1994-12-12 松下電子工業株式会社 Semiconductor integrated circuit device
JPS63161584A (en) * 1986-12-24 1988-07-05 Mitsubishi Electric Corp Semiconductor integrated circuit device
JPS63168748A (en) * 1987-01-07 1988-07-12 Matsushita Electric Ind Co Ltd Address control circuit
US4899307A (en) * 1987-04-10 1990-02-06 Tandem Computers Incorporated Stack with unary encoded stack pointer
DE10121745A1 (en) * 2001-05-04 2002-11-14 Systemonic Ag Method and arrangement for a stack with a memory divided into data groups with several elements

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6449709B1 (en) * 1998-06-02 2002-09-10 Adaptec, Inc. Fast stack save and restore system and method
US6725361B1 (en) * 2000-06-16 2004-04-20 Transmeta Corporation Method and apparatus for emulating a floating point stack in a translation process

Also Published As

Publication number Publication date
WO2007139964A3 (en) 2009-01-15
JP2009538488A (en) 2009-11-05
KR20090019806A (en) 2009-02-25

Similar Documents

Publication Publication Date Title
US7617383B2 (en) Circular register arrays of a computer
US5677864A (en) Intelligent memory architecture
US6519674B1 (en) Configuration bits layout
US8171281B2 (en) Microprocessor boot-up controller connected to a processor and NAND flash memory for controlling the boot-up of a computer device
US4674032A (en) High-performance pipelined stack with over-write protection
AU2001245761B2 (en) Enhanced memory algorithmic processor architecture for multiprocessor computer systems
EP0424618A2 (en) Input/output system
KR100346515B1 (en) Temporary pipeline register file for a superpipe lined superscalar processor
JPH05502125A (en) Microprocessor with last-in, first-out stack, microprocessor system, and method of operating a last-in, first-out stack
AU2001245761A1 (en) Enhanced memory algorithmic processor architecture for multiprocessor computer systems
EP0665998A1 (en) Microprocessor-based fpga
US20100023730A1 (en) Circular Register Arrays of a Computer
US5838934A (en) Host port interface
US7624209B1 (en) Method of and circuit for enabling variable latency data transfers
CN101313290B (en) Performing an N-bit write access to an MxN-bit-only peripheral
US5317750A (en) Microcontroller peripheral expansion bus for access to internal special function registers
US6230238B1 (en) Method and apparatus for accessing misaligned data from memory in an efficient manner
WO2007139964A2 (en) Circular register arrays of a computer
EP1607879A1 (en) Memory interleaving in a computer system
EP1821198A1 (en) Circular register arrays of a computer
JP2023533795A (en) Erasing register data
EP0020972B1 (en) Program controlled microprocessing apparatus
JPS62156742A (en) Data writing control system
CN101443731A (en) Circular register arrays of a computer
US7849255B2 (en) Pseudo-bidimensional randomly accessible memory using monodimensional sequentially-accessiblle memory structure

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 07777285

Country of ref document: EP

Kind code of ref document: A2

WWE Wipo information: entry into national phase

Ref document number: 200780017106.0

Country of ref document: CN

WWE Wipo information: entry into national phase

Ref document number: 1020087028864

Country of ref document: KR

WWE Wipo information: entry into national phase

Ref document number: 2009513215

Country of ref document: JP

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 07777285

Country of ref document: EP

Kind code of ref document: A2