process(clk)--,dx1,dx2)
file results:TEXT open write_mode is "cos_results.txt";
variable l_out:line;
variable cosa: integer;
begin
if clk'event and clk = '1' then
if rdy = '1' then
cosa := conv_integer(cosa_out);
write(l_out,cosa,right);
writeline(results,l_out);
end if;
end if;
end process;
我在tb文件中有这些代码 其就是为了保存生成的cos数据到cos_results.txt.文件中,但是我在仿真后并没有在文件中发现这个txt文件,不知道出了什么问题
你好像用的是VHDL语言,这个我不太会,但是verilog中,一般将结果写到某一个文件时用write函数时,函数结构中需要有以什么格式写入,并且需要非常详细的路径,不知道你这是不是也需要?