james.wells Posted April 14, 2011 Report Share Posted April 14, 2011 I want to flush a uvm_in_order_comparator mid-simulation in order to return it to a known state. The flush() method is clearing the match/mismatch counters but not the internal FIFO, so if there is data left in m_before_fifo or m_after_fifo this does not get cleared. The method description says "The <uvm_tlm_fifo::flush> takes care of flushing the FIFOs.", this implies that the intention was to clear these FIFOs, but it looks like the relevant code was not added. The FIFOs themselves are declared "local", so I can't fix this by overriding the flush() method, it also looks like "run_phase()" would not properly handle flushing the FIFOs (the first get may already have finished when the flush is called and this would have to be dealt with). I think this is a bug, does anyone agree? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.