Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
METHOD AND APPARATUS FOR CONSTRUCTING MULTIVALUED MICROPROCESSOR
Document Type and Number:
WIPO Patent Application WO/2017/160863
Kind Code:
A1
Abstract:
A multivalued microprocessor including a multivalued processing module having a plurality of multivalued processing units constructed with multivalued logic gates. The microprocessor also includes a multivalued register file having a plurality of registers, wherein the registers are constructed with multivalued memory cells. The multivalued microprocessors utilizes two memory modules constructed with multivalued memory cells: one for storing solely instructions and one for storing solely data. A plurality of multivalued buses transmit multivalued data between the processing module, the register file, and the memory modules. A methodology for designing multivalued circuits that are constructed with multivalued logic gates and memory cells. The designs of multivalued memory cells, multivalued tristate buffers, and multivalued decoders using multivalued logic gates.

Inventors:
CHOI CHEE HUNG BEN (US)
Application Number:
PCT/US2017/022339
Publication Date:
September 21, 2017
Filing Date:
March 14, 2017
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
LOUISIANA TECH RES CORP (US)
International Classes:
G06F9/00; G06F7/38; G06F9/44; G06F15/00
Foreign References:
US20060259744A12006-11-16
US20090300333A12009-12-03
US20090324247A12009-12-31
US20110010493A12011-01-13
US5130704A1992-07-14
US5751775A1998-05-12
Attorney, Agent or Firm:
FOSTER, Lance, A. et al. (US)
Download PDF:
Claims:
CLAIMS

1. A multivalued microprocessor comprising:

(a) a multivalued processing module including a plurality of multivalued processing units constructed with multivalued logic gates; and

(b) a multivalued register file including a plurality of registers, wherein the registers are constructed with multivalued memory cells;

(c) a multivalued instruction memory constructed with multivalued memory cells, the instruction memory configured to transmit an instruction to multiple decoders;

(d) a plurality of multivalued buses transmitting multivalued data between the processing module, the register file, and the instruction memory.

2. The multivalued processor according to claim 1, wherein the multivalued logic gates are configured to accept an n-value signal and generate an n-value output, where n > 2.

3. The multivalued processor according to claim 2, wherein n = 4.

4. The multivalued processor according to claim 1, wherein the plurality of multivalued processing units include at least a Not, an And, an Or, and an Add processing unit.

5. The multivalued microprocessor of claim 4, wherein a plurality of multivalued processing units further include at least three from the group consisting of: Move, Sub, Addi, Subi, Set, Seth, Store, Load, Movez, Movex, Movep, and Moven processing units.

6. The multivalued processor according to claim 1, wherein multivalued tristate buffers control data flow from the multivalued processing units to the multivalued buses.

7. The multivalued processor according to claim 6, wherein a tristate buffer with a control input is positioned between each processing unit and the bus to which the processing unit transmits data.

8. The multivalued processor according to claim 1, wherein one of the registers is a program counter transmitting to the instruction memory an address for a next instruction to be executed by the processing module.

9. The multivalued processor according to claim 1, wherein at least one processing unit includes n component gates for each n-valued input, each of the component gates is configured to output a high signal upon receiving an input signal level representing one of the n-values.

10. The multivalued processor according to claim 3, wherein each register has at least eight 4-valued digits.

11. The multivalued processor according to claim 10, wherein one of registers is a program counter which transmits an instruction address to the instruction memory.

12. The multivalued processor according to claim 11, wherein an instruction at the instruction address is transmitted to and executed by the processing module.

13. The multivalued processor according to claim 1, wherein the multivalued memory cells include (i) at least one multivalued AND logic gate, and (ii) at least one multivalued OR logic gate.

14. The multivalued processor according to claim 1, wherein decoding of the instruction generates an enable signal which enables an output of a processing unit to be transferred to a bus.

15. The multivalued processor according to claim 4, wherein an n-valued AND gate takes two or more n-valued inputs and produces one n-valued output which transmits a minimal value of all the inputs.

16. The multivalued processor according to claim 4, wherein an n-valued OR gate takes two or more n-valued inputs and produces one n-valued output that transmits a maximal value of all the inputs.

17. The multivalued processor according to claim 4, wherein an n-valued NOT gate takes an n-valued input and produces an n-valued output which transmits a value of (n-1) minus the input value.

18. The multivalued processor according to claim 13, wherein the multivalued memory cells comprise:

(a) a n-valued input D, two n-valued outputs Q and Q\ where Q' is NOT(Q);

(b) two n-valued OR gates, two n-valued AND gates, and a n-valued NOT gate; and

