Three-value memory resistance full adder circuit based on character operation

文档序号:189865 发布日期:2021-11-02 浏览:28次 中文

阅读说明:本技术 一种基于文字运算的三值忆阻全加器电路 (Three-value memory resistance full adder circuit based on character operation ) 是由 林弥 韩琪 罗文瑶 陈俊杰 王旭亮 于 2021-06-28 设计创作,主要内容包括:本发明公开了一种基于文字运算的三值忆阻全加器电路,包括加数A输入模块、加数B输入模块、进位C-(in)输入模块、文字运算模块、SUM输出模块和进位C-(out)输出模块;其中,所述加数A输入模块与进位C-(in)输入模块相连,用于产生文字运算模块的输入X;所述SUM输出模块与加数B输入模块、文字运算模块相连,用于实现和的输出;所述进位C-(out)输出模块与文字运算模块、SUM输出模块相连,用于实现进位C-(out)的输出。(The invention discloses a three-value memristor full adder circuit based on character operation, which comprises an addend A input module, an addend B input module and a carry C in Input module, character operation module, SUM output module and carry C out An output module; wherein the addend A input module and the carry C in The input module is connected and used for generating an input X of the character operation module; the SUM output module is connected with the addend B input module and the character operation module and is used for realizing output of SUM; the carry bit C out The output module is connected with the character operation module and the SUM output module and is used for realizing carry C out To output of (c).)

1. A three-value memristor full adder circuit based on character operation is characterized by comprising an addend A input moduleAn addend B input module and a carry CinInput module, character operation module, SUM output module and carry CoutAn output module; wherein the addend A input module and the carry CinThe input module is connected and used for generating an input X of the character operation module; the SUM output module is connected with the addend B input module and the character operation module and is used for realizing output of SUM; the carry bit CoutThe output module is connected with the character operation module and the SUM output module and is used for realizing carry CoutTo output of (c).

2. The literal operation-based three-valued memristive full-adder circuit of claim 1, wherein the addend a input module comprises a first PMOS transistor M1A second PMOS transistor M2A third NMOS transistor M3A fourth NMOS transistor M4First resistance R1A second resistor R2A third resistor R3And a DC voltage source VDD1(ii) a Wherein the first PMOS transistor M1A second PMOS transistor M2A third NMOS transistor M3And a fourth NMOS transistor M4The grid electrodes of the grid electrodes are connected with a signal input end A; a first resistor R1And a second resistor R2One end of the DC voltage source is connected with a DC voltage source VDD1(ii) a A first resistor R1And the other end of the first PMOS transistor M1The source electrodes of the two-way transistor are connected; a second resistor R2And the other end of the first NMOS transistor M3The drain electrodes of the two electrodes are connected; first PMOS transistor M1Is connected to the second PMOS transistor M2A source electrode of (a); second PMOS transistor M2Is connected with a third resistor R3One end of (a); third NMOS transistor M3Is connected to the fourth NMOS transistor M4A drain electrode of (1); fourth NMOS transistor M4Is connected with a third resistor R3The other end of the first and second electrodes is grounded; output terminal A1Is a first PMOS transistor M1And a second PMOS transistor M2Is also the third NMOS transistor M3And a fourth NMOS transistor M4The connection point of (a).

3. The literal operation-based three-valued memristive full-adder circuit of claim 2, wherein the addend B input module comprises a fifth PMOS transistor M5And a sixth NMOS transistor M6Seventh PMOS transistor M7And an eighth NMOS transistor M8And a ninth NMOS transistor M9The tenth NMOS transistor M10Eleventh NMOS transistor M11Twelfth PMOS transistor M12A fourth resistor R4A fifth resistor R5A sixth resistor R6A seventh resistor R7And a DC voltage source VDD2(ii) a Wherein the fifth PMOS transistor M5And a sixth NMOS transistor M6Seventh PMOS transistor M7And an eighth NMOS transistor M8And a ninth NMOS transistor M9The grid electrodes of the grid electrodes are connected with a signal input end B; fifth PMOS transistor M5And a twelfth PMOS transistor M12Source electrode of (1), fourth resistor R4And a sixth resistor R6One end of the two-way valve is connected with a direct current voltage source VDD2(ii) a Fifth PMOS transistor M5Is connected to the sixth NMOS transistor M6A drain electrode of (1); sixth NMOS transistor M6Is connected with a seventh PMOS transistor M7A source electrode of (a); a fourth resistor R4And the other end of the first NMOS transistor M and an eighth NMOS transistor M8The drain electrodes of the two electrodes are connected; eighth NMOS transistor M8Is connected to the ninth NMOS transistor M9A drain electrode of (1); ninth NMOS transistor M9Is connected with a fifth resistor R5One end of (a); a sixth resistor R6And the other end of the first NMOS transistor M10The drain electrodes of the two electrodes are connected; tenth NMOS transistor M10Is connected to the eleventh NMOS transistor M11A drain electrode of (1); eleventh NMOS transistor M11Is connected with a seventh resistor R7One end of (a); seventh PMOS transistor M7Drain electrode of (1), fifth resistor R5And a seventh resistor R7The other end of the first and second electrodes is grounded; output terminal B2Is a fifth PMOS transistor M5And a sixth NMOS transistor M6A connection point of (1), an eighth NMOS transistor M8And a ninth NMOS transistor M9The connection point of (a); twelfth PMOS transistor M12Gate of is connected with output terminal B2(ii) a Output terminal B1Is a tenth NMOS transistor M10And an eleventh NMOS transistor M11And a twelfth PMOS transistor M12Is connected to the drain of (1).

4. The literal operation-based three-valued memristive full adder circuit of claim 3, wherein the carry CinThe input module comprises a thirteenth PMOS transistor M13Fourteenth NMOS transistor M14Fifteenth PMOS transistor M15Sixteenth NMOS transistor M16Seventeenth PMOS transistor M17Eighteenth NMOS transistor M18Eighth resistor R8A ninth resistor R9And a DC voltage source VDD3、VDD4、VDD5(ii) a Wherein the thirteenth PMOS transistor M13And a fourteenth NMOS transistor M14The grid electrodes are all connected with a signal input end Cin(ii) a Thirteenth PMOS transistor M13The source electrode of the first transistor is connected with the signal input end A; thirteenth PMOS transistor M13Is connected to the fourteenth NMOS transistor M14A drain electrode of (1); fourteenth NMOS transistor M14The source electrode of the adder A input module is connected with the output end A of the adder A input module1(ii) a Fifteenth PMOS transistor M15Gate of and sixteenth NMOS transistor M16Are all connected with a thirteenth PMOS transistor M13And a fourteenth NMOS transistor M14The connection point of (a); fifteenth PMOS transistor M15And a seventeenth PMOS transistor M17Is connected with a DC voltage source VDD3(ii) a Fifteenth PMOS transistor M15Is connected with a sixteenth NMOS transistor M16A drain electrode of (1); seventeenth PMOS transistor M17Is connected with an eighteenth NMOS transistor M18A drain electrode of (1); sixteenth NMOS transistor M16And an eighteenth NMOS transistor M18The source of (2) is grounded; seventeenth PMOS transistor M17Gate of (1), eighteenth NMOS transistor M18Gate and eighth resistor R8Are all connected with a fifteenth PMOS transistor M15And a sixteenth NMOS transistor M16The connection point of (a); eighth resistor R8The other end of the DC voltage source is connected with a DC voltage source VDD4(ii) a Ninth resistor R9One end of which is connected with a seventeenth PMOS transistor M17And an eighteenth NMOS transistor M18The connection point of (a); ninth resistor R9The other end of the DC voltage source is connected with a DC voltage source VDD5(ii) a The output end X is a seventeenth PMOS transistor M17And an eighteenth NMOS transistor M18The connection point of (a).

