From 4c563a224e1edbbab79d2806191bf14ae1acc7c7 Mon Sep 17 00:00:00 2001 From: Yvan Tortorella <48508508+yvantor@users.noreply.github.com> Date: Tue, 12 Mar 2024 18:22:06 +0100 Subject: [PATCH] Fix configurable top level bugs and integrate CI flow. (#2) * Bump dependencies and align testbench with new Cheshire JTAG tasks. * Fix connections. * Align cache-enable CSR with OpenHW recent changes... * Add draft CI flow. * Use normal printf in `Helloworld`. * Update nonfree rules. * Fix parameter declaration in L2 Ecc asyncronoys buses. * Fix PULP cluster EOC and busy enable connections. * Update nonfree. * Bump nonfree. * Bump nonfree to copy uImage in dedicated `astral` folder. * Apply suggestions from code review Co-authored-by: Michael Rogenmoser --------- Co-authored-by: Yvan Tortorella Co-authored-by: Michael Rogenmoser --- .github/workflows/gitlab-ci.yml | 2 +- Bender.local | 1 - Bender.lock | 10 +++++----- Bender.yml | 4 ++-- carfield.mk | 10 +++++----- hw/carfield.sv | 4 +--- hw/carfield_pkg.sv | 2 +- sw/include/hmr.h | 4 ++-- sw/tests/bare-metal/hostd/helloworld.c | 8 ++------ target/sim/src/carfield_tb.sv | 17 +++++++++-------- 10 files changed, 28 insertions(+), 34 deletions(-) diff --git a/.github/workflows/gitlab-ci.yml b/.github/workflows/gitlab-ci.yml index 5e783d83e..436356a2e 100644 --- a/.github/workflows/gitlab-ci.yml +++ b/.github/workflows/gitlab-ci.yml @@ -16,6 +16,6 @@ jobs: uses: pulp-platform/pulp-actions/gitlab-ci@v1 with: domain: iis-git.ee.ethz.ch - repo: github-mirror/carfield + repo: github-mirror/astral token: ${{ secrets.GITLAB_TOKEN }} poll-count: 2160 diff --git a/Bender.local b/Bender.local index 756bdd09e..60faa3bdc 100644 --- a/Bender.local +++ b/Bender.local @@ -6,7 +6,6 @@ overrides: axi: { git: https://github.com/pulp-platform/axi.git , version: 0.39.1 } axi_riscv_atomics: { git: https://github.com/pulp-platform/axi_riscv_atomics.git , version: 0.8.2 } apb: { git: "https://github.com/pulp-platform/apb.git" , version: 0.2.3 } - register_interface: { git: "https://github.com/pulp-platform/register_interface.git" , rev: "e4b20be8833180863ebc64675c93b1694239c505" } # branch: astral redundancy_cells: { git: "https://github.com/pulp-platform/redundancy_cells.git" , rev: "c37bdb47339bf70e8323de8df14ea8bbeafb6583" } # branch: astral-rebase hci: { git: "https://github.com/pulp-platform/hci.git" , rev: v1.1 } tech_cells_generic: { git: "https://github.com/pulp-platform/tech_cells_generic.git" , version: =0.2.13 } diff --git a/Bender.lock b/Bender.lock index 66d209f4b..5f9e583bd 100644 --- a/Bender.lock +++ b/Bender.lock @@ -106,7 +106,7 @@ packages: Git: https://github.com/AlSaqr-platform/can_bus.git dependencies: [] cheshire: - revision: fc09f729a3ead5efcdd7b7ff579776820e0f5443 + revision: 6d389373df6b54c09888f89411b7e231d2430722 version: null source: Git: https://github.com/pulp-platform/cheshire.git @@ -162,8 +162,8 @@ packages: dependencies: - hci common_cells: - revision: 2bd027cb87eaa9bf7d17196ec5f69864b35b630f - version: 1.32.0 + revision: 13f28aa0021fc22c0d01a12d618fda58d2c93239 + version: 1.33.0 source: Git: https://github.com/pulp-platform/common_cells.git dependencies: @@ -419,8 +419,8 @@ packages: - register_interface - tech_cells_generic register_interface: - revision: e4b20be8833180863ebc64675c93b1694239c505 - version: null + revision: e25b36670ff7aab3402f40efcc2b11ee0f31cf19 + version: 0.4.3 source: Git: https://github.com/pulp-platform/register_interface.git dependencies: diff --git a/Bender.yml b/Bender.yml index 7cef0c204..7ef3c7bee 100644 --- a/Bender.yml +++ b/Bender.yml @@ -11,9 +11,9 @@ package: - "Yvan Tortorella " dependencies: - register_interface: { git: https://github.com/pulp-platform/register_interface.git, version: 0.4.2 } + 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.1 } - cheshire: { git: https://github.com/pulp-platform/cheshire.git, rev: fc09f729a3ead5efcdd7b7ff579776820e0f5443 } # branch: astral + cheshire: { git: https://github.com/pulp-platform/cheshire.git, rev: 6d389373df6b54c09888f89411b7e231d2430722 } # branch: astral-new hyperbus: { git: https://github.com/pulp-platform/hyperbus.git, rev: f039e601c8b6590181734e6d26ff8b77aa380412 } # branch: chi/add_fsm_with_Tcsh dyn_mem: { git: https://github.com/pulp-platform/dyn_spm.git, rev: 480590062742230dc9bd4050358a15b4747bdf34 } # branch: main safety_island: { git: https://github.com/pulp-platform/safety_island.git, rev: aaef55c798ab53560faaf451a86668fa1e6d0f3b } # branch: carfield diff --git a/carfield.mk b/carfield.mk index 2f54ddc64..ad0596a5e 100644 --- a/carfield.mk +++ b/carfield.mk @@ -45,8 +45,8 @@ include $(CAR_ROOT)/bender-safed.mk # Nonfree components # ###################### -CAR_NONFREE_REMOTE ?= git@iis-git.ee.ethz.ch:carfield/carfield-nonfree.git -CAR_NONFREE_COMMIT ?= 54ce7e49 +CAR_NONFREE_REMOTE ?= git@iis-git.ee.ethz.ch:astral/astral-nonfree.git +CAR_NONFREE_COMMIT ?= 711d0097 ## @section Carfield platform nonfree components ## Clone the non-free verification IP for Carfield. Some components such as CI scripts and ASIC @@ -55,10 +55,10 @@ CAR_NONFREE_COMMIT ?= 54ce7e49 ## step will be skipped and the usage of the repository will **not** be compromised. car-nonfree-init: git clone $(CAR_NONFREE_REMOTE) $(CAR_ROOT)/nonfree - cd nonfree && git checkout $(CAR_NONFREE_COMMIT) - cd nonfree/intel16 && icdesign intel16 -update all -nogui + cd $(CAR_ROOT)/nonfree && git checkout $(CAR_NONFREE_COMMIT) + #cd nonfree/intel16 && icdesign intel16 -update all -nogui --include nonfree/nonfree.mk +-include $(CAR_ROOT)/nonfree/nonfree.mk ##################################### # Islands' variables initialization # diff --git a/hw/carfield.sv b/hw/carfield.sv index f2d8ea47f..5cb7f3c28 100644 --- a/hw/carfield.sv +++ b/hw/carfield.sv @@ -756,7 +756,7 @@ for (genvar i=0; i