From c4b94e4f2caf49a24e7d1055093163bc2a42ea62 Mon Sep 17 00:00:00 2001 From: Hansung Kim Date: Wed, 1 May 2024 21:57:05 -0700 Subject: [PATCH] Wrap hardcoded configs with SYNTHESIS --- hw/rtl/VX_platform.vh | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/hw/rtl/VX_platform.vh b/hw/rtl/VX_platform.vh index 9eb4d279..20506a79 100644 --- a/hw/rtl/VX_platform.vh +++ b/hw/rtl/VX_platform.vh @@ -14,6 +14,16 @@ `ifndef VX_PLATFORM_VH `define VX_PLATFORM_VH +// synthesis only +`ifndef SIMULATION +`define SYNTHESIS +`define NDEBUG +`define DPI_DISABLE +`else +`define SV_DPI +`endif + +`ifdef SYNTHESIS `define GPR_RESET `define LSU_DUP_DISABLE `define ICACHE_DISABLE @@ -25,14 +35,6 @@ `define NUM_CORES 2 `define NUM_THREADS 8 `define NUM_WARPS 8 - -// synthesis only -`ifndef SIMULATION -`define SYNTHESIS -`define NDEBUG -`define DPI_DISABLE -`else -`define SV_DPI `endif `ifdef SV_DPI