5. The literal operation-based three-valued memristive full-adder circuit of claim 4, wherein the literal operation module comprises a first threshold type memristor MR1Second threshold type memristor MR2And a third threshold type memristor MR3And a fourth threshold type memristor MR4And a fifth threshold type memristor MR5Nineteenth PMOS transistor M19Twentieth NMOS transistor M20Twenty-first NMOS transistor M21Twenty-second NMOS transistor M22Twenty third PMOS transistor M23Twenty fourth NMOS transistor M24Twenty-fifth NMOS transistor M25Twenty sixth NMOS transistor M26Twenty seventh NMOS transistor M27And a DC voltage source VDD6(ii) a Wherein the nineteenth PMOS transistor M19Gate of (D), twentieth NMOS transistor M20Gate and first threshold type memristor MR1The positive ends of the two are connected with an enable signal input end CP; nineteenth PMOS transistor M19Drain electrode of the twenty-third PMOS transistor M23Drain electrode of (1), third threshold type memristor MR3Positive terminal, fourth threshold type memristor MR4Positive terminal and fifth threshold type memristor MR5The positive ends of the two are connected with a direct-current voltage source VDD6(ii) a Nineteenth PMOS transistor M19Is connected to the twentieth NMOS transistor M20A source electrode of (a); twentieth NMOS transistor M20The drain of (2) is grounded; twenty-first NMOS transistor M21Is connected with a nineteenth PMOS transistor M19And the twentieth NMOS transistor M20The connection point of (a); twenty-first NMOS transistor M21Is connected intoBit CinAn output terminal X of the input module; twenty-first NMOS transistor M21Drain of the first and twenty-second NMOS transistors M22And a twenty-sixth NMOS transistor M26The grid electrodes of the first and second memory resistor are connected with a first threshold type memristor MR1And a second threshold type memristor MR2A negative terminal of (a); second threshold type memristor MR2The positive terminal of the power supply is grounded; twenty-second NMOS transistor M22Source electrode of (1) is connected with a third threshold type memristor MR3A negative terminal of (a); twenty third PMOS transistor M23And a twenty-fourth NMOS transistor M24The grids of the two NMOS transistors are connected with a twenty-second NMOS transistor M22And a third threshold type memristor MR3The connection point of (a); twenty third PMOS transistor M23Is connected to the twenty-fourth NMOS transistor M24A drain electrode of (1); twenty-fifth NMOS transistor M25Is connected with a twenty-third PMOS transistor M23And a twenty-fourth NMOS transistor M24The connection point of (a); twenty-fifth NMOS transistor M25Is connected with a fourth threshold type memristor MR4A negative terminal of (a); twenty-second NMOS transistor M22Source of (d), twenty-fourth NMOS transistor M24And a twenty-fifth NMOS transistor M25The source of (2) is grounded; twenty-sixth NMOS transistor M26Is connected with a fifth threshold type memristor MR5A negative terminal of (a); twenty-seventh NMOS transistor M27Is connected with a twenty-sixth NMOS transistor M26And a fifth threshold type memristor MR5The connection point of (a); twenty-sixth NMOS transistor M26And a twenty-seventh NMOS transistor M27The source of (2) is grounded; output end0X0Is a twenty-sixth NMOS transistor M26And a fifth threshold type memristor MR5Connection point, output terminal of1X1Is a twenty-fifth NMOS transistor M25And a fourth threshold type memristor MR4Connection point, output terminal of2X2Is a twenty-third PMOS transistor M23And a twenty-fourth NMOS transistor M24The connection point of (a).

6. The base of claim 5The circuit is characterized in that the SUM output module comprises a twenty-eighth NMOS transistor M28Twenty ninth NMOS transistor M29Thirtieth NMOS transistor M30The tenth resistor R10An eleventh resistor R11And a twelfth resistor R12(ii) a Wherein, the tenth resistor R10One end of the first switch is connected with the signal input end B; a tenth resistor R10Is connected with a twenty-eighth NMOS transistor M28A drain electrode of (1); twenty eighth NMOS transistor M28Grid electrode of the grid electrode is connected with the output end of the character operation module0X0(ii) a Eleventh resistor R11One end of the input module is connected with the output end B of the addend B input module1(ii) a Eleventh resistor R11The other end of the second NMOS transistor is connected with a twenty-ninth NMOS transistor M29A drain electrode of (1); twenty-ninth NMOS transistor M29Grid electrode of the grid electrode is connected with the output end of the character operation module1X1(ii) a Twelfth resistor R12One end of the input module is connected with the output end B of the addend B input module2(ii) a Twelfth resistor R12Is connected with a thirty NMOS transistor M30A drain electrode of (1); thirtieth NMOS transistor M30Grid electrode of the grid electrode is connected with the output end of the character operation module2X2(ii) a The output terminal SUM is a twenty-eighth NMOS transistor M28Source electrode of, twenty ninth NMOS transistor M29And a thirtieth NMOS transistor M30Of the substrate.

7. The literal operation-based three-valued memristive full-adder circuit of claim 6, wherein the carry output CoutThe module comprises a thirty-first PMOS transistor M31Thirty-second NMOS transistor M32Thirty-third PMOS transistor M33Thirty-fourth NMOS transistor M34Thirty-fifth NMOS transistor M35Thirty-sixth NMOS transistor M36Thirty-seventh NMOS transistor M37Thirty-eighth NMOS transistor M38Thirty-ninth PMOS transistor M39A forty-th PMOS transistor M40Thirteenth resistance R13A fourteenth resistor R14A fifteenth resistor R15Sixteenth resistor R16Seventeenth resistor R17Eighteenth resistor R18And a DC voltage source VDD7、VDD8、VDD9(ii) a Wherein, the thirty-first PMOS transistor M31Gate of (1), thirty-second NMOS transistor M32Gate of (1), a thirty-third PMOS transistor M33And a thirty-fourth NMOS transistor M34The grid electrodes of the grid electrodes are connected with the output end SUM of the SUM output module; thirteenth resistor R13One end of (1), a fifteenth resistor R15And a thirty-seventh NMOS transistor M37The drain electrodes of the two are respectively connected with a direct current voltage source VDD7、VDD8、VDD9(ii) a Thirteenth resistor R13The other end of the first transistor is connected with a thirty-first PMOS transistor M31A source electrode of (a); thirty-first PMOS transistor M31Is connected to the thirty-second NMOS transistor M32A drain electrode of (1); a fourteenth resistance R14And a seventeenth resistor R17Are all connected with a thirty-first PMOS transistor M31And a thirty-second NMOS transistor M32The connection point of (a); a fourteenth resistance R14And a thirty-second NMOS transistor M32The source of (2) is grounded; a fifteenth resistor R15Is connected with a thirty-third PMOS transistor M33A source electrode of (a); thirty-third PMOS transistor M33Is connected to the thirty-fourth NMOS transistor M34A drain electrode of (1); thirty-fourth NMOS transistor M34Is connected with a sixteenth resistor R16One end of (a); sixteenth resistor R16The other end of the first and second electrodes is grounded; eighteenth resistor R18One end of the second transistor is connected with a thirty-third PMOS transistor M33And a thirty-fourth NMOS transistor M34The connection point of (a); seventeenth resistor R17Is connected with a thirty-fifth NMOS transistor M35A drain electrode of (1); thirty-fifth NMOS transistor M35Grid electrode of the grid electrode is connected with the output end of the character operation module1X1(ii) a Eighteenth resistor R18Is connected with a thirty-sixth NMOS transistor M36A drain electrode of (1); thirty-sixth NMOS transistor M36Grid electrode of the grid electrode is connected with the output end of the character operation module2X2(ii) a Thirty-eighth NMOS transistor M38Gate of (2) and a fortieth PMOS transistor M40The grid of the grid is connected with the signal input end A; thirty-seventh NMOS transistor M37And a thirty-ninth PMOS transistor M39Is connected with the signal input terminal Cin(ii) a Thirty-seventh NMOS transistor M37Is connected with a thirty-eighth NMOS transistor M38A drain electrode of (1); forty-th PMOS transistor M40The source of (2) is grounded; forty-th PMOS transistor M40Is connected with a thirty ninth PMOS transistor M39A source electrode of (a); output terminal CoutIs a thirty-fifth NMOS transistor M35Source of (2), thirty-sixth NMOS transistor M36And a thirty-eighth NMOS transistor M38And a thirty-ninth PMOS transistor M39Of the substrate.

