Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to make a CPU

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > IT Information >

Share

Shulou(Shulou.com)11/24 Report--

This article comes from the official account of Wechat: low concurrency programming (ID:dibingfa). Author: flash.

To create a CPU by hand.

In the eyes of students majoring in electronics, it is very easy.

In the eyes of students majoring in computer science, it is a little complicated, and some professional courses may take students to do one, or use simulation software like Logisim to simulate and realize one.

In the eyes of non-computer majors, it is a little unimaginable.

I belong to the third category.

Making a CPU by hand has many advantages, but after it is done, it does have a more in-depth and intuitive understanding of the principle of computer composition, and can also slightly set foot in the electronic field and become interested.

So in a few months, I really put it into practice and made a running toy version of the eight-bit CPU.

Oh, this is not the final version. Readers who are familiar with me know that the full version of CPU has been angrily broken in half by her because he quarreled with his girlfriend at that time.

If it is finally made, it should look like this.

Interested friends, who do not know how to start, can follow my old path and share it with you today.

At that time, I had no idea how to do this thing. I searched the Internet for a long time, but I couldn't find a reliable one that could teach me to do it step by step, but then I found this magical website.

Https://eater.net/

This website is really amazing, the author is Ben Eater, is a geek, there are a lot of videos showing you how to do all kinds of things, and it's nanny-level teaching.

And I found that one of the teaching at the top is Build an 8-bit CPU from scratch, which uses a bread board to build an eight-bit CPU.

So I followed the video step by step.

You can click on it and have a look.

Look at the overall outline, that is, it is done one by one. You said that if you spend a period of time doing it again, how can you not understand the composition principle of the computer? It's like a family treasure.

Of course, the first question I encountered at that time was what materials to buy, which are also included on this page, in the previous chapters.

However, this is all the way to buy in the United States, and it took me a long time to correspond to the name of the electronic components in China.

You can imagine my pain at that time. In the absence of any electronic knowledge, converting those descriptions in English into electronic devices that can be bought in China, I feel that I can become the spokesman of Ben Eater in China.

After preparing these equipment, I just build it step by step with the video. I really built it step by step with the video, and I didn't dare to differ from other people's techniques and gestures, .

For example, the first to build is the clock module, using a 555 timer.

For example, the process of forming a register with two 74LS173 and one 74LS245 and connecting to the bus.

Then I plugged in one wire at a time, and it felt like my hands were getting smaller at that time.

Oh, of course, if you don't know anything about electronics, such as me, you have to start with how to understand the resistance of the color ring resistance.

And what different kinds of capacitors look like.

Electrolytic capacitor

Monolithic capacitor

Wait.

In short, this thing can not be fast, if you can stick to it, and finally get it all done, it will look like this (ideal situation)

If you look at the front picture, it looks like this.

It took me a total of two months, but it's because I usually do it for about half an hour before I go home at noon to go to bed, so I only do it for half an hour every day. If I do more on weekends, I will come out.

After getting this out, many principles have really become clearer, including what I knew before, and when I really realized it on my own, I had a completely different understanding, especially the design and implementation of the whole controller circuit. It really surprised me.

If you also want to be a CPU, whether it's to help you understand the principle of CPU, or just want to have fun, or to find an interesting breakthrough in getting started with electronic DIY, you can go to this website and do a little bit of babysitting teaching with Eater bosses.

However, this is pure English, and there are no subtitles, but fortunately, there are Chinese people to help match the subtitles, and put it on the B station.

Https://space.bilibili.com/3065282/#/channel/detail

Oh, by the way, to tell you a little secret, when you buy these wires, don't buy wires of that kind of fixed length, it's hard to adjust the length, and eventually the CPU you make looks like a mess.

It may seem troublesome to buy a direct roll of thread and cut it out of different lengths with wire cutters, but it can save a lot of time later when the whole thread is beautifully arranged.

Yes, don't fantasize about it all over again. I once plugged a wrong hole in a wire and looked for hours to find out the problem.

Finally, come on! Welcome to the club.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

IT Information

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report