Force include VX_gpu_pkg as compile order workaround

addResource() calls in Chisel BlackBox does not preserve order of the
files being included; the actual compile order for these files are
re-arranged to be in alphabetical order.

Therefore, while VX_gpu_pkg.sv has to be compiled before all the other
modules because it holds the top-level package definition, that order
cannot be ensured from Chisel.  As a hacky workaround, simply `include
this file in some of the sv files whose name starts earlier than
VX_gpu_pkg in lexicographical order.
This commit is contained in:
Hansung Kim
2023-11-14 23:00:43 -08:00
parent 64dc5e1667
commit 20a9e6d102
2 changed files with 3 additions and 0 deletions

View File

@@ -12,6 +12,7 @@
// limitations under the License.
`include "VX_cache_define.vh"
`include "VX_gpu_pkg.sv"
module VX_cache_cluster import VX_gpu_pkg::*; #(
parameter `STRING INSTANCE_ID = "",

View File

@@ -12,6 +12,8 @@
// limitations under the License.
`include "VX_define.vh"
`include "VX_fpu_pkg.sv"
`include "VX_gpu_pkg.sv"
`ifdef EXT_F_ENABLE
`include "VX_fpu_define.vh"