#!/bin/bash
verilator -trace -Wall -FI "lodepng.h" -cc ../viewtube.sv -cc ../viewtube_background_layer.sv -cc ../viewtube_line_buffer.sv -cc ../viewtube_dynamic_memory.sv -cc ../vga_counters.sv -cc ../viewtube_static_memory.sv -cc ../viewtube_sprite_table.sv -exe viewtube.cpp -exe lodepng.cpp  -top-module viewtube ; ( cd obj_dir && make -j -f Vviewtube.mk)

./obj_dir/Vviewtube

which convert && (convert display_at_end.png -resize 640x480\! display_at_end_resized.png)
