integer handle ;
always @(posedge clk)begin
if(rst) begin
handle = $fopen("data.txt");
$fdisplay(handle,"%h",16'h2);
$fclose(handle);
end else if( )begin
handle = $fopen("data.txt","a+");
$fdisplay(handle,"%h",16'h2);
$fclose(handle);
end
end
【Verilog语法010】verilog 仿真函数 fdisplay 往文件中写入数据
于 2021-12-03 09:58:19 首次发布