From 6a4d0eb83b20e07f233506ceb034e752a762b57a Mon Sep 17 00:00:00 2001 From: Mattia Sinigaglia Date: Wed, 31 Jan 2024 16:34:51 +0100 Subject: [PATCH] sw: fix Bender.yml --- Bender.yml | 184 ++++++++++--------------- hw/ip/spatz_cc/src/spatz_mempool_cc.sv | 2 +- 2 files changed, 75 insertions(+), 111 deletions(-) diff --git a/Bender.yml b/Bender.yml index ab87081d..0f179e51 100644 --- a/Bender.yml +++ b/Bender.yml @@ -6,6 +6,7 @@ package: name: spatz authors: - "Matheus Cavalcante " + - "Mattia Sinigaglia " dependencies: axi: { git: "https://github.com/pulp-platform/axi.git", version: =0.39.1-beta } @@ -18,9 +19,9 @@ dependencies: tech_cells_generic: { git: "https://github.com/pulp-platform/tech_cells_generic.git", version: 0.2.11 } export_include_dirs: - - hw/ip/reqrsp_interface/include - hw/ip/mem_interface/include - hw/ip/snitch/include + - hw/ip/reqrsp_interface/include - hw/ip/tcdm_interface/include sources: @@ -54,119 +55,82 @@ sources: ## hw/ip/mem_interface ## - hw/ip/mem_interface/src/mem_wide_narrow_mux.sv - - hw/ip/mem_interface/src/mem_interface.sv + + ## hw/ip/tcdm_interface ## + + # Level 0 + - hw/ip/tcdm_interface/src/tcdm_interface.sv + # Level 1 + - hw/ip/tcdm_interface/src/axi_to_tcdm.sv + - hw/ip/tcdm_interface/src/reqrsp_to_tcdm.sv + - hw/ip/tcdm_interface/src/tcdm_mux.sv - target: simulation files: - - hw/ip/mem_interface/src/mem_test.sv + - hw/ip/tcdm_interface/src/tcdm_test.sv - target: test files: # Level 0 - - hw/ip/mem_interface/test/mem_wide_narrow_mux_tb.sv + - hw/ip/tcdm_interface/test/reqrsp_to_tcdm_tb.sv + - hw/ip/tcdm_interface/test/tcdm_mux_tb.sv - ## hw/ip/tcdm_interface ## + ## hw/ip/snitch ## + + # Level 0: + - hw/ip/snitch/src/snitch_pma_pkg.sv + - hw/ip/snitch/src/riscv_instr.sv + # Level 1: + - hw/ip/snitch/src/snitch_pkg.sv + # Level 2: + - hw/ip/snitch/src/snitch_regfile_ff.sv + # - hw/ip/snitch/src/snitch_regfile_fpga.sv + # - hw/ip/snitch/src/snitch_regfile_latch.sv + - hw/ip/snitch/src/snitch_lsu.sv + - hw/ip/snitch/src/snitch_l0_tlb.sv + # Level 1: + - target: not(disable_pmcs) + defines: + SNITCH_ENABLE_PERF: + files: + - hw/ip/snitch/src/snitch.sv + # Disable the performance monitoring counters to save area. + - target: disable_pmcs + files: + - hw/ip/snitch/src/snitch.sv + + - target: test + files: + - hw/ip/snitch/test/snitch_l0_tlb_tb.sv + + ## hw/ip/snitch_icache ## + + # Level 0: + - hw/ip/snitch_icache/src/snitch_icache_pkg.sv + # Level 1: + - hw/ip/snitch_icache/src/snitch_icache_l0.sv + - hw/ip/snitch_icache/src/snitch_icache_refill.sv + - hw/ip/snitch_icache/src/snitch_icache_lfsr.sv + - hw/ip/snitch_icache/src/snitch_icache_lookup.sv + # Level 2: + - hw/ip/snitch_icache/src/snitch_icache_handler.sv + # Level 3: + - hw/ip/snitch_icache/src/snitch_icache.sv + - target: test + files: + - hw/ip/snitch_icache/test/snitch_icache_l0_tb.sv + + ## hw/ip/snitch_test ## + + # Level 1: + - target: any(simulation, verilator) + files: + - hw/ip/snitch_test/src/tb_memory_regbus.sv + # Level 2 + - hw/ip/snitch_test/src/tb_memory_axi.sv + # Level 3: + - target: snitch_test + files: + - hw/ip/snitch_test/src/tb_bin.sv - # # Level 0: - # - hw/ip/reqrsp_interface/src/reqrsp_pkg.sv - # # Level 1: - # - hw/ip/reqrsp_interface/src/reqrsp_intf.sv - # # Level 2: - # - hw/ip/reqrsp_interface/src/axi_to_reqrsp.sv - # - hw/ip/reqrsp_interface/src/reqrsp_cut.sv - # - hw/ip/reqrsp_interface/src/reqrsp_demux.sv - # - hw/ip/reqrsp_interface/src/reqrsp_iso.sv - # - hw/ip/reqrsp_interface/src/reqrsp_mux.sv - # - hw/ip/reqrsp_interface/src/reqrsp_to_axi.sv - # - target: simulation - # files: - # - hw/ip/reqrsp_interface/src/reqrsp_test.sv - # - target: test - # files: - # # Level 0 - # - hw/ip/reqrsp_interface/test/axi_to_reqrsp_tb.sv - # - hw/ip/reqrsp_interface/test/reqrsp_demux_tb.sv - # - hw/ip/reqrsp_interface/test/reqrsp_idempotent_tb.sv - # - hw/ip/reqrsp_interface/test/reqrsp_mux_tb.sv - # - hw/ip/reqrsp_interface/test/reqrsp_to_axi_tb.sv - - # ## hw/ip/mem_interface ## - - - hw/ip/mem_interface/src/mem_wide_narrow_mux.sv - - ## hw/ip/tcdm_interface ## - - # # Level 0 - # - hw/ip/tcdm_interface/src/tcdm_interface.sv - # # Level 1 - # - hw/ip/tcdm_interface/src/axi_to_tcdm.sv - # - hw/ip/tcdm_interface/src/reqrsp_to_tcdm.sv - # - hw/ip/tcdm_interface/src/tcdm_mux.sv - # - target: simulation - # files: - # - hw/ip/tcdm_interface/src/tcdm_test.sv - # - target: test - # files: - # # Level 0 - # - hw/ip/tcdm_interface/test/reqrsp_to_tcdm_tb.sv - # - hw/ip/tcdm_interface/test/tcdm_mux_tb.sv - - # Use Mempool snitch - # ## hw/ip/snitch ## - - # # Level 0: - # - hw/ip/snitch/src/snitch_pma_pkg.sv - # - hw/ip/snitch/src/riscv_instr.sv - # # Level 1: - # - hw/ip/snitch/src/snitch_pkg.sv - # # Level 2: - # - hw/ip/snitch/src/snitch_regfile_ff.sv - # # - hw/ip/snitch/src/snitch_regfile_fpga.sv - # # - hw/ip/snitch/src/snitch_regfile_latch.sv - # - hw/ip/snitch/src/snitch_lsu.sv - # - hw/ip/snitch/src/snitch_l0_tlb.sv - # # Level 1: - # - target: not(disable_pmcs) - # defines: - # SNITCH_ENABLE_PERF: - # files: - # - hw/ip/snitch/src/snitch.sv - # # Disable the performance monitoring counters to save area. - # - target: disable_pmcs - # files: - # - hw/ip/snitch/src/snitch.sv - - # - target: test - # files: - # - hw/ip/snitch/test/snitch_l0_tlb_tb.sv - - # ## hw/ip/snitch_icache ## - - # # Level 0: - # - hw/ip/snitch_icache/src/snitch_icache_pkg.sv - # # Level 1: - # - hw/ip/snitch_icache/src/snitch_icache_l0.sv - # - hw/ip/snitch_icache/src/snitch_icache_refill.sv - # - hw/ip/snitch_icache/src/snitch_icache_lfsr.sv - # - hw/ip/snitch_icache/src/snitch_icache_lookup.sv - # # Level 2: - # - hw/ip/snitch_icache/src/snitch_icache_handler.sv - # # Level 3: - # - hw/ip/snitch_icache/src/snitch_icache.sv - # - target: test - # files: - # - hw/ip/snitch_icache/test/snitch_icache_l0_tb.sv - - # ## hw/ip/snitch_test ## - - # # Level 1: - # - target: any(simulation, verilator) - # files: - # - hw/ip/snitch_test/src/tb_memory_regbus.sv - # # Level 2 - # - hw/ip/snitch_test/src/tb_memory_axi.sv - # # Level 3: - # - target: snitch_test - # files: - # - hw/ip/snitch_test/src/tb_bin.sv ## hw/ip/spatz ## - target: spatz @@ -176,7 +140,6 @@ sources: - hw/ip/spatz/src/rvv_pkg.sv # Level 1 - hw/ip/spatz/src/generated/spatz_pkg.sv - - hw/ip/spatz/src/spatz_serdiv.sv # Level 2 - hw/ip/spatz/src/spatz_decoder.sv @@ -198,6 +161,7 @@ sources: files: - hw/ip/spatz_cc/src/spatz_mempool_cc.sv + ## hw/ip/spatz_cc ## - target: not(mempool) files: @@ -230,5 +194,5 @@ sources: - target: spatz_test files: - # Level 1 - - hw/system/spatz_cluster/tb/testharness.sv + # Level 1 + - hw/system/spatz_cluster/tb/testharness.sv \ No newline at end of file diff --git a/hw/ip/spatz_cc/src/spatz_mempool_cc.sv b/hw/ip/spatz_cc/src/spatz_mempool_cc.sv index 13fce786..ac6da39c 100644 --- a/hw/ip/spatz_cc/src/spatz_mempool_cc.sv +++ b/hw/ip/spatz_cc/src/spatz_mempool_cc.sv @@ -257,7 +257,7 @@ module spatz_mempool_cc // TODO: Perhaps put it into a module // Assign TCDM data interface - for (genvar i = 0; i < NumMemPortsPerSpatz; i++) begin + for (genvar i = 0; i < NumMemPortsPerSpatz; i++) begin : gen_tcdm_assignment assign data_qaddr_o[i+1] = spatz_mem_req[i].addr; assign data_qwrite_o[i+1] = spatz_mem_req[i].write; assign data_qamo_o[i+1] = '0;