Skip to content

Commit

Permalink
lint: SV sources
Browse files Browse the repository at this point in the history
  • Loading branch information
fischeti committed Sep 25, 2024
1 parent 187c101 commit 8d86f55
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions hw/floo_axi_chimney.sv
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,8 @@ module floo_axi_chimney #(
assign axi_rsp_src_id[AxiR] = ar_out_hdr_out.hdr.src_id;

for (genvar ch = 0; ch < NumAxiChannels; ch++) begin : gen_route_comp
localparam axi_ch_e axi_ch = axi_ch_e'(ch);
if (axi_ch == AxiAw || axi_ch == AxiAr) begin : gen_req_route_comp
localparam axi_ch_e Ch = axi_ch_e'(ch);
if (Ch == AxiAw || Ch == AxiAr) begin : gen_req_route_comp
// Translate the address from AXI requests to a destination ID
// (or route if `SourceRouting` is used)
floo_route_comp #(
Expand All @@ -405,7 +405,7 @@ module floo_axi_chimney #(
.id_o ( id_out[ch] )
);
end else if (RouteCfg.RouteAlgo == floo_pkg::SourceRouting &&
(axi_ch == AxiB || axi_ch == AxiR)) begin : gen_rsp_route_comp
(Ch == AxiB || Ch == AxiR)) begin : gen_rsp_route_comp
// Generally, the source ID from the request is used to route back
// the responses. However, in the case of `SourceRouting`, the source ID
// first needs to be translated into a route.
Expand Down
10 changes: 5 additions & 5 deletions hw/floo_nw_chimney.sv
Original file line number Diff line number Diff line change
Expand Up @@ -645,9 +645,9 @@ module floo_nw_chimney #(
assign axi_rsp_src_id[WideR] = wide_ar_buf_hdr_out.hdr.src_id;

for (genvar ch = 0; ch < NumNWAxiChannels; ch++) begin : gen_route_comp
localparam nw_ch_e nw_ch = nw_ch_e'(ch);
if (nw_ch == NarrowAw || nw_ch == NarrowAr ||
nw_ch == WideAw || nw_ch == WideAr) begin : gen_req_route_comp
localparam nw_ch_e Ch = nw_ch_e'(ch);
if (Ch == NarrowAw || Ch == NarrowAr ||
Ch == WideAw || Ch == WideAr) begin : gen_req_route_comp

// Translate the address from AXI requests to a destination ID
// (or route if `SourceRouting` is used)
Expand All @@ -668,8 +668,8 @@ module floo_nw_chimney #(
.id_o ( id_out[ch] )
);
end else if (RouteCfg.RouteAlgo == floo_pkg::SourceRouting &&
(nw_ch == NarrowB || nw_ch == NarrowR ||
nw_ch == WideB || nw_ch == WideR)) begin : gen_rsp_route_comp
(Ch == NarrowB || Ch == NarrowR ||
Ch == WideB || Ch == WideR)) begin : gen_rsp_route_comp
// Generally, the source ID from the request is used to route back
// the responses. However, in the case of `SourceRouting`, the source ID
// first needs to be translated into a route.
Expand Down
10 changes: 5 additions & 5 deletions hw/floo_nw_vc_chimney.sv
Original file line number Diff line number Diff line change
Expand Up @@ -693,9 +693,9 @@ module floo_nw_vc_chimney #(
assign axi_rsp_src_id[WideR] = wide_ar_buf_hdr_out.hdr.src_id;

for (genvar ch = 0; ch < NumNWAxiChannels; ch++) begin : gen_route_comp
localparam nw_ch_e nw_ch = nw_ch_e'(ch);
if (nw_ch == NarrowAw || nw_ch == NarrowAr ||
nw_ch == WideAw || nw_ch == WideAr) begin : gen_req_route_comp
localparam nw_ch_e Ch = nw_ch_e'(ch);
if (Ch == NarrowAw || Ch == NarrowAr ||
Ch == WideAw || Ch == WideAr) begin : gen_req_route_comp

// Translate the address from AXI requests to a destination ID
// (or route if `SourceRouting` is used)
Expand All @@ -716,8 +716,8 @@ module floo_nw_vc_chimney #(
.id_o ( id_out[ch] )
);
end else if (RouteCfg.RouteAlgo == floo_pkg::SourceRouting &&
(nw_ch == NarrowB || nw_ch == NarrowR ||
nw_ch == WideB || nw_ch == WideR)) begin : gen_rsp_route_comp
(Ch == NarrowB || Ch == NarrowR ||
Ch == WideB || Ch == WideR)) begin : gen_rsp_route_comp
// Generally, the source ID from the request is used to route back
// the responses. However, in the case of `SourceRouting`, the source ID
// first needs to be translated into a route.
Expand Down

0 comments on commit 8d86f55

Please sign in to comment.