Chapter 32: Make an Adder

32.

"What are you talking about?, you don't need to rely on the underlying spirit stones, and just make an independent calculator?" said the old man a little excitedly.

Everyone around was also in a commotion again.

Because everyone present knew very well that the spirit armor driving exercises of the Yin Yang Society were all built based on the underlying spirit stones.

This bottom spirit stone is the cornerstone, and everything else is attached to it.

If you want to make a calculator that can run independently without relying on the underlying spirit stone, this is not something that no one has thought about before, and some people have tried it, but all of them have failed.

Therefore, in the end, the Yin and Yang Society can only rely on reverse deduction, which takes a huge amount of time, but it is the only promising path.

Therefore, when Cheng Li said that he could make an independent calculator, everyone was shocked.

"Yes, to prove that what I said can be done, I'm going to make an adding machine first. In the face of everyone's disbelief, Cheng Li seemed very calm.

It's as if making an adding machine couldn't be easier for him.

"Okay, okay, that Cheng Li, you start doing it now. If you can make an arithmetic in public that doesn't rely on the underlying spirit stones, even if it is only the simplest addition function, I can also call the shots and save you from the sin of arrogance just now...... No, I still have to remember your great merit, and I will pull you into the core team of this concentrated transformation of the spirit armor, and when the time comes, the resources of the Yin Yang Society, and even the entire Qingling Island, will be at your disposal!"

Cheng Li nodded and said, "Okay, but I need an assistant to help me." ”

"Everyone, take your pick. ”

"Then I want Fang Xiaochun to be my assistant. ”

"Yes, Xiaochun, you can go and be Cheng Li's assistant and obey all his requests. ”

Fang Xiaochun pursed his lips, looking reluctant. However, she also seemed to be curious about making the calculator independently, so she finally nodded yes.

After Cheng Li saw that everything was ready, he looked at the old man and said.

"The next thing I'm going to do is not a mechanical calculator, but a real calculator that can automatically calculate the result and output the result as long as it is input. ”

The core of a modern computer, no matter how complex, is made up of three parts.

Input→ operations → outputs.

The addition machine that Cheng Li is going to do next is the prototype of the first computer in human history, which already includes three core modules: input, operation and output.

And it's a real computer with logical operations.

"And this calculator, which will use the core of logical operations to calculate independently, does not require manual intervention in the calculation process, is a real calculator. ”

In human history, many tools have been invented to help calculations, such as the abacus.

However, in the process of calculation, the abacus needs human thinking to operate and help the calculation. The actual abacus itself does not have a calculation function, so it cannot be regarded as a calculator in the true sense.

"Logic?" I always heard this word, and I didn't know why.

Only then did Cheng Li remember that the word logic was a transliteration, which was translated by Yan Fu in the late Qing Dynasty. In this world of cultivation, naturally this word has not appeared.

So Cheng Li explained: "Logic refers to the law of change of things. ”

"For example, the three major changes of yin and yang that you already know are actually the three major logics. ”

Cheng Li had replied in the test paper before.

"The Tao begins with Tai Chi, and Tai Chi is one. ”

"Tai Chi is divided into yin and yang, and yin and yang are two. ”

"Yin and yang evolve and change, and the change is three. ”

"There are three changes in yin and yang: non, and, or. ”

At that time, there were three changes in the yin and yang of the answer in the Cheng Li test paper: non, and, or, which were actually the three basic logical operations of the computer.

The old man said thoughtfully: "I know, the logic you said is an internal law of yin and yang changes.

"For example, yin and yang can be interchangeable, this is a kind of logic, yin flourishes and yang declines, which is also a kind of logic, and yang flourishes and yin declines, which is also a logic. ”

Cheng Li nodded and said: "That's right, the exchange of yin and yang, yin and yang, and yang and yin are the three basic logics of yin and yang changes. ”

And through these three basic logics, we can also derive four derivative logics, which together have a total of 7 logical units. ”

"We can rely on these seven logic units to do all the calculations we want to do and achieve any function we want, just by constantly stacking and superimposing. ”

Modern computers, no matter how complex they are, no matter how many billions of transistors are integrated into the CPU, are constantly stacked with these seven logic gate circuits.

It can be said that these seven kinds of gate circuits are the cornerstone of modern computers and the core of their operations.

The fundamental reason for this is that the logic implementation of the gate circuit can be implemented in different connection methods of the circuit.

In other words, circuits can be equipped with the function of logic operations, and based on this, modern electronic computers are born.

After coming to this world, Cheng Li has not been idle, and has been studying whether yin-yang arithmetic has the conditions for the composition of computers.

Fortunately, when he was researching in the library yesterday, Cheng Li was pleased to find that the core of yin-yang arithmetic also lies in logical operations, and the "three" mentioned in the cultivation foundation of two, two, three, and three things in one life is the three basic logics.

As long as there is logical operation, there is the basis of the computer.

Then, in the past two hours, when Cheng Li visited the Yin-Yang Society, he was not wandering aimlessly, but observing purposefully.

Then he discovered that in this world, there is the concept of spiritual path.

Connect a spirit stone through two crystal wires, and then connect a magic weapon, you can let the spiritual power flow in the crystal wires and drive the magic weapon.

In Cheng Li's view, this is a living version of the spiritual power circuit, the difference is that the circuit here is not running electricity, but spiritual power.

It is not the battery that provides the power supply, but the spirit stone.

With the basis of logical operations and the circuits to implement them, in Cheng Li's view, all the basic conditions for making computers are available.

Then making the simplest addition machine is not a difficult thing for Cheng Li.

The addition machine, which uses logical operations as the core, is the prototype of the modern computer, and it can be said that addition is the only thing that the computer does.

Once addition is implemented, it can be constructed to achieve subtraction, division, multiplication, and even more complex operations.

The road is simple, and the different paths are the same. No matter how complex things are, the core of their structure must be concise, and this is the beauty of science.

Cheng Li re-read what he was going to do next in his heart before he ordered Fang Xiaochun.

"Xiao Chun, get me 100 crystal threads, 10 spirit stones, and 10 illuminating magic weapons. ”

======

(Today is the Mid-Autumn Festival, Rabbit wishes everyone a happy Mid-Autumn Festival and a happy family!)

As the mascot of the Mid-Autumn Festival, the rabbit asks everyone for recommendation votes on the moon.

On such a beautiful day, let's vote for the rabbit more!)