作者whisp1222 ()
站内Programming
标题[问题] verilog的问题
时间Fri Apr 10 18:55:39 2009
module f2
integer file1, file2;
initial begin
file1 = $fopen("file1");
file2 = $fopen("file2");
$display("The number used for file 1 is %0d", file1);
$display("The number used for file 2 is %0d", file2);
$fdisplay(file1, "Hello File 1");
$fdisplay(file2, "Hello File 2");
$fdisplay(file1 file2, "Hello both files");
$fdisplay(file1 file2 | 1, "Hello files and screen");
$fdisplay(file1, "Good Bye File 1");
$fdisplay(file2, "Good Bye File 2");
$fclose(file1);
$fclose(file2);
end
endmodule
想请问file id的问题
1是保留给screen 及 log file使用
file1的id是2
file2的id为何是4(因为我以为是3 还是id是乱跳的)
程式来源
http://www.netlibrary.com/Reader/
Verilog Quickstart: A Practical Guide to Simulation and Synthesis in Verilog
点view the book後
在这本电子书的p52页
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 163.26.236.76
※ 编辑: whisp1222 来自: 163.26.236.76 (04/10 19:01)
1F:→ pheonix:$fopen没有给mode会return multi-channel 59.115.18.43 04/13 00:51
2F:→ pheonix:descriptor 59.115.18.43 04/13 00:51