OpenCores
URL https://opencores.org/ocsvn/nocmodel/nocmodel/trunk

Subversion Repositories nocmodel

[/] [nocmodel/] [trunk/] [doc/] [nocmodel.basicmodels.basic_router.html] - Rev 2

Compare with Previous | Blame | View Log

 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module nocmodel.basicmodels.basic_router</title>
</head><body bgcolor="#f0f0f8">
 
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="nocmodel.html"><font color="#ffffff">nocmodel</font></a>.<a href="nocmodel.basicmodels.html"><font color="#ffffff">basicmodels</font></a>.basic_router</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/oscard/Documentos/proyectos/nocmodel-0.1/nocmodel/basicmodels/basic_router.py">/home/oscard/Documentos/proyectos/nocmodel-0.1/nocmodel/basicmodels/basic_router.py</a></font></td></tr></table>
    <p><tt>Basic&nbsp;router&nbsp;TLM&nbsp;model</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
 
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="logging.html">logging</a><br>
</td><td width="25%" valign=top><a href="myhdl.html">myhdl</a><br>
</td><td width="25%" valign=top><a href="networkx.html">networkx</a><br>
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
 
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="nocmodel.noc_tlm_base.html#noc_tlm_base">nocmodel.noc_tlm_base.noc_tlm_base</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="nocmodel.basicmodels.basic_router.html#basic_router_tlm">basic_router_tlm</a>
</font></dt></dl>
</dd>
</dl>
 <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="basic_router_tlm">class <strong>basic_router_tlm</strong></a>(<a href="nocmodel.noc_tlm_base.html#noc_tlm_base">nocmodel.noc_tlm_base.noc_tlm_base</a>)</font></td></tr>
 
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>TLM&nbsp;model&nbsp;of&nbsp;a&nbsp;NoC&nbsp;router.&nbsp;This&nbsp;router&nbsp;uses&nbsp;store-and-forward&nbsp;technique,&nbsp;<br>
using&nbsp;the&nbsp;routing&nbsp;information&nbsp;from&nbsp;the&nbsp;router&nbsp;object.&nbsp;This&nbsp;model&nbsp;just<br>
forward&nbsp;the&nbsp;packet,&nbsp;and&nbsp;if&nbsp;the&nbsp;packet&nbsp;is&nbsp;in&nbsp;its&nbsp;router&nbsp;destination,&nbsp;send&nbsp;it<br>
to&nbsp;its&nbsp;ipcore.&nbsp;Each&nbsp;package&nbsp;that&nbsp;the&nbsp;ipcore&nbsp;generates&nbsp;is&nbsp;delivered&nbsp;<br>
automátically.<br>
&nbsp;<br>
Attributes:<br>
*&nbsp;router_ref&nbsp;:&nbsp;base&nbsp;reference<br>
*&nbsp;fifo_len:&nbsp;max&nbsp;number&nbsp;of&nbsp;packets&nbsp;to&nbsp;hold&nbsp;in&nbsp;each&nbsp;port<br>
&nbsp;<br>
Notes:<br>
*&nbsp;This&nbsp;model&nbsp;is&nbsp;completely&nbsp;behavioral.<br>
*&nbsp;See&nbsp;code&nbsp;comments&nbsp;to&nbsp;better&nbsp;understanding.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="basic_router_tlm-__init__"><strong>__init__</strong></a>(self, router_ref, fifo_len<font color="#909090">=4</font>)</dt></dl>
 
<dl><dt><a name="basic_router_tlm-recv"><strong>recv</strong></a>(self, src, dest, packet, addattrs<font color="#909090">=None</font>)</dt><dd><tt>This&nbsp;method&nbsp;will&nbsp;be&nbsp;called&nbsp;by&nbsp;channel&nbsp;objects&nbsp;connected&nbsp;to&nbsp;this&nbsp;router.<br>
&nbsp;<br>
Notes:<br>
*&nbsp;The&nbsp;recv&nbsp;method&nbsp;only&nbsp;affect&nbsp;the&nbsp;receiver&nbsp;FIFO&nbsp;sets<br>
*&nbsp;Ignore&nbsp;dest&nbsp;object.</tt></dd></dl>
 
<dl><dt><a name="basic_router_tlm-send"><strong>send</strong></a>(self, src, dest, packet, addattrs<font color="#909090">=None</font>)</dt><dd><tt>This&nbsp;method&nbsp;will&nbsp;be&nbsp;called&nbsp;on&nbsp;a&nbsp;fifo&nbsp;available&nbsp;data&nbsp;event<br>
&nbsp;<br>
Notes:&nbsp;<br>
*&nbsp;Ignore&nbsp;src&nbsp;object.<br>
*&nbsp;dest&nbsp;should&nbsp;be&nbsp;a&nbsp;channel&nbsp;object,&nbsp;but&nbsp;also&nbsp;can&nbsp;be&nbsp;a&nbsp;router&nbsp;address&nbsp;or<br>
&nbsp;&nbsp;a&nbsp;router&nbsp;object.</tt></dd></dl>
 
<hr>
Methods inherited from <a href="nocmodel.noc_tlm_base.html#noc_tlm_base">nocmodel.noc_tlm_base.noc_tlm_base</a>:<br>
<dl><dt><a name="basic_router_tlm-debug"><strong>debug</strong></a>(self, msg, *args, **kwargs)</dt><dd><tt>#&nbsp;logging&nbsp;methods&nbsp;(only&nbsp;use&nbsp;4&nbsp;levels)</tt></dd></dl>
 
<dl><dt><a name="basic_router_tlm-debugstate"><strong>debugstate</strong></a>(self)</dt><dd><tt>#&nbsp;special&nbsp;log</tt></dd></dl>
 
<dl><dt><a name="basic_router_tlm-error"><strong>error</strong></a>(self, msg, *args, **kwargs)</dt></dl>
 
<dl><dt><a name="basic_router_tlm-get_generators"><strong>get_generators</strong></a>(self)</dt></dl>
 
<dl><dt><a name="basic_router_tlm-info"><strong>info</strong></a>(self, msg, *args, **kwargs)</dt></dl>
 
<dl><dt><a name="basic_router_tlm-warning"><strong>warning</strong></a>(self, msg, *args, **kwargs)</dt></dl>
 
</td></tr></table></td></tr></table>
</body></html>

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.