Technical Field

The invention belongs to the technical field of circuit design, and particularly relates to a three-value memristor full adder circuit based on character operation.

Background

The memristor is a fourth basic circuit element which is subsequent to the resistor, the capacitor and the inductor and has a nonvolatile and nanoscale structure, so that the circuit area can be reduced, and the power-off retention is realized. The memristor is applied to digital logic circuits, chaotic circuits, neural networks and the like. At present, research in digital circuits mainly focuses on binary logic, and multi-valued logic has advantages over binary logic in the aspects of reducing network complexity and circuit area, increasing data processing speed and the like, so that the invention designs and realizes a three-valued memristor full adder circuit on the basis of the multi-valued logic theory.

The existing three-value memristor full adder adopts a core which is not a true three-value circuit or a binary circuit, converts a three-value signal into a binary signal for addition operation, and then converts the binary signal into a three-value signal for output, wherein the conversion process is a coding and decoding process, and the complexity of the circuit is increased.

Disclosure of Invention

Aiming at the problems in the prior art and research cost, the invention designs and invents a three-value memristor full adder by taking character operation as a core and adopting a threshold memristor, thereby providing a new application field and a new design idea for a memristor logic circuit.

In order to solve the technical problems, the invention adopts the following technical scheme:

a three-value memristor full adder circuit based on character operation comprises an addend A input module, an addend B input module and a carry CinInput module, character operation module, SUM output module and carry CoutAn output module; wherein the addend A input module and the carry CinThe input module is connected and used for generating an input X of the character operation module; the SUM output module is connected with the addend B input module and the character operation module and is used for realizing output of SUM; the carry bit CoutThe output module is connected with the character operation module and the SUM output module and is used for realizing carry CoutTo output of (c).

Preferably, the addend a input module comprises a first PMOS transistor M1A second PMOS transistor M2A third NMOS transistor M3A fourth NMOS transistor M4First resistance R1A second resistor R2A third resistor R3And a DC voltage source VDD1(ii) a Wherein, the firstA PMOS transistor M1A second PMOS transistor M2A third NMOS transistor M3And a fourth NMOS transistor M4The grid electrodes of the grid electrodes are connected with a signal input end A; a first resistor R1And a second resistor R2One end of the DC voltage source is connected with a DC voltage source VDD1(ii) a A first resistor R1And the other end of the first PMOS transistor M1The source electrodes of the two-way transistor are connected; a second resistor R2And the other end of the first NMOS transistor M3The drain electrodes of the two electrodes are connected; first PMOS transistor M1Is connected to the second PMOS transistor M2A source electrode of (a); second PMOS transistor M2Is connected with a third resistor R3One end of (a); third NMOS transistor M3Is connected to the fourth NMOS transistor M4A drain electrode of (1); fourth NMOS transistor M4Is connected with a third resistor R3The other end of the first and second electrodes is grounded; output terminal A1Is a first PMOS transistor M1And a second PMOS transistor M2Is also the third NMOS transistor M3And a fourth NMOS transistor M4The connection point of (a).

Preferably, the addend B input module comprises a fifth PMOS transistor M5And a sixth NMOS transistor M6Seventh PMOS transistor M7And an eighth NMOS transistor M8And a ninth NMOS transistor M9The tenth NMOS transistor M10Eleventh NMOS transistor M11Twelfth PMOS transistor M12A fourth resistor R4A fifth resistor R5A sixth resistor R6A seventh resistor R7And a DC voltage source VDD2(ii) a Wherein the fifth PMOS transistor M5And a sixth NMOS transistor M6Seventh PMOS transistor M7And an eighth NMOS transistor M8And a ninth NMOS transistor M9The grid electrodes of the grid electrodes are connected with a signal input end B; fifth PMOS transistor M5And a twelfth PMOS transistor M12Source electrode of (1), fourth resistor R4And a sixth resistor R6One end of the two-way valve is connected with a direct current voltage source VDD2(ii) a Fifth PMOS transistor M5Is connected to the sixth NMOS transistor M6A drain electrode of (1); sixth NMOS transistor M6Is connected with a seventh PMOS transistor M7A source electrode of (a); a fourth resistor R4And the other end of the first NMOS transistor M and an eighth NMOS transistor M8The drain electrodes of the two electrodes are connected; eighth NMOS transistor M8Is connected to the ninth NMOS transistor M9A drain electrode of (1); ninth NMOS transistor M9Is connected with a fifth resistor R5One end of (a); a sixth resistor R6And the other end of the first NMOS transistor M10The drain electrodes of the two electrodes are connected; tenth NMOS transistor M10Is connected to the eleventh NMOS transistor M11A drain electrode of (1); eleventh NMOS transistor M11Is connected with a seventh resistor R7One end of (a); seventh PMOS transistor M7Drain electrode of (1), fifth resistor R5And a seventh resistor R7The other end of the first and second electrodes is grounded; output terminal B2Is a fifth PMOS transistor M5And a sixth NMOS transistor M6A connection point of (1), an eighth NMOS transistor M8And a ninth NMOS transistor M9The connection point of (a); twelfth PMOS transistor M12Gate of is connected with output terminal B2(ii) a Output terminal B1Is a tenth NMOS transistor M10And an eleventh NMOS transistor M11And a twelfth PMOS transistor M12Is connected to the drain of (1).

Preferably, the carry bit CinThe input module comprises a thirteenth PMOS transistor M13Fourteenth NMOS transistor M14Fifteenth PMOS transistor M15Sixteenth NMOS transistor M16Seventeenth PMOS transistor M17Eighteenth NMOS transistor M18Eighth resistor R8A ninth resistor R9And a DC voltage source VDD3、VDD4、VDD5. (ii) a Wherein the thirteenth PMOS transistor M13And a fourteenth NMOS transistor M14The grid electrodes are all connected with a signal input end Cin(ii) a Thirteenth PMOS transistor M13The source electrode of the first transistor is connected with the signal input end A; thirteenth PMOS transistor M13Is connected to the fourteenth NMOS transistor M14A drain electrode of (1); fourteenth NMOS transistor M14The source electrode of the adder A input module is connected with the output end A of the adder A input module1(ii) a Fifteenth PMOS transistor M15Gate of and sixteenth NMOS transistor M16Are all connected with a thirteenth PMOS transistor M13And a fourteenth NMOS transistor M14The connection point of (a); fifteenth PMOS transistor M15And a seventeenth PMOS transistor M17Is connected with a DC voltage source VDD3(ii) a Fifteenth PMOS transistor M15Is connected with a sixteenth NMOS transistor M16A drain electrode of (1); seventeenth PMOS transistor M17Is connected with an eighteenth NMOS transistor M18A drain electrode of (1); sixteenth NMOS transistor M16And an eighteenth NMOS transistor M18The source of (2) is grounded; seventeenth PMOS transistor M17Gate of (1), eighteenth NMOS transistor M18Gate and eighth resistor R8Are all connected with a fifteenth PMOS transistor M15And a sixteenth NMOS transistor M16The connection point of (a); eighth resistor R8The other end of the DC voltage source is connected with a DC voltage source VDD4(ii) a Ninth resistor R9One end of which is connected with a seventeenth PMOS transistor M17And an eighteenth NMOS transistor M18The connection point of (a); ninth resistor R9The other end of the DC voltage source is connected with a DC voltage source VDD5(ii) a The output end X is a seventeenth PMOS transistor M17And an eighteenth NMOS transistor M18The connection point of (a).

