是否可以在Verilog中创建可合成的3D参数?
我想做一些类似于这个C风格的代码:
parameter [8][5]test [5] = {
{
{0, 1, 2, 3, 4},
{5, 6, 7, 8, 9},
{10, 11, 12, 13, 14},
{15, 16, 17, 18, 19},
{20, 21, 22, 23, 24}
},{
{4, 3, 2, 1, 0},
{9, 8, 7, 6, 5},
{14, 13, 12, 11, 10},
{19, 18, 17, 16, 15},
{24, 23, 22, 21, 20}
}...
}
答案 0 :(得分:2)
Verilog不允许参数数组,所以你运气不好。但是,SystemVerilog确实如此。