Welding Emperor Wu burst into the circle at station B: purely hand-made transistors and homemade CPU, it takes half a year, and the program can be run

Netizen: People are growing up on the liver

To what extent can a person live?

A recent video of the fire on station B may give a perfect interpretation of this question:

pure! hand! work! Homemade CPU!

Welding Emperor Wu burst into the circle at station B: purely hand-made transistors and homemade CPU, it takes half a year, and the program can be run

This “milk-flavored” Up master spent half a year, using his diligent hands, “point by point” welding, and finally created a complete CPU!

Can I use a CPU manually?

Of course, he also made a demo show, let’s take a look at the effect.

Welding Emperor Wu burst into the circle at station B: purely hand-made transistors and homemade CPU, it takes half a year, and the program can be run

The hand-made “liver” produced a CPU, and successfully ran the water lamp effect, which directly caused a large wave of netizens to exclaim:

Liver Emperor! Emperor Wu Wu!

People are growing on the liver!

(Feel this full screen Respect)

Welding Emperor Wu burst into the circle at station B: purely hand-made transistors and homemade CPU, it takes half a year, and the program can be run

Next, let us take a look at the complete process of “Liver Emperor” self-made CPU.

Handmade CPU

In fact, before publishing this video, the owner of Up “joked” in the post bar:

The CPU is too expensive. You can’t afford a CPU if you buy a graphics card, so you can figure it out by hand…

Welding Emperor Wu burst into the circle at station B: purely hand-made transistors and homemade CPU, it takes half a year, and the program can be run

Unexpectedly, I really did what I said.

According to this Up master, he mainly uses 3 raw materials:

Diodes, transistors and resistors.

Generally speaking, the structure of a CPU can be roughly divided into arithmetic logic components, register components, and control components.

And the first thing he “started” was the register part of the CPU.

Up master designed a 6-bit shift register:

Welding Emperor Wu burst into the circle at station B: purely hand-made transistors and homemade CPU, it takes half a year, and the program can be run

Its function is not only for storage, but also for shifting data to the right or left one by one under the control of the clock signal.

Simply put, it is like an uncle of a traffic policeman. When data comes in from one direction, this shift register can direct it when and where to go.

The second structure of the Up main processing is the Program Counter (PC).

In simple terms, its role is to record where the program is running.

This was also the most time-consuming and complicated part of the entire project, which took 3 months.

Welding Emperor Wu burst into the circle at station B: purely hand-made transistors and homemade CPU, it takes half a year, and the program can be run

There are many more functions involved in the program counter.

The most basic thing is that after reading the instructions one by one, the count is automatically +1; and after the CPU restarts, the count will be cleared.

Moreover, under different conditions, it is necessary to realize functions such as direct jump, function call, and function return.

It sounds complicated enough.

However, in addition to this, it is often accompanied by various “metaphysical problems”.

The Lord Up gave an example:

It took more than a week to find a reversed-welded diode in the deepest part…

But the hard work paid off. After three months of bald time, he still managed the most complicated module.

There is no problem with the power-on test:

Welding Emperor Wu burst into the circle at station B: purely hand-made transistors and homemade CPU, it takes half a year, and the program can be run

Then there are hard disk (ROM) and memory (RAM).

This is because the two parts outside the CPU are relatively large and it is unrealistic to rub one by hand.

Therefore, Up mainly uses hm628512 which is easier to operate as ROM and RAM:

Welding Emperor Wu burst into the circle at station B: purely hand-made transistors and homemade CPU, it takes half a year, and the program can be run

△Left: RAM and pointer right: ROM

Then assemble the ROM and RAM, and now the basic module of the CPU has been basically completed.

The next step is to build the instruction decoder.

It is mainly used to analyze and run the CPU instructions passed here:

Welding Emperor Wu burst into the circle at station B: purely hand-made transistors and homemade CPU, it takes half a year, and the program can be run

Then add the arithmetic unit (ALU) for addition, subtraction, multiplication, and division:

Welding Emperor Wu burst into the circle at station B: purely hand-made transistors and homemade CPU, it takes half a year, and the program can be run

Then welded finally had a through- caching up:

Welding Emperor Wu burst into the circle at station B: purely hand-made transistors and homemade CPU, it takes half a year, and the program can be run

Now, this CPU, all welded by transistors, diodes and resistors, is complete!

Seeing the densely packed components, the huge amount of engineering needless to say.

It’s no wonder that a lot of netizens can call “Liver Emperor” directly.

There is also the most original code of pure handwriting

Think it’s all done by hand welding?

No, no, there are more hardcore ones.

Because the instruction set and architecture of this CPU are independently developed, there is no suitable programming language.

