stackprogramer
Full Member level 3
When I want to develop a Verilog code, I am faced with errors can anyone help? Any Idea or offer?
Errors:
Code:
integer low_index,high_index;
always @(posedge clk) begin
//Save samples in samples buffer
low_index=m+0;
high_index=m+31;
data_samples_i_buffer[high_index:low_index]=config_tdata[31:0];
data_samples_i_buffer[63+m:32+m]=config_tdata[63:31];
if(m==96) begin
{
m=0;
}
end else begin
{
m=m+32;
}
end
end
Errors:
Code:
ERROR: [VRFC 10-2951] 'high_index' is not a constant [/home/sp/correlate.vh:35]
ERROR: [VRFC 10-1775] range must be bounded by constant expressions [/home/sp/rfnoc_block_correlate/correlate.vh:35]
ERROR: [VRFC 10-2951] 'm' is not a constant [/home/sp/correlate.vh:36]
ERROR: [VRFC 10-1775] range must be bounded by constant expressions [/home/sp/correlate.vh:36]