orca-sim
NetworkTile.h
Go to the documentation of this file.
1 
22 #ifndef __TNETTILE_H
23 #define __TNETTILE_H
24 
25 //std API
26 #include <iostream>
27 
28 //model API
29 #include <TNetBridge.h>
30 #include <TDmaNetif.h>
31 #include <TRouter.h>
32 #include <UMemory.h>
33 #include <USignal.h>
34 
35 //simul specific
36 #include <Tile.h>
37 
38 //netif mem mapping
39 //#define MEM1_SIZE 0x00000080 /* recv memory */
40 //#define MEM1_BASE 0x90000000
41 
42 //#define MEM2_SIZE 0x00000080 /* send memory */
43 //#define MEM2_BASE 0x90000080
44 
45 class NetworkTile : public Tile{
46 
47 private:
48 
49  std::string _name;
50  NetBridge* _socket; //hfrisv-core
51 
52 public:
53 
54  NetworkTile(uint32_t x, uint32_t y);
55  ~NetworkTile();
56 
57  //getters
58  NetBridge* GetSocket();
59 
60  std::string ToString();
61 };
62 
63 
64 #endif /* TROUTER_H */
NetBridge * _socket
Definition: NetworkTile.h:50
NetworkTile(uint32_t x, uint32_t y)
This file is part of project URSA.
Definition: NetworkTile.cpp:38
std::string _name
Definition: NetworkTile.h:49
This file is part of project URSA.
Definition: NetworkTile.h:45
NetBridge * GetSocket()
Definition: NetworkTile.cpp:55
Definition: Tile.h:44
std::string ToString()
Definition: NetworkTile.cpp:59