rust-hdl
and yosys
examples on STEP-MXO2-LPC.
Based on support package rust-hdl-bsp-step-mxo2-lpc.
The support package requires these open FPGA synthesis and P&R tools:
This project includes 4 examples:
blinky
: official example fromrust-hdl
, blinking 8 onboard LEDsbreathing
: PWMing onboard LEDsegment
: showing symbols at onboard 7-segment displayswitch
: controlling onboard LEDs via DIP switch
-
If you have had those tools installed, simply run
cargo run
It will generate
blinky.jed
andsegment.jed
bitstreams. -
For convenience, I also packed a Docker image step-mxo2-lpc-toolchains for all of the tools above. This project also includes a script
run_docker.sh
, which will run the binary in that container, and bring back all artifacts.cargo build # if you ./run_docker.sh
STEP-MXO2-LPC only supports programming via an emulated flash drive.
cp firmware/blinky/top.jed /media/STEPLink