FPGA Runs Real CPython Bytecode, No Interpreter Required
Running CPython Bytecode on an FPGA
FPGA Python is an open-source processor that executes actual CPython 3.14.4 bytecode directly in FPGA logic. The host compiles a function, uploads its unchanged co_code over UART, and the hardware runs it with runtime arguments — add(20, 22) returns 42 on physical silicon. It handles bounded function calls and passes 88 tests, but the author is candid that full Python is far off: BINARY_OP alone implies arbitrary-precision integers, object lifetimes, and exceptions. No performance advantage over a CPU has been shown.
It is tempting to treat full Python support as a list of missing instructions. That list is useful, but an opcode such as BINARY_OP hides a substantial runtime behind it.
- danudey
A friend of mine at university (back in like 2003) was working on a similar project; they were programming an FPGA to run Java bytecode natively, looking to see if it was possible/feasible to run Java 'natively'. I wonder what ever happened to that project.
- nobodywasishere
- Neywiny
The developers yearn for Jazelle. I struggle to see any practical purpose but I'm sure it's a great learning exercise