You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to empty all expected data from a scoreboard. For example, when a reset occurs in the middle of a test, it might be appropriate to just empty all queues in the scoreboard and start again.
I previously used this, but it is not appropriate because it destroys all the configured IDs and any other config:
queue_reset_proc : process(axi_reset)
begin
if axi_reset = '1' then
sboard.Deallocate;
sboard.Initialize;
end if;
end process;
You could use the following, but using the flush procedure seems more appropriate:
queue_reset_proc : process(axi_reset)
variable dump : axi_if'subtype;
begin
if axi_reset = '1' then
while not sboard.empty loop
dump := sboard.pop;
end loop;
end if;
end process;
The text was updated successfully, but these errors were encountered:
Have you tried: sboard.Flush(sboard.GetItemCount) ;
Easy to add, but given the above, do you still want it? Indexed scoreboards keep their own item count, so those would also be simple. Tagged scoreboards probably require a little more work and may warrant the overloading.
I would like to empty all expected data from a scoreboard. For example, when a reset occurs in the middle of a test, it might be appropriate to just empty all queues in the scoreboard and start again.
I previously used this, but it is not appropriate because it destroys all the configured IDs and any other config:
You could use the following, but using the flush procedure seems more appropriate:
The text was updated successfully, but these errors were encountered: