From 715539b2c39b4d7c7a8bb4b63f28c4cbd7d6ee4b Mon Sep 17 00:00:00 2001 From: Hansung Kim Date: Thu, 15 Aug 2024 06:09:39 -0700 Subject: [PATCH] Guard trace printf in mem_scheduler for synthesis --- hw/rtl/VX_platform.vh | 1 - hw/rtl/libs/VX_mem_scheduler.sv | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/rtl/VX_platform.vh b/hw/rtl/VX_platform.vh index 6ceeecb1..ce28a9c0 100644 --- a/hw/rtl/VX_platform.vh +++ b/hw/rtl/VX_platform.vh @@ -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 diff --git a/hw/rtl/libs/VX_mem_scheduler.sv b/hw/rtl/libs/VX_mem_scheduler.sv index ae34812b..2343be6f 100644 --- a/hw/rtl/libs/VX_mem_scheduler.sv +++ b/hw/rtl/libs/VX_mem_scheduler.sv @@ -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