VHDL on Fomu¶
Hint
Component declarations for instantiating hard cores (such as the ones in hdl/sb_ice40_components.vhd) are found in the installation of iCEcube2.
“Hello world!” - Blink a LED¶
The canonical “Hello, world!” of hardware is to blink a LED. The directory hdl/vhdl/blink contains a VHDL example of a blink project. This takes the 48 MHz clock and divides it down by a large number so you get an on/off pattern.
Enter the hdl/vhdl/blink directory and build the demo by using make
:
Make sure you set the FOMU_REV
value to match your hardware! See Required Hardware.
make FOMU_REV=$FOMU_REV
You can then load blink.dfu
onto Fomu by using make load
or the same dfu-util -D
command we’ve been using so
far.
You should see a blinking pattern of varying color on your Fomu, indicating your bitstream was successfully loaded.