added ifdef for verilator

This commit is contained in:
Pasquale Davide Schiavone 2017-06-26 15:10:25 +02:00
parent e97d18e829
commit 03e025efc3
2 changed files with 6 additions and 2 deletions

View file

@ -683,7 +683,7 @@ module zeroriscy_core
.jump_req_o ( dbg_jump_req ) // set PC to new value
);
`ifndef VERILATOR
`ifdef TRACE_EXECUTION
zeroriscy_tracer zeroriscy_tracer_i
(
@ -730,5 +730,5 @@ module zeroriscy_core
.imm_sb_type ( id_stage_i.imm_sb_type )
);
`endif
`endif
endmodule

View file

@ -24,6 +24,9 @@
// //
////////////////////////////////////////////////////////////////////////////////
`ifndef VERILATOR
`include "zeroriscy_config.sv"
import zeroriscy_defines::*;
@ -439,3 +442,4 @@ module zeroriscy_tracer
end // always @ (posedge clk)
endmodule
`endif