H

Homebrew CPU

homebrewcpu.com · Personal blog · on HN since 2008

Jeff Laughton documents Magic-1, a homebrew computer built from 74LS TTL logic chips, with detailed construction notes.

What HN saysCommenters praise it as a model of how to present homebrew CPUs and call Magic-1 a favorite project, noting its use as a web server.
39HN people shared it
30linked it in comments
10stories submitted
430story points
4 months agolast shared
2008people per year2026

Most-shared posts

  1. 1
    Homebrew CPU (2004)
    36 people · 332 points · first shared 2008 · 41 comments on HN
  2. 2
    Index
    2 people · first shared 2023
  3. 3
    Complete computer designed and built from logic gates
    1 people · 98 points · first shared 2009 · 29 comments on HN
  4. 4
    Construction
    1 people · first shared 2015
  5. 5
    New stuff
    1 people · first shared 2014
  6. 6
    Links
    1 people · first shared 2016

What HN people wrote when they linked it

musicale · 2026-07-02
I just have to say when I saw BMOW 1 I was delighted. Also Magic-1, another homebrew CPU, also made out of 74LS TTL chips from the 1970s. Fantastic trend, really. https://www.bigmessowires.com/bmow1/ https://homebrewcpu.com (Of course it's a lot easier [but still quite fun] to make your own homebrew CPU/system on an FPGA.)
nickpsecurity · 2016-05-13
It sounds cool and interesting but has almost no detail. Come on, Jack! Give us some details, RTL, code, board schematics, whatever. @ All This is how you do homebrew CPU's and presentation best: http://www.homebrewcpu.com/ Links to others for anyone wanting to learn about this stuff: http://www.homebrewcpu.com/links.htm
s3graham · 2010-05-12
It's not quite that obvious. Compared to desktop/server where almost any jit is a win, there's substantial pressure on memory usage and battery life. An interpreter can do better on whole-system performance for both of those, without special care for when to run the jit, and how it's implemented. I'm looking forward to seeing Bill Buzbee's talk on the JIT at I/O (of the most excellent http://www.homebrewcpu.com/ incidentally! :)
osamagirl69 · 2021-11-18
The mega processor is one of my all-time favorite computers, along with the Magic-1 https://homebrewcpu.com/ The megaprocessor is just absolutely wonderful in how it bridges from 'here is a transistor, it lights an LED' to 'here is a computer, it plays tetris'. I always struggled to unwind the layers of abstraction in a modern computer from atoms in the CPU to running python, but being able to just look at a bunch of literal transistors (with LEDs on each gate!) wired up playing tetris shows how a computer really works in such a profound and awe inspiring fashion. Magic-1 is sort of the next level higher complexity, where it is made out of very simple TTL (most complicated chip function is the ALU--a circuit I had to build as an EE undergrad out of or- and and- gates) and it hosts a webpage. It currently seems to be down, but you can see it on the wayback machine https://web.archive.org/web/20210815180101/http://www.magic-1.org/ I will never forget when I came across that site and realized that I was interacting with a wirewrapped pile of ram and nor gates over the internet. There was even a time when you could telnet in and play some retro text-based adventure games, To this day, the only time I have played Adventure was on Magic-1.
e19293001 · 2015-11-24
This project was inspired by Magic-1[0]. The construction is entertaining to read[1]. And it is used currently as a web server[2]. What a very fantastic project! Quoting from the project history: In the beginning.... Magic-1 really began during a lunchtime discussion with Ken Sumrall at Vito's Pizza in Sunnyvale, CA sometime in the Spring of 2001. I was complaining to Ken about how as a compiler writer I was woefully ignorant about how CPU hardware really worked. I hadn't taken any electronics classes in college, and was only vaguely aware of what transistors, resistors and capacitors were. Ken recalled an old series of magazine articles by Forrest Mims on building a very simple CPU from TTL parts, and suggested I read it. Over the next few weeks, I tracked down those articles, as well as Mims' "Understanding Digital Computers" and a textbook by Albert Paul Malvino, "Digital Computer Electronics." I read them all, and when I next had lunch with Ken at Vito's I reported back that it all seemed much clearer now - so much so that I thought I could even build a CPU myself. Then Ken said, "well, why don't you?". Why not, indeed? And so the Magic-1 project began. [0] - http://www.homebrewcpu.com/ [1] - http://www.homebrewcpu.com/construction.htm [2] - http://www.magic-1.org/
anthk · 2026-05-23
You might like this, a CPU made by TTL's running Minix 2. https://www.homebrewcpu.com/ I might upload Tristam Island (Z-Machine v3 game, like Zork and infocom games they already have the interpreter) among the feelies in ASCII format. Yes, dfrotz runs snappier than the vi clone they have. And more stable than their ed implementation.
_sbrk · 2025-06-28
Magic-1 and BMOW did similar, a while back. See: https://www.homebrewcpu.com/ The actual list of sites who have built their own CPUs: https://www.homebrewcpuring.org/
kragen · 2025-03-28
Thanks! I don't remember if I've seen it before. In case it's down for others: https://web.archive.org/web/20250221070009/http://magic-1.org/ "This web page is being served by a completely home-built computer: Bill Buzbee's Magic-1 HomebrewCPU. Magic-1 doesn't use an off-the-shelf CPU. Instead, its custom CPU is built out of ~200 74 series TTL chips." "Magic-1 is running a new port of Minix 2.0.4, compiled with a retargeted LCC portable C compiler. The physical connection to the internet is done using a native interface based on Wiznet's w5300 TCP/IP stack." While I hate to condone using TTL rather than CMOS, this is extremely cool! The CPU is documented at https://homebrewcpu.com/. Unfortunately the TCP/IP information was only posted on Google Plus, which has now been memory-holed by Google. There's a clone by Aidil Jazmi documented at https://www.aidilj.com/homemadecpu/.
userbinator · 2023-12-08
Was this inspired by http://www.homebrewcpu.com/ ? Seems to be very similar in specs.
emeraldd · 2023-08-21
Home brew computers! The Magic-1 was one of my favorites to read about .. http://www.homebrewcpu.com/index.htm
roninkoi · 2020-12-15
Another cool project is the Magic-1 [1], which is also well documented. It even runs Minix! [1] http://homebrewcpu.com/
Teknoman117 · 2020-08-23
http://www.homebrewcpu.com/ A computer built from 74-series logic running Minix (with a full tcp/ip stack). Once upon a time you could telnet into it.
tyingq · 2020-03-02
On the other end of the complexity scale, a 6502 made with TTL chips: https://c74project.com/ Or the Magic1. Similar total count of 74x chips (~200), but he ported Minix2 to it. http://www.homebrewcpu.com/
earenndil · 2019-05-16
See also: homebrewcpu https://www.homebrewcpu.com/ and megaprocessor http://www.megaprocessor.com/
varjag · 2019-05-16
http://www.homebrewcpu.com/ is wire wrap 16 bit computer that in fact serves the web pages and has telnet access.
chc4 · 2016-06-06
There are plenty of hand-built CPU projects built by enthusiasts, made out of wire-wrapped integrated circuits[0]. There was even a Zuse homage I saw that was built entirely out of magnetic relays[1]. It's...insane, tbh. 0: http://www.homebrewcpu.com/ 1: http://nablaman.com/relay/
mwcampbell · 2015-11-19
Here's another home-built TTL computer: http://www.homebrewcpu.com
signa11 · 2015-06-22
wow ! in an almost same vein: http://www.homebrewcpu.com, doesn't use discrete-transistors, but starts with 7400 series ttl chips. 'slightly' easier :) edit: and this is with complete s/w "stack" as well, including ansi-c compiler, multi-user port of minix-2, tcp/ip stack...
boyter · 2015-02-16
Interesting, but I found this effort http://www.homebrewcpu.com/ more impressive overall. It quite literally is a home made CPU which then had Minix 2 ported to it and booted. A very impressive achievement.
msarnoff · 2012-04-05
> It's a pretty simple CPU 16-bit address and data buses? Hardware multiplier, divider, and barrel shifter? I wouldn't exactly call it simple. The cost to build one out of discrete logic probably approaches the quadruple digits. Magic-1 (http://www.homebrewcpu.com/) is a 16-bit, microcoded homebrew CPU that took about 4 years to build, and it doesn't have any of the above features.
spitfire · 2011-10-16
http://www.homebrewcpu.com/ User/data segments, 16bit data operations, user/supervisor modes, address translation, mmio and DMA. 8meg address space, 128K per process. Runs Minix (Precursor to Linux). 200TTL logic chips. How quickly do you think you could build that? My bet, is if you had a dedicated group of people within 2 years you'd have a mhz computer again. It's easier the second time around. EDIT: http://www.holmea.demon.co.uk/Mk1/Architecture.htm Homemade apollo guidance computer http://klabs.org/history/build_agc/
jacquesm · 2011-01-29
That's a really neat project! If you like this please have a look at this too: http://www.homebrewcpu.com/
Nice project. I've got a box full of 8086's and support chips just waiting for that rainy weekend to come around. If you like this stuff, you have to check out the daddy of homebrew computing: http://www.homebrewcpu.com
mhb · 2009-08-05
CPU built from 74 series TTL chips running web server: http://www.homebrewcpu.com/
dennis714 · 2021-11-20
jonnycomputer · 2021-07-04
>The Ena.Computer is designed using 550 double triode 6N3P electron-tubes, all configured as identical 5 input NOR gates. Registers and counters are built from these single NOR gates and combined into master/slave D type flip flops, an 8 bit ALU, and all latches and buffers. In my computer science program, we had an old school prof who insisted we build a virtual CPU using only fundamental components. No VHDL for us! We wanted a JK flip flop? Here are the logic gates. Wire them up baby. The only thing that came for free were the logic gates, a clock, and probes. Some students complained about it; and I get it, it was a very old-school way of doing things. But I can say that I intimately understood my 5-staged pipeline CPU, because I designed it from the ground up, and spent hours wiring every component. I also had plenty of time cursing myself for some stupid design decisions I made along the way. The only thing that might have made it better if we were tasked with actually building it out in actual hardware. I'm a fan of those homebrew cpu's out there. Maybe not practical from computing perspective any more, but sooo cool. http://homebrewcpu.com/ https://hackaday.io/project/178826-pineapple-one
guido_vongraum · 2019-05-14
Me being a caveman who believes that technology is a hammer that still can be used to drive nails into building materials instead of our own heads, I'm longing for an Intermesh of simple networked 8-bit machines running on vanilla (no ARM core bonuses) FPGAs, with CPUs simple enough to be predictable and understood not by a select few superhumans in the world, but by a critical mass of people, and communication protocols built from scratch with privacy and security in mind, so that such device could represent a social node: here's some info that I chose to make public, and there's my protected data. A single pedestrian FPGA could host a swarm of such tiny CPUs, each dedicated to a single task or security domain: a CPU to talk to shared filesystem, a CPU to talk to the private one, one more to process input, one to Tx/Rx bytes over the wire etc.. Or, if that is too complex, there could just be a bunch of breadboarded ICs capable of networking. There actually are real-world examples of such machines exposed via telnet, e.g. http://www.homebrewcpu.com And all the performance beasts, while surely indispensable, could just enjoy their air-gapped solitude. Are there any massively parallel supercomputing tasks whose results couldn't be summarized and reduced to mere text, which is not too hard to move over the airgap manually?
jlgreco · 2013-10-24
Create a piss-poor barebones compiler (compiler A) by hand (literally, if possible. punchcards would allow you to hand-verify the contents of the program in a way that is not susceptible to Thompson's attack (there is no risk that your eyes were built with a compromised compiler)) that suffices to compile a compiler that you want to verify (compiler B). Compiler A should to run on hardware that you can trust (need not be x86). (= ((a-binary b-source) b-source) b-binary) If you trust a-binary, and you trust b-source, then if that returns true you should be able to trust anything created with b-binary. (a-binary b-source) will not equal b-binary, but ((a-binary b-source) b-source) should. If the hardware is not executing binaries as described, then all bets are off. Compiler A could, in theory, be build and run on a homebrew CPU (http://www.homebrewcpu.com/), but if you are putting that much effort into this, this better be your hobby...
tectonic · 2010-02-16
Direct link to homebrewcpu: http://homebrewcpu.com/
4ad · 2014-10-14
Started somewhat earlier than 2005 (in some place it was mentioned hardware took a few months, and first news are about software after hardware is completed) and it's still going, last update from 3/29/2014: http://www.homebrewcpu.com/new_stuff.htm Edit: the 2014 post mentions 10-year anniversary approching. Second edit: this G+ post mentiones 10 years: https://plus.google.com/104192474935520300956/posts/D1cQEyofpYp

Keyboard shortcuts

/Search
j kNext / previous blog
EnterOpen selected blog
vVisit the blog site
fFollow / unfollow
lSwitch grid / list view
dSwitch dark mode
g hHome
g pTop posts
g tTopics
g fFollowing
g lLiked
g yHistory
g qFAQ
EscBack / close