I want to initialize the following 16-bit registers in my module.
reg [15:0] coefficient[4:0];
I used concatenation operator to do this:
reg [15:0] coefficient[4:0] = {16'd26, 16'd270, 16'd734, 16'd21, 16'd90};
but I simulate it with ISE, I receive this error:
constant value of constant expression must be used for initialization
how can I fix it??
EDIT: because initial is not synthesizable, I didn't use that. is there another way??
initialis not synthesizable? – The Photon Jun 11 '18 at 15:38initialto initialize registers or memories is absolutely synthesizable. Usinginitialto launch a sequence of transitions (like is often done in a testbench) is not synthesizable. – The Photon Jun 11 '18 at 15:42always @(posedge clk)is synthesizable depends on the particular synthesis tool too. – The Photon Jun 11 '18 at 15:53