Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
IveanEx committed Sep 1, 2024
1 parent 60752a6 commit 8c02ff6
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 36 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
#################################################

occamy-verilator:
name: Compile Occamy Software + Hardware Verilator Binary for behavioral simulation
name: Simulation with Verilator
runs-on: ubuntu-22.04
container:
image: ghcr.io/kuleuven-micas/snax:main
Expand All @@ -40,15 +40,20 @@ jobs:
submodules: 'recursive'
- name: Compile Bootrom
run: |
echo -e "The placeholer for compiling Bootrom"
echo -e "Should execute \"make bootrom\""
echo -e "Compiling Bootrom"
make bootrom
- name: Compile SW
run: |
echo -e "The placeholer for compiling SW"
echo -e "Should execute \"make sw\""
echo -e "Compiling SW"
make sw CFG_OVERRIDE=target/sw/cfg/occamy_cfg/hemaia.hjson
- name: Compile RTL
run: |
make rtl CFG_OVERRIDE=target/rtl/cfg/occamy_cfg/hemaia.hjson
- name: Compile Verilator Binary
run: |
make occamy_system_vlt
make occamy_system_vlt CFG_OVERRIDE=target/rtl/cfg/occamy_cfg/hemaia.hjson
- name: Run Tests
working-directory: target/sim
run: |-
./run.py --simulator verilator \
sw/sim_elf.yaml -j
5 changes: 3 additions & 2 deletions target/sim/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@

sys.path.append(str(Path(__file__).parent / '../../deps/snitch_cluster/util/sim'))
from sim_utils import parser, get_simulations, run_simulations # noqa: E402
from Simulator import QuestaSimulator # noqa: E402
from Simulator import QuestaSimulator, VerilatorSimulator # noqa: E402


SIMULATORS = {
'vsim': QuestaSimulator(Path(__file__).parent.resolve() / 'bin/occamy_top.vsim')
'vsim': QuestaSimulator(Path(__file__).parent.resolve() / 'bin/occamy_top.vsim'),
'verilator': VerilatorSimulator(Path(__file__).parent.resolve() / 'bin/snitch_cluster.vlt')
}


Expand Down
13 changes: 0 additions & 13 deletions target/sim/sw/run-full-occamy.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions target/sim/sw/run-single-cluster.yaml

This file was deleted.

6 changes: 6 additions & 0 deletions target/sim/sw/sim_elf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright 2024 KU Leuven.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

runs:
- elf: sw/apps/offload/build/offload-snax-test-integration.elf

0 comments on commit 8c02ff6

Please sign in to comment.