How can you make it run?

The countermeasures of this Up master are:

Pure handwriting of the most primitive code-binary programming!

Welding Emperor Wu burst into the circle at station B: purely hand-made transistors and homemade CPU, it takes half a year, and the program can be run

噫嚱嚱! 噫嚱嚱!

This exposure directly triggered the second wave of climax among netizens:

Handwritten instruction set, cowhide! This is true. Write code!

Directly on the mechanical code, too ruthless!

Then… then…

The Master Up turned on the ancient programming mode-the “buckle” program!

Welding Emperor Wu burst into the circle at station B: purely hand-made transistors and homemade CPU, it takes half a year, and the program can be run

In the face of this situation, how could one say “unbelievable son”.

Everything is ready.

Next, is the moment to witness the miracle.

Turn on the lights and run!

But in the beginning, the program didn’t run smoothly.

Even if the Great God restarts several times, the effect of the marquee still occasionally has problems.

Welding Emperor Wu burst into the circle at station B: purely hand-made transistors and homemade CPU, it takes half a year, and the program can be run

But the bug was quickly found:

One place is disconnected.

At the same time, because there is no I/O interface, the lamp used in the test is the lamp of the temporary register.

Moreover, the left shift instruction and the jump instruction both use the same group of lights.

Therefore, the effect of the running water lamp is not very obvious.

Therefore, the Great God reprogrammed to make the CPU jump to 0X0F to run.

Thus, when the lamp is off the jump, left instructions to let out a way.

Welding Emperor Wu burst into the circle at station B: purely hand-made transistors and homemade CPU, it takes half a year, and the program can be run

After all the modifications are completed, restart the program and start it!

This time, there was no abnormality.

Welding Emperor Wu burst into the circle at station B: purely hand-made transistors and homemade CPU, it takes half a year, and the program can be run

Walk into the “Liver Emperor” God

After watching this wave of “God-level” operations, everyone would like to know this great god.

Qubits help you realize this dream.

The great god was originally named Lin Naiwei, a native of Beihai, Guangxi.

The inspiration for this project came from analyzing the binary in the executable file when he wrote the code.

At that time, the great god came up with an idea:

How does the CPU execute this string of 0101?

After combining the knowledge of the digital and electronic courses, the great god guessed the general principle, so he wanted to give it a try.

At first he wanted to do it with gate-level circuits, but he felt that the difficulty was not very high, and he wanted to understand the whole process from scratch.

Therefore, it was decided to start with the most basic analog circuit.

The most difficult part of the whole process is “the connection of each level of the device” and “the operating speed of the CPU”:

I haven’t read books about CPU principles before. I designed a set of circuits based on my own understanding of the gate circuit. I want to design a set of my own architecture.

From the most basic triode switch to the gate-level circuit, the circuit diagrams found on the Internet are useless at all, and you need to design your own. Although the theory is passed after the design is completed, there are new problems in the combination of gate-level devices into functional-level devices. The combination of multiple functional-level circuits to form functional modules will cause new problems, and the connection between modules will be more important. New problems will arise.

At each level of the problem, it is very likely that the basic circuit will need to be modified, and then new problems will arise from the beginning.

Because there is no professional equipment to debug, I used an LED and buzzer, and I tried my best to increase the speed to about 100kHz. This is very slow and the process is very difficult.

As regard the device, god are commercially available from the Internet, then they are a point that the module be welded.

The CPU consumes substantially more than 1000 transistors, a plurality of diodes 2000, the number of resistors also reached more than 2,000, welding points nearly million.

The current cost is about 1,000 yuan.

And netizens ridiculed most of the barrage, and there were also process issues.

According to the Great God:

If you have to set a process for it, it is 2.54mm, which is nearly 1 million times larger than the advanced 3nm.

Finally, the Up master also said that in the next work, the function of the CPU will continue to be improved, so that it can run more complex programs.

Are you looking forward to this?

Reference link

[1]https://www.bilibili.com/video/BV1sy4y1j7Ue

[2]https://tieba.baidu.com/p/7432882849?see_lz=1

Posted by:CoinYuppie,Reprinted with attribution to:https://coinyuppie.com/welding-emperor-wu-burst-into-the-circle-at-station-b-purely-hand-made-transistors-and-homemade-cpu-it-takes-half-a-year-and-the-program-can-be-run/
Coinyuppie is an open information publishing platform, all information provided is not related to the views and positions of coinyuppie, and does not constitute any investment and financial advice. Users are expected to carefully screen and prevent risks.

Like (0)
Donate Buy me a coffee Buy me a coffee
Previous 2021-07-26 04:11
Next 2021-07-26 04:12

Related articles