Permalink
Browse files

Moved/Updated config examples

  • Loading branch information...
davidepatti committed Jan 13, 2016
1 parent c006451 commit 0af6d503d70d26da60a6b5d1b3bb264167bdaf8a
View
@@ -1,54 +0,0 @@
-##### LIBRARIES CONFIGURATION #####
-
-# change to your path
-SYSTEMC := /usr/local/systemc-2.3.1
-# yaml-cpp installed via macports
-YAML := /opt/local
-
-
-##### DIRECTORIES #####
-
-SYSTEMC_LIBS := $(wildcard $(SYSTEMC)/lib-*)
-
-SRCDIR := ../src
-SUBDIRS := $(filter %/,$(wildcard $(SRCDIR)/*/))
-OBJDIR := ./build
-
-SRCS := $(wildcard $(SRCDIR)/*.cpp) $(wildcard $(addsuffix *.cpp,$(SUBDIRS)))
-OBJS := $(subst $(SRCDIR),$(OBJDIR),$(SRCS:.cpp=.o))
-
-MODULE := noxim
-
-
-##### COMPILER OPTIONS #####
-
-CXX := g++
-OPT := -O3
-DEBUG := # -g -DDEBUG
-OTHER := -Wall# -Wno-deprecated
-CXXFLAGS := $(OPT) $(OTHER) $(DEBUG)
-
-INCDIR := -I$(SRCDIR) -isystem $(SYSTEMC)/include -I$(YAML)/include
-LIBDIR := -L$(SRCDIR) -L$(SYSTEMC_LIBS) -L$(YAML)/lib
-
-LIBS := -lsystemc -lm -lyaml-cpp
-
-SPACE := $(subst ,, )
-VPATH := $(SRCDIR):$(subst $(SPACE),:,$(SUBDIRS))
-
-##### RULES #####
-
-$(MODULE): $(OBJS)
- $(CXX) $(LIBDIR) $^ $(LIBS) -o $@ 2>&1 | c++filt
-
-$(OBJDIR)/%.o: %.cpp
- @mkdir -p $(dir $@)
- $(CXX) $(CXXFLAGS) $(INCDIR) -c $< -o $@
-
-clean:
- rm -f $(OBJS) $(MODULE) *~
-
-depend:
- makedepend $(SRCS) -Y -f- 2>/dev/null | sed 's_$(SRCDIR)_$(OBJDIR)_' > Makefile.deps
-
--include Makefile.deps
View
@@ -1,20 +0,0 @@
-IMPORTANT
-
-- Running noxim requires a YAML config file to be specified with the -config
-option.
-
-- A set of configuration examples can be found in the "config_example"
-directory. In paritcular, see "default_config.yaml" for a commented
-example.
-
-- Note that parameters passed at command line overwrite any
-corresponding values in the configuration file. However, note that a config file
-is always required since default values of all parameters are not
-hardcoded inside the source anymore. Further, some parameters having a
-complex hierarchy (e.g. hub connections, wireless channels) would be
-very difficult to pass using command line. Command line should be used
-mostly to quickly change simple parameters when running multiple
-tests, e.g. different packet inject rates, enabling/disabling
-wireless, changing the routing algorithm or traffic etc...
-
-
@@ -0,0 +1,126 @@
+#
+# NOC & WIRED CONFIGURATION
+#
+# TODO: REPLACE WITH 32
+mesh_dim_x: 16
+mesh_dim_y: 16
+buffer_depth: 4
+flit_size: 64
+r2h_link_length: 2.0
+r2r_link_length: 1.0
+
+# Routing algorithms:
+# XY
+# WEST_FIRST
+# NORTH_LAST
+# NEGATIVE_FIRST
+# ODD_EVEN
+# DYAD
+# TABLE_BASED
+routing_algorithm: XY
+routing_table_filename: ""
+
+# Routing specific parameters
+# dyad_threshold: double
+dyad_threshold: 0.6
+
+# Selection Strategies:
+# RANDOM
+# BUFFER_LEVEL
+# NOP
+selection_strategy: RANDOM
+
+#
+# WIRELESS CONFIGURATION
+#
+Hubs:
+ defaults:
+ rxChannels: [0]
+ txChannels: [0]
+ attachedNodes: []
+ toTileBufferSize: 4
+ fromTileBufferSize: 4
+ rxBufferSize: 64
+ txBufferSize: 64
+
+ 0:
+ attachedNodes: [33,34,49,50]
+ 1:
+ attachedNodes: [37,38,53,54]
+ 2:
+ attachedNodes: [41,42,57,58]
+ 3:
+ attachedNodes: [45,46,61,62]
+ 4:
+ attachedNodes: [113,114,129,130]
+ 5:
+ attachedNodes: [117,118,133,134]
+ 6:
+ attachedNodes: [121,122,137,138]
+ 7:
+ attachedNodes: [125,126,141,142]
+ 8:
+ attachedNodes: [193,194,209,210]
+ 9:
+ attachedNodes: [197,198,213,214]
+ 10:
+ attachedNodes: [201,202,217,218]
+ 11:
+ attachedNodes: [205,206,221,222]
+
+
+Channels:
+ defaults:
+ dataRate: 64
+ ber: [0, 0]
+ #[TOKEN_PACKET]
+ #[TOKEN_HOLD, num_hold_cycles]
+ #[TOKEN_MAX_HOLD, max_hold_cycles]
+ mac_policy: [TOKEN_PACKET]
+
+ 0:
+ ber: [0, 0]
+
+#
+# SIMULATION PARAMETERS
+#
+clock_period_ps: 1000
+reset_time: 1000
+simulation_time: 10000
+stats_warm_up_time: 1000
+detailed: false
+max_volume_to_be_drained: 0
+show_buffer_stats: false
+
+# Winoc
+use_winoc: false
+use_wirxsleep: false
+
+# Verbosity level:
+# VERBOSE_OFF
+# VERBOSE_LOW
+# VERBOSE_MEDIUM
+# VERBOSE_HIGH
+verbose_mode: VERBOSE_OFF
+
+# Trace
+trace_mode: false
+trace_filename: ""
+
+min_packet_size: 12
+max_packet_size: 12
+packet_injection_rate: 0.01
+probability_of_retransmission: 0.01
+
+# Traffic distribution:
+# TRAFFIC_RANDOM
+# TRAFFIC_TRANSPOSE1
+# TRAFFIC_TRANSPOSE2
+# TRAFFIC_HOTSPOT
+# TRAFFIC_TABLE_BASED
+# TRAFFIC_BIT_REVERSAL
+# TRAFFIC_SHUFFLE
+# TRAFFIC_BUTTERFLY
+traffic_distribution: TRAFFIC_RANDOM
+traffic_table_filename: "t.txt"
+
@@ -0,0 +1,138 @@
+#
+# NOC & WIRED CONFIGURATION
+#
+# TODO: REPLACE WITH 32
+mesh_dim_x: 16
+mesh_dim_y: 16
+buffer_depth: 4
+flit_size: 64
+r2h_link_length: 2.0
+r2r_link_length: 1.0
+
+# Routing algorithms:
+# XY
+# WEST_FIRST
+# NORTH_LAST
+# NEGATIVE_FIRST
+# ODD_EVEN
+# DYAD
+# TABLE_BASED
+routing_algorithm: XY
+routing_table_filename: ""
+
+# Routing specific parameters
+# dyad_threshold: double
+dyad_threshold: 0.6
+
+# Selection Strategies:
+# RANDOM
+# BUFFER_LEVEL
+# NOP
+selection_strategy: RANDOM
+
+#
+# WIRELESS CONFIGURATION
+#
+Hubs:
+ defaults:
+ rxChannels: [0]
+ txChannels: [0]
+ attachedNodes: []
+ toTileBufferSize: 4
+ fromTileBufferSize: 4
+ rxBufferSize: 64
+ txBufferSize: 64
+
+ 0:
+ attachedNodes: [17, 18, 33, 34]
+ 1:
+ attachedNodes: [21, 22, 37, 38]
+ 2:
+ attachedNodes: [25, 26, 41, 42]
+ 3:
+ attachedNodes: [29, 30, 45, 46]
+ 4:
+ attachedNodes: [81, 82, 97, 98]
+ 5:
+ attachedNodes: [85, 86, 101, 102]
+ 6:
+ attachedNodes: [89, 90, 105, 106]
+ 7:
+ attachedNodes: [93, 94, 109, 110]
+ 8:
+ attachedNodes: [145, 146, 161, 162]
+ 9:
+ attachedNodes: [149,150, 165, 166]
+ 10:
+ attachedNodes: [153,154, 169, 170]
+ 11:
+ attachedNodes: [157, 158, 173, 174]
+ 12:
+ attachedNodes: [209, 210, 225, 226]
+ 13:
+ attachedNodes: [213, 214, 229, 230]
+ 14:
+ attachedNodes: [217, 218, 233, 234]
+ 15:
+ attachedNodes: [221, 222, 237, 238]
+
+
+
+
+
+
+Channels:
+ defaults:
+ dataRate: 64
+ ber: [0, 0]
+ #[TOKEN_PACKET]
+ #[TOKEN_HOLD, num_hold_cycles]
+ #[TOKEN_MAX_HOLD, max_hold_cycles]
+ mac_policy: [TOKEN_PACKET]
+
+ 0:
+ ber: [0, 0]
+
+#
+# SIMULATION PARAMETERS
+#
+clock_period_ps: 1000
+reset_time: 1000
+simulation_time: 10000
+stats_warm_up_time: 1000
+detailed: false
+max_volume_to_be_drained: 0
+show_buffer_stats: false
+
+# Winoc
+use_winoc: false
+use_wirxsleep: false
+
+# Verbosity level:
+# VERBOSE_OFF
+# VERBOSE_LOW
+# VERBOSE_MEDIUM
+# VERBOSE_HIGH
+verbose_mode: VERBOSE_OFF
+
+# Trace
+trace_mode: false
+trace_filename: ""
+
+min_packet_size: 12
+max_packet_size: 12
+packet_injection_rate: 0.01
+probability_of_retransmission: 0.01
+
+# Traffic distribution:
+# TRAFFIC_RANDOM
+# TRAFFIC_TRANSPOSE1
+# TRAFFIC_TRANSPOSE2
+# TRAFFIC_HOTSPOT
+# TRAFFIC_TABLE_BASED
+# TRAFFIC_BIT_REVERSAL
+# TRAFFIC_SHUFFLE
+# TRAFFIC_BUTTERFLY
+traffic_distribution: TRAFFIC_RANDOM
+traffic_table_filename: "t.txt"
+
Oops, something went wrong.

0 comments on commit 0af6d50

Please sign in to comment.