# Command queue overflow

**URL:** <https://forum.uvvm.org/t/command-queue-overflow/334>\
**Category:** Bitvis VIP AXI\
**Created:** [October 27, 2022, 11:50am UTC](https://forum.uvvm.org/t/command-queue-overflow/334 "2022-10-27T11:50:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PierreN](https://avatars.discourse-cdn.com/v4/letter/p/f475e1/32.png) [@PierreN](https://forum.uvvm.org/u/PierreN)\
**Post date:** [October 27, 2022, 11:50am UTC](https://forum.uvvm.org/t/command-queue-overflow/334/1 "2022-10-27T11:50:26Z")

</div>

Hi UVVM Team,

I’m using the AXI VVC to simulate read requests from a PCIE root complex. My problem is that I am limited by the size of the command queue, for which the entries are never deleted. Why is it the case?

Yes, I can increase the default size of the queue but I have nearly three thousands read request to make, and I don’t need the sizes of all the AXI channels command queues to be as great.

An ideal solution would be at some point to delete all the entries of the command queue. If it is harmless for the framework, where would be the best place to do that?

Thanks for your help,

Pierre

---

<div class="post-metadata">

**Author:** ![UVVM\_Team](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.uvvm.org/uvvm_team/32/102_2.png) [@UVVM\_Team](https://forum.uvvm.org/u/UVVM_Team)\
**Post date:** [April 24, 2023, 10:43am UTC](https://forum.uvvm.org/t/command-queue-overflow/334/2 "2023-04-24T10:43:25Z")

</div>

Hi Pierre,  
Could you please elaborate a bit here?  
You say the entries are never deleted. They are supposed to be deleted when fetched by the executor. Does this not happen - or is the problem a different scenario?  
You don’t really increase the size of the queue by setting the generics GC\_CMD/RESULT\_QUEUE\_COUNT\_MAX, as this is a linked list. The generics are thus only used to give a warning or detect an error, which means no the memory usage is restricted to only the current entries in each individual queue.  
If for some reason you want to delete all queues before all commands have been fetched, you can do this using the VVC command flush\_command\_queue().

Regards UVVM team
