Files
chipyard/sims/vcs/scripts/compile_designs.sh
2025-01-31 00:01:18 -08:00

22 lines
508 B
Bash
Executable File

#!/bin/bash
set -e
CURRENT_DIR="${PWD##*/}"
if [[ "$CURRENT_DIR" != "vcs" ]]; then
echo "Error: This script must be run from chipyard/sims/vcs."
exit 1
fi
source ./scripts/env.sh
echo -e "\nCompiling volta & ampere designs"
make CONFIG=VirgoFP16Config
make CONFIG=VirgoFP16Config debug
echo -e "\nCompiling hopper & virgo designs"
make CONFIG=VirgoHopperConfig
make CONFIG=VirgoHopperConfig debug
echo -e "\nCompiling flash designs"
make CONFIG=VirgoFlashConfig
echo -e "\nCompilation completed"