Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

difference between $fwrite and $fdisplay in verilog

1,797 views
Skip to first unread message

ramnarayan

unread,
Mar 1, 2007, 6:45:22 AM3/1/07
to
Hi,
can anyone tell me difference between $fwrite and $fdisplay with
example

Thanks
Regards
Ram

mjl...@hotmail.com

unread,
Mar 1, 2007, 8:47:22 AM3/1/07
to

$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

0 new messages