Skip to content

Commit

Permalink
snax_KUL_cluster and snax_gemmX_xdma_cluster (#10)
Browse files Browse the repository at this point in the history
* Modify hardware cfg

* chore: update cluster configuration file with cluster base offset

* Fix integration problems

* Update new probe file
  • Loading branch information
IveanEx committed Aug 17, 2024
1 parent b651eca commit 53707c4
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 3,322 deletions.
3,341 changes: 28 additions & 3,313 deletions target/fpga/probes.ltx

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions target/rtl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ $(TARGET_CLINT_DIR)/clint.%: $(SOURCE_CLINT_DIR)/data/clint.%.tpl $(CFG) | $(TAR
# SNAX Accelerator + Wrapper Generations #
###########################################
# TODO: This SNAX_CFGS should not be fixed! It should be created dynamically instead.
SNAX_CFGS += cfg/cluster_cfg/snax_streamer_gemm_add_c_cluster.hjson
SNAX_CFGS += cfg/cluster_cfg/snax_KUL_cluster.hjson
SNAX_CFGS += cfg/cluster_cfg/snax_streamer_gemmX_xdma_cluster.hjson

#######################
Expand Down Expand Up @@ -314,7 +314,7 @@ ifeq ($(findstring snax_xdma_cluster,$(SNAX_CFGS)),snax_xdma_cluster)
$(eval BENDER_TARGETS += -t snax_xdma -t snax_xdma_cluster)
endif

ifeq ($(findstring snax_kul_cluster_all_narrow,$(SNAX_CFGS)),snax_kul_cluster_all_narrow)
ifeq ($(findstring snax_KUL_cluster,$(SNAX_CFGS)),snax_KUL_cluster)
$(eval BENDER_TARGETS += -t snax_KUL_cluster)
endif

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
},

cluster: {
name: "snax_kul_cluster_all_narrow",
name: "snax_KUL_cluster",
boot_addr: 4096, // 0x1000
cluster_base_addr: 268435456, // 0x1000_0000
cluster_base_offset: 0, // 0x0
cluster_base_hartid: 0,
cluster_base_offset: 262144, // 256KB
cluster_base_hartid: 1,
addr_width: 48,
data_width: 64,
tcdm: {
Expand All @@ -24,11 +24,28 @@
cluster_periph_size: 64, // kB
zero_mem_size: 64, // kB
dma_data_width: 512,
dma_axi_req_fifo_depth: 3,
dma_req_fifo_depth: 3,
dma_axi_req_fifo_depth: 16,
dma_req_fifo_depth: 8,
// AXI bandwidth switcher
use_ax_bw_converter: true,
use_ax_bw_converter: false,
converted_axi_bandwidth: 256,

// Additional parameters for Occamy Integration
narrow_trans: 4,
wide_trans: 32,
dma_user_width: 1,
// We don't need Snitch debugging in Occamy
enable_debug: false,
// We don't need Snitch (core-internal) virtual memory support
vm_support: false,
// Memory configuration inputs
sram_cfg_expose: true,
sram_cfg_fields: {
ema: 3,
emaw: 2,
emas: 1
},

// Timing parameters
timing: {
lat_comp_fp32: 3,
Expand Down
2 changes: 1 addition & 1 deletion target/rtl/cfg/occamy_cfg/snax_two_clusters.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
cfg_base_offset: 65536 // 0x10000
},
clusters:[
"snax_streamer_gemm_add_c_cluster",
"snax_KUL_cluster",
"snax_streamer_gemmX_xdma_cluster",
],

Expand Down
Binary file modified target/rtl/test/bootrom.elf
Binary file not shown.
1 change: 1 addition & 0 deletions target/rtl/test/bootrom.ld
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ SECTIONS
.end ALIGN(16): { *(end) } > bootrom

/DISCARD/ : { *(.riscv.attributes) *(.comment) }

/* Global and stack pointer */
__global_pointer$ = ADDR(.misc) + SIZEOF(.misc) / 2;
__stack_pointer$ = ORIGIN(spm) + LENGTH(spm) - 8;
Expand Down

0 comments on commit 53707c4

Please sign in to comment.