Skip to content

Commit

Permalink
tracer: Use hart_id for trace file format (#1543)
Browse files Browse the repository at this point in the history
  • Loading branch information
zarubaf authored Oct 18, 2023
1 parent 7cd183b commit 20c6556
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/cva6.sv
Original file line number Diff line number Diff line change
Expand Up @@ -1291,7 +1291,9 @@ module cva6
logic [63:0] cycles;

initial begin
f = $fopen("trace_hart_00.dasm", "w");
string fn;
$sformat(fn, "trace_hart_%0.0f.dasm", hart_id_i);
f = $fopen(fn, "w");
end

always_ff @(posedge clk_i or negedge rst_ni) begin
Expand Down

0 comments on commit 20c6556

Please sign in to comment.