|
From: Joshua S. <kni...@gm...> - 2015-05-13 19:17:28
|
I don't think I need it to output every simulation time step. I just don't
think it's flushing at all. The flush call returns true, but the file size
hasn't changed. I am not at all sure what is going on. I will try to play
with it a bit more. Otherwise, the only other solution I can think of is to
just close the file handle and reopen it, which definitely is updating the
vcd properly
On Wed, May 13, 2015 at 2:52 PM, Cary R. <cy...@ya...> wrote:
> Getting this back on the development list.
>
> Yes, VCD output is only output at the end of the simulation time step. It
> is not done interactively as the values change otherwise you would have a
> huge amount of excess data as values stabilize to their final value. I
> would not call this from the scheduler, but if needed do it as a final step
> when emitting VCD output for a given time step. I believe that is at the
> end of the variable_cb_2() call back routine.
>
> Cary
>
>
>
> On Wednesday, May 13, 2015 11:43 AM, Joshua Street <
> kni...@gm...> wrote:
>
>
> so I think I'm still confused as to how to call the vpi callback functions
> from within schedule.cc.
>
> I thought that since these two functions were called in stop.cc that I
> could also call these and have it immediately flush.
>
> invoke_command_const("$fflush");
> invoke_command_const("$dumpflush");
>
> However, I think flush is the command I want. The only problem is that it
> doesn't seem to execute flush immediately.
>
> I'm guessing from trying to read the source that a callback handler is
> registered and that it is later called when vpiPostSim takes place.
>
>
>
>
>
>
>
|