Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. How Meta's Muse works, revealed by the 6.8 GB filesystem it sent me(mouse.dev)
    29comments
  2. OpenAI GPT–6 Astra breaks Enigma message that has resisted solution since 2005(cryptocellar.org)
    220comments
  3. Apple has added persistent 'ads' to iOS, and it's driving users crazy(techradar.com)
    129comments
  4. Show HN: Drop – a rootless Linux sandbox with gVisor support(droprun.sh)
    17comments
  5. Jev – a curation of Jev demos on X, tools, skills, and integrations(github.com/amal-david)
    9comments
  6. Can gzip be a language model?(nathan.rs)
    119comments
  7. OpenAI is about to eat Jev's lunch – Arcturus Labs(arcturus-labs.com)
    64comments
  8. MiMo v2.6(xiaomi.com)
    455comments
  9. Spymarks, Not Watermarks(brand.io)
    145comments
  10. Muse, Meta's extraordinarily privileged AI assistant, has a serious 0-day(arstechnica.com)
    13comments
  11. Line Scan Photos from MUNI Heritage Weekend in San Francisco(lawrence.lu)
    15comments
  12. Teleoperated Humans(jefftk.com)
    9comments
  13. Attention is all you have(alicegg.tech)
    296comments
  14. Transformers Explained Visually(poloclub.github.io)
    81comments
  15. The Economics of Open-Weight Inference(ornn.com)
    1comments
  16. Solitaire Alone Together(solitairealonetogether.com)
    3comments
  17. What Sun got wrong(dtrace.org)
    375comments
  18. I said no and Apple said yes(dbushell.com)
    476comments
  19. A font that reads what you wrote(rohanadwankar.github.io)
    36comments
  20. Vacate a Drone Restriction That Criminalized Recording Immigration Agents(eff.org)
    3comments
  21. I don't want to read what you didn't write(colinbreck.com)
    382comments
  22. MiMo-v2.6-Pro: Intelligence, Performance and Price Analysis(artificialanalysis.ai)
    51comments
  23. What It's Like to Work in One of America's Data Centers(wsj.com)
    40comments
  24. AMD's random number generator can't generate a 0?(flatassembler.net)
    141comments
  25. People Training OpenAI's AI Fired for Using AI to Train the AI(404media.co)
    39comments
  26. AI coding has made CI a bottleneck, so we reworked ours to keep up(linear.app)
    357comments
  27. Engineering Memory: On learning to memorize first 100 digits of pi (2024)(gregorygundersen.com)
    30comments
  28. AI Has No Wisdom and Neither Will You(alexn.org)
    433comments
  29. 9 Ads per Minute: FIFA Cup 26 – "the price of the beautiful game"(bristol.ac.uk)
    194comments
  30. Divide by depth for instant 3D(gabrieloc.com)
    35comments

Create Your Own CPU on an FPGA

118 pointsby 11y agoembeddedmicro.com
20 comments
11y agoHN ↗

... using the "Lucid" HDL, which at first glance seems like a de-crufted Verilog.

11y agoHN ↗

Both of these are excellent projects to check out if you're interested in such things. And, bonus, the RISC-V folks have produced an open source, modern manufacturing process, 1GHz core that I hope is a game changer in open source hardware. It's not quite on par with ARM (lacking the billions in investment), but it's in the ballpark and it's the real deal. Definitely worth keeping up with.

11y agoHN ↗

Every Computer Engineering undergrad is rejoicing somebody just did their project for them.

11y agoHN ↗

This is not written in Verilog/VHDL. I doubt they will be able to pass this off as their own work.

11y agoHN ↗

I'll just leave this here: https://github.com/zeusk/CS242

I did this during my sophomore year, didn't care much about implementing a proper memory implementation as that was way beyond the scope of our course.

11y agoHN ↗

Does anyone have knowledge about the comparison of different FPGA boards?

I've seen the Mojo v3 from Embedded Micro, the Papilio line of dev boards, and the miniSpartan6+ from Scarab Hardware.

It looks like all these dev boards are pretty similar since they use almost identical xilinx chips. Ideally, I'd like to find a board for which there is a robust community, good support, lots of examples, and has enough capacity/performance to take on more complicated projects with increased learning/skill.

I'm leaning towards the Mojo v3 board, since it seems very easy and has shields to expand capability, but does anyone have any experience, recommendations, or "I wish I had known..." stories for FPGA development?

11y agoHN ↗

Basically, go with the market leaders, either altera or xilinx.

Altera DE brand is used in universities all over the world and they have their alteraforum (which is really old fashioned but does the job).

I would go with a DE2 or something like that. (Which has a Cyclone IV)

11y agoHN ↗

almost 10 years ago i wrote vhdl code on spartan series cards, and that time i noticed that Xilinx IDE was really far from Visual Studio. hope things have changed since then. So my suggestion is to check development tools as well, if you dont need the "best" board just, but also the ease of development

11y agoHN ↗

The Spartan series and Xilinx ISE are dead now. The new future is Vivado and 7 series FPGAs. I guess Vivado is better in some ways but it's integration with version control software is pathetic.

11y agoHN ↗

I like the Avnet MicroZed which is built around a Xilinx Zynq. The Zynq is a latest generation FPGA and dual core ARM on a chip. There's a decent community and all the development tools are free.

11y agoHN ↗

No discussion of CPU design is complete without trying to run your design as fast as possible. That's how people discovered that pipelining is good, and a flat implementation (such as the one in that code) is slow.

11y agoHN ↗

There is a trade-off between performance and area. Pipelined designs are bigger (not least because of all that pipeline registers).

11y agoHN ↗

Very good point. This is even more critical in a FPGA as you are working with a fairly constrained resource.

There were a number of people in my first hardware design course that had a great idea right up until they found it didn't fit on the xilinks chips we had in the lab.

11y agoHN ↗

From the proposed flat design, adding pipelining would probably add 10-20% more area, and double or triple the speed. Definitely worth exploring (and would indeed make for a great follow-up post).

11y agoHN ↗

Only if it's a 3-stage pipeline without a hazard detection. Otherwise the area would at least double. But, yes, I'd also like to see a pipelined core in this new HDL.

11y agoHN ↗

Don't forget simplicity - their goal is learning by creating a "super basic CPU" for which you can write "some assembly". Including pipelining in this design would distract from the main purpose.

It would make a nice topic for a follow-up tutorial though.

11y agoHN ↗

Does anyone have any tips on determining if a given CPU core will fit onto a given FPGA? Most of the boards in the hobbyist price range seem kinda ... underwhelming.

11y agoHN ↗

You can just download the CAD free version (Quartus II or ISE) and compile it for a target FPGA board.