CONSTANTc_total_vector:STD_LOGIC_VECTOR(g_in_data_w*g_sim_lengt-1DOWNTO0):=c_total_vector_init;-- vector witch contains all input data vectors to make it easy to fill ctr_vector
-- Verification by checking if the input vectors are correctly put into the output vector.
p_verify:PROCESS
BEGIN
WAITUNTILrising_edge(out_sosi.valid);
WAITUNTILrising_edge(clk);-- align to rising edge
WAITUNTILout_of/=0;-- wait for out_of /= 0 to align to ddrctrl_repack properly
WAITUNTILout_of=0;-- align to ddrctrl_repack
WAITFORc_clk_period*1;-- first outputdata is empty
IFrising_edge(out_sosi.valid)THEN
ASSERTout_sosi.data(c_out_data_w-1DOWNTO0)=ietsREPORT"Data does not match, I = "SEVERITYNOTE;
ASSERTout_sosi.data(c_out_data_w-1DOWNTO0)=c_total_vector(c_out_data_w*(total_vector_cnt+1)-1DOWNTOc_out_data_w*total_vector_cnt)REPORT"Data does not match, total_vector_cnt = "&NATURAL'image(total_vector_cnt)SEVERITYNOTE;