Skip to content

Commit

Permalink
occamy: Refactor SW to align with new snRuntime and build system (#475)
Browse files Browse the repository at this point in the history
* occamy: Adapt to new snRuntime and build system

* gen_trace.py: Correct bug

* occamy: Correct bug in heterogeneous binary build

* fpga: Update base Occamy config file
  • Loading branch information
colluca committed May 11, 2023
1 parent 99f9382 commit f983980
Show file tree
Hide file tree
Showing 57 changed files with 4,146 additions and 1,007 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,24 @@ jobs:
- name: Run Unit Tests
run: |-
cd hw/system/snitch_cluster/ && ./run-tests sw/tests/passing-apps.list --simulator verilator
######################################
# Build SW for Single-Cluster Occamy #
######################################
# TODO: add simulation w/ Verilator
sw-single-cluster-occamy:
container:
image: ghcr.io/pulp-platform/snitch
name: Build SW for Single-Cluster Occamy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build Software
env:
CC: clang
LD: lld
AR: llvm-ar
OBJCOPY: llvm-objcopy
OBJDUMP: llvm-objdump
DWARFDUMP: llvm-dwarfdump
run: make -C hw/system/occamy CFG_OVERRIDE=cfg/single-cluster.hjson sw
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,5 +250,5 @@ jobs:
env:
CLANG_FORMAT: clang-format-12
run: |-
make -C hw/system/occamy all
util/git-diff.py --error-msg "::error ::Found differences, run \`make -C hw/system/occamy all\` before committing."
make -C hw/system/occamy update-rtl
util/git-diff.py --error-msg "::error ::Found differences, run \`make -C hw/system/occamy update-rtl\` before committing."
2 changes: 1 addition & 1 deletion .gitlab-ci.d/occamy_cfg_fpga.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Makes the occamy system smaller so that it fits on a VCU128 FPGA board

occamy_cfg="hw/system/occamy/src/occamy_cfg.hjson"
occamy_cfg="hw/system/occamy/cfg/full.hjson"

# nr_s1_quadrant -> 1
sed -i 's|nr_s1_quadrant.*|nr_s1_quadrant: 1,|' ${occamy_cfg}
Expand Down
2 changes: 1 addition & 1 deletion hw/system/occamy/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ verdiLog
novas.*
*.fsdb*
.vcs_checkpoint_shared_memory.*
logs
logs*
Loading

0 comments on commit f983980

Please sign in to comment.