Preferably, the literal operation module comprises a first threshold-type memristor MR1Second threshold type memristor MR2And a third threshold type memristor MR3And a fourth threshold type memristor MR4And a fifth threshold type memristor MR5Nineteenth PMOS transistor M19Twentieth NMOS transistor M20Twenty-first NMOS transistor M21Twenty-second NMOS transistor M22Twenty third PMOS transistor M23Twenty fourth NMOS transistor M24Twenty-fifth NMOS transistor M25Twenty sixth NMOS transistor M26Twenty seventh NMOS transistor M27And a DC voltage source VDD6(ii) a Wherein the nineteenth PMOS transistor M19Gate of (D), twentieth NMOS transistor M20Gate and first threshold type memristor MR1The positive ends of the two are connected with an enable signal input end CP; nineteenth PMOS transistor M19Drain electrode of the twenty-third PMOS transistor M23Drain electrode of (1), third threshold type memristor MR3Positive terminal, fourth threshold type memristor MR4Positive terminal and fifth threshold type memristor MR5The positive ends of the two are connected with a direct-current voltage source VDD6(ii) a Nineteenth PMOS transistor M19Is connected to the twentieth NMOS transistor M20A source electrode of (a); twentieth NMOS transistor M20The drain of (2) is grounded; twenty-first NMOS transistor M21Is connected with a nineteenth PMOS transistor M19And the twentieth NMOS transistor M20The connection point of (a); twenty-first NMOS transistor M21Is connected to carry CinAn output terminal X of the input module; twenty-first NMOS transistor M21Drain of the first and twenty-second NMOS transistors M22And a twenty-sixth NMOS transistor M26The grid electrodes of the first and second memory resistor are connected with a first threshold type memristor MR1And a second threshold type memristor MR2A negative terminal of (a); second threshold type memristor MR2The positive terminal of the power supply is grounded; twenty-second NMOS transistor M22Source electrode of (1) is connected with a third threshold type memristor MR3A negative terminal of (a); twenty third PMOS transistor M23And a twenty-fourth NMOS transistor M24The grids of the two NMOS transistors are connected with a twenty-second NMOS transistor M22And a third threshold type memristor MR3The connection point of (a); twenty third PMOS transistor M23Is connected to the twenty-fourth NMOS transistor M24A drain electrode of (1); twenty-fifth NMOS transistor M25Is connected with a twenty-third PMOS transistor M23And a twenty-fourth NMOS transistor M24The connection point of (a); twenty-fifth NMOS transistor M25Is connected with a fourth threshold type memristor MR4A negative terminal of (a); twenty-second NMOS transistor M22Source of (d), twenty-fourth NMOS transistor M24And a twenty-fifth NMOS transistor M25The source of (2) is grounded; twenty-sixth NMOS transistor M26Is connected with a fifth threshold type memristor MR5A negative terminal of (a); twenty-seventh NMOS transistor M27Is connected with a twenty-sixth NMOS transistor M26And a fifth threshold type memristor MR5The connection point of (a); twenty-sixth NMOS transistor M26And a twenty-seventh NMOS transistor M27The source of (2) is grounded; output end0X0Is a twenty-sixth NMOS transistor M26And a fifth threshold type memristor MR5Connection point, output terminal of1X1Is a twenty-fifth NMOS transistor M25And a fourth threshold type memristor MR4Connection point, output terminal of2X2Is a twenty-third PMOS transistor M23And a twenty-fourth NMOS transistor M24The connection point of (a).

Preferably, the SUM output module includes a twenty-eighth NMOS transistor M28Twenty ninth NMOS transistor M29Thirtieth NMOS transistor M30The tenth resistor R10An eleventh resistor R11And a twelfth resistor R12(ii) a Wherein, the tenth resistor R10One end of the first switch is connected with the signal input end B; a tenth resistor R10Is connected with a twenty-eighth NMOS transistor M28A drain electrode of (1); twenty eighth NMOS transistor M28Grid electrode of the grid electrode is connected with the output end of the character operation module0X0(ii) a Eleventh resistor R11One end of the input module is connected with the output end B of the addend B input module1(ii) a Eleventh resistor R11The other end of the second NMOS transistor is connected with a twenty-ninth NMOS transistor M29A drain electrode of (1); twenty-ninth NMOS transistor M29Grid electrode of the grid electrode is connected with the output end of the character operation module1X1(ii) a Twelfth resistor R12One end of the input module is connected with the output end B of the addend B input module2(ii) a Twelfth resistor R12Is connected with a thirty NMOS transistor M30A drain electrode of (1); thirtieth NMOS transistor M30Grid electrode of the grid electrode is connected with the output end of the character operation module2X2(ii) a The output terminal SUM is a twenty-eighth NMOS transistor M28Source electrode of, twenty ninth NMOS transistor M29And a thirtieth NMOS transistor M30Of the substrate.

Preferably, the carry output CoutThe module comprises a thirty-first PMOS transistor M31Thirty secondNMOS transistor M32Thirty-third PMOS transistor M33Thirty-fourth NMOS transistor M34Thirty-fifth NMOS transistor M35Thirty-sixth NMOS transistor M36Thirty-seventh NMOS transistor M37Thirty-eighth NMOS transistor M38Thirty-ninth PMOS transistor M39A forty-th PMOS transistor M40Thirteenth resistance R13A fourteenth resistor R14A fifteenth resistor R15Sixteenth resistor R16Seventeenth resistor R17Eighteenth resistor R18And a DC voltage source VDD7、VDD8、VDD9(ii) a Wherein, the thirty-first PMOS transistor M31Gate of (1), thirty-second NMOS transistor M32Gate of (1), a thirty-third PMOS transistor M33And a thirty-fourth NMOS transistor M34The grid electrodes of the grid electrodes are connected with the output end SUM of the SUM output module; thirteenth resistor R13One end of (1), a fifteenth resistor R15And a thirty-seventh NMOS transistor M37The drain electrodes of the two are respectively connected with a direct current voltage source VDD7、VDD8、VDD9(ii) a Thirteenth resistor R13The other end of the first transistor is connected with a thirty-first PMOS transistor M31A source electrode of (a); thirty-first PMOS transistor M31Is connected to the thirty-second NMOS transistor M32A drain electrode of (1); a fourteenth resistance R14And a seventeenth resistor R17Are all connected with a thirty-first PMOS transistor M31And a thirty-second NMOS transistor M32The connection point of (a); a fourteenth resistance R14And a thirty-second NMOS transistor M32The source of (2) is grounded; a fifteenth resistor R15Is connected with a thirty-third PMOS transistor M33A source electrode of (a); thirty-third PMOS transistor M33Is connected to the thirty-fourth NMOS transistor M34A drain electrode of (1); thirty-fourth NMOS transistor M34Is connected with a sixteenth resistor R16One end of (a); sixteenth resistor R16The other end of the first and second electrodes is grounded; eighteenth resistor R18One end of the second transistor is connected with a thirty-third PMOS transistor M33And a thirty-fourth NMOS transistor M34The connection point of (a); seventeenth resistor R17Is connected with a thirty-fifth NMOS transistor M35A drain electrode of (1); thirty-fifth NMOS transistor M35Grid electrode of the grid electrode is connected with the output end of the character operation module1X1(ii) a Eighteenth resistor R18Is connected with a thirty-sixth NMOS transistor M36A drain electrode of (1); thirty-sixth NMOS transistor M36Grid electrode of the grid electrode is connected with the output end of the character operation module2X2(ii) a Thirty-eighth NMOS transistor M38Gate of (2) and a fortieth PMOS transistor M40The grid of the grid is connected with the signal input end A; thirty-seventh NMOS transistor M37And a thirty-ninth PMOS transistor M39Is connected with the signal input terminal Cin(ii) a Thirty-seventh NMOS transistor M37Is connected with a thirty-eighth NMOS transistor M38A drain electrode of (1); forty-th PMOS transistor M40The source of (2) is grounded; forty-th PMOS transistor M40Is connected with a thirty ninth PMOS transistor M39A source electrode of (a); output terminal CoutIs a thirty-fifth NMOS transistor M35Source of (2), thirty-sixth NMOS transistor M36And a thirty-eighth NMOS transistor M38And a thirty-ninth PMOS transistor M39Of the substrate.

