mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-23 21:39:10 -04:00
runtime_assert
This commit is contained in:
parent
95f59d23a8
commit
d39f3f688a
1 changed files with 5 additions and 3 deletions
|
@ -68,16 +68,18 @@ module VX_stream_pack #(
|
|||
.data_out (tag_sel)
|
||||
);
|
||||
|
||||
wire [NUM_REQS-1:0] mask_sel;
|
||||
wire [NUM_REQS-1:0] tag_matches;
|
||||
|
||||
for (genvar i = 0; i < NUM_REQS; ++i) begin
|
||||
assign mask_sel[i] = valid_in[i] && (tag_in[i][TAG_SEL_BITS-1:0] == tag_sel[TAG_SEL_BITS-1:0]);
|
||||
assign tag_matches[i] = (tag_in[i][TAG_SEL_BITS-1:0] == tag_sel[TAG_SEL_BITS-1:0]);
|
||||
end
|
||||
|
||||
for (genvar i = 0; i < NUM_REQS; ++i) begin
|
||||
assign ready_in[i] = grant_ready & mask_sel[i];
|
||||
assign ready_in[i] = grant_ready & tag_matches[i];
|
||||
end
|
||||
|
||||
wire [NUM_REQS-1:0] mask_sel = valid_in & tag_matches;
|
||||
|
||||
VX_elastic_buffer #(
|
||||
.DATAW (NUM_REQS + TAG_WIDTH + (NUM_REQS * DATA_WIDTH)),
|
||||
.SIZE (`TO_OUT_BUF_SIZE(OUT_BUF)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue