FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > Verilog

Verilog comp.lang.verilog newsgroup / usenet

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-05-2004, 08:45 PM
EdA
Guest
 
Posts: n/a
Default Unbuffered output with vpi_printf?

Hi,

What's the right way to get unbuffered I/O using vpi_printf?
I'm using Solaris and Linux and NC-Verilog.

I tried: setbuf(stdout, (char *) 0);
but got a seg fault after a while.

Is setvbuf the way to go?

Thanks,
/Ed
Reply With Quote
  #2 (permalink)  
Old 04-06-2004, 08:55 AM
Ajeetha Kumari
Guest
 
Posts: n/a
Default Re: Unbuffered output with vpi_printf?

Hi,
Not a VPI solution, but NCSIM has an option -unbuffered to prevent
text IO buffer, will that help you?

Ajeetha,
http://www.noveldv.com
Co-Author: Using PSL/SUGAR for Formal and Dynamic Verification 2nd
Edition.



[email protected] (EdA) wrote in message news:<[email protected]. com>...
> Hi,
>
> What's the right way to get unbuffered I/O using vpi_printf?
> I'm using Solaris and Linux and NC-Verilog.
>
> I tried: setbuf(stdout, (char *) 0);
> but got a seg fault after a while.
>
> Is setvbuf the way to go?
>
> Thanks,
> /Ed

Reply With Quote
  #3 (permalink)  
Old 04-07-2004, 04:03 PM
EdA
Guest
 
Posts: n/a
Default Re: Unbuffered output with vpi_printf?

[email protected] (Ajeetha Kumari) wrote in message news:<[email protected]. com>...
> Hi,
> Not a VPI solution, but NCSIM has an option -unbuffered to prevent
> text IO buffer, will that help you?


Hi Ajeetha,

You're right.

% strings `which ncverilog` | grep unbuffer
+ncunbuffered
+ncunbuffered Do not buffer output

Oddly, it doesn't show up with the help (ncverilog -h).

VPI solution wasn't required.

Thanks,
/Ed

PS: Thanks to the others who replied via email.
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:06 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved