INSEE 05.04.2011
Interconnection Nertworks Simulation and Evaluation Environment
|
Gets the configuration of the Simulation. More...
#include "misc.h"
#include "globals.h"
#include "literal.h"
#include <stdio.h>
#include <string.h>
#include <unistd.h>
Defines | |
#define | DEFAULT_CONF_FILE "fsin.conf" |
Functions | |
void | get_conf (long argn, char **args) |
Variables | |
double | bg_load |
literal_t | pattern_l [] |
literal_t | topology_l [] |
literal_t | vc_l [] |
literal_t | routing_l [] |
literal_t | rmode_l [] |
literal_t | atype_l [] |
literal_t | ctype_l [] |
literal_t | injmode_l [] |
literal_t | placement_l [] |
Gets the configuration of the Simulation.
First take default values for the simulation. Second take the values from the file 'fsin.conf'. Finally take the command line arguments.
FSIN Functional Simulator of Interconnection Networks Copyright (2003-2011) J. Miguel-Alonso, A. Gonzalez, J. Navaridas
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.
#define DEFAULT_CONF_FILE "fsin.conf" |
The Configuration file.
void get_conf | ( | long | argn, |
char ** | args | ||
) |
Get the configuration for the simulation.
First take default values for the simulation. Second take the values from the file 'fsin.conf'. Finally take the command line arguments.
argn | The number of arguments. |
args | The arguments taken from the command line. |
{ { ROUNDROBIN_ARB, "rr"}, { FIFO_ARB, "fifo"}, { LONGEST_ARB, "longest"}, { RANDOM_ARB, "random"}, { AGE_ARB, "oldest"}, { AGE_ARB, "age"}, LITERAL_END }
All the arbitration modes are specified here.
{ { SINGLE_CONS, "single"}, { MULTIPLE_CONS,"multiple"}, LITERAL_END }
All the consumption modes are specified here.
{ { SHORTEST_INJ, "shortest"}, { DOR_INJ, "dor"}, { DOR_SHORTEST_INJ, "dsh"}, { SHORTEST_PROFITABLE_INJ, "shp"}, { LONGEST_PATH_INJ, "lpath"}, LITERAL_END }
All the injection modes are specified here.
{ { UNIFORM, "uniform"}, { UNIFORM, "random"}, { LOCAL, "local"}, { SEMI, "semi"}, { TRANSPOSE, "transpose"}, { DISTRIBUTE, "distribute"}, { HOTREGION, "hotregion"}, { TORNADO, "tornado"}, { RSDIST, "rsdist"}, { COMPLEMENT, "complement"}, { BUTTERFLY, "butterfly"}, { SHUFFLE, "shuffle"}, { REVERSAL, "reversal"}, { TRACE, "trace"}, { POPULATION, "population"}, { POPULATION, "pop"}, { HISTOGRAM, "histogram"}, { HISTOGRAM, "hist"}, { HOTSPOT, "hotspot"}, LITERAL_END }
All the traffic patterns are specified here.
{ { CONSECUTIVE_PLACE, "consecutive"}, { SHUFFLE_PLACE, "shuffle"}, { RANDOM_PLACE, "random"}, { SHIFT_PLACE, "shift"}, { COLUMN_PLACE, "column"}, { ROW_PLACE, "row"}, { QUADRANT_PLACE, "quadrant"}, { DIAGONAL_PLACE, "diagonal"}, { ICUBE_PLACE, "icube"}, { FILE_PLACE, "file"}, LITERAL_END }
All the placement strategies are specified here.
{ { BUBBLE_ADAPTIVE_RANDOM_REQ, "random"}, { BUBBLE_ADAPTIVE_SHORTEST_REQ, "shortest"}, { BUBBLE_ADAPTIVE_SMART_REQ, "smart"}, { BUBBLE_OBLIVIOUS_REQ, "oblivious"}, { DOUBLE_OBLIVIOUS_REQ, "doubleob"}, { DOUBLE_ADAPTIVE_REQ, "doubleadap"}, { HEXA_OBLIVIOUS_REQ, "hexaob"}, { HEXA_ADAPTIVE_REQ, "hexaadap"}, { DALLY_TRC_REQ, "trc"}, { DALLY_BASIC_REQ, "basic"}, { DALLY_IMPROVED_REQ, "improved"}, { DALLY_ADAPTIVE_REQ, "adaptive"}, { BIMODAL_REQ, "bimodal"}, { TREE_REQ, "trees"}, { ICUBE_REQ, "icube"}, LITERAL_END }
All the port requesting modes are specified here.
{ { DIMENSION_ORDER_ROUTING, "dim"}, { DIRECTION_ORDER_ROUTING, "dir"}, { STATIC_ROUTING, "static"}, { ADAPTIVE_ROUTING, "adaptive"}, { IC_1M_ROUTING, "1mesh"}, { IC_4M_ROUTING, "4mesh"}, LITERAL_END }
All the routing arbitration modes are specified here.
{ { MIDIMEW, "midimew"}, { TWISTED, "ttorus"}, { TORUS, "torus"}, { MESH, "mesh"}, { FATTREE, "fattree"}, { FATTREE, "fat"}, { THINTREE, "thintree"}, { THINTREE, "thin"}, { SLIMTREE, "slimtree"}, { SLIMTREE, "slim"}, { SLIMTREE, "slendertree"}, { SLIMTREE, "slender"}, { ICUBE, "tricube"}, { ICUBE, "icube"}, LITERAL_END }
All the topologies allowed are specified here.
{ { BUBBLE_MANAGEMENT, "bubble"}, { DOUBLE_MANAGEMENT, "double"}, { DALLY_MANAGEMENT, "dally"}, { TREE_MANAGEMENT, "tree"}, { ICUBE_MANAGEMENT, "icube"}, LITERAL_END }
All the Virtual channel managements are specified here.