orca-sim
|
#include <Tile.h>
Public Member Functions | |
Tile (uint32_t x, uint32_t y) | |
This file is part of project URSA. More... | |
~Tile () | |
Destructor: cleans up allocated memory. More... | |
HermesRouter * | GetRouter () |
Get current router of the PE. More... | |
Signal< uint32_t > * | GetSignalId () |
Get current signal for tile ID. More... | |
std::string | GetName () |
Get current tile name. More... | |
void | SetName (std::string) |
Set a name to this tile. More... | |
Private Attributes | |
std::string | _name |
HermesRouter * | _router |
Signal< uint32_t > * | _signal_id |
Tile::Tile | ( | uint32_t | x, |
uint32_t | y | ||
) |
This file is part of project URSA.
More information on the project can be found at URSA's repository at GitHub
http://https://github.com/andersondomingues/ursa
Copyright (C) 2018 Anderson Domingues, ti.an ders ondom ingu es@gm ail. com
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Initialize internal entities and binds hardware wires
x | X-coordinate of the tile in the NoC |
y | Y-coordinate of the tile in the NoC |
Definition at line 38 of file Tile.cpp.
std::string Tile::GetName | ( | ) |
Get current tile name.
HermesRouter * Tile::GetRouter | ( | ) |
Get current router of the PE.
Signal< uint32_t > * Tile::GetSignalId | ( | ) |
void Tile::SetName | ( | std::string | name | ) |
Set a name to this tile.
name | Name to be given to the tile. Please note that the name is autogenerated in accordance to the structure of the tile, so updating the name of the tile may not reflect on the naming of internal structures (to fix) |