Skip to content

Commit

Permalink
[Profile] Add interconnect profiling testbench support and python scr…
Browse files Browse the repository at this point in the history
…ipts.
  • Loading branch information
Aquaticfuller committed Dec 20, 2024
1 parent e601978 commit 4400dac
Show file tree
Hide file tree
Showing 7 changed files with 1,107 additions and 16 deletions.
7 changes: 5 additions & 2 deletions config/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ dram_axi_width_interleaved ?= 16
spm_bank_id_remap ?= 0

# Enable tile id remapping inside of each group
tile_id_remap ?= 1
tile_id_remap ?= 0

# Enable the spm access pattern profiling
spm_profiling ?= 0
spm_profiling ?= 0

# Enable the interconnect access pattern profiling
noc_profiling ?= 0
3 changes: 3 additions & 0 deletions hardware/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ vlog_defs += -DDRAM_AXI_WIDTH_INTERLEAVED=${dram_axi_width_interleaved}
ifeq (1, $(spm_profiling))
vlog_defs += -DSPM_PROFILING=$(spm_profiling)
endif
ifeq (1, $(noc_profiling))
vlog_defs += -DNOC_PROFILING=$(noc_profiling)
endif
ifeq (1, $(spm_bank_id_remap))
vlog_defs += -DSPM_BANK_ID_REMAP=$(spm_bank_id_remap)
endif
Expand Down
8 changes: 4 additions & 4 deletions hardware/scripts/gen_xbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ def generate_crossbar(InNum, OutNum):
assertion = (
"initial begin\n"
f" assert (InNum == {InNum}) else "
"$fatal(1, \"Parameter InNum does not\n"
f" match expected value {InNum}\");\n"
"$fatal(1, \n\"Parameter InNum does not "
f"match expected value {InNum}\");\n"
f" assert (OutNum == {OutNum}) else "
"$fatal(1, \"Parameter OutNum does not\n"
f" match expected value {OutNum}\");\n"
"$fatal(1, \n\"Parameter OutNum does not "
f"match expected value {OutNum}\");\n"
"end\n"
)

Expand Down
Loading

0 comments on commit 4400dac

Please sign in to comment.