Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm not a hardware engineer, but my understanding is that some FPGAs include an entire cpu core as part of the chip? This seems much more efficient than designing your own.


I wrote this in a different discussion yesterday:

https://news.ycombinator.com/item?id=18124411

Super small CPU cores are fantastic for complex FSM replacement, especially on an FPGA which has unused block RAMs (so using them is essentially free.) I’ve seen cases with relatively complex pure HW FSM being replace by a small CPU and 1KB of RAM where the logic used by the CPU ends up smaller than the FSM.

But now the CPU is programmable, so you can iterate much quicker in case of bugs, without the need to reaunthesize.

A good example are SDRAM controllers: almost all of them have a small CPU inside the controller that is used for calibration training.


It's almost always more efficient to use an existing CPU if it fits your use case than to design your own. Even if it doesn't, it is often more efficient (time wise) to adapt your use case to the hardware you have available, or write software to resolve the feature you want in hardware but don't have. Only the especially nutty build their own CPUs (I'm especially nutty too)


Even if you're not designing your own, dropping a little Microblaze or NIOS down can simplify your design considerably.


Oh I know it can, my comment was more tongue in cheek not dismissive :)


The cheapest FPGAs are under $10 and many can fit a small softcore - usually not a full pipelined, cached + MMU RISCV core at 100+ mhz but enough to drastically simplify high level logic in FPGA projects. The Zynq series with onboard CPUs start at $40-50 in low volumes and have 1-4 cores at 600 mhz which is complete overkill for many FPGA projects.


If all you need is a lightweight microcontroller in a low end FPGA it will be usually be more cost effective to use a soft core.


Yep - that's what the Xilinx Zynq series of chips is. An ARM Cortex A9 core (or two!) and a big chunk of FPGA logic, tied together by AXI bus fabric.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: