Skip to content

Commit

Permalink
target: Align with snitch_cluster DMA tracer introduction
Browse files Browse the repository at this point in the history
  • Loading branch information
colluca committed Jan 10, 2024
1 parent d69f9a8 commit 9f4a108
Show file tree
Hide file tree
Showing 7 changed files with 85 additions and 904 deletions.
9 changes: 4 additions & 5 deletions target/sim/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -460,20 +460,19 @@ $(PLATFORM_HEADERS_DIR)/occamy_base_addr.h: $(CFG)
CVA6_BINARY ?= $(shell cat $(LOGS_DIR)/.rtlbinary)

CVA6_TXT_TRACE = $(LOGS_DIR)/trace_hart_00000.txt
CVA6_PERF_TRACE = $(LOGS_DIR)/hart_00000_perf.json
CVA6_PERF_DUMP = $(LOGS_DIR)/hart_00000_perf.json
CVA6_ANNOTATED_TRACE = $(LOGS_DIR)/trace_hart_00000.s
CVA6_DIFF_TRACE = $(LOGS_DIR)/trace_hart_00000.diff

TXT_TRACES += $(CVA6_TXT_TRACE)
PERF_TRACES += $(CVA6_PERF_TRACE)
PERF_DUMPS += $(CVA6_PERF_DUMP)
ANNOTATED_TRACES += $(CVA6_ANNOTATED_TRACE)
DIFF_TRACES += $(CVA6_DIFF_TRACE)

traces: $(CVA6_TXT_TRACE) $(CVA6_PERF_TRACE)
traces: $(CVA6_TXT_TRACE) $(CVA6_PERF_DUMP)
annotate: $(CVA6_ANNOTATED_TRACE)

# CVA6 traces require different handling
$(CVA6_PERF_TRACE): $(CVA6_TXT_TRACE) $(EVENTS_PY)
$(CVA6_PERF_DUMP): $(CVA6_TXT_TRACE) $(EVENTS_PY)
$(PYTHON) $(EVENTS_PY) -f cva6 $< -o $@
$(CVA6_ANNOTATED_TRACE): $(CVA6_TXT_TRACE) $(ANNOTATE_PY)
$(PYTHON) $(ANNOTATE_PY) $(ANNOTATE_FLAGS) -o $@ $(CVA6_BINARY) $<
Expand Down
36 changes: 18 additions & 18 deletions target/sim/cfg/M-Q4C4.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@
periph_axi_lite_narrow_plic_cfg: 1,
periph_axi_lite_narrow_spim_cfg: 1,
periph_axi_lite_narrow_timer_cfg: 1,
}
},
txns: {
wide_and_inter: 128,
wide_to_hbm: 128,
narrow_and_wide: 16,
rmq: 4,
}
},
narrow_xbar_slv_id_width: 4,
narrow_xbar_user_width: 5, // clog2(total number of clusters)
nr_s1_quadrant: 4,
Expand All @@ -99,23 +99,23 @@
sets: 2,
max_trans: 32,
address_regions: 4,
}
},
narrow_tlb_cfg: {
max_trans: 32,
l1_num_entries: 8,
l1_cut_ax: true,
}
},
wide_tlb_cfg: {
max_trans: 32,
l1_num_entries: 8,
l1_cut_ax: true,
}
},
wide_xbar: {
max_slv_trans: 32,
max_mst_trans: 32,
fall_through: false,
},
wide_xbar_slv_id_width: 3
wide_xbar_slv_id_width: 3,
narrow_xbar: {
max_slv_trans: 8,
max_mst_trans: 8,
Expand All @@ -127,10 +127,10 @@
cfg_base_offset: 65536 // 0x10000
},
cluster: {
name: "occamy_cluster"
name: "occamy_cluster",
boot_addr: 4096, // 0x1000
cluster_base_addr: 268435456, // 0x10000000
cluster_base_offset: 262144 // 0x40000
cluster_base_offset: 262144, // 0x40000
cluster_base_hartid: 1,
addr_width: 48,
data_width: 64,
Expand Down Expand Up @@ -169,7 +169,7 @@
lat_noncomp: 1,
lat_conv: 2,
lat_sdotp: 3,
fpu_pipe_config: "BEFORE"
fpu_pipe_config: "BEFORE",
narrow_xbar_latency: "CUT_ALL_PORTS",
wide_xbar_latency: "CUT_ALL_PORTS",
// Isolate the core.
Expand Down Expand Up @@ -202,7 +202,7 @@
]
}
],
}
},
// Templates.
compute_core_template: {
isa: "rv32imafd",
Expand Down Expand Up @@ -236,10 +236,10 @@
dma_core_template: {
isa: "rv32imafd",
Xdiv_sqrt: true,
# isa: "rv32ema",
xdma: true
xssr: false
xfrep: false
// isa: "rv32ema",
xdma: true,
xssr: false,
xfrep: false,
xf16: false,
xf16alt: false,
xf8: false,
Expand All @@ -253,7 +253,7 @@
num_sequencer_instructions: 16,
num_dtlb_entries: 1,
num_itlb_entries: 1,
}
},
// peripherals
peripherals: {
rom: {
Expand Down Expand Up @@ -358,7 +358,7 @@
spm_narrow: {
address: 1879048192, // 0x7000_0000
length: 524288, // 512 kiB 0x8_0000
# An uncached alias address space of the same length
// An uncached alias address space of the same length
uncached_alias: 1879572480, // 0x7008_0000
},
spm_wide: {
Expand All @@ -376,7 +376,7 @@
hbi: {
address: 1099511627776, // 0x100_0000_0000
length: 1099511627776, // 1 TiB 0x100_0000_0000
}
},
hbm: {
address_0: 2147483648, // 0x8000_0000
address_1: 68719476736, // 0x10_0000_0000
Expand All @@ -389,7 +389,7 @@
length: 4194304, // 4 MiB 0x40_0000
},
phy: {
address: 150994944 // 0x0900_0000
address: 150994944, // 0x0900_0000
length: 1048576, // 1 MiB 0x10_0000
},
seq: {
Expand Down
Loading

0 comments on commit 9f4a108

Please sign in to comment.