(c) wherein the output Q is equal to the output of AND(D, AND(OR(D, Q), OR(D, NOT(Q))).

19. The multivalued processor according to claim 2, wherein (i) the plurality of multivalued buses include at least two input buses transmitting multivalued input signals to the processing units and at least one output bus receiving a multivalued output signal from the processing units, and (ii) each bus include at least four multivalued wires.

20. The multivalued processor according to claim 19, wherein each bus has at least eight multivalued wires.

21. The multivalued processor according to claim 19, wherein each bus input bus receives a multi-digit value stored in a register.

22. The multivalued processor according to claim 19 or 20, wherein each wire on the input buses receives a multivalued digit from a register.

23. The multivalued processor according to claim 22, wherein the output bus transmits the output signal to the register file.

24. The multivalued processor according to claim 23, wherein each wire on the output bus is connected to a tristate buffer.

25. The multivalued processor according to claim 22, wherein each wire on the input buses has a tristate buffer connected between the register and the input bus.

26. The multivalued processor according to claim 12, wherein (i) a first decoder creates a first control signal from the instruction, (ii) a second decoder creates a second control signal from the instruction, and (iii) an output of the processing unit is transferred to a selected register in the register file based upon the first and second control signal.

27. The multivalued processor according to claim 26, wherein the instruction includes eight multivalued digits, wherein two digits represents an op-code, two digits represents a destination register, and two digits represents a first operand register.

28. The multivalued processor according to claim 27, wherein two multivalued digits in the instruction represent a second operand register.

29. A quaternary 4-valued microprocessor comprising:

(a) a 4-valued processing module including a plurality of 4-valued processing units constructed with 4-valued logic gates; and

(b) a 4-valued register file including a plurality of registers, wherein the registers are constructed with 4-valued memory cells;

(c) a 4-valued instruction memory constructed with multivalued memory cells, the instruction memory configured to transmitting an instruction to multiple decoders;

(d) a plurality of multivalued buses transmitting multivalued data between the processing module, the register file, and the instruction memory.

30. The 4-valued processor according to claim 29, wherein the 4-valued logic gates are configured to accept at least one 4-value signal and generate a 4-value output.

31. The 4- valued processor according to claim 29, wherein the plurality of 4-valued processing units include at least a Not, an And, an Or, and an Add processing unit.

32. The 4-valued microprocessor of claim 31, wherein a plurality of 4-valued processing units further include at least three from the group consisting of: Move, Sub, Addi, Subi, Set, Seth, Store, Load, Movez, Movex, Movep, and Moven processing units.

33. The 4-valued processor according to claim 29, wherein 4-valued tristate buffers control data flow from the 4-valued processing units to the 4-valued buses.

34. The 4-valued processor according to claim 33, wherein a tristate buffer with a control input is positioned between each processing unit and the bus to which the processing unit transmits data.

35. The 4-valued processor according to claim 29, wherein one of the registers is a program counter transmitting to the instruction memory an address for a next instruction to be executed by the processing module.

36. The 4-valued processor according to claim 29, wherein at least one processing unit includes n component gates for each n-valued input, each of the component gates is configured to output a high signal upon receiving an input signal level representing one of the n- values.

37. The 4-valued processor according to claim 29, each register has at least eight 4- valued digits.

38. The 4-valued processor according to claim 37, wherein one of registers is a program counter which transmits an instruction address to the instruction memory.

39. A multivalued tristate buffer for connecting multivalued wires to multivalued data buses comprising:

(a) an n-valued input, an n-valued output, and an enable signal;

(b) the n-valued input connected to n component gates Ci, where 0 < i < n-1;

(c) n AND gates ANDi, each ANDi gate having as inputs (i) an output of one of the component gate Ci, and (ii) the enable signal;

(d) n transistors Ti, each having a gate, drain, and source, where (i) an output of each of ANDi gate is connected to a gate of each transistor Ti, (ii) the drain of each transistor Ti is connected to a constant value from 0 to n-1, and (iii) all the sources are connected together to form the n-valued output. (e) wherein (i) when the enable signal is asserted, the output value is equal to the input value, and (ii) when the enable signal is not asserted, the input value is not transmitted to the output.

40. A multivalued decoder for translating m, n-valued multivalued input signals into control signals, where m is at least two, the decoder comprising:

(a) a set of n component gates for each m input signal;

(b) nm m-input multivalued AND gates, each AND gate connected to one component gate of each input signal;

(c) wherein the output of the AND gates forms the control signal.

41. A multivalued memory cell capable of storing n values comprising:

(a) a n-valued input D, two n-valued outputs Q and Q\ where Q' is NOT(Q);

(b) two n-valued OR gates, two n-valued AND gates, and a n-valued NOT gate; and

(c) wherein the output Q is equal to the output of AND(D, AND(OR(D, Q), OR(D, NOT(Q))).

42. A method of constructing a n-valued microprocessor where n is at least three, the method comprising the steps of:

(a) connecting with m-wire buses:

(i) a n-valued processing module including a plurality of n-valued processing units constructed with n-valued logic gates,

(ii) a n-valued register file including a plurality of registers, wherein the registers are constructed with n-valued memory cells, and

(iii) a n-valued instruction memory constructed with n-valued memory cells, the instruction memory configured to transmit an instruction to multiple decoders;

(b) transmitting an n-valued signal across each wire in the buses;

(c) wherein the processing units and the registers use component gates to determine which n-value is being transmitted across each wire.

43. The method of claim 42, wherein n=4 and m=8.

44. The method of claim 42, wherein each bus includes one wire for each memory cell within the registers.

45. The method of claim 42, wherein an instruction is transferred from the instruction memory to the processing module and the instruction includes at least eight 4-valued digits.

46. The method of claim 42, wherein tri-state buffers control the transmission of signals across at least one of the buses.

47. The method of claim 42, wherein (i) a first decoder creates a first control signal from the instruction, (ii) a second decoder creates a second control signal from the instruction, and (iii) an output of the processing unit is transferred to a selected register in the register file based upon the first and second control signal.

48. The method of claim 47, wherein the instruction includes eight multivalued digits, wherein two digits represents an op-code, two digits represents a destination register, and two digits represents a first operand register.

49. The method of claim 48, wherein two multivalued digits in the instruction represent a second operand register.

50. A method for constructing multivalued microprocessor comprising:

(a) Constructing multivalued processing units using multivalued logic gates connected with multivalued wires; and

(b) Constructing multivalued registers using multivalued memory cells that communicating with the multivalued processing units through multivalued buses.

51. The method of claim 50, further encoding data and instructions with multivalued (n- valued, where n > 2) codes, where an n- valued code uses 0, 1, 2..., n-1 digits.

52. The method of claim 50, further comprising a multivalued Instruction Memory constructed of multivalued memory cells for storing solely the multivalued codes of instructions.

53. The method of claim 50, further comprising a multivalued Data Storage constructed of multivalued memory cells for storing solely the multivalued data.

54. The method of claim 50, wherein a multivalued processing unit is constructed by connecting multivalued logic gates together with multivalued wires, including multivalued AND, OR, NOT, and Component gates.

55. The method of claim 50, wherein a multivalued (n- valued) wire (where n > 2) constructed to transmit any one of n numbers (coded from 0 to n-1) at any given time.

56. The multivalued processing unit of claim 54, wherein an n-valued AND gate takes two or more n-valued input wires and produces one n-valued output wire that transmits the minimal value of all the input wires.

57. The multivalued processing unit of claim 54, wherein an n-valued OR gate takes two or more n-valued input wires and produces one n-valued output wire that transmits the maximal value of all the input wires.

58. The multivalued processing unit of claim 54, wherein an n-valued NOT gate takes an n-valued input wire and produces an n-valued output wire that transmits the value of (n-1) minus the input value.

59. The multivalued processing unit of claim 54, wherein for an n-valued input x, there are n Component gates Ci(x) for 0 < i < n-1; a Component gate Ci(x) produces an output value n-1 whenever the input value of x is equal to i, otherwise it produces an output value 0.

60. The method of claim 50, wherein a multivalued register comprising a plurality of n-valued (where n>2) memory cells, each of which constructed to store any one of the n numbers (coded from 0 to n-1).

61. The method of claim 50, further comprising multivalued buses constructed to allow data flow between the multivalued processing units, the registers, the instruction memory, and the data storage.

62. A multivalued microprocessor comprising:

(c) Multivalued processing units constructed of multivalued logic gates connected with multivalued wires; and

(d) Multivalued registers constructed of multivalued memory cells, communicating with the multivalued processing units through multivalued buses.

63. The multivalued microprocessor of claim 62, further encoding data and instructions with multivalued (n-valued, where n > 2) codes, where an n-valued code uses 0, 1, 2..., n-1 digits.

64. The multivalued microprocessor of claim 62, further comprising a multivalued Instruction Memory constructed of multivalued memory cells for storing solely the multivalued codes of instructions.

65. The multivalued microprocessor of claim 62, further comprising a multivalued Data Storage constructed of multivalued memory cells for storing solely the multivalued data.

66. The multivalued microprocessor of claim 62, wherein a plurality of multivalued processing units executing a set of instructions including: Move (copy data), Not, And, Or, Add, Sub (subtract), Addi (add with immediate data), Subi (subtract with immediate data), Set (put data into register), Seth (set high), Store (from register to data storage), Load (from data storage to register), Movez (move if zero), Movex (move if not zero), Movep (move if positive), and Moven (move if negative).

67. The multivalued microprocessor of claim 62, wherein one multivalued processing unit is constructed to execute one instruction.

68. The multivalued microprocessor of claim 62, wherein a multivalued processing unit is constructed by connecting multivalued logic gates together with multivalued wires, including multivalued AND, OR, NOT, and Component gates.

69. The multivalued processing unit of claim 68, wherein an n-valued wire (where n > 2) can transmit any one of n numbers (coded from 0 to n-1) at any given time.

70. The multivalued processing unit of claim 68, wherein an n-valued AND gate takes two or more n-valued input wires and produces one n-valued output wire that transmits the minimal value of all the input wires.

71. The multivalued processing unit of claim 68, wherein an n-valued OR gate takes two or more n-valued input wires and produces one n-valued output wire that transmits the maximal value of all the input wires.

72. The multivalued processing unit of claim 68, wherein an n-valued NOT gate takes an n-valued input wire and produces an n-valued output wire that transmits the value of (n-1) minus the input value.

73. The multivalued processing unit of claim 68, wherein for an n-valued input x, there are n Component gates Ci(x) for 0 < i < n-1; a Component gate Ci(x) produces an output value n-1 whenever the input value of x is equal to i, otherwise it produces an output value 0.

74. The multivalued microprocessor of claim 62, wherein the multivalued registers including a Program Counter and allowing every instructions (except Store) to write into the Program Counter for enabling every one of the instructions to function as a jump operation.

75. The multivalued microprocessor of claim 62, wherein a multivalued register comprising a plurality of n-valued (where n>2) memory cells, each of which, at any given time, can store any one of the n numbers (coded from 0 to n-1).

76. The multivalued microprocessor of claim 62, further comprising multivalued buses for allowing data flow between the multivalued processing units, the registers, the instruction memory, and the data storage.

77. The multivalued microprocessor of claim 62, wherein a multivalued bus consisting m (where m>l) n-valued wires (where n>2), capable of transmitting one of nAm (n to power m) possible numbers at any given time.

78. The multivalued microprocessor of claim 62, further comprising multivalued Tristate Buffers for controlling data flow through the multivalued buses.

79. The multivalued microprocessor of claim 62, further comprising multivalued Decoders for translating the multivalued codes of an instruction into control signals.

80. The multivalued microprocessor of claim 62, further comprising a multivalued control circuit for selectively enabling to write the results of an instruction into a register.

81. The multivalued microprocessor of claim 62, wherein the microprocessor is a quaternary (4-valued) microprocessor comprising:

(e) Quaternary processing units constructed of quaternary logic gates connected with quaternary wires; and

(f) Quaternary registers constructed of quaternary memory cells, communicating with the quaternary processing units through quaternary buses.

82. The quaternary microprocessor of claim 81, further encoding data and instructions with quaternary numbers (four-valued codes), where a quaternary number uses the digits 0, 1, 2, 3 to represent the four values.

83. The quaternary microprocessor of claim 81, further comprising a quaternary Instruction Memory constructed of quaternary memory cells for storing solely the quaternary codes of instructions.

84. The quaternary microprocessor of claim 81, further comprising a quaternary Data Storage constructed of quaternary memory cells for storing solely the quaternary data.

85. The quaternary microprocessor of claim 81, wherein a plurality of quaternary processing units executing a set of instructions including: Move (copy data), Not, And, Or, Add, Sub (subtract), Addi (add with immediate data), Subi (subtract with immediate data), Set (put data into register), Seth (set high), Store (from register to data storage), Load (from data storage to register), Movez (move if zero), Movex (move if not zero), Movep (move if positive), and Moven (move if negative).

86. The quaternary microprocessor of claim 81, wherein one quaternary processing unit is constructed to execute one instruction.

87. The quaternary microprocessor of claim 81, wherein a quaternary processing unit is constructed by connecting quaternary logic gates together with quaternary wires, including quaternary AND, OR, NOT, and Component gates.

88. The quaternary processing unit of claim 87, wherein a quaternary wire can transmit any one of four numbers (0, 1, 2, 3) at any given time.

89. The quaternary processing unit of claim 87, wherein a quaternary AND gate takes two or more quaternary input wires and produces one quaternary output wire that transmits the minimal value of all the input wires.

90. The quaternary processing unit of claim 87, wherein a quaternary OR gate takes two or more quaternary input wires and produces one quaternary output wire that transmits the maximal value of all the input wires.

91. The quaternary processing unit of claim 87, wherein a quaternary NOT gate takes a quaternary input wire and produces a quaternary output wire that transmits the value of 3 minus the input value.

92. The quaternary processing unit of claim 87, wherein for a quaternary input x, there are 4 Component gates C0(x), Cl(x), C2(x), C3(x); a Component gate Ci(x) produces an output value 3 whenever the input value of x is equal to i, otherwise it produces an output value 0.

93. The quaternary microprocessor of claim 81, wherein the quaternary registers including a Program Counter and allowing every instructions (except Store) to write into the Program Counter for enabling every one of the instructions to function as a jump operation.

94. The quaternary microprocessor of claim 81, wherein a quaternary register comprising a plurality of quaternary memory cells, each of which, at any given time, can store any one of the 4 numbers (0, 1, 2, 3).

95. The quaternary microprocessor of claim 81, further comprising quaternary buses for allowing data flow between the quaternary processing units, the registers, the instruction memory, and the data storage.

96. The quaternary microprocessor of claim 81, wherein a quaternary bus consisting m (where m>l) quaternary wires, capable of transmitting one of 4Am (4 to power m) possible numbers at any given time.

97. The quaternary microprocessor of claim 81, further comprising quaternary Tristate Buffers for controlling data flow through the quaternary buses.

98. The quaternary microprocessor of claim 81, further comprising quaternary Decoders for translating the quaternary codes of an instruction into control signals.

99. The quaternary microprocessor of claim 81, further comprising a quaternary control circuit for selectively enabling to write the results of an instruction into a register.

100. A method for constructing a multivalued circuit to implement a n- valued function comprising the steps of:

(a) Creating a table to define the input/output relations of the n-valued function;

(b) Connecting each multivalued input x (from step a) to n multivalued Component gates Ci(x) for 0 < i < n-1;

(c) For each output value greater than zero as defined by the table (from step a), connecting the inputs of a multivalued AND gate to the corresponding outputs of the Component gates in order to produce the required output value; and

(d) Connecting the outputs of all the multivalued AND gates (from step c) to a multivalued OR gate that produces the final multivalued output of the n-valued function.

101. A method for constructing a multivalued circuit of claim 100, wherein for an n- valued input x, there are n Component gates Ci(x) for 0 < i < n-1; a Component gate Ci(x) produces an output value n-1 whenever the input value of x is equal to i, otherwise it produces an output value 0.

102. A method for constructing a multivalued circuit of claim 100, wherein a multivalued AND gate takes two or more inputs and produces one output that is the minimal value of all the inputs.

103. A method for constructing a multivalued circuit of claim 100, wherein the step (c) is further defined as AND(Cx0(A0), Cxl(Al), Cxm-l(Am-l), e), where inputs A0,Al,...,Am-l having values x0,xl,...,xm-l that produce an output value e, where e > 0.

104. A method for constructing a multivalued circuit of claim 100, wherein a multivalued OR gate takes two or more inputs and produces one output that is the maximal value of all the inputs.

105. A multivalued memory cell capable of storing any values comprising:

(a) an input D, two output Q and Q', where Q' is NOT(Q);

(b) two multivalued OR gates, two multivalued AND gates, and a multivalued NOT gate; and

(c) wherein the output Q is equal to the output of AND(D, AND(OR(D, Q), OR(D, NOT(Q))).

106. A multivalued memory cell of claim 105, wherein a multivalued AND gate takes two inputs and produces one output that is the minimal value of the inputs.

107. A multivalued memory cell of claim 105, wherein a multivalued OR gate takes two inputs and produces one output that is the maximal value of the inputs.

108. A multivalued memory cell of claim 105, wherein an n-valued NOT gate takes one input value x and produces one output that is the value of (n-l)-x.

109. A multivalued memory cell of claim 105 including a quaternary memory cell capable of storing four values comprising:

(d) An input D, two output Q and Q\ where Q' is NOT(Q).

(e) Constructed using two quaternary OR gates, two quaternary AND gates, and a quaternary NOT gate.

(f) The output Q is equal to the output of AND(D, AND(OR(D, Q), OR(D, NOT(Q)))

110. A multivalued tristate buffer for connecting multivalued wires to multivalued data buses comprising:

(a) A multivalued input, a multivalued output, and an enable signal.

(b) When the enable signal is asserted, the output value is equal to the input value, while the enable signal is not asserted, the output is in effect not connected to the input.

(c) An n-valued input is connected to n Component gates, the output of each of the Component gates is AND with the enable signal, the output of each of the AND gates is then used to turn on or off a transistor (acting as switch), each of the transistors is connected to a constant value from 0 to n-1, where Component gate Ci(x) is associated with the transistor connecting to constant value i, for 0 < i < n-1.

111. A multivalued tristate buffer of claim 1 10, wherein for an n- valued input x, there are n Component gates Ci(x) for 0 < i < n-1; a Component gate Ci(x) produces an output value n-1 whenever the input value of x is equal to i, otherwise it produces an output value 0.

112. A multivalued tristate buffer of claim 110 including a quaternary tristate buffer for connecting quaternary wires to quaternary data buses comprising:

(d) A quaternary input, a quaternary output, and an enable signal.

(e) When the enable signal is asserted, the output value is equal to the input value, while the enable signal is not asserted, the output is in effect not connected to the input.

(f) An quaternary input is connected to 4 Component gates, the output of each of the Component gates is AND with the enable signal, the output of each of the AND gates is then used to turn on or off a transistor (acting as switch), each of the transistors is connected to one of the constant values (0, 1, 2, 3), where Component gate C0(x), Cl(x), C2(x), C3(x) is associated with the transistor connecting to constant value 0, 1, 2, 3.

113. A multivalued decoder for translating multivalued inputs into control signals comprising:

(a) Two or more multivalued inputs, each of the n-valued inputs is connected to a set n Component gates, where for m inputs, there are m sets of Component gates.

(b) A control signal Gi is the output of an AND gate that connected to m corresponding output of the Component gates to product the value i.

114. A multivalued decoder of claim 113, wherein for an n-valued input x, there are n Component gates Ci(x) for 0 < i < n-1; a Component gate Ci(x) produces an output value n-1 whenever the input value of x is equal to i, otherwise it produces an output value 0.

115. A multivalued decoder of claim 113, wherein for m inputs, each input consists of n values, there are nAm (n to power m) control signal Gi, where 0 < i < n^-l . For inputs A0,Al,...,Am-l having values x0,xl,...xm-l, an output Gi is the result of AND(x0,x 1 , ... ,xra- 1 ), where xO+x 1 + ... +xm- 1 = i .

116. A multivalued decoder of claim 113 including a quaternary decoder for translating quaternary inputs into control signals comprising:

(c) Two or more quaternary inputs, each of the quaternary inputs is connected to a set 4 Component gates, where for m inputs, there are m sets of Component gates.

(d) A control signal Gi is the output of an AND gate that connected to m corresponding output of the Component gates to product the value i.

Description:
Method and Apparatus for Constructing Multivalued Microprocessor Field of the Invention

[001] This invention relates to the fields of computer architecture, microprocessor design, multivalued logic circuits and memory, and digital design.

Background of Invention

[002] The performance of current computers is reaching their limit. Almost all present day computers are built based on two-valued logic. In two-valued logic, each wire can have two states. The performance of current computer depend primarily on how quickly the states can be changed, which determines the clock speed. During the past decades, the clock speed for CPU had doubled almost every year. In recent years, the clock speed doubled every 18 months. Now, it has become progressively more difficult to increase the clock speed. The limit is approaching. Recently, CPU manufacturers have tried to circumvent the limitation of clock speed by packing ever more "cores" into a chip, which has resulted in dual-core or quad-core CPUs. However, this multi-core approach does not greatly improve the performance. This is due in part to a limit on the amount of data that can be transferred between the CPU and its connected components, which is in turn determined by the number of pins on the CPU. Using two-value logic, each pin on the CPU can have at most two states, and again the amount of data that can be transferred is determined by the clock speed. Thus, the multi-core approach does not circumvent the limitation.

[003] Thus, there is a need for an innovative approach in order to push the speed limit of computing. Advancing from two-valued to 4-valued (also sometimes referred to as "quaternary") logic provides an progressive approach. Four symbols {0, 1, 2, 3} are needed to distinguish the four values, as shown in Table 1.

Table 1. Representations of a 4-valued Variable

[004] The four values may represent any four things, such as the four bases {A, T, C, G} found in DNA, or the probability {0, 1/3, 2/3, 1 }. These four values can be converted to binary numbers {00, 01, 10, 11 }, or they can simply represent integers or digits {0, 1, 2, 3}. The four values could obviously be implemented with four voltage levels, e.g., {0V, 5V, 10V, 15V}.

[005] To fully exploit the multivalued computational paradigm, it is advantageous to start from the ground up by designing components needed for constructing multivalued logic circuits. For example, each 4-valued logic gate will operate upon two bits of data at a time, and each memory cell will record two bits at once. With this design, each wire or CPU pin can have four states, which could double the amount of data that can be transferred between the CPU and its connected components without increasing the number of pins on the CPU. With eight-valued logic, each logic gate operates three bits of data and each CPU pin carries three bits of data at a time. Thus, the n- value logic described herein contemplates n values of 4, 8, 16, 32, 64, etc. The extreme case will be the infinite- valued logic.

[006] The approach for using multivalued logic is currently being employed in building higher capacity flash memory. The industry is pushing to allow each memory cell to store not just one bit, but two bits, three bits, and even four bits. The prior arts includes United States patents 5017817, 5227993, 5398199, 5438533, 5463573, 5467298, 5644253, 5773996, 5867423, 5973960, 6133754, 6218713, 7979627, 8064253, and 8120384.

Summary of Invention

[007] One aspect of this invention provides methods and apparatuses to increase the speed of computation by creating new types of computers that are capable of working on multiple values. This concept exploits the multivalued computation in hardware by using fundamental building blocks of multivalued logic circuits: multivalued logic gates, memory cells, and flip-flops. To make multivalued computation possible, the below described embodiments provide the necessary methods and tools for designing and building multivalued computers entirely within the domain of multivalued logic. The process is to design a multivalued microprocessor based entirely on multivalued circuits and then to use the microprocessors to build multivalued computers. Another aspect of this invention provides a method for designing multivalued microprocessors, by providing the overall architecture, defining the instruction set, providing designs of the processing units, the registers, and the control units. To implement these designs in hardware, the designs of multivalued memory cells, tristate buffers, and decoders are also provided. To build multivalued computers using multivalued logic gates and memory, further embodiments provide a methodology for designing any multivalued circuit to implement any multivalued function. The design of an adder for adding two four- valued numbers is provided to illustrate the methodology.

Brief Description of Drawings

[008] Figure 1 illustrates one embodiment of a high-level design of a multivalued microprocessor.

[009] Figure 2 illustrates one embodiment of a processing module connecting multivalued processing units to multivalued buses.

[0010] Figure 3 illustrates one embodiment of a 16-bit AND Operation Using 4- valued Logic Circuits.

[0011] Figure 4 illustrates one embodiment of a 16-bit MOVEZ Operation Using 4- valued Logic Circuits.

[0012] Figure 5 illustrates one embodiment of a 4-valued Adder Circuit for Building Arithmetic Operations.

[0013] Figure 6 illustrates one embodiment of a register file connecting multivalued registers to multivalued buses.

[0014] Figure 7 illustrates one embodiment of a multivalued memory cell using multivalued logic gates.

[0015] Figure 8 illustrates one embodiment of a 4-valued tristate buffer.

[0016] Figure 9 illustrates one embodiment of a decoder from two 4-valued wires to 16 control signals.

[0017] Figure 10 illustrates one embodiment of a control circuit to enable writing to registers.

[0018] Figure 11 illustrates one embodiment of 4-valued Component gates. [0019] Figure 12 illustrates one embodiment of aN-input 4-valued AND gate.

[0020] Figure 13 illustrates one embodiment of aN-input 4-valued OR gate.

[0021] Figure 14 illustrates one embodiment of a 4-valued NOT gate.

[0022] Figure 15 illustrates one embodiment of a sample program for multiplication.

Detailed Description of Selected Embodiments

[0023] The process for designing and building multivalued computers includes a process for designing and building multivalued microprocessors. After construction of multivalued microprocessors, multivalued computers may then constructed by combining one or multiple multivalued microprocessors. Thus, the description of one embodiment will focus on constructing multivalued microprocessors. The description starts by providing the high-level design of the multivalued microprocessor, highlighting the overall architecture, and defining the instruction set. The description continues with the design of the multivalued processing units and then provides a methodology for designing any multivalued circuit. To illustrate the methodology, a multivalued circuit for adding two multivalued numbers is disclosed. The description further illustrates the design of one example of a multivalued memory cell that is used in the design of multivalued registers. The description then provides one example design of a 4-valued tristate buffer and a decoder that are used for the design of a control circuit. The description concludes with an example of certain programming aspects of the microprocessor.

[0024] The high-level architecture of one embodiment of the multivalued microprocessor 1 is shown in Figure 1, which highlights the major components of the computational model. The processor includes the register file 4 having 16 registers 5 (R0, Rl, .... R14, PC) for storing multivalued data that are encoded with n digits (where n>2). The register PC is the program counter of the processor. As explained in more detail below, one advantageous feature of this design is that the program counter can be read or written to by any instruction. The processor consists of at least one processing module 2 for preforming computations on the multivalued data. A processing module includes at least one processing unit. In an embodiment where there is a single processing module 2 having one single processing unit, the processing module may be considered analogous to an Arithmetic Logic Unit (ALU). In other embodiments where there are multiple processing modules and multiple register files, the embodiments are analogous to a multi- core processor. Another advantageous feature of the illustrated embodiment is that the processor comprises of two separated memory modules: the instruction memory module 9 stores solely instructions, while the data storage module 8 stores solely data. The memory modules are separate in the sense of transferring data independently to and from the processing module through separate buses. However, other embodiments could combine the instruction memory and the data storage on the same module. The illustrated instruction memory module 9 can be built with nonvolatile memory (such as flash memory) that allows the instructions to be pre-loaded. As show in Figure 1, the microprocessor includes various multivalued buses (labeled A, B, C, and so on), which in the Figure 1 embodiment, each have m n-valued wires, and connect the major components for allowing information to be transferred between the components or modules. A multivalued signal (e.g., 4-valued in this example) may sometimes be referred to as a multi-valued digit (i.e., a "digit" representing either 0, 1, 2, 3). A bus formed of m wires (e.g., eight), with each wire carrying a multivalued signal, may sometimes be referred to as a multi-digit bus or multi-wire bus.

[0025] The process of preforming one computation specified by one instruction is outlined as follows. The program counter (PC) register contains the address of the instruction to be executed. First, this address is passed to the instruction memory 9 through the F bus (as shown in Figure 1). The instruction memory 9 retrieves the instruction and outputs it on the C bus. Second, the wires of the C bus act as the control signals which are passed to various decoders (DEC) that decode the instruction to select which registers and which processing units 13 (described below) are to be used to perform the instruction. Third, the processing module 2 receives the data from the selected registers through A, B, and D buses, performs the computation, and sends the result through D bus to be stored in the destination register. Fourth, a control circuit sends enable signals through E bus to determine whether to write the result into the registers and into which register to write. The final step is to update the contents of the program counter (PC), which will increase by one if it is not updated by the instruction. Any instructions written into the program counter (PC) will function as a Jump statement (as described below).

[0026] The microprocessor can be built to perform any number of instructions. In the illustrated embodiment, a simple instruction set is defined. For this design, the microprocessor can perform 16 instructions that are defined as shown in Table 2.

Table 2. Instruction Formats and Definitions using 4-valued Codes

[0027] The first instruction is the Move (Rd, Ra) operation that implements Rd = Ra, where Rd is one of the 16 registers for storing the result of the operation, and Ra is anyone of the 16 registers. For example, Move (R2, Rl) will results in R2 = Rl (the contents of register R2 is replaced by the contents of Rl). Sometimes Rd will be referred to as the "destination register" (the register where the results of the operation are stored) and Ra will be referred to as the "operand register" (the source of the number being operated upon). The Move operation has one operand register while operations like Add have two operand registers. The Not, And, Or functions are logic operations. The Add, Sub, Addi, and Subi functions are arithmetic operations. For instance, Add(R3, R2, Rl) will results in R3 = R2 + Rl, while Subi(R3, Rl, 5) will results in R3 = Rl - 5. The Set and Seth put a constant value into a register. For example, Set(R3, v4) puts the value v4 into R3. In the embodiment where each register can store eight 4-valued numbers, Set(R3, v4) puts 4 zeros on the "left" or 'high' part of the R3 register and the four 4- valued numbers v4 on "right" or "low" part of the R3 register. Seth(R3, v4) puts into R3 the four 4-valued numbers v4 on the high part of the register and leaves the low part unchanged. The Store and Load functions transfer data between registers and the Data Storage module. The Movez, Movex, Movep, and Moven functions are conditional move statements. For instance, Movez(R5, R7, R9) will results in R5 = R7 only if R9 is zero, otherwise R5 remains unchanged.

[0028] As suggested above, an advantageous feature of this microprocessor is that anyone of these 16 instructions can write into the program counter PC and thus can function as a Jump statement. For example, Move(PC, Rl) will jump to the address specified by Rl, while Movz( PC, Rl, R2) will jump only if R2 is zero (a conditional jump), and Addi( PC, PC, 8) will function as a relative jump for jumping forward.

[0029] Each of the instructions is encoded with 4-valued numbers (0,1,2,3). The 16 operation codes (op-code) is encoded with two 4-valued numbers as show in Table 2. The 16 registers are also referred to with two 4-valued numbers. For instance, Add(R3, R2, Rl) is coded with 02 03 02 01, where the leftmost 02 is the op-code for Add, the 03 refers to register R3, the 02 to R2, and the 01 to Rl. Thus, only 8 of the 4-valued digits are needed to encode one instruction. [0030] The computational model and the instructions described above will serve as a prototype for the design and the implementation of a microprocessor using multivalued circuits. As previously suggested, one major advantage of using multivalued circuits to implement a microprocessor (or a computer) is to reduce the number of wires and components, as will be described in the following sections.

Designing Multivalued Processing Units

[0031] This section realizes the design of a microprocessor, and more specifically the processing module 2, by using multivalued circuits. The design begins by implementing the multivalued processing units 13. As shown in Figure 2, one example embodiment of the processing module is formed of 16 multivalued processing units 13, each of which implements the operation of one instruction. The processing units 13 take input data from the A, B, C, D(in), and SData multivalued buses, execute the specified operations, and pass the results to the D(out), SData, and SAddr output buses through multivalued tristate buffers 15. There are 16 control signals (GO, Gl, ... G15) which enable the tristate buffers and are used to select the results of which processing unit should be available on the output bus based on which instruction is being executed. The control signals and the tristate buffers are discussed in more detail further below.

[0032] For the example embodiment of the multivalued microprocessor described herein, the implementation of the processing units 13 will be done by using 4-valued logic circuits, although 16-valued logic circuits would also be well suited (or potentially even greater-valued logic circuits). Each of the processing units 13 in this example will be implemented by using 4-valued logic circuits: each (4-valued) wire can carry 2 bits of data at any given time (4 states) and each (4-valued) logic gate can operate on 2 bits of data at a time. For instance, the design of the AND processing unit 13 is shown in Figure 3. The AND operation takes 8 wires (realizing 16 bits) as input from A bus and 8 wires as input from B bus; performs the digit- wise AND operation using 8 4-valued AND gates 14; and outputs the results using 8 wires as bus D (realizing 16 bits outputs). In this case, the number of wires and gates is reduced by 50% in comparison to conventional digital microprocessors. In general, an n-valued AND gate will take two or more n-valued inputs and produce one n-valued output which transmits the minimal value of all the inputs. Thus, each of the 4- value AND gates 14 in Figure 3 will transmit the lesser of Aij or Bij as the output Di . The subscripts i and j indicate the bit positions represented by that number, e.g., A3 ,2 indicates the bit 3 and bit 2 of the 16-bit representation of A.

[0033] The OR and NOT processing units can be implemented using the same method as outlined for the AND processing unit. An n-valued OR gate takes two or more n-valued input wires and produces one n-valued output wire that transmits the maximal value of all the input wires. Likewise, a n-valued NOT gate takes an n-valued input wire and produces an n-valued output wire that transmits the value of (n-1) minus the input value.

[0034] Figure 12 illustrates one embodiment for an N-input, n-value AND gate where n=4. The left-most portion of the circuit includes three (n-1) banks 30 of transistors, with each bank 30 receiving as inputs all of the N signals. There are N p-type transistors connected in parallel (on top part) and N n-type transistors connected in serial (on bottom part). This bank 30 of N+N transistors performs the function of a NAND operation. Those banks 31 with one p-type and one n-type transistors performs the function of a NOT operation. Those banks 32 with transistors connected in serial on top part and transistors connected in parallel on the bottom part perform the function of a NOR operation. The drains of the right-most transistors are shown connected to 6V, 4V, 2V which will represent the values 3, 2, and 1 respectively. As suggested above, the lowest value of the N inputs will bias the appropriate one of the right-most transistors to provide the circuit output.

[0035] Figure 13 shows one embodiment of an N-input, 4-value OR gate. Similar to the AND gate in Figure 12, the OR gate's N input signals are process by the NOR banks 32 of transistors, the NOT banks 31 of transistors, and the NAND banks 30 of transistors. In this case, the highest value of the N inputs will bias the appropriate one of the right most transistors. The NOT gate embodiment shown in Figure 14 also utilizes p-type transistor and n-type transistor (although different symbols are used in the figure). Each of the transistor pairs performs the NOT operation. The supply voltages of each of the NOT pairs are chosen to gradually change the input voltage into the final output voltage. Of course, multivalued logic gates could be formed from circuits other than those seen in Figures 12-14. For example, other multivalued AND and OR circuits are disclosed in (1) Ascia, G.; Catania, V.; Russo, M.; "VLSI hardware architecture for complex fuzzy systems" IEEE Transaction on Fuzzy systems", vol. 7, issue 5, Oct 1999, p 553-570; and (2) Catania, V.; Puliafito, A.; Russo, M.; Vita, L.; "A VLSI fuzzy inference processor based on a discrete analog approach," IEEE Transactions on Fuzzy Systems, vol. 2, Issue 2, May 1994, p 93-106, both of which are incorporated by reference herein.

[0036] The MOVE, SET, SETH, STORE, and LOAD processing units are primarily composed of a set of wires for transferring specific digits from the input to the output of the processing units (see Figure 4). The MOVEN, MOVEP, MOVEX, and MOVEZ also contains logic gates for checking the enabling conditions. For instance, the design to implement the MOVEZ(Rd,Ra,Rb) operation is shown in Figure 4. This operation copies data from A bus to D bus when B is equal to zero. Since each of the 4-valued wire carries 2 bits, only 8 multivalued wires are needed to carry the 16-bit data. This circuit produces a conditional signal Z that is used for the control circuit (described later in Figure 10). The condition of B being zero (the signal Z) is determined by inputting to OR gate 17 the eight wires of bus B and the output of the OR gate being fed to the NOT gate 18. The output of the NOT gate is Z, which is used in the control circuit (described later in Figure 10) to determine whether to write the results into a register. If Z is True, the results (from the D bus) will be written into a register, while if it is False, the results will not be written into any register.

[0037] The remaining processing units, ADD, SUB, ADDI, and SUBI, all require the function of adding two numbers. For instance, SUB (A - B) is implemented as A + (-B). These processing units may be implemented using a general methodology for designing multivalued circuits as described in the following.

A General Method for Designing any Multivalued Circuits

[0038] This disclosure further provides a general method for designing any multivalued circuit. It has been shown mathematically that any multivalued function can be decomposed into three types of basic operations. Epstein, George, "The Lattice Theory of Post Algebras", Transactions of the American Mathematical Society, Vol. 95, No. 2, pp. 300-317, May, 1960, which is incorporated by reference herein in its entirety. For designing multivalued circuits, three types of multivalued logic gates ("Component gates," AND gates, and OR gates) are combined to form the required circuit. [0039] A Component gate takes one input and produce one output. For a n-valued input x, there are n component gates Ci(x) for 0 < i < n-1. The Ci(x) gate produces an output n- 1 (also sometimes referred to as "high" or "true") whenever x is equal to i, otherwise it produces an output 0 (also sometimes referred to as "low" or "false"). For example, if a 4-valued input x is equal to 2, then the Component gates would output C0(x)=0, Cl(x)=0, C2(x)=3, and C3(x)=0.

[0040] Figure 11 illustrates a series of transistor-based circuits which may function as one embodiment of the Component gates, CO, CI, C2, and C3. When the CO gate receives the multivalued input, the five pairs (p-type and n-type) of NOT function blocks gradually change the input voltage into the required output voltage. Similarly, CI, C2, and C3 gates utilize multiple NOT function blocks having different supply voltage to gradually convert the input voltage into the require voltage. An alternative type of component gate is disclosed in Figures 5-7 of US Patent No. 5,227,993 to Yamakawa, which is incorporated by reference herein in its entirety. As referenced above, a multivalued AND gate takes two or more inputs and produce one output that is the minimal value of the inputs. A multivalued OR gate takes two or more inputs and produce one output that is the maximal value of the inputs.

[0041] The methodology can be used to design any multivalued circuit, although the design of a 4-valued adder is provided to illustrate the method. The following outlines a four-step process for designing multivalued circuits to implement any multivalued in- valued) function. The four steps are: (1) Creating a truth table to define the function; (2) Connecting each input x to n Component gates; (3) Creating an AND gate for each output instance having a value > 0; and (4) Connecting the outputs of all the AND gates to an OR gate, which produces the final outputs of the required function. These 4 steps are described in more details in the following:

[0042] Step 1. Truth Table: Creating a truth table to define the multivalued functions

For illustrating the method, this description provides the design for an adder which adds two 4-valued numbers A, B. First, a truth table is created to define the required functions, as shown in Table 3. Table 3. Table Defining a 4- valued Adder

All possible input combinations are shown in column A and B. The results of the addition is encoded by two outputs K and S, where K stands for carry and S stands for sum, and the total value is 4K+S. The column K defines the function required to produce K as output, and the column S defines the function required to produce S as output. Figure 5 illustrates a multivalued circuit corresponding to the truth table. The steps below show how the number and connection of the gates are derived. The input 1 in Figure 5 provides logical 1 value, while the input 2 provides the logical 2 value. The gates indicated by "m" are 4-valued AND gates and the gates indicated by "M" are 4-valued OR gates.

[0043] Step 2. Component gates: Connecting each input x to n Component gates Ci(x) for 0 < i < n-l.

Continuing the above example of designing an adder, the adder has two inputs, A and B. The input A is connected to 4 Ci(A) gates: C0(A), C1(A), C2(A), C3(A)

Similarly, input B is connected to 4 Ci(B) gates:

C0(B), C1(B), C2(B), C3(B)

The result of these connections is shown in Figure 5.

[0044] Step 3. AND gates: Creating an AND gate for each output instance (in the output columns of the table from Step 1) "e" having a value > 0.

For each input instance ΑΟ,ΑΙ,... Am-1 = χθ,χΐ,...xm-1 that produces an output e > 0, an AND gate is created connecting:

Cx0(A0) Cxl(Al)-...- Cxm-l(Am-l)-e

For e = en-1, there is no need to connect the AND gate to e, which is the results of simplification based on the postulate that is en-1 · A = A, e.g., in 4- alued context, the value 3 "anded" to any value x will equal x.

[0045] Continuing the example of designing an adder, for the function that produces S as output (in the S column of the truth table), there are 12 instances that produce an output e

> 0. For example, referring to the truth table, when inputs A=0, B=l, the output is S=l, thus an AND gate is created connecting: C0(A)-C1(B) 1. In other words, since A=0, the

AND gate connects to the output of C0(A) gate (from step 2), and since B=l, the AND gate connects to the output of C 1(B) gate (see Figure 5), and since S=l, the AND gate connects to input 1. As another example, when the inputs are A=0, B=2, the output is

S=2. In this case, an AND gate is created connecting: C0(A)-C2(B)-2. Since A=0, the

AND gate connects to the output of C0(A) gate, since B=2, the AND gate connects to the output of C2(B) gate, and since S=2, the AND gate connects to input 2. As a final example, when the inputs are A=0, B=3, the output is S=3. In this case, an AND gate is created connecting: CO(A)'C3(B) 3, which is simplified to C0(A) C3(B), i.e., an input 3 is not required because any value "anded" to 3 in a 4-value gate outputs that value.

Twelve AND gates are created for the twelve instances as shown below and the connections are shown in Figure 5.

C0(A) C1(B) 1, C0(A) C2(B)-2, C0(A)-C3(B),

C1(A) C0(B)- 1, Cl(A) Cl(B)-2, C1(A)-C2(B), C0(A) C1(B)-1, C0(A)-C2(B)-2, C0(A)-C3(B), .

C1(A) C0(B)-1, Cl(A)-Cl(B)-2, C1(A)-C2(B),

C2(A)-C0(B)-2, C2(A)-C1(B), C2(A)-C3(B) 1,

C3(A) C0(B), C3(A)-C2(B)- 1, C3(A)-C3(B)-2

Similarly, for the function that produces K as output (in the K column of the truth table), there are six instances that produce output e > 0. Six AND gates are created as shown below and the connections are shown in Figure 5.

C1(A)-C3(B) 1, C2(A) C2(B)- 1, C2(A)-C3(B) 1,

C3(A)-C1(B)-1, C3(A)-C2(B)- 1, C3(A)-C3(B)- 1

[0046] Step 4; OR gate: Connecting the outputs of all the AND gates to an OR gate, which produces the outputs of the required function.

Finishing the example of designing an adder, for the function that produces S as output (in the S column of the truth table), the outputs of all twelve AND gates (from Step 2) are connected to an OR gate, as defined below:

S = C0(A)-C1(B) 1 + C0(A)-C2(B)-2 + C0(A) C3(B) +

C1(A) C0(B) 1 + Cl(A)-Cl(B)-2 + C1(A)-C2(B) +

C2(A)-C0(B 2 + C2(A)-C1(B) + C2(A)-C3(B)- 1 +

C3(A)-C0(B) + C3(A)-C2(B)-1 + C3(A)-C3(B)-2

Similarly, for the function that produces as the output (in the K column of the truth table), the outputs of all the six AND gates (from Step 2) are connected to an OR gate, as defined below:

K = C1(A)-C3(B)- 1 + C2(A)-C2(B)-1 + C2(A) C3(B)- 1 + C3(A)-C1(B)- 1 + C3(A) C2(B)-1 + C3(A)-C3(B)- 1

[0047] The results of all these connections are shown in Figure 5, which is the 4-valued circuit that implements the four- valued addition of two 4-valued numbers. To reduce the number of logic gates for a circuit, an additional step for minimization could be added into the steps outlined above. The minimization would use multivalued logic to simplify the output equations (e.g. the equations for S and K as defined above). Designing Multivalued Registers and Control Circuits

[0048] To continue the design of the multivalued microprocessor, this section describes the design of the registers and the control circuits. There are 16 registers 5 (shown in Figure 6), all of which take inputs from processing units through the bus D (from the processing module 2). Each register 5 receives an enable signal E that determines whether to write into that particular register, for implementing both the conditional instructions and the non-conditional instructions. The registers store the results of the current step of computation and provide the data for later steps. Each register can provide its data on buses A, B, and D (to the processing units in the processing module). As shown in Figure 6, the control signals I, J, and K, controlling the tristate buffers 15, determine whether or not to provide the data to the selected buses. These data are then available for processing according to the function of the various processing units. Register PC serves as the program counter. Any instruction can write into the program counter to function as a Jump statement, i.e., providing the address to which the processor should execute the next instruction. If no instruction is directly written into the PC, then the PC will increase by one after executing the current instruction.

[0049] To implement multivalued registers requires multivalued memory cells. Another embodiment of this invention provides a design of a multivalued memory cell that can store any multivalued data. The design is shown in Figure 7. The multivalued memory cell 25 can be used for building the required registers. The multivalued memory cell 25 is a general purpose cell and the design uses multivalued logic gates. For the multivalued memory cell to store n values, n- valued logic gates are used in the design. For instance, for the multivalued memory cell 25 to store 4 values, 4-valued logic gates are used. Figure 7 shows a n- valued input D, and two n- valued outputs Q and Q\ i.e., NOT(Q). The circuit is constructed using two n- valued OR gates 17, two n- valued AND gates 14, and a n- valued NOT gate 18. As can be seen from Figure 7, the logic gates are connected such that Q is equal to the output of AND(D, AND(OR(D, Q), OR(D, NOT(Q))). Of course, the multivalued memory cell of Figure 7 is only one example and other conventional or future developed multivalued memory cells could be used with the circuits described herein. [0050] Besides the multivalued memory cell, another component used in implementing the multivalued microprocessor is the multivalued tristate buffer 15. The tristate buffers 15 are used in Figure 6 for connecting the registers to the multivalued buses, and are used in Figure 2 for connecting the processing units to the buses. While Figures 2 and 6 only show a single tristate buffer symbol leading to a bus, this symbol represents a tristate buffer for each wire, e.g., the an eight wire output leading to an eight wire bus will require eight tristate buffers. Thus another embodiment of the invention further provides a design of a multivalued tristate buffer. The design of a 4-valued tristate buffer is shown in Figure 8. If the enable signal (ENB) is not asserted (having value 0 as False), there is no connection as all the 4 transistors (acting like switches) are turned off. When ENB is asserted (having a value 3 as True) that will result in each of the AND gates having one input as True. Then when the Component gate associated with the value of the input also outputs 3 or True, the corresponding AND gate will enable the gate input of the corresponding transistor 27, and thus, the input value will be passed to the output. Stated more generally, to implement a n- valued tristate buffer, an n-valued input is connected to n component gates Ci, where 0 < i < n-1. There are n AND gates (ANDi) where each ANDi gate has as inputs (1) an output of one of the component gate Ci, and (2) the enable signal. There are n transistors Ti, each having a gate, drain, and source. The output of each of ANDi gate is connected to a gate of each transistor Ti, the drain of each transistor Ti is connected to a constant value from 0 to n-1, and all the sources are connected together to form the n-valued output. When the enable signal is asserted, the output value is equal to the input value, and when the enable signal is not asserted, the input value is not transmitted to the output.

[0051] The control unit of the microprocessor comprises of many decoders. The decoders are shown in Figure 1 as DEC G, E, I, J, K, and M (located besides the processing units and the registers, and inside the instruction memory, while the Data Storage module also has its address decoder). These decoders decode the instructions and produce many control signals. Thus, a further embodiment of the invention provides a design of a multivalued decoder. The design of the decoder DEC G is shown in Figure 9. The decoder takes two 4-valued wires and produces 16 control signals. The design of the remaining decoders are similar to this one. To produce the output GO, an AND gate is connect to Component gates 0 and 0; to produce the output Gl, an AND gate is connected to Component gates 0 and 1, and so on. In general, this method of designing a decoder can be used for any number of multivalued inputs. One function of the control signals GO to G15 can been seen in Figure 2 where, depending on which control signal is True, the tristate buffers associated with a particular processing unit are enabled and that processing unit is allowed to pass its output to the appropriate bus.

[0052] The current embodiment of the microprocessor further comprises a control circuit. One example of a control circuit is shown in Figure 10. The control circuit takes inputs from decoder G, which signals what instruction is being executed. As defined in the Op- Code (Table 2), each instruction is assigned a number. As previously described, when an instruction is being executed, the decoder G (Figure 9) decodes the op-code and produce the control signal GO, Gl, G15. For instance, when the Add instruction is being executed, G4 will be activated. As shown in Figure 10, certain of these G signals combined with conditional signals Z, X, N, P (from processing units Movez, Movex, Moven, and Movep) to produce a Write signal. The Write signal is then combined with K signals that indicate which register to write the data, and is also combined with a CLK (clock) signal to produce the enable signal E's for writing the data to the register specified by an instruction. Figure 6 illustrates how the enable signal E's enable specific registers to receive data from output bus D.

Multivalued Logic Gates

[0053] The multivalued logic gates used to construct the multivalued microprocessor described above include the Component gates, the multivalued AND, OR and NOT gates. These multivalued logic gates can be implemented using many different kinds of technologies, including using transistors. One embodiment of the Component gates for 4- valued logic is shown in Figure 11, in which there are four Component gates CO, CI, C2, and C3. An embodiment of an N-input 4-valued AND gate is shown in Figure 12, an N- input 4-valued OR gate in Figure 13, and a 4-valued NOT gate in Figure 14. Programming the Multivalued Computer

[0054] After completing the design of a multivalued microprocessor, a multivalued computer is constructed by combining one or multiple multivalued microprocessors to additional memory and/or input and output devices. The multivalued computer can then be used to execute programs.

[0055] One of the major advantages of the above described multivalued computers is that the programming is much like the programming of conventional binary computers. A sample program is shown in Figure 15, which multiplies two numbers using a bitwise method well known in binary computation. This sample program is written using the instructions defined for a multivalued microprocessor (Table 2). Other instructions, such as x86 or x64 instruction sets, can similarly be defined for a multivalued microprocessor, thus allowing the multivalued computer to run conventional programs without any changes to the underlying code.