This design displays 100x100 8-color images for a 640x480 display. It also allows to load new images sending it through serial, using serial_img_send python script (under sw folder).
You need to have installed the next tools:
- Yosys
- FuseSoc
To add this design to your FuseSoC libraries :
cd $PATH && git clone https://github.com/imuguruza/image_displayer
fusesoc library add imagedisplayer $PATH
The target of the design is the Alhambra II board.
To synthesize the design execute fusesoc run --target=top imagedisplayer
.
There are also three different test benches you can execute:
fusesoc run --target=top_tb imagedisplayer
, which checks the top module designfusesoc run --target=uartrx_tb imagedisplayer
, which checks if uart rx worksfusesoc run --target=baudgen_tb imagedisplayer
, which checks if the baud generator works
I have used a VGA Pmod to create the RGB[8] and VGA control signals.
You can find the pinout in data/pinout.pcf
.
In addition to this, you need to connect GND
and 3v3
to feed the VGA Pmod
More info about the design, in my blog!
The script serial_img_send
sends images that are split in lines and coded in hex format, but without 0x
. This is because of verilog $readmemh
used to store the
default image in RAM at synth.
A more flexible script that accepts lists split by commas and other formats would be a good to have.