Skip to content

Commit

Permalink
[RTL SWG] Use sliced vector assignment to avoid Verilator limitation
Browse files Browse the repository at this point in the history
  • Loading branch information
fpjentzsch committed Jan 4, 2024
1 parent b89dd62 commit eddbd27
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions finn-rtllib/swg/swg_common.sv
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,7 @@ for (genvar e=0; e<DEPTH; e++)

always @ (posedge clk) begin
if (shift_enable) begin
for (int i=DEPTH-1; i>0; i--)
Data[i] <= Data[i-1];
if (DEPTH > 1) Data[DEPTH-1:1] <= Data[DEPTH-2:0];
Data[0] <= shift_in;
end
end
Expand Down

0 comments on commit eddbd27

Please sign in to comment.