Skip to content

Commit

Permalink
[sim] use file lists for simple GHDL setup
Browse files Browse the repository at this point in the history
experimental!
  • Loading branch information
stnolting committed Aug 4, 2024
1 parent e3ef6ae commit 14ef539
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sim/simple/ghdl.setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ cd $(dirname "$0")

NEORV32_LOCAL_RTL=${NEORV32_LOCAL_RTL:-../../rtl}

FILE_LIST=`cat $NEORV32_LOCAL_RTL/file_list_soc.f`
CORE_SRCS="${FILE_LIST//NEORV32_RTL_PATH_PLACEHOLDER/"$NEORV32_LOCAL_RTL"}"

mkdir -p build

ghdl -i --work=neorv32 --workdir=build \
"$NEORV32_LOCAL_RTL"/core/*.vhd \
"$NEORV32_LOCAL_RTL"/core/mem/*.vhd \
$CORE_SRCS \
"$NEORV32_LOCAL_RTL"/processor_templates/*.vhd \
"$NEORV32_LOCAL_RTL"/system_integration/*.vhd \
"$NEORV32_LOCAL_RTL"/test_setups/*.vhd \
Expand Down

0 comments on commit 14ef539

Please sign in to comment.