Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lleone/convolve integration #56

Merged
merged 3 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions Bender.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ packages:
- apb
- register_interface
axi:
revision: 853ede23b2a9837951b74dbdc6d18c3eef5bac7d
version: 0.39.5
revision: 39f5f2d51c5e524f6fc5cf8b6e901f7dcc5622d7
version: 0.39.6
source:
Git: https://github.com/pulp-platform/axi.git
dependencies:
Expand Down Expand Up @@ -69,7 +69,7 @@ packages:
- common_cells
- register_interface
cheshire:
revision: 586cb0225be5c57f5ffcf67bd490763efd9b4d24
revision: 1f8c3eac515ac09dec98f89f67df6954dd89e17a
version: null
source:
Git: https://github.com/pulp-platform/cheshire.git
Expand Down Expand Up @@ -134,8 +134,8 @@ packages:
- common_verification
- tech_cells_generic
common_verification:
revision: 9c07fa860593b2caabd9b5681740c25fac04b878
version: 0.2.3
revision: fa2630f61666f61d9d78451c4d8b4d1ea403944e
version: 0.2.4
source:
Git: https://github.com/pulp-platform/common_verification.git
dependencies: []
Expand All @@ -150,7 +150,7 @@ packages:
- fpnew
- tech_cells_generic
ethcluster:
revision: 49adaab00aa652adf8601e296b13dedc3f3b6197
revision: 8bc8ce1e3c63f4120c7055710f9769a9642c64a7
version: null
source:
Git: git@gitlab.tue.nl:es/convolve-private/ethcluster.git
Expand Down Expand Up @@ -202,16 +202,16 @@ packages:
- common_cells
- register_interface
kulcluster:
revision: 6da824eb38f6db629cdbca0d7727fec8be545d6b
revision: 40cc14bcae5b0a3a7346d8d45b027e5ab16170d3
version: null
source:
Git: git@gitlab.tue.nl:es/convolve-private/kulcluster.git
dependencies: []
memory_island:
revision: 64828cb7a9ccc1f1656ec92d06129072f445c319
revision: 68c31664bfdba02b74bbaf73889fb306e99fe30b
version: null
source:
Git: https://github.com/pulp-platform/memory_island.git
Git: https://github.com/Lore0599/memory_island
dependencies:
- axi
- cluster_interconnect
Expand Down Expand Up @@ -291,13 +291,13 @@ packages:
dependencies:
- common_verification
tuddcim:
revision: 5254a92569a24d1eac28cb8093ea2a8f81a855d5
revision: a8697fae66ebc68aa09380e3d26f1edf01f815d6
version: null
source:
Git: git@gitlab.tue.nl:es/convolve-private/tuddcim.git
dependencies: []
tuedcim:
revision: 8b3ec32ffe3487a59b45fa49391e8a36196a64c9
revision: c7acd066b7e5ed60277078c6ce8c0b31f665e486
version: null
source:
Git: git@gitlab.tue.nl:es/convolve-private/tuedcim.git
Expand Down
12 changes: 6 additions & 6 deletions Bender.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ package:
dependencies:
register_interface: { git: "https://github.com/pulp-platform/register_interface.git", version: 0.4.3 }
axi: { git: "https://github.com/pulp-platform/axi.git", version: 0.39.2 }
cheshire: { git: "https://github.com/pulp-platform/cheshire.git", rev: 586cb0225be5c57f5ffcf67bd490763efd9b4d24}
cheshire: { git: "https://github.com/pulp-platform/cheshire.git", rev: 1f8c3eac515ac09dec98f89f67df6954dd89e17a}
snitch_cluster: { git: "https://github.com/pulp-platform/snitch_cluster.git", rev: c12ce9b2af1ac8edf3d4feb18939e1ad20c42225}
common_cells: { git: "https://github.com/pulp-platform/common_cells.git", version: 1.31.1}
idma: { git: "https://github.com/pulp-platform/iDMA.git", rev: 9edf489f57389dce5e71252c79e337f527d3aded}
memory_island: { git: "https://github.com/pulp-platform/memory_island.git", rev: 64828cb7a9ccc1f1656ec92d06129072f445c319 } # main branch
memory_island: { git: "https://github.com/Lore0599/memory_island", rev: main } # main branch
apb: { git: "https://github.com/pulp-platform/apb.git", version: 0.2.4 }
hyperbus: { git: "https://github.com/pulp-platform/hyperbus.git", rev: f039e601c8b6590181734e6d26ff8b77aa380412 } # branch: chi/add_fsm_with_Tcsh
tech_cells_generic: { git: "https://github.com/pulp-platform/tech_cells_generic.git", version: 0.2.12 }
TUEDCIM: { git: "git@gitlab.tue.nl:es/convolve-private/tuedcim.git", rev: 10102024}
TUEDCIM: { git: "git@gitlab.tue.nl:es/convolve-private/tuedcim.git", rev: 22112024-2}
TUEMEGA: { git: "git@gitlab.tue.nl:es/convolve-private/tuemega.git", rev: 11102024}
TUDDCIM: { git: "git@gitlab.tue.nl:es/convolve-private/tuddcim.git", rev: 11102024-6}
KULCLUSTER: { git: "git@gitlab.tue.nl:es/convolve-private/kulcluster.git", rev: 17102024}
ETHCluster: { git: "git@gitlab.tue.nl:es/convolve-private/ethcluster.git", rev: 17102024-4}
TUDDCIM: { git: "git@gitlab.tue.nl:es/convolve-private/tuddcim.git", rev: 04122024-2}
KULCLUSTER: { git: "git@gitlab.tue.nl:es/convolve-private/kulcluster.git", rev: 04122024-3}
ETHCluster: { git: "git@gitlab.tue.nl:es/convolve-private/ethcluster.git", rev: 31102024-3}

