In the following sheet you can find the GPIOs and their linux-number
How to control a GPIO:
2. create new directory:
echo 44 >export
3. go into this directory:
4. show if GPIO is used as an input or an output:
5. change output to '1'=high:
echo 1 >value
6. change GPIO to input:
echo in >direction
7. show input value:
To write your own VDHL-code you can use the ispLEVER Classic Software from Lattice (
You also need a programmer (e.g. HW-USBN-2A from Lattice) to deploy the VHDL-Code on your PLD.
After installing the software and the drivers for your programmer you can start a new project.
You can find a demo-project here:media:PLD-demo.zip
You have to download the *.jed-File with the programmer to your PLD.
In the constraint editor of ispLEVER you can define, which input X_VAR1 is. In this example GPIO E is defined as X_VAR1. If you define GPIO E as an output and set GPIO E high, the PLD LED should flash red.