Forum Discussion
Altera_Forum
Honored Contributor
14 years agoStrange FFT Output
I've been using SignalTap to create a CSV file of the output from my FFT engine. However, when looking at the output in Matlab, it doesn't look right at all. I know that the ADC's working prop...
Altera_Forum
Honored Contributor
14 years agoI normally write as follows:
---- write data_out to file
process(clk)
file file_out : text open write_mode is "filename.txt";
variable line_in : line;
variable tmp : integer := 0;
begin
if(rising_edge(clk))then
if valid_out = '1' then
tmp := to_integer(signed(data_out));
write(line_in, tmp);
writeline(file_out,line_in);
end if;
end if;
end process;