4 ms·
Microwatt: A tiny Open POWER ISA softcore written in VHDL 2008
- benj111 3y agoDid anyone else have that science teacher, that whenever covering electricity would ask/state "what is a unit of power" to which the response is yes.
- deleted 3y ago[deleted]
- jagrsw 3y agoSince the 1990s PowerPC/POWER has been touted as viable alternative to the x86 architecture. Initially, they gained traction through PowerMacs and Amigas with accel-cards, as well as via PPC versions of Windows and OS/2. Next, they aimed to compete in the cloud, where ARM eventually outpaced them. I have first-hand experience porting https://phoenix-rtos.com/ https://phoenix-rtos.com/ to PowerPC back in the early 2000s and it's a very sane CPU arch (in comparison to x86). However, it's evident that POWER lags behind x86, ARM, and now RISC-V, both in terms of use and public attention.
- rbanffy 3y ago> it's a very sane CPU arch (in comparison to x86) Anything is sane compared to current x86. Each generation is an added layer of complication on top of the previous one and it's been going on since the late 70's.
- pjmlp 3y agoI bet PowerPC still has some 68000 stuff into it. If anything x86 is a proof that evolution works better in market adoption than nuking everything, specially when not every company cares about the bazaar, only their cathedrals.
- rvense 3y ago> I bet PowerPC still has some 68000 stuff into it. You'd lose. There were two platforms who made that jump, but the architectures have no lineage in common at all.
- twoodfin 3y agoWild in retrospect, but the original Apple plan for the PowerPC transition was to have no backward binary software compatibility at all!
- klelatti 3y agoInteresting and surprising! Is there a source for this? There seems to have been a lot of work on emulation by Gary Davidian from an early stage - starting with the AMD 29000 then 88k and then finally on PowerPC - according to his CHM oral history.
- twoodfin 3y agoThe version of this story I heard first comes from the (absurdly fun, if you’re into that sort of thing) 65scribe YouTube channel’s video on the PowerMac 8100: https://youtu.be/XYWp_R33mDs?si=4czECGOaHiM-MQqt https://youtu.be/XYWp_R33mDs?si=4czECGOaHiM-MQqt Roughly lines up with the history recounted here: https://lowendmac.com/2014/ibm-apple-risc-and-the-roots-of-the-powerpc/ https://lowendmac.com/2014/ibm-apple-risc-and-the-roots-of-t... Apple was planning to go with a radical new design, breaking with the past in both software and hardware, but Gary Davidian & co. saved them from their own foolishness via a skunkworks project that actually could ship.
- klelatti 3y agoMany thanks! Yes, all fits together. By complete co-incidence I have a blog post on the various Mac CPU transitions in draft that should be out tomorrow. One mildly amusing point, which I don't think is mentioned in either link is that the Cognac project was so called because the surname of John Hennessy, of Stanford RISC and MIPS fame, is also, of course, the name of a brand of Cognac.
- deleted 3y ago[deleted]
- Symmetry 3y agoIs there anything standing in the way of people making open source cores that would be binary compatible with a modern POWER core? I love RISC-V's inroads in embedded, research, and education but I'm a bit skeptical of it succeeding in application cores in its current form and open POWER cores might be another road to open source hardware.
- classichasclass 3y agoThat's pretty much what this is.
- snvzz 3y ago>but I'm a bit skeptical of it succeeding in application cores in its current form Be a little patient. A bunch of very high performance application cores are hitting the market next year. Sure judgement can be delayed till then.
- _a_a_a_ 3y agoNewbie questions, what is a 'softcore'? Also, how many transistors does this equate to? Because IIRC PowerPC is quite an extensive instruction set, and some instructions are quite involved
- mkj 3y agoA softcore is a CPU to run on an FPGA. Microwatt fits in a Lattice ECP5 FPGA with 85,000 LUTs (plus some block ram). Not sure how you'd get to transistors from that, wild guess times by 15 maybe? (But then the FPGA also has other special hardware blocks intended for interfacing with DDR RAM and other things, so those would be more as well). You can see how the Power instruction decode is implemented https://github.com/antonblanchard/microwatt/blob/master/decode1.vhdl#L74 https://github.com/antonblanchard/microwatt/blob/master/deco...
- robinsonb5 3y ago> A softcore is a CPU to run on an FPGA. It's also an unwise search term on the web. Ask me how I know! The big thing that complicates figuring out a transistor count for a soft CPU core is that FPGAs have hardware multipliers, which would be pretty big if you had to build them yourself.
- mlyle 3y agoTimes 10-20 is a good way to get to gates from LUT4 (and some number of flip-flops). In turn, multiply by 4 to get transistors. Of course, this is all very approximate.
- RetroTechie 3y ago> Microwatt fits in a Lattice ECP5 FPGA with 85,000 LUTs There goes "tiny"...
- adrian_b 3y agoThat is indeed a small FPGA. There are big FPGAs that cost many thousands of $. Medium-size FPGAs, which may cost a few hundreds of $, have a few hundred thousand LUTs. An evaluation board for the medium-to-small ECP5 FPGA is $100.
- CodeArtisan 3y agoThe FPU has an instruction for fast inverse square root. https://github.com/antonblanchard/microwatt/blob/master/fpu.vhdl#L1676 https://github.com/antonblanchard/microwatt/blob/master/fpu.... I presume v.state := ... is what the FPU will do next, like a deferred goto. you can unroll the whole process following that. lookup table: https://github.com/antonblanchard/microwatt/blob/master/fpu.vhdl#L334 https://github.com/antonblanchard/microwatt/blob/master/fpu....
- deleted 3y ago[deleted]
- Andrew018 3y ago[dead]
- RetroTechie 3y agoWould be a nice project to upload to OpenCores.org - didn't see it listed there.
- kramerger 3y agoI thought OpenCores was dead
- monocasa 3y agoMy favorite part of this project is the pretty large battery of test cases. A lot of chip rtl releases don't bother with open sourcing the verification too, and that's arguably more useful than the rtl in the first place. https://github.com/antonblanchard/microwatt/tree/master/tests https://github.com/antonblanchard/microwatt/tree/master/test...
- SilverBirch 3y agoAh the good old days. Many years ago I worked on a Power ISA CPU. The advantages were obvious - the ISA is open source (read: long dead and burried, they gave up on making it viable a decade or two ago and dumped it open source), and the ISA is neat- you have a 32bit instruction and you can literally do a case statement of "1100_0000_0000_0000: // do fpadd" whereas IA64 had the crazy variable length instructions and all.
- gnufx 3y agoRelated (I think they use Microwatt): https://libre-soc.org/ https://libre-soc.org/
- 221qqwe 3y ago> and now RISC-V, both in terms of use I'm not sure that's quite true?
- UncleOxidant 3y agoIs there a viable VHDL frontend for Yosys yet?
- mkj 3y agoghdl-yosys-plugin works, it's used for Microwatt's ecp5 target.