Skip to content

Commit

Permalink
Move deprecated files to dedicated folder
Browse files Browse the repository at this point in the history
  • Loading branch information
micprog committed May 3, 2024
1 parent f34d719 commit 3eafd9a
Show file tree
Hide file tree
Showing 38 changed files with 60 additions and 54 deletions.
106 changes: 56 additions & 50 deletions Bender.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,60 +24,12 @@ sources:
# Level 1
- rtl/ecc_wrap/ecc_manager_reg_top.sv
- rtl/ecc_wrap/ecc_scrubber.sv

- target: any(deprecated, axi_ecc, hci_ecc, pulp_ecc, test)
files:
- rtl/ecc_concat_32_64.sv
- rtl/lowrisc_ecc/prim_secded_pkg.sv
- rtl/lowrisc_ecc/prim_secded_13_8_cor.sv
- rtl/lowrisc_ecc/prim_secded_13_8_dec.sv
- rtl/lowrisc_ecc/prim_secded_13_8_enc.sv
- rtl/lowrisc_ecc/prim_secded_22_16_cor.sv
- rtl/lowrisc_ecc/prim_secded_22_16_dec.sv
- rtl/lowrisc_ecc/prim_secded_22_16_enc.sv
- rtl/lowrisc_ecc/prim_secded_39_32_cor.sv
- rtl/lowrisc_ecc/prim_secded_39_32_dec.sv
- rtl/lowrisc_ecc/prim_secded_39_32_enc.sv
- rtl/lowrisc_ecc/prim_secded_72_64_cor.sv
- rtl/lowrisc_ecc/prim_secded_72_64_dec.sv
- rtl/lowrisc_ecc/prim_secded_72_64_enc.sv

- target: axi_ecc # custom ECC for PULP AXI IPs, make sure to include interface IPs when adding this target
files:
- rtl/BUS_enc_dec/AXI_bus_ecc_dec.sv
- rtl/BUS_enc_dec/AXI_bus_ecc_enc.sv
- target: hci_ecc # custom ECC for PULP HCI IPs, make sure to include interface IPs when adding this target
files:
- rtl/BUS_enc_dec/hci_core_intf_ecc_dec.sv
- rtl/BUS_enc_dec/hci_core_intf_ecc_enc.sv
- rtl/BUS_enc_dec/hci_mem_intf_ecc_dec.sv
- rtl/BUS_enc_dec/hci_mem_intf_ecc_enc.sv
- target: pulp_ecc # custom ECC for PULP (pulp_soc) interface IPs, make sure to include interface IPs when adding this target
files:
- rtl/BUS_enc_dec/PE_XBAR_bus_ecc_dec.sv
- rtl/BUS_enc_dec/PE_XBAR_bus_ecc_enc.sv
- rtl/BUS_enc_dec/TCDM_XBAR_bus_ecc_dec.sv
- rtl/BUS_enc_dec/TCDM_XBAR_bus_ecc_enc.sv
- rtl/BUS_enc_dec/XBAR_DEMUX_BUS_ecc_dec.sv
- rtl/BUS_enc_dec/XBAR_DEMUX_BUS_ecc_enc.sv
- rtl/TMR_voter_detect.sv
# Level 2
- rtl/bitwise_TMR_voter.sv
- rtl/ecc_wrap/ecc_manager.sv
- target: deprecated
files:
- rtl/ecc_wrap/ecc_sram_wrap.sv
- rtl/ecc_wrap/ecc_sram.sv
# Level 3
- target: test
files:
- test/tb_ecc_scrubber.sv
- test/tb_ecc_secded.sv
- test/tb_ecc_sram.sv
- test/tb_tmr_voter.sv
- test/tb_tmr_voter_detect.sv
- test/tb_tmr_word_voter.sv
- test/tb_bitwise_tmr_voter.sv

- files:
- rtl/HMR/hmr_pkg.sv
Expand Down Expand Up @@ -105,6 +57,50 @@ sources:
- rtl/HMR/hmr_unit.sv
- rtl/HMR/hmr_rr_wrapper.sv

- target: any(deprecated, axi_ecc, hci_ecc, pulp_ecc, test)
files:
- rtl/deprecated/ecc_concat_32_64.sv
- rtl/deprecated/lowrisc_ecc/prim_secded_pkg.sv
- rtl/deprecated/lowrisc_ecc/prim_secded_13_8_cor.sv
- rtl/deprecated/lowrisc_ecc/prim_secded_13_8_dec.sv
- rtl/deprecated/lowrisc_ecc/prim_secded_13_8_enc.sv
- rtl/deprecated/lowrisc_ecc/prim_secded_22_16_cor.sv
- rtl/deprecated/lowrisc_ecc/prim_secded_22_16_dec.sv
- rtl/deprecated/lowrisc_ecc/prim_secded_22_16_enc.sv
- rtl/deprecated/lowrisc_ecc/prim_secded_39_32_cor.sv
- rtl/deprecated/lowrisc_ecc/prim_secded_39_32_dec.sv
- rtl/deprecated/lowrisc_ecc/prim_secded_39_32_enc.sv
- rtl/deprecated/lowrisc_ecc/prim_secded_72_64_cor.sv
- rtl/deprecated/lowrisc_ecc/prim_secded_72_64_dec.sv
- rtl/deprecated/lowrisc_ecc/prim_secded_72_64_enc.sv

