added shell script for compiling RTL

This commit is contained in:
Angelo Jacobo 2023-03-02 20:07:08 +08:00 committed by GitHub
parent 38109d8297
commit 0f6f52390c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

15
run.sh Normal file
View File

@ -0,0 +1,15 @@
if [ "$1" == "" ]
then
yosys -q -p "
read_verilog -sv ./rtl/ddr3_controller.v;
synth -top ddr3_controller"
elif [ "$1" == "iverilog" ]
then
iverilog ./rtl/ddr3_controller.v -o .out
vvp .out
fi
# :set fileformat=unix