小编Анд*_*нко的帖子

二进制写入SystemVerilog

我尝试在测试台中的 SystemVerilog 中编写二进制文件。

int file   = $fopen(path,"w");
if (!file) begin
    $error("File could not be open: ", path);
    return;
end
$fwrite(file, "%u", 32'h4D424D42);
$fclose(file);
Run Code Online (Sandbox Code Playgroud)

并得到结果:02 0c 02 0c

我使用 QuestaSum 10.2c。为什么我得到这个结果?谢谢。

verification file-io system-verilog questasim

1
推荐指数
1
解决办法
7623
查看次数

标签 统计

file-io ×1

questasim ×1

system-verilog ×1

verification ×1