difference between $fwrite and $fdisplay in verilog

R

ramnarayan

Guest
Hi,
can anyone tell me difference between $fwrite and $fdisplay with
example

Thanks
Regards
Ram
 
On 1 Mar, 11:45, "ramnarayan" <ramlh2...@gmail.com> wrote:
Hi,
can anyone tell me difference between $fwrite and $fdisplay with
example

Thanks
Regards
Ram
$fwrite does not insert a newline at the end. Sfdisplay does.

$fdisplay(file, "Hello World"); is the same as $fwrite(file, "Hello
World\n");

$fdisplay(file, "1");
$fdisplay(file, "2");
// Result is:
// 1
// 2

$fwrite(file, "1");
$fwrite(file, "2");
// Result is:
// 12
 

Welcome to EDABoard.com

Sponsor

Back
Top