1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-30 08:32:52 +08:00

Add some more parameter checks

This commit is contained in:
Alex Forencich 2022-02-14 00:41:28 -08:00
parent c98258bf05
commit 66708ed6ff
2 changed files with 10 additions and 0 deletions

View File

@ -264,6 +264,11 @@ initial begin
$error("Error: DESC_REQ_TAG_WIDTH must be at least $clog2(DESC_TABLE_SIZE) (instance %m)");
$finish;
end
if (RAM_ADDR_WIDTH < CL_RX_BUFFER_SIZE) begin
$error("Error: RAM_ADDR_WIDTH insufficient for buffer size (instance %m)");
$finish;
end
end
reg s_axis_rx_req_ready_reg = 1'b0, s_axis_rx_req_ready_next;

View File

@ -270,6 +270,11 @@ initial begin
$error("Error: QUEUE_REQ_TAG_WIDTH must be at least REQ_TAG_WIDTH (instance %m)");
$finish;
end
if (RAM_ADDR_WIDTH < CL_TX_BUFFER_SIZE) begin
$error("Error: RAM_ADDR_WIDTH insufficient for buffer size (instance %m)");
$finish;
end
end
reg s_axis_tx_req_ready_reg = 1'b0, s_axis_tx_req_ready_next;