From 838ee4c0ae2c2eb98d8e89e9a89bf277a13293ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20Luis=20Monta=C3=B1es=20Ojados?= Date: Sun, 1 Mar 2026 01:01:27 +0100 Subject: [PATCH] run.sh adapted for mac --- run.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 run.sh diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..62ad65b --- /dev/null +++ b/run.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +if [ -z "$1" ]; then + echo "Usage: $0 " + exit 1 +fi + +module="${1#./}" +module="${module#/}" +module="${module%/}" + +iverilog -o "./$module/$module.vvp" "./$module/${module}_tb.v" || exit 1 + +vvp "./$module/$module.vvp" || exit 1 + +surfer "./$module/$module.vcd"