Jump to content

Searchable FIFO


Recommended Posts

Is there a searchable FIFO implementation around?

I mean: my Producers send their product to the FIFO of the Consumer when they like. The Consumer, however, might have a preference: may want to consume products of certain Producers first, independently of their position in the FIFO.



Link to comment
Share on other sites

Hello @katang,

I have just taken cursory look into it, I think you are confusing the sc_fifo implementation which is just a communication abstraction for use in SystemC.

What I think you are looking at is a module based communication model.

Have a look here for hierarchical channels: https://www.doulos.com/knowhow/systemc/tutorial/hierarchical_channels/

Let me know if this helps you.


Ameya Vikram Singh

Link to comment
Share on other sites

Hello AmeyaVS,

maybe you are right that if I replace FIFO with LIFO in the hierarchical channels, than I will be closer to the solution, but searching with a key the actual contents of a FIFO, and taking out the found element out-of-order, still remains my task., and that was I was looking for.


Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...