script for running verilator, yosys, iverilog, and then symbiyosys

This commit is contained in:
AngeloJacobo 2023-07-24 17:33:56 +08:00
parent 4e5b98f485
commit 4589fc3dfe
1 changed files with 28 additions and 0 deletions

28
run_compile.sh Executable file
View File

@ -0,0 +1,28 @@
# run verilator lint
echo -e "\e[32mRun Verilator Lint:\e[0m"
verilator --lint-only ddr3_top.v -Irtl/
# run yosys compile
echo ""
echo ""
echo -e "\e[32mRun Yosys Compile:\e[0m"
yosys -q -p "
read_verilog -sv ./rtl/ddr3_controller.v;
synth -top ddr3_controller"
# run iverilog compile
echo ""
echo ""
echo -e "\e[32mRun IVerilog Compile:\e[0m"
iverilog rtl/ddr3_controller.v -o out
vvp out
rm out
echo
# run symbiyosys
echo ""
echo -e "\e[32mRun Symbiyosys Formal Verification:\e[0m"
echo "---------------------------------------"
sby -f ddr3_controller.sby