Skip to content

Commit

Permalink
Merge pull request #1456 from ucb-bar/jerryz123-patch-2
Browse files Browse the repository at this point in the history
Always initialize fpga-shells with init-submodules.sh
  • Loading branch information
jerryz123 authored May 8, 2023
2 parents 968b207 + f01101d commit 9209a72
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 25 deletions.
2 changes: 0 additions & 2 deletions .github/scripts/remote-do-rtl-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ source $SCRIPT_DIR/defaults.sh

cd $REMOTE_CHIPYARD_DIR
./scripts/init-submodules-no-riscv-tools.sh --force
./scripts/init-fpga.sh


# Constellation can run without espresso, but this improves
# elaboration time drastically
Expand Down
9 changes: 1 addition & 8 deletions docs/Prototyping/General.rst
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
General Setup and Usage
==============================

Sources and Submodule Setup
Sources
---------------------------

All FPGA prototyping-related collateral and sources are located in the ``fpga`` top-level Chipyard directory.
This includes the ``fpga-shells`` submodule and the ``src`` directory that hold both Scala, TCL and other collateral.
However, the ``fpga-shells`` submodule repository is not initialized by default.
To initialize the ``fpga-shells`` submodule repository, run the included initialization script from the Chipyard top-level directory:

.. code-block:: shell
# in the chipyard top level folder
./scripts/init-fpga.sh

Generating a Bitstream
----------------------
Expand Down
1 change: 0 additions & 1 deletion scripts/build-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ fi
# initialize all submodules (without the toolchain submodules)
if run_step "2"; then
$CYDIR/scripts/init-submodules-no-riscv-tools.sh $FORCE_FLAG
$CYDIR/scripts/init-fpga.sh $FORCE_FLAG
fi

# build extra toolchain collateral (i.e. spike, pk, riscv-tests, libgloss)
Expand Down
12 changes: 0 additions & 12 deletions scripts/init-fpga.sh

This file was deleted.

3 changes: 1 addition & 2 deletions scripts/init-submodules-no-riscv-tools-nolog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ cd "$RDIR"
software/coremark \
software/firemarshal \
software/spec2017 \
vlsi/hammer-mentor-plugins \
fpga/fpga-shells
vlsi/hammer-mentor-plugins
do
"$1" "${name%/}"
done
Expand Down

0 comments on commit 9209a72

Please sign in to comment.