我实际上想在VHDL中用两个不同的文本文件写一行同一行.
首先,我天真地尝试以这种方式写入两个文件:
write (v_lineBuffer, v_string);
writeline(f_output1, v_lineBuffer);
writeline(f_output2, v_lineBuffer);
直到我意识到v_lineBuffer被冲洗后的WriteLine() .
我也试着复制一行:
write(v_lineBuffer1, v_string);
v_lineBuffer2 := v_lineBuffer1;
writeline(f_output1, v_lineBuffer1);
writeline(f_output2, v_lineBuffer2);
但是我试图将v_lineBuffer1复制到v_lineBuffer2时, ModelSim崩溃了
有人可以帮忙吗?谢谢!