FP

FPGA design acceleration – idiomatic Python to synthesizable Verilog

Hacker News

FPGA design acceleration – idiomatic Python to synthesizable Verilog

Recently I've been working on a certain embedded system that has an FPGA running EKF and some controls. Coding that in RTL is inefficient at best so I turned to HLS and looked around to see what the industry has to offer. I have a pretty extensive simulation and verification scaffold in Python, so ideally I wanted something that can accept Python directly, preferably with minimal adaptation, so that I could feed relevant parts of my Python models to the HLS tool and immediately get a working RTL out. Also I wanted floating point. I should add that my FPGA here is Lattice ECP5 which means that Vitis et al are not an option, so I was focusing on vendor-agnostic tools. There are some that can ingest Python but they are frankly not really usable in practice aside from perhaps a very narrow set of applications -- I evaluated Polyphony, PyLog, Allo+XLS, Allo+Vitis (not really an option because Lattice), and Veriloggen. They work in the sense that they translate some Python into some RTL, but not in the sense that you can get something immediately useful out of them if you're trying to build, say, a Kalman filter or even a basic PID controller. Then there are highly capable tools like the aforementioned XLS, Bambu, etc. that unfortunately don't support Python and there are a few shortcomings (especially when it comes to ECP5) that I will cover someday in a later post. So, behold Holoso: https://github.com/Zubax/holoso To me personally this is a big deal because it has already enabled dramatic acceleration of my work. The feature set is currently mostly defined by my immediate needs but it is extensible and contributions are welcome. I will spare a detailed explanation of how it works (follow the link for that) but the basic idea is that it parses Python, constructs a CFG, identifies which operators are needed, constructs a minimal specialized VLIW core, schedules microcode (fully statically to keep the core simple), and emits Verilog along with some extra outputs like Cocotb and reports. There are examples included that will give you a better feel of what it's like; there are even some exotic ones like UART rx/tx, which I would not call a sensible use of this tool but it's mostly there to outline its limits more clearly -- it's an HLS, not an RTL, so keep that in mind. I have already benchmarked it side by side with Bambu, XLS, Dynamatic, and Vitis, and the results seem decent; I am going to post about this later if there's interest (still working on this). Holoso is available under Apache-2 with explicit legal waivers for generated RTL. Hopefully someone will find it useful as well!

Share card

Actual performance

2points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
93%93% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
AppSumoStrong fit for a featured deal · Strong signals: efficient · Missing: plus, platform, intuitive
60%60% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Product HuntOn track for Day 1 leaderboard · Strong signals: model, models, using · Missing: mac, agents, macos
58%58% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
TrustMRRFits verified-revenue profile · Strong signals: personal · Missing: mobile apps, ios, entrepreneurs
50%50% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: lua, ide, io · Missing: https docs, excited, just released
46%46% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Acquire.comPre-revenue stage for this audience · Strong signals: arr · Missing: mrr, revenue, profit
12%12% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Ic
Iceberg – Graphic Design and Diagramming in Python63%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Iceberg – Graphic Design and Diagramming in Python

Hacker News19
Cu
CustomStringParser ( Python)54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

CustomStringParser ( Python)

Hacker News1
Lu
Lusernews is an implementation of lamernews in python48%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Lusernews is an implementation of lamernews in python

Hacker News1
Do
Do/While in Python55%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Do/While in Python

Hacker News4
Ga
Gatos, conCATenative functions for python54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Gatos, conCATenative functions for python

Hacker News1
A
A wrapper around datetime, pytz and tzlocal for Python 3.2+38%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A wrapper around datetime, pytz and tzlocal for Python 3.2+

Hacker News1
Pa
Parallelizing word2vec in Python55%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Parallelizing word2vec in Python

Hacker News3
pi
piprot – How rotten are your [python] requirements?37%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

piprot – How rotten are your [python] requirements?

Hacker News1
it
iterlib, fancy iterators for Python 2.7-3.x54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

iterlib, fancy iterators for Python 2.7-3.x

Hacker News1
Fa
Fancy iterators for Python 2.7 - 3.x54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Fancy iterators for Python 2.7 - 3.x

Hacker News5