Env Class Reference

#include <network.h>

Collaboration diagram for Env:

Collaboration graph
[legend]

Public Member Functions

 Env ()
 ~Env ()
void make_nodeinfo (char *filename)
int initialize (int, char **)
int initialize (void)
void execute ()
void finalize ()
void print_log ()
uint032_t entry2id (int)
int id2entry (uint032_t)
int id2entry (int, int)
int id2id (int, int)
const char * int2type (int type)
void print_flit (flit_t *)
int finishcond ()
void core_update ()
void memory_update ()
void incc_update ()
void router_update ()
void router_switching ()
void comm_update ()
void post_update ()

Data Fields

Corecore
Routerrouter
Incc32incc32
Incc64incc64
Nodenode
GMemorygmem
Nodeinfonodeinfo
uint032_t * prev_pc
int add_module
int incc_activity
FILE * plot
int noc_col
int noc_row
int rank_x
int rank_y
int nocrank
int nr_node
int nr_node_comp
uint debug_mode
uint log_mode
uint quiet_mode
uint server_mode
ullint maxcycle
ullint cycle
char * logfile
int multicycle
char path_prefix [128]

Constructor & Destructor Documentation

Env::Env (  ) 

Env constructor

Env::~Env (  ) 

Env destructor


Member Function Documentation

void Env::make_nodeinfo ( char *  filename  ) 

int Env::initialize ( int  argc,
char **  argv 
)

initialize simulation

int Env::initialize ( void   ) 

void Env::execute (  ) 

main loop of the simulation

void Env::finalize (  ) 

finalize simulation

void Env::print_log (  ) 

uint032_t Env::entry2id ( int  i  ) 

convert array entry to node id

Parameters:
i array entry
Returns:
16bit node id

int Env::id2entry ( uint032_t  id  ) 

convert 16bit node id to array entry

Parameters:
id 16bit node id
Returns:
array entry

int Env::id2entry ( int  idx,
int  idy 
)

convert x-coordinate and y-coordinate to array entry

Parameters:
idx x-coordinate
idy y-coordinate
Returns:
array entry

int Env::id2id ( int  idx,
int  idy 
)

get node id as 16 bit format

Parameters:
idx x-coordinate
idy y-coordinate
Returns:
16bit node id

const char * Env::int2type ( int  type  ) 

void Env::print_flit ( flit_t flit  ) 

int Env::finishcond (  ) 

return condition if simulation should be finished or not

Returns:
0: end simulation, 1: continue simulation

void Env::core_update (  ) 

void Env::memory_update (  ) 

void Env::incc_update (  ) 

void Env::router_update (  ) 

void Env::router_switching (  ) 

void Env::comm_update (  ) 

void Env::post_update (  ) 


Field Documentation

uint032_t* Env::prev_pc

FILE* Env::plot

ullint Env::maxcycle

ullint Env::cycle

char* Env::logfile

char Env::path_prefix[128]


The documentation for this class was generated from the following files:

Generated on Mon Mar 29 19:17:58 2010 for SimMc by  doxygen 1.5.6