Skip to content

Commit

Permalink
Merge pull request #50 from siliconcompiler/sgh/aw-localparam
Browse files Browse the repository at this point in the history
Update AW localparam in la_asyncfifo
  • Loading branch information
gadfort authored May 14, 2024
2 parents b8019a7 + 7f53f55 commit a7f8e60
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lambdalib/ramlib/rtl/la_asyncfifo.v
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ module la_asyncfifo #(
);

// local params
// The last part is to support DEPTH of 1
localparam AW = $clog2(DEPTH) + {31'h0, (DEPTH == 1)};
localparam AW = (DEPTH == 1) ? 1 : $clog2(DEPTH);

// local wires
reg [AW:0] wr_grayptr;
Expand Down

0 comments on commit a7f8e60

Please sign in to comment.