The invention has the following beneficial effects: the invention designs and invents a three-value memristor full adder by taking three-value character operation as a core, can simply realize the function of real three-value full addition by distinguishing three-value signals and controlling the output of signals through the character operation, and has important significance for the research and application of memristor circuits and multi-valued logic.

Compared with the prior art, the character operation-based three-value memristor full adder equivalent circuit can simply use the memristor and the MOS to realize the three-value full adder, and the number of devices, the number of lines of interconnection and the circuit area are greatly reduced.

Drawings

FIG. 1 is a memristor symbol and volt-ampere characteristic curve diagram of a three-valued memristor full adder circuit based on literal arithmetic according to an embodiment of the present invention;

FIG. 2 is a schematic block diagram of a three-valued memristor full adder circuit based on literal arithmetic according to an embodiment of the present disclosure;

fig. 3 is a schematic circuit diagram of a three-valued memristor full adder circuit based on literal arithmetic according to an embodiment of the present invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

The circuit symbol and the current-voltage characteristic curve of the memristor are shown in figure 1, a threshold type memristor model is adopted, the threshold type memristor has two states of high resistance and low resistance, and when voltage is applied to the memristor, the memristor is in the low resistance state R along with the change of the voltageONAnd a high resistive state ROFFTo change between. The end without the solid black line is set as the positive end.

Fig. 2 is a schematic block diagram of a three-valued memristor full adder based on literal operation, from which the connection relationship of each module can be seen.

FIG. 3 is a circuit diagram of a three-valued memristor full adder based on literal arithmetic. DC voltage source V in the circuit diagramDD4、VDD5、VDD8And VDD91V, and the rest direct current voltage sources are all 2V. The fourth, eighth, tenth, sixteenth, eighteenth, twenty-second and thirty-fourth NMOS transistors M4、M8、M10、M16、M18、M22And M34Turn-on voltage V ofTH>1V, the third, ninth, eleventh, fourteenth, twenty-sixth, thirty-twelfth and thirty-seventh NMOS transistors M3、M9、M11、M14、M26、M32And M37Turn-on voltage V ofTH<1V。

Referring to FIGS. 2 and 3, a text-based algorithm according to an embodiment of the present invention is shownThe three-value memristor full adder circuit comprises an addend A input module 10, an addend B input module 20 and a carry CinInput module 30, literal operation module 40, SUM output module 50, and carry CoutAn output module 60; the addend A input module 10 and the carry CinThe input module 30 is connected with the character operation module 40 and used for generating an input X; the SUM output module 50 is connected with the addend B input module 20 and the character operation module 40, and is used for realizing SUM output; the carry bit CoutThe output module 60 is connected to the text operation module 40 and the SUM output module 50, and is used for implementing carry CoutTo output of (c).

The addend-a input module 10 comprises a first PMOS transistor M1A second PMOS transistor M2A third NMOS transistor M3A fourth NMOS transistor M4First resistance R1A second resistor R2A third resistor R3And a DC voltage source VDD1(ii) a Wherein the first PMOS transistor M1A second PMOS transistor M2A third NMOS transistor M3And a fourth NMOS transistor M4The grid electrodes of the grid electrodes are connected with a signal input end A; a first resistor R1And a second resistor R2One end of the DC voltage source is connected with a DC voltage source VDD1(ii) a A first resistor R1And the other end of the first PMOS transistor M1The source electrodes of the two-way transistor are connected; a second resistor R2And the other end of the first NMOS transistor M3The drain electrodes of the two electrodes are connected; first PMOS transistor M1Is connected to the second PMOS transistor M2A source electrode of (a); second PMOS transistor M2Is connected with a third resistor R3One end of (a); third NMOS transistor M3Is connected to the fourth NMOS transistor M4A drain electrode of (1); fourth NMOS transistor M4Is connected with a third resistor R3The other end of the first and second electrodes is grounded; output terminal A1Is a first PMOS transistor M1And a second PMOS transistor M2Is also the third NMOS transistor M3And a fourth NMOS transistor M4The connection point of (a).

The addend-B input module 20 includes a fifth PMOS transistor M5And a sixth NMOS transistor M6Seventh, thePMOS transistor M7And an eighth NMOS transistor M8And a ninth NMOS transistor M9The tenth NMOS transistor M10Eleventh NMOS transistor M11Twelfth PMOS transistor M12A fourth resistor R4A fifth resistor R5A sixth resistor R6A seventh resistor R7And a DC voltage source VDD2(ii) a Wherein the fifth PMOS transistor M5And a sixth NMOS transistor M6Seventh PMOS transistor M7And an eighth NMOS transistor M8And a ninth NMOS transistor M9The grid electrodes of the grid electrodes are connected with a signal input end B; fifth PMOS transistor M5And a twelfth PMOS transistor M12Source electrode of (1), fourth resistor R4And a sixth resistor R6One end of the two-way valve is connected with a direct current voltage source VDD2(ii) a Fifth PMOS transistor M5Is connected to the sixth NMOS transistor M6A drain electrode of (1); sixth NMOS transistor M6Is connected with a seventh PMOS transistor M7A source electrode of (a); a fourth resistor R4And the other end of the first NMOS transistor M and an eighth NMOS transistor M8The drain electrodes of the two electrodes are connected; eighth NMOS transistor M8Is connected to the ninth NMOS transistor M9A drain electrode of (1); ninth NMOS transistor M9Is connected with a fifth resistor R5One end of (a); a sixth resistor R6And the other end of the first NMOS transistor M10The drain electrodes of the two electrodes are connected; tenth NMOS transistor M10Is connected to the eleventh NMOS transistor M11A drain electrode of (1); eleventh NMOS transistor M11Is connected with a seventh resistor R7One end of (a); seventh PMOS transistor M7Drain electrode of (1), fifth resistor R5And a seventh resistor R7The other end of the first and second electrodes is grounded; output terminal B2Is a fifth PMOS transistor M5And a sixth NMOS transistor M6A connection point of (1), an eighth NMOS transistor M8And a ninth NMOS transistor M9The connection point of (a); twelfth PMOS transistor M12Gate of is connected with output terminal B2(ii) a Output terminal B1Is a tenth NMOS transistor M10And an eleventh NMOS transistor M11And a twelfth PMOS transistor M12Is connected to the drain of (1).

