Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
$finish我想在我的模拟中执行之前清除一个文件缓冲区。有我可以使用的文件刷新命令吗?还是我必须简单地使用$fclose?我意识到我可以在这种情况下关闭文件,但我想知道是否有一个刷新命令供我将来使用。
$finish
$fclose
Verilog IEEE Std (1364-2001)$fflush在“17.2.6 刷新输出”一节中提到了系统任务:
$fflush
将任何缓冲输出写入文件
这当然也是 SystemVerilog IEEE Std (1800-2009) 的一部分(第 21.3.6 节)。