URL
https://opencores.org/ocsvn/nocmodel/nocmodel/trunk
Subversion Repositories nocmodel
[/] [nocmodel/] [trunk/] [doc/] [nocmodel.noc_tlm_base.html] - Rev 2
Compare with Previous | Blame | View Log
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: class noc_tlm_base</title> </head><body bgcolor="#f0f0f8"> <p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> <font color="#000000" face="helvetica, arial"><strong>nocmodel.noc_tlm_base</strong> = <a name="nocmodel.noc_tlm_base">class noc_tlm_base</a></font></td></tr> <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> <td colspan=2><tt>Base class for NoC TLM simulator.<br> <br> This class add methods to a NoC object, required for the TLM model. Each <br> derived class must override the methods:<br> <br> * <a href="#nocmodel.noc_tlm_base-__init__">__init__</a>() : its constructor contains the object TLM model (data <br> structures, generators, etc).<br> * <a href="#nocmodel.noc_tlm_base-send">send</a>() <br> * <a href="#nocmodel.noc_tlm_base-recv">recv</a>()<br> <br> Other methods are related to simulation configuration and logging support.<br> </tt></td></tr> <tr><td> </td> <td width="100%">Methods defined here:<br> <dl><dt><a name="noc_tlm_base-__init__"><strong>__init__</strong></a>(self)</dt></dl> <dl><dt><a name="noc_tlm_base-debug"><strong>debug</strong></a>(self, msg, *args, **kwargs)</dt><dd><tt># logging methods (only use 4 levels)</tt></dd></dl> <dl><dt><a name="noc_tlm_base-debugstate"><strong>debugstate</strong></a>(self)</dt><dd><tt># special log</tt></dd></dl> <dl><dt><a name="noc_tlm_base-error"><strong>error</strong></a>(self, msg, *args, **kwargs)</dt></dl> <dl><dt><a name="noc_tlm_base-get_generators"><strong>get_generators</strong></a>(self)</dt></dl> <dl><dt><a name="noc_tlm_base-info"><strong>info</strong></a>(self, msg, *args, **kwargs)</dt></dl> <dl><dt><a name="noc_tlm_base-recv"><strong>recv</strong></a>(self, src, dest, data, addattrs<font color="#909090">=None</font>)</dt><dd><tt>RECV method: this method MUST be called only by the send<br> method of the object who started the transaction.<br> <br> Arguments:<br> * src: source object (or router address) that call this method, i.e. the<br> object that starts the transaction.<br> * dest: destination object (or router address) that receive the data in<br> the transaction. This method will call dest' recv method.<br> * data: data to be sent. Can be anything, but normally is an object of<br> type packet.<br> * addattrs: optional dictionary with additional arguments<br> <br> @return Must return a number: 0 for everything OK, != 0 to show an error<br> relevant to the caller, an exception in case of attribute error</tt></dd></dl> <dl><dt><a name="noc_tlm_base-send"><strong>send</strong></a>(self, src, dest, data, addattrs<font color="#909090">=None</font>)</dt><dd><tt>SEND method: this method MUST be called only by the local<br> object who wants to start a transaction.<br> <br> This function will call the recv method in the right object.<br> <br> Arguments:<br> * src: source object (or router address) that call this method, i.e. the<br> object that starts the transaction.<br> * dest: destination object (or router address) that receive the data in<br> the transaction. This method will call dest' recv method.<br> * data: data to be sent. Can be anything, but normally is an object of<br> type packet.<br> * addattrs: optional dictionary with additional arguments<br> <br> Return: Must return a number: 0 for everything OK, != 0 to show an error<br> relevant to the caller, an exception in case of attribute error</tt></dd></dl> <dl><dt><a name="noc_tlm_base-warning"><strong>warning</strong></a>(self, msg, *args, **kwargs)</dt></dl> </td></tr></table> </body></html>