Skip to content

Latest commit

 

History

History

rasterbars

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Rasterbars

Design from the demo "All You Need" by Chapterhouse released at Revision 2022 (with minor emendations).

This demo effect has an associated Project F blog post: Rasterbars.
New to FPGA graphics design? Check out Beginning FPGA Graphics.

Rasters with Verilator/SDL sim.

Arty Build

To create a Vivado project for the Digilent Arty (original or A7-35T); clone the projf-explore git repo, then start Vivado and run the following in the Tcl console:

cd projf-explore/demos/rasterbars/xc7/vivado
source ./create_project.tcl

You can then build top_rasterbars as you would for any Vivado project.

Verilator

Tested Versions

This simulation have been tested with:

  • Verilator 4.038 (Ubuntu 22.04 amd64)
  • Verilator 5.006 (macOS 13 arm64)

Verilator Build

If this is the first time you've used Verilator and SDL, you need to install dependencies.

Make sure you're in the sim directory projf-explore/demos/rasterbars/sim.

Build the demo:

make

Run the simulation executable from obj_dir:

./obj_dir/rasterbars

You can quit the simulation by pressing the Q key.

Fullscreen Mode

To run in fullscreen mode, edit main_rasterbars.cpp so that FULLSCREEN = true, then rebuild.