Skip to content

Commit

Permalink
instr_tracer: prevent the synthesis of the instruction tracer
Browse files Browse the repository at this point in the history
Signed-off-by: Cesar Fuguet <[email protected]>
  • Loading branch information
Cesar Fuguet committed Oct 10, 2023
1 parent 8e52d09 commit b0f9859
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions common/local/util/instr_tracer.sv
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
//pragma translate_off
`include "ex_trace_item.svh"
`include "instr_trace_item.svh"
//pragma translate_on

module instr_tracer (
instr_tracer_if tracer_if,
Expand Down Expand Up @@ -187,7 +186,6 @@ module instr_tracer (
bp = {};
endfunction

// pragma translate_off
function void printInstr(ariane_pkg::scoreboard_entry_t sbe, logic [31:0] instr, logic [63:0] result, logic [riscv::PLEN-1:0] paddr, riscv::priv_lvl_t priv_lvl, logic debug_mode, ariane_pkg::bp_resolve_t bp);
automatic instr_trace_item iti = new ($time, clk_ticks, sbe, instr, gp_reg_file, fp_reg_file, result, paddr, priv_lvl, debug_mode, bp);
// print instruction to console
Expand Down Expand Up @@ -219,7 +217,7 @@ module instr_tracer (
final begin
close();
end
// pragma translate_on

endmodule : instr_tracer
//pragma translate_on
`endif

0 comments on commit b0f9859

Please sign in to comment.