The SpokeFPGA Code library is a collection of code designed to create a basis for easy programming of the FPGA
This code is all developed under Linux, using the command line where possible. Basic skills in the following areas are required:
- Bash or other *nix command line
Thereafter the skills depend on the activity.
Getting the Code
You can download from github https://github.com/davidthings/spokefpga or clone the repo with the following
git clone https://github.com/davidthings/spokefpga.git
This will clone the entire site - code and doc.
All the SpokeFGPA source code is maintained in this source tree.
All the source code directories have the same structure
- projects - contains all the projects centered around the section
- rtl - contains the Verilog source code for the modules
- sim - contains the testbench code for the modules
To build, go into the projects directory, eg.
There you will see the projects that are available. Pick one and then type
./prepare [project name]
prepare script creates a .gitignored build directory in the sub-directory
src/comms in this example) called
Now, if you navigate into this new build directory you will see some tools that you can use, depending on the project type.
For example, most build directories will contain a Makefile that is all set up and ready to go.
Documentation for the larger systems is presented on the SpokeFPGA website.
Other documentation can be found in the Section readmes.
Finally, the source code itself has documentation.
usb_uartcdc device code
uarttransmitter and receiver
i2c_master_slave_ic- Icarus-based testing for the I2C modules
camera_core- driver for the Aptina MT9V022 camera Documentation
lcd- driver for the 480 x 320 MIPI Type II LCD Documentation
camera_ic- Icarus-based testing for the camera
lcd_ic- Icarus-based testing for the lcd
led_blink- blink an LED
usb_loopback- instanciates a USB serial device, incoming characters are looped back
lcd_pattern- puts a few patterns on the LCD
camera_2_lcd- plain camera to lcd direct connection. Requires a suitably connected MT9V022 or MT9V034 camera.
Contains helpers to implement Pipelines.
Contains various helpers