Guard trace printf in mem_scheduler for synthesis

This commit is contained in:
Hansung Kim
2024-08-15 06:09:39 -07:00
parent 119c52004e
commit 715539b2c3
2 changed files with 3 additions and 2 deletions

View File

@@ -78,7 +78,6 @@
`define UNUSED_VAR(x)
`define UNUSED_PIN(x) . x ()
`define UNUSED_ARG(x) x
`define TRACE(level, args) $write args
`else // !SYNTHESIS
`ifdef VERILATOR
`define SIMULATION

View File

@@ -530,6 +530,7 @@ module VX_mem_scheduler #(
///////////////////////////////////////////////////////////////////////////
`ifdef SIMULATION
`ifndef NDEBUG
wire [NUM_BANKS-1:0] mem_req_fire_s = mem_req_valid_s & mem_req_ready_s;
always @(negedge clk) begin
@@ -598,7 +599,8 @@ module VX_mem_scheduler #(
end
end
end
`endif
`endif // NDEBUG
`endif // SIMULATION
endmodule
`TRACING_ON