evgeniy.beschastnov Posted February 19, 2015 Report Posted February 19, 2015 Hi All, I'm quite new to TLM and have just joined this forum. I'd appreciate if you could help me to clarify one probably very simple question. I have N targets and one initiator. Each target handles transactions of particular priority. I need to analyze several transactions, arriving at these targets in one delta-cycle, select one with the highest priority and send it from the only one initiator. Priorities can change dynamically. Can you please share your ideas on that? Thank you in advance, Evgeniy Quote
apfitch Posted February 21, 2015 Report Posted February 21, 2015 Connections in TLM2 are point-to-point. If you need to connect one initiator to many targets you need a router in the middle. With a loosely timed style of coding you might not even need a delta cycle, a single call could take no time at all - though of course the initiator would probably contain a wait after each function call. Have look at the LT example here: http://www.doulos.com/knowhow/systemc/tlm2/tutorial__3/ regards Alan Quote
David Black Posted February 23, 2015 Report Posted February 23, 2015 I would suggest using the multi-sockets (see section 17.1.4 of IEEE-1666-2011). You did not mention how priorities are determined. If the communications carries the priority as separate signals, then I suggest you consider using an ignorable extension (sections 15.2 and 15.21). If contained in the payload, then you can inspect it directly. You can find more information at doulos.com/knowhow/systemc/ and a good video tutorial on the application of extensions at http://www.accellera.org/resources/videos/tlm20extensions/ Quote
evgeniy.beschastnov Posted February 24, 2015 Author Report Posted February 24, 2015 Hi Alan, David, Thank you very much for your answers. I'll need some time to think about proposed solutions and will answer a bit later. Evgeniy Quote
Recommended Posts
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.