Sign in to follow this  
Followers 0
katang

Searchable FIFO

5 posts in this topic

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.

 

 

Share this post


Link to post
Share on other sites

Hello @katang,

It would be better if you would provide more details on what you are trying to achieve some diagrams or sample code.

Regards,

Ameya Vikram Singh

Share this post


Link to post
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.

Regards,

Ameya Vikram Singh

Share this post


Link to post
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.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0