News for hackers. Stuff that matters.
Re:About the ZipCPU by skybrian on Thursday October 04, 2018 @12:08PM (#18141151)
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.
Re:About the ZipCPU by TomVDB on Thursday October 04, 2018 @12:27PM (#18141340)
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.

Re:About the ZipCPU by jtregunna on Thursday October 04, 2018 @12:26PM (#18141333)
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)
Re:About the ZipCPU by monocasa on Thursday October 04, 2018 @12:37PM (#18141436)
Even if you're not designing your own, dropping a little Microblaze or NIOS down can simplify your design considerably.
Re:About the ZipCPU by jtregunna on Thursday October 04, 2018 @12:45PM (#18141497)
Oh I know it can, my comment was more tongue in cheek not dismissive :)
Re:About the ZipCPU by akiselev on Thursday October 04, 2018 @12:26PM (#18141329)
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.
Re:About the ZipCPU by kevin_thibedeau on Thursday October 04, 2018 @12:24PM (#18141313)
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.
Re:About the ZipCPU by cushychicken on Thursday October 04, 2018 @04:33PM (#18143405)
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.