Skip to content

fupy/fupy.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to FPGA MicroPython (FμPy)

MicroPython and Migen, sitting in a tree!]

The aim of this project is to make MicroPython run on FPGAs using the LiteX & Migen+MiSoC technologies. This allows you to do full stack development (FPGA gateware & soft CPU firmware) in Python!

Our MicroPython fork is at:

https://github.com/fupy/micropython

with the port files in ports/fupy.

Gateware

Gateware is the name we use for the hardware code that is loaded onto the FPGA that MicroPython runs on.

For MicroPython development we use a the TimVideos litex-buildenv from the TimVideos Project, which also produces HDMI2USB.

Getting Started

Developing in MicroPython environment

Developing in the litex-buildenv environment

  1. Follow getting started instructions to setup gateware environment.
  2. Enter the gateware environment with ./scripts/enter-env.sh
  3. Set PLATFORM and TARGET correctly - eg "export PLATFORM=mimasv2" if using the MimasV2
  4. Build the gateware with make gateware
  5. Run ./scripts/build-micropython.sh

This will give you an image for your target at ./build/$PLATFORM_$TARGET_lm32/micropython.bin which you can then flash to your board.

Running MicroPython inside QEmu environment

The litex-buildenv LiteX environment provides some limited QEmu emulation of the FPGA gateware, this means you can test your code without needing hardware.

It can be used with the MicroPython image by running ./scripts/build-qemu.sh and then replacing -kernel qemu.bin with -kernel micropython.bin in the last command.

See the TimVideos' QEmu for LiteX GitHub Repo

More Information

Contact

Current Targets

Hardware Targets

Software Targets

These targets don't need any physical hardware and are good for testing / developing.

Releases

No releases published

Packages

No packages published

Languages