Skip to content

Commit

Permalink
Some more...
Browse files Browse the repository at this point in the history
  • Loading branch information
fischeti committed Sep 8, 2023
1 parent 4b806bf commit 2ba9afc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/floo_route_select.sv
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module floo_route_select import floo_pkg::*;
// One-hot encoding of the decoded route
always_comb begin : proc_route_sel
route_sel = '0;
route_sel[channel_i.dst_id] = 1'b1;
route_sel[channel_i.hdr.dst_id] = 1'b1;
end

end else if (RouteAlgo == IdTable) begin : gen_id_table
Expand All @@ -64,7 +64,7 @@ module floo_route_select import floo_pkg::*;
.rule_t ( addr_rule_t ),
.Napot ( 0 )
) i_id_decode (
.addr_i ( channel_i.dst_id ),
.addr_i ( channel_i.hdr.dst_id ),
.addr_map_i ( id_route_map_i ),
.idx_o ( out_id ),
.dec_valid_o (),
Expand Down Expand Up @@ -102,7 +102,7 @@ module floo_route_select import floo_pkg::*;
// One-hot encoding of the decoded route

id_t id_in;
assign id_in = id_t'(channel_i.dst_id);
assign id_in = id_t'(channel_i.hdr.dst_id);

always_comb begin : proc_route_sel
route_sel = '0;
Expand Down Expand Up @@ -142,7 +142,7 @@ module floo_route_select import floo_pkg::*;
locked_route_d = locked_route_q;

if (ready_i && valid_i) begin
locked_route_d = ~channel_i.last;
locked_route_d = ~channel_i.hdr.last;

end
end
Expand Down
2 changes: 1 addition & 1 deletion src/floo_wormhole_arbiter.sv
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module floo_wormhole_arbiter import floo_pkg::*;
ready_o[valid_selected_idx] = ready_i;
end

assign last_out = data_o.last & valid_o;
assign last_out = data_o.hdr.last & valid_o;

always_comb begin : proc_valid
valid_d = valid_q;
Expand Down

0 comments on commit 2ba9afc

Please sign in to comment.