mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-22 12:57:13 -04:00
[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>
This commit is contained in:
parent
78739562ce
commit
a3865e6cd0
1 changed files with 1 additions and 1 deletions
|
@ -753,7 +753,7 @@ module ibex_tracer (
|
|||
if (fh == 32'h0) begin
|
||||
static string file_name_base = "trace_core";
|
||||
void'($value$plusargs("ibex_tracer_file_base=%s", file_name_base));
|
||||
$sformat(file_name, "%s_%h.log", file_name_base, hart_id_i);
|
||||
$sformat(file_name, "%s_%h_%m.log", file_name_base, hart_id_i);
|
||||
|
||||
$display("%m: Writing execution trace to %s", file_name);
|
||||
fh = $fopen(file_name, "w");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue