Skip to content

Commit a3865e6

Browse files
committed
[ibex,tracer] Uniquify trace log with module hierarchy
In case of having multiple Ibexes, this caues a conflict in openening the same filename from different instances. Add the unique module hierarchy into the filename. Signed-off-by: Robert Schilling <rschilling@rivosinc.com>
1 parent 7873956 commit a3865e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rtl/ibex_tracer.sv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ module ibex_tracer (
753753
if (fh == 32'h0) begin
754754
static string file_name_base = "trace_core";
755755
void'($value$plusargs("ibex_tracer_file_base=%s", file_name_base));
756-
$sformat(file_name, "%s_%h.log", file_name_base, hart_id_i);
756+
$sformat(file_name, "%s_%h_%m.log", file_name_base, hart_id_i);
757757

758758
$display("%m: Writing execution trace to %s", file_name);
759759
fh = $fopen(file_name, "w");

0 commit comments

Comments
 (0)