export_include_dirs:
- hw/include
Expand Down
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ pip install -r requirements.txt
bender checkout

```
If you have all needed dependencies and you want to build the entire Chimera SoC, both RTL and SW, just run

``` shell
make chim-all
```
If you want to build the system step by step, all the necessary make targets are listed below:

To build Cheshire and Snitch run
``` shell
Expand All @@ -53,10 +47,6 @@ To regenerate software tests and libraries:

This step must be executed before building the hardware to ensure the correct generation of the bootrom.

To build the host device bootrom:

`make chim-bootrom-init`

To build Chehsire simulation files for ModelSim:

`make chs-sim-all`
Expand Down
6 changes: 3 additions & 3 deletions chimera.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
# Lorenzo Leone <lleone@iis.ee.ethz.ch>


CLINTCORES = 19
PLICCORES = 38
PLIC_NUM_INTRS = 38
CLINTCORES = 18
PLICCORES = 36
PLIC_NUM_INTRS = 36


.PHONY: update_plic
Expand Down
2 changes: 1 addition & 1 deletion hw/chimera_pkg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ package chimera_pkg;

localparam cluster_config_t ChimeraClusterCfg = '{
hasWideMasterPort: {1'b1, 1'b1, 1'b1, 1'b1, 1'b1},
NrCores: {8'h9, 8'h3, 8'h2, 8'h2, 8'h2}
NrCores: {8'h9, 8'h2, 8'h2, 8'h2, 8'h2}
};

function automatic int _sumVector(byte_bt [iomsb(ExtClusters):0] vector, int vectorLen);
Expand Down
1 change: 1 addition & 0 deletions hw/convolve/chimera_cluster_ethcluster.sv
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ module chimera_cluster_ethcluster

.hart_base_id_i (hart_base_id_i),
.cluster_base_addr_i(cluster_base_addr_i),
.boot_addr_i ({16'h0, boot_addr_i}),

.narrow_in_req_i (clu_axi_adapter_slv_req),
.narrow_in_resp_o (clu_axi_adapter_slv_resp),
Expand Down
2 changes: 1 addition & 1 deletion sw/include/soc_addr_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#define CLUSTER_0_NUMCORES 2
#define CLUSTER_1_NUMCORES 2
#define CLUSTER_2_NUMCORES 2
#define CLUSTER_3_NUMCORES 3
#define CLUSTER_3_NUMCORES 2
#define CLUSTER_4_NUMCORES 9

static uint8_t _chimera_numCores[] = {CLUSTER_0_NUMCORES, CLUSTER_1_NUMCORES, CLUSTER_2_NUMCORES,
Expand Down
4 changes: 2 additions & 2 deletions target/sim/sim.mk
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ CHIM_VLOG_ARGS += +define+HYP0_PRELOAD_MEM_FILE=\"$(HYP0_PRELOAD_MEM_FILE)\"
# an absolute path produce inter-CI-runner file accesses
CHIM_VLOG_ARGS += +define+PATH_TO_HYP_SDF=\"../models/s27ks0641/s27ks0641.sdf\"


# Generate vsim compilation script
$(CHIM_SIM_DIR)/vsim/compile.tcl: chs-hw-init snitch-hw-init
@bender script vsim $(SIM_TARGS) --vlog-arg="$(CHIM_VLOG_ARGS)" > $@
@bender script vsim $(SIM_TARGS) $(EXT_TARGS) --vlog-arg="$(CHIM_VLOG_ARGS)" > $@
echo 'vlog "$(realpath $(CHS_ROOT))/target/sim/src/elfloader.cpp" -ccflags "-std=c++11"' >> $@

# Clean
Expand All @@ -45,5 +46,4 @@ chim-sim-clean:
@rm -rf $(CHIM_SIM_DIR)/vsim/transcript
@rm -f $(CHIM_SIM_DIR)/vsim/compile.tcl


endif # chim_sim_mk
Loading