Skip to content

Latest commit

 

History

History
54 lines (32 loc) · 1.61 KB

README.md

File metadata and controls

54 lines (32 loc) · 1.61 KB

Sine Scroller

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: Sine Scroller.
New to FPGA graphics design? Check out Beginning FPGA Graphics.

Scrolling 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/sinescroll/xc7/vivado
source ./create_project.tcl

You can then build top_sinescroll 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/sinescroll/sim.

Build the demo:

make

Run the simulation executable from obj_dir:

./obj_dir/sinescroll

You can quit the simulation by pressing the Q key.

Fullscreen Mode

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