Fix asserts
This commit is contained in:
parent
963f4f8555
commit
0d4e9989c8
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user