在做new[SIZE]一個動態陣列,是那里的一個限制SIZE,我們可以在SystemVerilog的使用?
uj5u.com熱心網友回復:
LRM 部分 7.4.2 Unpacked arrays 說
實作可能會限制陣列的最大大小,但它們應至少允許 16 777 216 (2 24 ) 個元素。
但是,如果您嘗試訪問這么多元素,您可能會受到時間而非空間的更多限制。如果您只計劃訪問地址空間的一小部分,關聯陣列可能是大型陣列的更好選擇。
uj5u.com熱心網友回復:
限制非常大。
IEEE Std 1800-2017, section 7.5.1 New[ ]狀態
[ expression ]:
The desired size of the dynamic array. The type of this operand is longint.
It shall be an error if the value of this operand is negative.
longint 是 64 位有符號的。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/336669.html
上一篇:如何在我的演員串列中分隔陣列項?
