Files
hdl-projects/run.ps1

15 lines
322 B
PowerShell
Raw Normal View History

2026-02-28 21:59:55 +01:00
param(
[Parameter(Mandatory=$true)]
[string]$module
)
$module = $module.TrimStart('.', '/', '\').TrimEnd('/', '\')
iverilog -o ".\$module\$module.vvp" ".\$module\${module}_tb.v"
if ($LASTEXITCODE -ne 0) { exit 1 }
vvp ".\$module\$module.vvp"
if ($LASTEXITCODE -ne 0) { exit 1 }
gtkwave ".\$module\$module.vcd"