A
Amal
Guest
Is this not valid in SystemVerilog?
6: const int W = 5;
7: const bit [W-1:0] x = 'b0;
I get the following error in Modelsim
** Error: test.sv(7): Range must be bounded by constant expressions.
This same syntax seems to be accepted as part of a module parameters!
module constant #(
parameter int W = 5;
parameter bit [W-1:0] x = 'b0;
)
Any ideas?
-- Amal
6: const int W = 5;
7: const bit [W-1:0] x = 'b0;
I get the following error in Modelsim
** Error: test.sv(7): Range must be bounded by constant expressions.
This same syntax seems to be accepted as part of a module parameters!
module constant #(
parameter int W = 5;
parameter bit [W-1:0] x = 'b0;
)
Any ideas?
-- Amal