Skip to content

Commit

Permalink
Avoid copying input directory for yosys for includes in verilog frontend
Browse files Browse the repository at this point in the history
Instead, passing include directory to yosys for searching includes in verilog
  • Loading branch information
aman-goel committed Feb 24, 2024
1 parent f5238a3 commit c4e29d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/avr
Expand Up @@ -172,7 +172,7 @@ then
run_yosys="false"
else
echo "frontend" >> $OUT_PATH/fconfig
cp -R $BM_PATH/* $OUT_PATH
cp -R $BM_PATH/$fname $OUT_PATH/$fname
echo "yosys" >> $OUT_PATH/fconfig
fi

Expand All @@ -186,7 +186,7 @@ then
YOSYS_CMD=$OUT_PATH/yosys.tcl
rm -f $YOSYS_CMD

echo "yosys read_verilog -noopt -nolatches -sv $OUT_PATH/$fname;" >> $YOSYS_CMD
echo "yosys read_verilog -noopt -nolatches -Idir=$OUT_PATH/ -sv $OUT_PATH/$fname;" >> $YOSYS_CMD
if [ $AUTOTOP -eq 1 ]
then
echo "yosys hierarchy -auto-top;" >> $YOSYS_CMD
Expand Down

0 comments on commit c4e29d8

Please sign in to comment.