18 ms·
How to make a CPU – a simple picture-based explanation
- marcodiego 5y agoFor a real case of someone making integrated circuits at home, this boy did it: http://sam.zeloof.xyz/ http://sam.zeloof.xyz/ for real.
- cwoolfe 5y agoAfter all that hard work, sell it at a few cents per chip.
- Cxckers 5y agoAs a film photography enthusiast, I love the parallels between making a chip and film development. I wonder if film developing was the original inspiration
- hedgehog 5y agoPhoto etching is used for all kinds of things including making plates for printing, I'd guess that's the more direct ancestor.
- dfox 5y agoDirect ancestor probably is mask-and-tape PCB design process, where the optical step also serve to shrink the (hand made) mask to significantly smaller size of the final board. In fact silicon masks were for a long time designed using essentially same process. In fact if you want to make something mostly flat with small features some variation of photo etching process tends to be the easiest and most repeatable way to go about that.
- hedgehog 5y agoNice illustrations, though step 16 is pretty much "Draw the rest of the F** owl."
- azalemeth 5y agoI'm pretty sure producing the monocrystalline ingot with seven 9's purity also counts as the "rest of the owl", along with basically every other step in this guide. I'm not even convinced that the sawing step is simple – thermal stresses, limitations, impurities, tool hardness and dimensional accuracy concerns, minimising material losses, etc. (I loved his butter knife).
- hedgehog 5y agoYeah fair. Pretty much every part of the process is bonkers. Just the light sources draw something like 1 megawatt and weigh over 100 tons (for extreme ultraviolet). EUV gets absorbed by everything including air, which is bad, but the light source requires plasma so somehow you need both the plasma and vacuum in the same machine without a window or whatever to separate them. Then the features on the chip are so small that random variance in the spatial distribution of landing photons causes defects. And that's just the light, it's amazing anyone can make the process work at all.
- jkingsbery 5y agoThe knife was a great touch! It did look like he was lining it up carefully... Also, it took me two passes through to notice the tooth brush in step 16.
- showerst 5y agoIf you're into this, Huygens Optics has an awesome series where he builds a wafer stepper at home. His is a little less advanced than Sam Zeloofs but the videos are way better -- https://www.youtube.com/watch?v=_w0Z2Y5vaAQ https://www.youtube.com/watch?v=_w0Z2Y5vaAQ
- lsiunsuex 5y agoI've always been curious how someone gets into this line of work. Is it all via college / post education and your directly recruited by these companies? Obviously, this is a very hard (impossible?) thing to teach yourself. I can't imagine more than a few universities offer this type of education? Where would you start / what path would you go down to be a chip designer / work for an Intel / AMD ???
- showerst 5y agoAsking how to work in chips is kind of like asking how to be an engineer -- there are a million sub-specialties so lots of paths. Generally the degrees are Electrical Engineering, with classes along the lines of https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-374-analysis-and-design-of-digital-integrated-circuits-fall-2003/ https://ocw.mit.edu/courses/electrical-engineering-and-compu... (note that's from 2003, just an example) There's also a ton of physics, and chemical and industrial engineering in the process steps.
- irishloop 5y agoAt the public university engineering program I attended in 2000ish (UConn), we offered CompSci (mostly software focused), CompEng (mostly hardware focused), and CompSci+Eng (a balance of both). Either Eng program included several courses on hardware-level EE courses and circuit design, hardware engineering, etc. One of the guys I did my senior design project with ended up working with AMD on processor stuff, so there are educational opportunities, I think you just need to be more on the CompEng/EE side of things and make it your focus.
- deleted 5y ago[deleted]
- thrashh 5y ago…electrical engineer?
- 2143 5y ago> Where would you start / what path would you go down to be a chip designer / work for an Intel / AMD ??? Perhaps by studying Electronics Engineering (also called Computer Engineering, which is different from Computer Science). At my university in USA, I remember recruiters from Intel setting up a stall or something to recruit students. It was in the building which mostly has computer science and computer engineering students, so I guess that's who they were looking for. This was less than 5 years ago.
- calebm 5y agoLooks like magic
- wrycoder 5y agoMaxwell and Lord Kelvin would have no idea what it was all about.
- kayson 5y agoCircuit designer here - feel free to ask any questions about the manufacturing process, design etc. Having a thorough understanding of the process, I thought this was hilarious. But if you really want to understand the process, it's pretty terrible. It spends 10 steps on making a wafer, and then the bulk of the actual process is condensed to 16.
- Aeolun 5y agoWhen designing circuits, I cannot imagine you lay everything out by hand. Do you have specific sets of pre-made circuits/connections that you just kind of copy paste all over depending on the desired functionality of the chip?
- kayson 5y agoAnalog and RF circuits are laid out completely by hand! But there are often a lot of symmetries and repeated structures that mean you can re-use a lot of layout. Also, designs are often copied, reused, and repurposed, so those layouts just get modified to adjust, which saves time. For large digital circuits (e.g. CPUs), it's all automated. There's a lot of human involvement, but ultimately a computer is placing all the transistors and wiring them together.
- jacquesm 5y agoIt's infotainment, not information. I really like the 'indistinguishable from magic' video: https://www.youtube.com/watch?v=NGFhc8R_uO4 https://www.youtube.com/watch?v=NGFhc8R_uO4 lots longer, but far more informative and less fluffy.
- freedomben 5y agoNot what you were offering so feel free to ignore this, but I'm super curious about RISC-V. Do you know if any serious attempts are happening to make RISC-V based systems? And if not, do you know why? Is it too raw/un-polished?
- kayson 5y ago
- capableweb 5y agoI recall there being a game mentioned somewhere here on HN, where you start with basic logic gates (I think), and you build up a fundamental CPU at the end of the game, using the parts you discovered along the way. Problem is, I don't remember what the game is called, and no amount of searching seems to help me. Anyone know what it was called?
- mkirsche 5y agoThat pixel based logic simulator, I made some years ago, might also entertain you: https://github.com/martinkirsche/wired-logic https://github.com/martinkirsche/wired-logic
- mbil 5y agoperhaps this https://news.ycombinator.com/item?id=28735441 https://news.ycombinator.com/item?id=28735441
- capableweb 5y agoYes, that was exactly it! "Turing Complete" it's called apparently, available at Steam: https://store.steampowered.com/app/1444480/Turing_Complete/ https://store.steampowered.com/app/1444480/Turing_Complete/ Thanks
- hoppyhoppy2 5y agoNot a game, but https://www.nand2tetris.org/ https://www.nand2tetris.org/ is a similar concept.
- krallja 5y agoNandGame? https://nandgame.com/ https://nandgame.com/
- GhettoComputers 5y agoNot the same game but if you like that genre zachtronics is really good at logic games and has assembly programming. https://zachtronics.com/tis-100/ https://zachtronics.com/tis-100/ >Print and explore the TIS-100 manual, which details the inner-workings of the TIS-100 while evoking the aesthetics of a vintage computer manual! >Solve more than 20 puzzles, competing against your friends and the world to minimize your cycle, instruction, and node counts. >Design your own challenges in the TIS-100’s 3 sandboxes, including a “visual console” that lets you create your own games within the game! >Uncover the mysteries of the TIS-100… who created it, and for what purpose? https://zachtronics.com/shenzhen-io/ https://zachtronics.com/shenzhen-io/ >Build circuits using a variety of components from different manufacturers, like microcontrollers, memory, and logic gates. Write code in a compact and powerful assembly language where every instruction can be conditionally executed. >Read the included manual, which includes over 30 pages of original datasheets, reference guides, and technical diagrams. >Get to know the colorful cast of characters at your new employer, located in the electronics capital of the world. >Get creative! Build your own games and devices in the sandbox. Engineering is hard! Take a break and play a brand-new twist on solitaire. I didn't know an assembly game could be made, it's a pretty hard game only progammers and very logical people would enjoy.
- pitspotter2 5y agoThe hilarity illustrates an important point. We never just make a thing. A recipe or blueprint is a convenient fiction. Rather we participate in a dynamic evolving process which itself evolved through many cycles of copying, repetition and debugging. Even the first version wasn't strictly original because the idea was borrowed from elsewhere. 'Oh you work at the olive press. How would you like a job with this new-fangled printing machine?' And so on back to the initial and highly controversial creation of the Universe.
- timthorn 5y agoTake a look at the Toaster Project if you want to see building an item from scratch carried through all the way: http://thetoasterproject.org/ http://thetoasterproject.org/
- AlanSE 5y agoYou might not do great to start with computers, and instead, do better to start from the dawn of civilization. https://www.howtoinventeverything.com/ https://www.howtoinventeverything.com/ What I got from this is that I could make homemade coal by myself, MAYBE. I don't know if there's any climate on Earth where I could eek out a net energy return on primitive crops. If there was no one telling me what to do, I would surely starve in early agricultural times. But hey, that's what the Pharaoh's for, amirite? Basic bronze tools are a mind-numbing mess to mentally process.
- agumonkey 5y agoIt's interesting to imagine the human experience of reality when living in such times.
- 7373737373 5y agoYou might like this video "I tried blacksmithing and only got slightly burned": https://www.youtube.com/watch?v=e2HUg144liM https://www.youtube.com/watch?v=e2HUg144liM https://bootstrapping.miraheze.org/wiki/Main_Page https://bootstrapping.miraheze.org/wiki/Main_Page also feels relevant
- Koshkin 5y agoHere's how you make a vacuum tube: https://www.youtube.com/watch?v=EzyXMEpq4qw https://www.youtube.com/watch?v=EzyXMEpq4qw
- GhettoComputers 5y agoThe article doesn't correspond to reality. >3) Now you have 98% concentrated silicon dioxide. Purify it to 99.9% pure silicon dioxide. >4) Purify it further to 99.9999999% polysilicon metal. >While cutting-edge nanometer scale features are not likely to be accessible for a hobbyist, micron-scale amateur chip fabrication does appear to be quite feasible. I have not tried this myself, but Sam Zeloof has, and you should definitely check out his YouTube channel. I think you could probably even build some basic chips with far less equipment than he has if you get the optics right. You could probably make it a hobby business selling cusom chips to other tech people! >A Word Of Caution: In case it wasn't already clear, I don't advise that anyone actually attempt making integrated circuits in their apartment in the manner shown in this video. The 'photoresist' and 'developer solution' in this video is just a colored prop. The real chemicals are usually hazardous and you should only work with them with proper safety gear in a well ventilated area or in a fume hood. Its outdated and in reality you would go to Shenzhen or use a custom fab to make custom designed chips with raw materials sourced from special exotic materials that only make sense for scaled operation. I highlighted the steps 3 and 4 because its not how its done at all. High grade silicon is obtained in a pure state and doped for the chips rather than obtaining random types and refining them. Its not even easy compared to homemade nuclear reactors, which need a lot of natural sources of uranium to enrich but can be done, the refinement is more related to older germanium chips.
- wrycoder 5y agoHe’s explaining, as crudely as possible, what’s going on in the semiconductor industry as a whole. Even Shenzen and TSMC are only small parts of it. High purity polysilicon is still produced by zone refining.
- GhettoComputers 5y agoYes it is refined and doped, my point is that he leaves out the sourcing of essential materials that you don't refine but must get that is already pure, it has to be purer than any random silicon its like saying just get any sand that people will assume comes from beaches for construction when its essential that they are not worn or have rounded edges, except this is so specialized that it must come from one mine in the world. The limit was well understood in Soviet Russia with their inability to source the raw materials of comparable purity to produce microchips, even if the design was the same, the USSR was not able to produce them without what is considered essential to chips of good quality. https://www.sciencedirect.com/science/article/abs/pii/S0065245808605355?via%3Dihub https://www.sciencedirect.com/science/article/abs/pii/S00652... Even today China cannot match the quality of American chips and relies on US raw materials from Spruce Pine for manufacturing chips. It isn't optional, its like saying you can make a 1:1 steak with nothing but beef bones or chicken. https://ashvegas.com/bbc-report-spruce-pines-high-quality-quartz-is-at-heart-of-billion-dollar-computer-chip-industry/ https://ashvegas.com/bbc-report-spruce-pines-high-quality-qu... >This ultra-pure mineral is essential for building most of the world’s silicon chips – without which you wouldn’t be reading this article.
- mataug 5y agoSo if I somehow time travelled to ~1800 there's no way I'm making my own modern computer ?! Jokes aside, its fascinating to see how complex computers are under the many layers of abstraction that we've built on top of them.
- wrycoder 5y agoYou can start with figuring out how to make good insulated wire and then try to invent the generator and the transformer.
- tnorthcutt 5y agoMentioned a couple other times in this thread but I don't think anyone has linked Sam Zeloof's video of essentially doing this: https://www.youtube.com/watch?v=IS5ycm7VfXg https://www.youtube.com/watch?v=IS5ycm7VfXg It's fantastic and I highly recommend watching it.
- nynx 5y agoIt'd be really awesome if microprocessors, even at a low-end process node like 130 nm, could be made with room-sized machines or smaller. There's a lot of space for companies wanted to manufacture their own MCUs, for instance, without relying on massive supply chains. I think this'll happen at some point, as silicon manufacturing hits final roadblocks and becomes increasingly commoditized, but it'd be nice if it were sooner rather than later. (This would be nice for self-sufficient decentralized communities being able to produce their own microelectronics as well.)
- adminscoffee 5y agoyeah you are onto something. massive supply chains have a ton of carbon footprint. which some people that doesn't matter but for someone like myself, i am a bigger fan of less carbon emissions. i wonder if there is a way we can build an etching machine and print chips somehow, the process seems a little clearer after watching this simplified video. i think it can be done, everything complex is just a bunch of simple steps, solve each step and get closer to the goal. might be fun to create a github type community where people push their ideas to a source control platform where others can chime in and give their input. so like open source chip manufacturing, kinda like how 3d printers started out with makerbot and other open source printer projects. i think it can be done and it would be fun. we have to filter out people who have a vested interest in chip manufacturers because they may try to over complicate the process to protect their purse. so like a vouch system, where we know the people coming in have the right heart and won't purposely screw up moral
- cinntaile 5y agoI think it's extremely unlikely that a small scale DIY process would be more energy efficient than using existing fabs.
- Chris2048 5y ago> massive supply chains have a ton of carbon footprint Are you talking about distribution? Because I would have thought the small size/weight of wafers would mean those costs would be fairly small. Maybe (silicon) packaging could be done locally, but even then packaged chips weigh little.
- aligray 5y agoI found this absolutely hilarious and I’m not entirely sure why, just the tone of the instructions as if it’s an ordinary thing to make in an afternoon. Brilliant.
- gorgoiler 5y agoIt’s really really fun doing this in software. You should try it. Fetch decode execute cycle. Registers. Memory. An instruction set. An assembler. And plug it all into an emulator to watch your factorial(n) at work! Here’s one someone else made earlier: https://www.peterhigginson.co.uk/AQA/ https://www.peterhigginson.co.uk/AQA/ It’s rubbish. So is yours, but you’ve got to build it first before you can brag.
- jay754 5y agoThis is absolutely gold. Very informative and hilarious pics.
- spideymans 5y agoAnyone else stuck at step 3? :)
- belval 5y agoFor those who wants more, the wikipedia article on semiconductor manufacturing is actually pretty good: https://en.wikipedia.org/wiki/Semiconductor_device_fabrication https://en.wikipedia.org/wiki/Semiconductor_device_fabricati...
- anthk 5y agoMore info on homemade raw sources and processes: https://simplifier.neocities.org/ https://simplifier.neocities.org/
- xivzgrev 5y agoI was successfully able to follow step 1 and 2. Grab a rock. Crush a rock. Easy peasy. Gave up on step 3: purify. Glad I did: each step after got more and more ridiculous.
- rhdxmr 5y agoA much fun article! Thanks
- jiggawatts 5y agoIf you ever code something that "feels like a hack but it works," just remember that a CPU is literally a rock that we tricked into thinking. Not to oversimplify: first you have to flatten the rock and put lightning inside it. Source: https://twitter.com/daisyowl/status/841802094361235456 https://twitter.com/daisyowl/status/841802094361235456
- omegalulw 5y ago> If you ever code something that "feels like a hack but it works," just remember that a CPU is literally a rock that we tricked into thinking. Is the "rock" "thinking" though? What _is_ "thinking"? Another way to look at a CPU is as a rock that we "carved" to conduct electricity in a specific way. It doesn't think - we interpret how the electricity flew and "think".
- orangepenguin 5y agoI asked my thinkingrock if it could think and it said yes. Really though, "thinking" is very hard to define. Do animals think? Do insects think? Do bacteria think? I'm sure somewhere we could find an example of a "living" thing that people consider to have thinking capability whose abilities are substantially more primitive than a CPU. So... why not say a CPU can think?