Carry bit CinThe input module 30 comprises a thirteenth PMOS transistor M13Fourteenth NMOS transistor M14Fifteenth PMOS transistor M15Sixteenth NMOS transistor M16Seventeenth PMOS transistor M17Eighteenth NMOS transistor M18Eighth resistor R8A ninth resistor R9And a DC voltage source VDD3、VDD4、VDD5. (ii) a Wherein the thirteenth PMOS transistor M13And a fourteenth NMOS transistor M14The grid electrodes are all connected with a signal input end Cin(ii) a Thirteenth PMOS transistor M13The source electrode of the first transistor is connected with the signal input end A; thirteenth PMOS transistor M13Is connected to the fourteenth NMOS transistor M14A drain electrode of (1); fourteenth NMOS transistor M14Is connected to the output terminal a of the addend a input module 101(ii) a Fifteenth PMOS transistor M15Gate of and sixteenth NMOS transistor M16Are all connected with a thirteenth PMOS transistor M13And a fourteenth NMOS transistor M14The connection point of (a); fifteenth PMOS transistor M15And a seventeenth PMOS transistor M17Is connected with a DC voltage source VDD3(ii) a Fifteenth PMOS transistor M15Is connected with a sixteenth NMOS transistor M16A drain electrode of (1); seventeenth PMOS transistor M17Is connected with an eighteenth NMOS transistor M18A drain electrode of (1); sixteenth NMOS transistor M16And an eighteenth NMOS transistor M18The source of (2) is grounded; seventeenth PMOS transistor M17Gate of (1), eighteenth NMOS transistor M18Gate and eighth resistor R8Are all connected with a fifteenth PMOS transistor M15And a sixteenth NMOS transistor M16The connection point of (a); eighth resistor R8The other end of the DC voltage source is connected with a DC voltage source VDD4(ii) a Ninth resistor R9One end of which is connected with a seventeenth PMOS transistor M17And an eighteenth NMOS transistor M18The connection point of (a); ninth resistor R9The other end of the DC voltage source is connected with a DC voltage source VDD5(ii) a The output end X is a seventeenth PMOS transistor M17And eighteenth NMOS crystalPipe M18The connection point of (a).

The literal computation module 40 includes a first threshold type memristor MR1Second threshold type memristor MR2And a third threshold type memristor MR3And a fourth threshold type memristor MR4And a fifth threshold type memristor MR5Nineteenth PMOS transistor M19Twentieth NMOS transistor M20Twenty-first NMOS transistor M21Twenty-second NMOS transistor M22Twenty third PMOS transistor M23Twenty fourth NMOS transistor M24Twenty-fifth NMOS transistor M25Twenty sixth NMOS transistor M26Twenty seventh NMOS transistor M27And a DC voltage source VDD6(ii) a Wherein the nineteenth PMOS transistor M19Gate of (D), twentieth NMOS transistor M20Gate and first threshold type memristor MR1The positive ends of the two are connected with an enable signal input end CP; nineteenth PMOS transistor M19Drain electrode of the twenty-third PMOS transistor M23Drain electrode of (1), third threshold type memristor MR3Positive terminal, fourth threshold type memristor MR4Positive terminal and fifth threshold type memristor MR5The positive ends of the two are connected with a direct-current voltage source VDD6(ii) a Nineteenth PMOS transistor M19Is connected to the twentieth NMOS transistor M20A source electrode of (a); twentieth NMOS transistor M20The drain of (2) is grounded; twenty-first NMOS transistor M21Is connected with a nineteenth PMOS transistor M19And the twentieth NMOS transistor M20The connection point of (a); twenty-first NMOS transistor M21Is connected to carry CinAn output terminal X of the input module 30; twenty-first NMOS transistor M21Drain of the first and twenty-second NMOS transistors M22And a twenty-sixth NMOS transistor M26The grid electrodes of the first and second memory resistor are connected with a first threshold type memristor MR1And a second threshold type memristor MR2A negative terminal of (a); second threshold type memristor MR2The positive terminal of the power supply is grounded; twenty-second NMOS transistor M22Source electrode of (1) is connected with a third threshold type memristor MR3A negative terminal of (a); twenty third PMOS transistor M23Gate and twentiethFour NMOS transistors M24The grids of the two NMOS transistors are connected with a twenty-second NMOS transistor M22And a third threshold type memristor MR3The connection point of (a); twenty third PMOS transistor M23Is connected to the twenty-fourth NMOS transistor M24A drain electrode of (1); twenty-fifth NMOS transistor M25Is connected with a twenty-third PMOS transistor M23And a twenty-fourth NMOS transistor M24The connection point of (a); twenty-fifth NMOS transistor M25Is connected with a fourth threshold type memristor MR4A negative terminal of (a); twenty-second NMOS transistor M22Source of (d), twenty-fourth NMOS transistor M24And a twenty-fifth NMOS transistor M25The source of (2) is grounded; twenty-sixth NMOS transistor M26Is connected with a fifth threshold type memristor MR5A negative terminal of (a); twenty-seventh NMOS transistor M27Is connected with a twenty-sixth NMOS transistor M26And a fifth threshold type memristor MR5The connection point of (a); twenty-sixth NMOS transistor M26And a twenty-seventh NMOS transistor M27The source of (2) is grounded; output end0X0Is a twenty-sixth NMOS transistor M26And a fifth threshold type memristor MR5Connection point, output terminal of1X1Is a twenty-fifth NMOS transistor M25And a fourth threshold type memristor MR4Connection point, output terminal of2X2Is a twenty-third PMOS transistor M23And a twenty-fourth NMOS transistor M24The connection point of (a).

SUM output module 50 includes a twenty-eighth NMOS transistor M28Twenty ninth NMOS transistor M29Thirtieth NMOS transistor M30The tenth resistor R10An eleventh resistor R11And a twelfth resistor R12(ii) a Wherein, the tenth resistor R10One end of the first switch is connected with the signal input end B; a tenth resistor R10Is connected with a twenty-eighth NMOS transistor M28A drain electrode of (1); twenty eighth NMOS transistor M28The grid electrode of the grid electrode is connected with the output end of the character operation module 400X0(ii) a Eleventh resistor R11Is connected to the output of the addend B input module 20B1(ii) a Eleventh resistor R11The other end of the second NMOS transistor is connected with a twenty-ninth NMOS transistor M29A drain electrode of (1); twenty-ninth NMOS transistor M29The grid electrode of the grid electrode is connected with the output end of the character operation module 401X1(ii) a Twelfth resistor R12One end of which is connected with the output end B of the addend B input module 202(ii) a Twelfth resistor R12Is connected with a thirty NMOS transistor M30A drain electrode of (1); thirtieth NMOS transistor M30The grid electrode of the grid electrode is connected with the output end of the character operation module 402X2(ii) a The output terminal SUM is a twenty-eighth NMOS transistor M28Source electrode of, twenty ninth NMOS transistor M29And a thirtieth NMOS transistor M30Of the substrate.

