1
0
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:
Alex Forencich 2014-11-21 01:06:24 -08:00
parent b07c2d63b0
commit 27cb9609f1

View File

@ -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