ankitks

Priority and PEQ

6 posts in this topic

I am looking at MultiSocketSimpleSwitchAT example, and I can't seem to figure out how to implement priority based request selection.

For example, in this simple switch, if we get multiple request on a given time, I need a stage where after collecting all the requests I can arbitrate between request in Round Robin manner. In this example, it is just selecting first request that happens to execute.

Any suggestion on how can I implement that.

Thanks

Share this post


Link to post
Share on other sites

It's in Regression library (separate download) at systemc-regressions-2.3.1a/tests/tlm/multi_sockets/MultiSocketSimpleSwitchAT.h:

 

Share this post


Link to post
Share on other sites

I guess first you'd need to add an attribute (extension) to the generic payload to represent the priority.

Then you could write a variant of the PEQ which takes into account that priority.

regards

Alan

AmeyaVS likes this

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