Carry out CoutThe module comprises a thirty-first PMOS transistor M31Thirty-second NMOS transistor M32Thirty-third PMOS transistor M33Thirty-fourth NMOS transistor M34Thirty-fifth NMOS transistor M35Thirty-sixth NMOS transistor M36Thirty-seventh NMOS transistor M37Thirty-eighth NMOS transistor M38Thirty-ninth PMOS transistor M39A forty-th PMOS transistor M40Thirteenth resistance R13A fourteenth resistor R14A fifteenth resistor R15Sixteenth resistor R16Seventeenth resistor R17Eighteenth resistor R18And a DC voltage source VDD7、VDD8、VDD9(ii) a Wherein, the thirty-first PMOS transistor M31Gate of (1), thirty-second NMOS transistor M32Gate of (1), a thirty-third PMOS transistor M33And a thirty-fourth NMOS transistor M34The gates of which are all connected to the output end SUM of the SUM output module 50; thirteenth resistor R13One end of (1), a fifteenth resistor R15And a thirty-seventh NMOS transistor M37The drain electrodes of the two are respectively connected with a direct current voltage source VDD7、VDD8、VDD9(ii) a Thirteenth resistor R13The other end of the first transistor is connected with a thirty-first PMOS transistor M31A source electrode of (a); thirty-first PMOS transistor M31Is connected to the thirty-second NMOS transistor M32A drain electrode of (1); a fourteenth resistance R14And a seventeenth resistor R17Are all connected with a thirty-first PMOS transistor M31And a thirty-second NMOS transistor M32The connection point of (a); a fourteenth resistance R14And a thirty-second NMOS transistor M32The source of (2) is grounded; a fifteenth resistor R15Is connected with a thirty-third PMOS transistor M33A source electrode of (a); thirty-third PMOS transistor M33Is connected to the thirty-fourth NMOS transistor M34A drain electrode of (1); thirty-fourth NMOS transistor M34Is connected with a sixteenth resistor R16One end of (a); sixteenth resistor R16The other end of the first and second electrodes is grounded; eighteenth resistor R18One end of the second transistor is connected with a thirty-third PMOS transistor M33And a thirty-fourth NMOS transistor M34The connection point of (a); seventeenth resistor R17Is connected with a thirty-fifth NMOS transistor M35A drain electrode of (1); thirty-fifth NMOS transistor M35The grid electrode of the grid electrode is connected with the output end of the character operation module 401X1(ii) a Eighteenth resistor R18Is connected with a thirty-sixth NMOS transistor M36A drain electrode of (1); thirty-sixth NMOS transistor M36The grid electrode of the grid electrode is connected with the output end of the character operation module 402X2(ii) a Thirty-eighth NMOS transistor M38Gate of (2) and a fortieth PMOS transistor M40The grid of the grid is connected with the signal input end A; thirty-seventh NMOS transistor M37And a thirty-ninth PMOS transistor M39Is connected with the signal input terminal Cin(ii) a Thirty-seventh NMOS transistor M37Is connected with a thirty-eighth NMOS transistor M38A drain electrode of (1); forty-th PMOS transistor M40The source of (2) is grounded; forty-th PMOS transistor M40Is connected with a thirty ninth PMOS transistor M39A source electrode of (a); output terminal CoutIs a thirty-fifth NMOS transistor M35Source of (2), thirty-sixth NMOS transistor M36And a thirty-eighth NMOS transistor M38And a thirty-ninth PMOS transistor M39Of the substrate.

The invention adopts two operation methods of modulo-3 addition operation and character operation.

The modulo-3 addition operation is defined as follows:

for simplicity, the present invention represents the modulo-3 addition operation as xk

The literal operation, the ternary and operation, and the ternary or operation form a complete set, defined as follows:

the truth table for literal operations is as follows:

table-character operation truth table

It can be transformed according to the truth table of a three-valued full adder as follows.

Truth table of full adder with two and three values

The results using modulo-3 addition and text operations are obtained as follows:

and: SUM ═ SUM0Cin 0(0A0·B0+1A1·B1+2A2·B2)+1Cin 1(0A0·B1+1A1·B2+2A2·B0) (3)

Carry: cout0Cin 0[1A1·SUM1+2A2·SUM2]+1Cin 1[0A0·SUM1+1A1·SUM2]+1Cin 1·2A2(4)

In the formula (3) BkThe meaning of (a): the input B is modulo-3 added with 0, 1, and 2, respectively, as follows:

truth table for table three-module 3 addition operation

While0Cin 0Representing when carry input CinWhen the average molecular weight is 0, the average molecular weight,0A0.B0when A is 0, SUM is B0And so on. In order to simplify the circuit and realize the function of a three-value full adder, B0、B1、B2The former part is used as input for text calculation, which can be realized by a simple text calculation module 40, as follows.

Order to

Further obtaining:

and: SUM ═ SUM0x0·B0+1x1·B1+2x2·B2 (7)

Carry: cout1x1·SUM1+2x2·SUM2+1Cin 1·2A2 (8)

The circuit is designed according to the equations (7) and (8).

The working process of each module of the invention is as follows:

1. addend a input module 10

The addend a input block 10 implements the function of modulo-3 adding the input signals a and 1. First PMOS transistor M1And a second PMOS transistor M2The model and the starting voltage of the resistor are the same, and the first resistor R1And a third resistor R3The resistance values are the same.

(1) When the input A is low, the first PMOS transistor M1And a second PMOS transistor M2Conducting, third NMOS transistor M3And a fourth NMOS transistor M4Cut-off, DC voltage source VDD1Through a first resistor R1A first PMOS transistor M1And a third resistor R3A second PMOS transistor M2Dividing voltage and outputting an intermediate level;

(2) when the input A is at the middle level, the first PMOS transistor M1And a second PMOS transistor M2Off, third NMOS transistor M3On, the fourth NMOS transistor M4Cut-off, DC power supply VDD1Through a third NMOS transistor M3Outputting a high level;

(3) when the input A is high, the first PMOS transistor M1And a second PMOS transistor M2Off, third NMOS transistor M3And a fourth NMOS transistor M4Is turned on because of the fourth NMOS transistor M4And is grounded, so a low level is output.

In summary, the addend a input block 10 implements a modulo-3 addition of the input signals a and 1, denoted as a1The result will be taken as carry CinPart of the input signals of the input module 30.

2. Addend B input module 20

The addend B input block 20 implements the function of modulo-3 addition of the input signal B with 1 and 2, respectively. A fourth resistor R4A fifth resistor R5A sixth resistor R6And a seventh resistor R7The eighth NMOS transistor M with the same resistance8And a ninth NMOS transistor M9Is the same as the start voltage, and a tenth NMOS transistor M10And an eleventh NMOS transistor M11Model and turn-on voltage ofThe same is true.

(1) When the input B is low, the fifth PMOS transistor M5On, the sixth NMOS transistor M6And an eighth NMOS transistor M8And a ninth NMOS transistor M9Are all cut off, the direct current voltage source VDD2Through a fifth PMOS transistor M5The output is high level, and the tenth NMOS transistor M is arranged10And an eleventh NMOS transistor M11Conducting, twelfth PMOS transistor M12Cut-off, DC power supply VDD2Through a sixth resistor R6The tenth NMOS transistor M10And a seventh resistor R7Eleventh NMOS transistor M11Dividing voltage and outputting an intermediate level;

(2) when the input B is at the middle level, the fifth PMOS transistor M5Off, sixth NMOS transistor M6On, the seventh PMOS transistor M7Off, eighth NMOS transistor M8Off, ninth NMOS transistor M9Is turned on because of the ninth NMOS transistor M9And is grounded, so a low level is output. At this time, the tenth NMOS transistor M10And an eleventh NMOS transistor M11Off, twelfth PMOS transistor M12Conducting, DC power supply VDD2Through a twelfth PMOS transistor M12And outputting a high level.

(3) When the input B is high, the fifth PMOS transistor M5Off, sixth NMOS transistor M6On, the seventh PMOS transistor M7Off, eighth NMOS transistor M8And a ninth NMOS transistor M9Are all conducted, and a DC power supply VDD2Through a fourth resistor R4And an eighth NMOS transistor M8And a fifth resistor R5And a ninth NMOS transistor M9And dividing the voltage and outputting an intermediate level. At this time, the tenth NMOS transistor M10Off, eleventh NMOS transistor M11Conducting, twelfth PMOS transistor M12Is turned off because of the eleventh NMOS transistor M11Through a seventh resistor R7And is grounded, so a low level is output.

In summary, the addend B input block 20 implements a modulo-3 addition of the input signal B with 1 and 2, respectively, denoted as B1,B2. Converting an input signal B into two different signal outputs, i.e. according to a three-valued full-adder definition, B1,B2Will be the three inputs to SUM output module 50.

3. Carry bit CinInput module 30

This block is connected to an addend a input block 10, the input of which is signal A, A1And carry input signal Cin. In a three-valued full adder, carry input signal CinThere are only two states, low and intermediate.

