#include <Controller.h>
Inheritance diagram for Controller< num_ip >:
Public Member Functions | |
SC_CTOR (Controller) | |
Constructor. | |
void | setTileID (UI tileID, UI portN, UI portS, UI portE, UI portW) |
sets tile ID and id corresponding to port directions | |
void | allocate_route () |
does routing | |
UI | idToDir (UI) |
returns port id for a given direction (N, S, E, W) | |
UI | dirToId (UI) |
returns direction (N, S, E, W) corresponding to a given port id | |
Public Attributes | |
sc_in< bool > | switch_cntrl |
input clock port | |
sc_in< request_type > | rtRequest [num_ip] |
input ports to recieve route request from ICs | |
sc_in< sc_uint< ADDR_SIZE > > | destRequest [num_ip] |
input ports to recieve destination address | |
sc_in< sc_uint< ADDR_SIZE > > | sourceAddress [num_ip] |
input ports to recieve source address | |
sc_in< creditLine > | Icredit [num_ip][NUM_VCS] |
input ports to recieve credit info (buffer info) from ICs | |
sc_out< bool > | rtReady [num_ip] |
output ports to send ready signal to ICs | |
sc_out< sc_uint< 3 > > | nextRt [num_ip] |
output ports to send routing decision to ICs | |
UI | tileID |
Unique tile identifier. | |
UI | portN |
port number representing North direction | |
UI | portS |
port number representing South direction | |
UI | portE |
port number representing North direction | |
UI | portW |
port number representing North direction | |
router * | rtable |
router (plug-in point for routing algorithm) |
This module defines a Controller (implements router)
|
does routing Process sensitive to route request Calls routing algorithm |
|
returns direction (N, S, E, W) corresponding to a given port id Returns id corresponding to a given port direction (N, S, E, W) |
|
returns port id for a given direction (N, S, E, W) Returns direction (N, S, E, W) corresponding to a given port id |
|
Constructor.
|
|
sets tile ID and id corresponding to port directions Method to assign tile IDs and port IDs |
|
input ports to recieve destination address
|
|
input ports to recieve credit info (buffer info) from ICs
|
|
output ports to send routing decision to ICs
|
|
port number representing North direction
|
|
port number representing North direction
|
|
port number representing South direction
|
|
port number representing North direction
|
|
router (plug-in point for routing algorithm)
|
|
output ports to send ready signal to ICs
|
|
input ports to recieve route request from ICs
|
|
input ports to recieve source address
|
|
input clock port
|
|
Unique tile identifier.
|