#!/bin/csh -f

if (! $?IVI_HOME ) then
    echo "ERROR :: IVI_HOME not set"
    echo "    Please set IVI_HOME to the location of IVI and re-run"
    exit(1)
endif

echo "IVI_HOME is $IVI_HOME"

set files=(primitives.v alu.v presclr_wdt.v prog_mem.v \
    register_file.v risc_core.v test.v)

echo "Compiling: $files"

$IVI_HOME/bin/iverilog -s test -o risc_core.vvp $files


