Fix asserts

This commit is contained in:
Alex Forencich 2020-08-06 21:31:58 -07:00
parent 963f4f8555
commit 0d4e9989c8
2 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,7 @@ initial begin
$finish;
end
if (AXIS_DATA_WIDTH*2**PART_COUNT_WIDTH != SEG_COUNT*SEG_DATA_WIDTH) begin
if (AXIS_DATA_WIDTH*2**$clog2(PART_COUNT) != SEG_COUNT*SEG_DATA_WIDTH) begin
$error("Error: AXI stream interface width must be a power of two fraction of RAM interface width (instance %m)");
$finish;
end

View File

@ -166,7 +166,7 @@ initial begin
$finish;
end
if (AXIS_DATA_WIDTH*2**PART_COUNT_WIDTH != SEG_COUNT*SEG_DATA_WIDTH) begin
if (AXIS_DATA_WIDTH*2**$clog2(PART_COUNT) != SEG_COUNT*SEG_DATA_WIDTH) begin
$error("Error: AXI stream interface width must be a power of two fraction of RAM interface width (instance %m)");
$finish;
end