assertTO_SINT(out_re)=gold_rereport"Output real data error"severityerror;
assertTO_SINT(out_im)=gold_imreport"Output imag data error"severityerror;
endif;
endif;
endprocess;
-- Write to default output file, this allows using command line diff or graphical diff viewer to compare it with the golden result file
p_write_output_file:process(clk)
filev_output:TEXTopenWRITE_MODEisc_outputFile;-- this is LRM 1076-1987 style and implies that only simulator start and quit can open and close the file
variablev_line:LINE;
begin
ifrising_edge(clk)then
ifout_val='1'then
-- only write when out_val='1', because then the file is independent of cycles with invalid out_dat