stackprogramer
Full Member level 3
Why when I want to use reg array and Initialize them, FPGA synthesis and bitstream take too long?
When I define some reg array and initialize them for big array size I understand bitstream can not build and stay in stage:
Current phase: Handling Custom attributes..... and I wait for 3 hours but this stage is not finished to go to the next stage...
For array size 256 it can be completed but for the sizes more than 256 I faced with a long time...
But FPGA is very advanced I am sure it should not be about to low resources...
Can any guide me?
How can initialize a big reg array in verilog?
Here I shared snippet of module code...
When I define some reg array and initialize them for big array size I understand bitstream can not build and stay in stage:
Current phase: Handling Custom attributes..... and I wait for 3 hours but this stage is not finished to go to the next stage...
For array size 256 it can be completed but for the sizes more than 256 I faced with a long time...
But FPGA is very advanced I am sure it should not be about to low resources...
Can any guide me?
How can initialize a big reg array in verilog?
Here I shared snippet of module code...
Code:
module verilog_test(input clk)
//reg definition
reg signed [15:0] data_i_buffer [1024:0];
reg signed [15:0] data_buffer [1024:0];
initial begin
data_i_buffer[ 0 ]= -413 ;
data_q_buffer[ 0 ]= -1424 ;
data_i_buffer[ 1 ]= -280 ;
data_q_buffer[ 1 ]= -1300 ;
...
data_i_buffer[ 1024 ]= -780 ;
data_q_buffer[ 1024 ]= -30 ;
end
always @(posedge clk) begin
//To do a opreation
end
end