ifdef-guard VX_operand* to enable including both in Chisel
This commit is contained in:
@@ -13,6 +13,8 @@
|
|||||||
|
|
||||||
`include "VX_define.vh"
|
`include "VX_define.vh"
|
||||||
|
|
||||||
|
`ifndef GPR_DUPLICATED
|
||||||
|
|
||||||
module VX_operands import VX_gpu_pkg::*; #(
|
module VX_operands import VX_gpu_pkg::*; #(
|
||||||
parameter CORE_ID = 0,
|
parameter CORE_ID = 0,
|
||||||
parameter CACHE_ENABLE = 0
|
parameter CACHE_ENABLE = 0
|
||||||
@@ -197,9 +199,10 @@ module VX_operands import VX_gpu_pkg::*; #(
|
|||||||
assign stg_valid_in = scoreboard_if[i].valid && data_ready;
|
assign stg_valid_in = scoreboard_if[i].valid && data_ready;
|
||||||
assign scoreboard_if[i].ready = stg_ready_in && data_ready;
|
assign scoreboard_if[i].ready = stg_ready_in && data_ready;
|
||||||
|
|
||||||
// NOTE(hansung): toggle_buffer is 1-reg pipe without flow, halving
|
// NOTE(hansung): Cannot use stream_buffer here for full throughput
|
||||||
// throughput. Wouldn't this cap overall IPC? Or OK as long as
|
// because data registers (rs1_data, ...) are single-buffered. This
|
||||||
// ISSUE_WIDTH > 1?
|
// will probably cap IPC at 50% (notwithstanding the 1-operand-per-cycle
|
||||||
|
// limit.)
|
||||||
VX_toggle_buffer #(
|
VX_toggle_buffer #(
|
||||||
.DATAW (DATAW)
|
.DATAW (DATAW)
|
||||||
) staging_buffer (
|
) staging_buffer (
|
||||||
@@ -295,3 +298,5 @@ module VX_operands import VX_gpu_pkg::*; #(
|
|||||||
end
|
end
|
||||||
|
|
||||||
endmodule
|
endmodule
|
||||||
|
|
||||||
|
`endif
|
||||||
|
|||||||
@@ -13,6 +13,8 @@
|
|||||||
|
|
||||||
`include "VX_define.vh"
|
`include "VX_define.vh"
|
||||||
|
|
||||||
|
`ifdef GPR_DUPLICATED
|
||||||
|
|
||||||
module VX_operands_dup import VX_gpu_pkg::*; #(
|
module VX_operands_dup import VX_gpu_pkg::*; #(
|
||||||
parameter CORE_ID = 0,
|
parameter CORE_ID = 0,
|
||||||
parameter CACHE_ENABLE = 0
|
parameter CACHE_ENABLE = 0
|
||||||
@@ -224,3 +226,5 @@ module VX_operands_dup import VX_gpu_pkg::*; #(
|
|||||||
end
|
end
|
||||||
|
|
||||||
endmodule
|
endmodule
|
||||||
|
|
||||||
|
`endif
|
||||||
|
|||||||
Reference in New Issue
Block a user