mirror of
https://github.com/corundum/corundum.git
synced 2025-01-30 08:32:52 +08:00
clog2 does not work in localparam in XST
This commit is contained in:
parent
b07c2d63b0
commit
27cb9609f1
@ -43,8 +43,8 @@ module priority_encoder #
|
||||
);
|
||||
|
||||
// power-of-two width
|
||||
localparam W1 = 2**$clog2(WIDTH);
|
||||
localparam W2 = W1/2;
|
||||
parameter W1 = 2**$clog2(WIDTH);
|
||||
parameter W2 = W1/2;
|
||||
|
||||
generate
|
||||
if (WIDTH == 2) begin
|
||||
|
Loading…
x
Reference in New Issue
Block a user