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:
1
hw/rtl/cache/VX_cache_cluster.sv
vendored
1
hw/rtl/cache/VX_cache_cluster.sv
vendored
@@ -12,6 +12,7 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
`include "VX_cache_define.vh"
|
`include "VX_cache_define.vh"
|
||||||
|
`include "VX_gpu_pkg.sv"
|
||||||
|
|
||||||
module VX_cache_cluster import VX_gpu_pkg::*; #(
|
module VX_cache_cluster import VX_gpu_pkg::*; #(
|
||||||
parameter `STRING INSTANCE_ID = "",
|
parameter `STRING INSTANCE_ID = "",
|
||||||
|
|||||||
@@ -12,6 +12,8 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
`include "VX_define.vh"
|
`include "VX_define.vh"
|
||||||
|
`include "VX_fpu_pkg.sv"
|
||||||
|
`include "VX_gpu_pkg.sv"
|
||||||
|
|
||||||
`ifdef EXT_F_ENABLE
|
`ifdef EXT_F_ENABLE
|
||||||
`include "VX_fpu_define.vh"
|
`include "VX_fpu_define.vh"
|
||||||
|
|||||||
Reference in New Issue
Block a user