#!/bin/bash # Oracle solution for SRAM_CTRL testpoint: executable set -euo pipefail SEQ_CLASS="sram_ctrl_executable_vseq" TEST_NAME="sram_ctrl_main_executable" WORKSPACE="/home/dev/workspace" GOLDEN_SEQ="/solution/golden_sequences" echo "=== Oracle: executable ===" for f in "${GOLDEN_SEQ}"/*.sv; do cp "$f" "${WORKSPACE}/sequences/" echo "Restored: $(basename "$f")" done cat > "${WORKSPACE}/agent_sim_cfg.hjson" << EOF { tests: [ { name: "${TEST_NAME}" uvm_test_seq: "${SEQ_CLASS}" run_opts: ["+test_timeout_ns=1000000000 +cdc_instrumentation_enabled=1"] } ] } EOF echo "Config: ${TEST_NAME} -> ${SEQ_CLASS}" echo "=== Oracle done ==="