# custom ECC for PULP AXI IPs, make sure to include interface IPs when adding this target
- target: axi_ecc
files:
- rtl/BUS_enc_dec/AXI_bus_ecc_dec.sv
- rtl/BUS_enc_dec/AXI_bus_ecc_enc.sv
# custom ECC for PULP HCI IPs, make sure to include interface IPs when adding this target
- target: hci_ecc
files:
- rtl/BUS_enc_dec/hci_core_intf_ecc_dec.sv
- rtl/BUS_enc_dec/hci_core_intf_ecc_enc.sv
- rtl/BUS_enc_dec/hci_mem_intf_ecc_dec.sv
- rtl/BUS_enc_dec/hci_mem_intf_ecc_enc.sv

# custom ECC for PULP (pulp_soc) interface IPs, make sure to include interface IPs when adding this target
- target: pulp_ecc
files:
- rtl/BUS_enc_dec/PE_XBAR_bus_ecc_dec.sv
- rtl/BUS_enc_dec/PE_XBAR_bus_ecc_enc.sv
- rtl/BUS_enc_dec/TCDM_XBAR_bus_ecc_dec.sv
- rtl/BUS_enc_dec/TCDM_XBAR_bus_ecc_enc.sv
- rtl/BUS_enc_dec/XBAR_DEMUX_BUS_ecc_dec.sv
- rtl/BUS_enc_dec/XBAR_DEMUX_BUS_ecc_enc.sv

- target: deprecated
files:
- rtl/deprecated/ecc_sram_wrap.sv

- target: any(deprecated, ODRG)
include_dirs:
- rtl/deprecated/ODRG_unit
Expand All @@ -122,11 +118,21 @@ sources:
- rtl/deprecated/pulpissimo_tcls/tcls_manager_reg_top.sv
- rtl/deprecated/pulpissimo_tcls/TCLS_unit.sv

- target: test
files:
- test/tb_ecc_scrubber.sv
- test/tb_ecc_secded.sv
- test/tb_ecc_sram.sv
- test/tb_tmr_voter.sv
- test/tb_tmr_voter_detect.sv
- test/tb_tmr_word_voter.sv
- test/tb_bitwise_tmr_voter.sv

vendor_package:
- name: lowrisc_opentitan
target_dir: "util/lowrisc_opentitan"
target_dir: "rtl/deprecated/util/lowrisc_opentitan"
upstream: { git: "https://github.com/lowRISC/opentitan.git", rev: "cfcfbce85e182c127b8c4be5cd8bf531e0a4d927" }
patch_dir: "util/patches"
patch_dir: "rtl/deprecated/util/patches"
mapping:
- {from: 'util/design/secded_gen.py', to: 'util/design/secded_gen.py', patch_dir: 'lowrisc_secded_gen'}
- {from: 'util/design/data/', to: 'util/design/data/', patch_dir: 'lowrisc_data_dir'}
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,6 @@ gen_ecc_registers:
python $(REG_TOOL) $(HJSON_ECC) -d > $(TARGET_DIR_ECC)/doc.md
python $(REG_TOOL) $(HJSON_ECC) -D > $(TARGET_DIR_ECC)/ECC.h

gen_ECC:
$(BENDER) vendor init
cd util/lowrisc_opentitan && ./util/design/secded_gen.py --no_fpv --outdir ../../rtl/lowrisc_ecc

bender:
ifeq (,$(wildcard ./bender))
curl --proto '=https' --tlsv1.2 -sSf https://pulp-platform.github.io/bender/init \
Expand Down Expand Up @@ -128,3 +124,7 @@ gen_TCLS:
python $(REG_TOOL) $(HJSON_TCLS) -t $(TARGET_DIR_TCLS) -r
python $(REG_TOOL) $(HJSON_TCLS) -d > $(TARGET_DIR_TCLS)/doc.md
python $(REG_TOOL) $(HJSON_TCLS) -D > $(TARGET_DIR_TCLS)/TCLS.h

gen_ECC:
$(BENDER) vendor init
cd rtl/deprecated/util/lowrisc_opentitan && ./util/design/secded_gen.py --no_fpv --outdir ../../lowrisc_ecc
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 3eafd9a

Please sign in to comment.