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:
parent
c98258bf05
commit
66708ed6ff
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user