(1) When inputting CinWhen low, the thirteenth NMOS transistor M13Conducting the fourteenth NMOS transistor M14Off, the input signal A passes through the thirteenth NMOS transistor M13After flowing through the two-stage ternary inverter, the output end X is an addend A;

(2) when inputting CinAt the middle level, the thirteenth NMOS transistor M13Off, fourteenth NMOS transistor M14Conducting and adding the output end A of the A input module 101Through a fourteenth NMOS transistor M14After passing through the two-stage three-valued inverter, the output terminal X is a modulo-3 addition signal A of addend A and 11

In summary, the input signal CinRespectively control signals A and A1The output of (3) is functionally equivalent to a transmission gate, and the output terminal X is used as an input of the character operation module 40.

4. Memristor-based character operation module 40

The character operation module 40 based on the memristor is composed of 5 threshold memristors and 9 MOS transistors, and the output is0X01X12X2For controlling the output of the SUM in the SUM output module 50.

Wherein the first threshold type memristor MR1And a second threshold type memristor MR2Is an OR gate unit, and when the input signal CP is at a high level, the first threshold type memristor MR1Set to a low resistance state, a second threshold type memristor MR2Is grounded, and a second threshold type memristor MR2Set to high impedance state, Y is high level, nineteenth PMOS transistor M19And the twentieth NMOS transistor M20Is an inverter, N is low level, the twenty-first NMOS transistor M21Off, Y is only high; when the input signal CP is at a low level, N is at a high level, and the twenty-first NMOS transistor M21Conducting, wherein Y is an input signal X; i.e., CP is the enable signal, active low. When the input signal CP is at low level, the working process of the character circuit module is as follows:

(1) when the input X is at low level, the twenty-second NMOS transistor M22Cut-off, third threshold type memristor MR3Exhibits a low resistance state ROND.C. power supply VDD6Memristor M through third threshold typeR3Twenty third PMOS transistor M outputting high level23Off, twenty-fourth NMOS transistor M24Is turned on because of the twenty-fourth NMOS transistor M24Grounded, so a low level is output; twenty-sixth NMOS transistor M26Cut-off, fifth threshold type memristor MR5Exhibits a low resistance state ROND.C. power supply VDD6Memristor M through fifth threshold typeR5Outputting a high level; twenty-seventh NMOS transistor M27Is turned on because of the twenty-seventh NMOS transistor M27Grounded, so a low level is output;

(2) when the input X is at the middle level, the twenty-second NMOS transistor M22Cut-off, third threshold type memristor MR3Exhibits a low resistance state ROND.C. power supply VDD6Memristor M through third threshold typeR3Twenty third PMOS transistor M outputting high level23Off, twenty-fourth NMOS transistor M24Is turned on because of the twenty-fourth NMOS transistor M24Grounded, so a low level is output; twenty-sixth NMOS transistor M26Is turned on because of the twenty-sixth NMOS transistor M26Grounded, so a low level is output; twenty-fifth NMOS transistor M25Cut-off, fourth threshold type memristor MR4Exhibits a low resistance state RONTwenty seventh NMOS transistor M27Cut-off, DC power supply VDD6Memristor M through fourth threshold typeR4Output high level;

(3) When the input X is high level, the twenty-second NMOS transistor M22Is turned on because of the twenty-second NMOS transistor M22Grounded, so a low level is output; twenty third PMOS transistor M23Conducting, twenty-fourth NMOS transistor M24Cut-off, DC power supply VDD6Through a twenty-third PMOS transistor M23Outputting a high level; twenty-sixth NMOS transistor M26Is turned on because of the twenty-sixth NMOS transistor M26Grounded, so a low level is output; twenty-fifth NMOS transistor M25On, the twenty seventh NMOS transistor M27Is turned off because of the twenty-fifth NMOS transistor M25And is grounded, so a low level is output.

In summary, when the input X is at a low level,0X0is at a high level,1X1Is at a low level,2X2Is low level; when the input X is at the intermediate level,0X0is at a low level,1X1Is at a high level,2X2Is low level; when the input X is at a high level,0X0is at a low level,1X1Is at a low level,2X2Is at a high level; the function of literal operation is realized.

5. SUM output module 50

Output of the word operation module 400X0When high, the twenty-eighth NMOS transistor M28Is turned on, the signal B passes through the twenty-eight NMOS transistor M28Outputting; output of the word operation module 401X1When the voltage is high, the twenty ninth NMOS transistor M29On, signal B1Through twenty ninth NMOS transistor M29Outputting; output of the word operation module 402X2When high, the thirty NMOS transistor M30On, signal B2Through the thirty-eighth NMOS transistor M30And (6) outputting.

In summary, SUM output module 50 realizes the selective output of SUM signal according to the output of character operation module 400X01X12X2High-low separately output signal B, B of level1、B2

6. Carry bit CoutOutput module 60

Thirteenth resistor R in the module13And a fourteenth resistance R14The resistance values are the same.

When SUM is low, the thirty-first PMOS transistor M31On, the thirty-second NMOS transistor M32Cut-off, DC power supply VDD7Through a thirteenth resistor R13And a fourteenth resistor R14Dividing voltage and outputting an intermediate level; thirty-third PMOS transistor M33On, the thirty-fourth NMOS transistor M34Cut-off, DC power supply VDD8Through a thirteenth PMOS transistor M33Outputting the intermediate level; when SUM is at the middle level, the thirty-first PMOS transistor M31Off, thirty second NMOS transistor M32Is turned on because of the thirty-second NMOS transistor M32Grounded, so a low level is output; thirty-third PMOS transistor M33On (threshold voltage of-0.5V), the thirty-fourth NMOS transistor M34Cut-off, DC power supply VDD8Through a thirteenth PMOS transistor M33Outputting the intermediate level; when SUM is high, the thirty-first PMOS transistor M31Off, thirty second NMOS transistor M32Is turned on because of the thirty-second NMOS transistor M32Grounded, so a low level is output; thirty-third PMOS transistor M33On/off, thirty-fourth NMOS transistor M34Is turned on because of the thirty-fourth NMOS transistor M34Grounded, so a low level is output;

output of the word operation module 401X1When high, the thirty-fifth NMOS transistor M35Conducting, signal SUM1Through the thirty-fifth NMOS transistor M35Outputting; output of the word operation module 402X2When high, the thirty-sixth NMOS transistor M36Conducting, signal SUM2Through a thirty-sixth NMOS transistor M36Outputting; when addend A and carry input CinAll at low level, outputCoutIs low level; when the addend A is high, carry is input into CinAt an intermediate level, output CoutAt an intermediate level.

Carry bit CoutOutput module 60, when the signal is1X1At a high level, Cout=SUM1(ii) a When the signal is2X2At a high level, Cout=SUM2(ii) a When inputting signals A and CinWhen all are low, Cout0; when the input signal A is high, the input signal CinAt an intermediate level, Cout=1。

The present invention is defined by a three-valued full adder, which directly generates the original sum input signal A, B, C through the addend B input module 20inThe related sum signal passes through an addend A input module 10 and carries CinThe combination of the input module 30 and the text operation module 40 generates a switching signal for controlling the output of each sum signal, i.e.0X01X12X2The SUM signal generated is selected and transmitted by the SUM output module 50, and a part of the carry output C is generatedoutA signal; and carry CoutThe output module 60 also acts as a transmission gate, based on the control signal1X12X2To select CoutThe output is the kind of signal, so far, the function of the three-value full adder is realized. The character operation-based three-value memristor full adder adopts a new circuit design idea, and enriches the design method of memristor digital circuits.

It is to be understood that the exemplary embodiments described herein are illustrative and not restrictive. Although one or more embodiments of the present invention have been described with reference to the accompanying drawings, it will be understood by those of ordinary skill in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present invention as defined by the following claims.

18页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:运算控制方法、装置、系统、存储介质及处理器

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类