-
Notifications
You must be signed in to change notification settings - Fork 792
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ipgen,rstmgr] Fix englishbreakfast verilator build
Signed-off-by: Guillermo Maturana <[email protected]>
- Loading branch information
Showing
7 changed files
with
84 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/bin/bash | ||
# Copyright lowRISC contributors. | ||
# Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# Build a chip-level verilator simulation | ||
# | ||
# Expects three arguments: the toplevel to build, the fusesoc core and | ||
# the intermediate Verilated binary name | ||
|
||
set -e | ||
|
||
if [ $# != 1 ]; then | ||
echo >&2 "Usage: build-chip-verilator.sh <toplevel>" | ||
exit 1 | ||
fi | ||
tl="$1" | ||
|
||
case "$tl" in | ||
earlgrey) | ||
fileset=fileset_top | ||
fusesoc_core=lowrisc:dv:chip_verilator_sim | ||
;; | ||
englishbreakfast) | ||
fileset=fileset_topgen | ||
fusesoc_core=lowrisc:systems:chip_englishbreakfast_verilator | ||
# Englishbreakfast on CI runs on a 2-core CPU | ||
util/topgen-fusesoc.py --files-root=. --topname=top_englishbreakfast | ||
;; | ||
*) | ||
echo >&2 "Unknown toplevel: $tl" | ||
exit 1 | ||
esac | ||
|
||
# Move to project root | ||
cd "$(git rev-parse --show-toplevel)" | ||
|
||
. util/build_consts.sh | ||
|
||
set -x | ||
|
||
mkdir -p "$OBJ_DIR/hw" | ||
mkdir -p "$BIN_DIR/hw/top_${tl}" | ||
|
||
fusesoc --cores-root=. \ | ||
run --flag=$fileset --target=simple --setup \ | ||
--build-root="$OBJ_DIR/hw" \ | ||
$fusesoc_core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters