#!/usr/bin/env sh # Simulate the design with Icarus Verilog. Run from anywhere: the paths are relative to this file. set -eu cd "$(dirname "$0")" iverilog -g2012 -o hello.vvp ../rtl/hello.v ../tb/tb_hello.v vvp hello.vvp | tee hello.log grep -q 'PASS' hello.log