feat: complete Palladium Z2 demo for both SA and ICE emulation flows
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
# =============================================================================
|
||||
# run_local.sh -- Verify the demo logic WITHOUT Palladium hardware.
|
||||
#
|
||||
# Works with Icarus Verilog (used to validate this package) or, on a Cadence
|
||||
# host, with xrun in pure simulation mode (swap the two lines marked below).
|
||||
# Expected result: 8 "CHECK OK" lines and "TEST PASSED".
|
||||
# =============================================================================
|
||||
set -e
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
mkdir -p sim_local
|
||||
|
||||
# --- Option A: Icarus Verilog -------------------------------------------------
|
||||
iverilog -g2005 -DLOCAL_SIM -o sim_local/z2_demo.vvp -f rtl.f -f tb.f
|
||||
vvp sim_local/z2_demo.vvp | tee sim_local/local_run.log
|
||||
[ -f z2_demo.vcd ] && mv z2_demo.vcd sim_local/z2_demo.vcd
|
||||
|
||||
# --- Option B: Cadence xrun (comment out Option A, uncomment this) ------------
|
||||
# xrun -64bit -define LOCAL_SIM -access +rwc -f rtl.f -f tb.f -logfile sim_local/xrun.log
|
||||
|
||||
grep -q "TEST PASSED" sim_local/local_run.log && echo "== LOCAL RUN: PASS ==" \
|
||||
|| { echo "== LOCAL RUN: FAIL =="; exit 1; }
|
||||
Reference in New Issue
Block a user