garnet_synth_traffic.py (12564:2778478ca882) garnet_synth_traffic.py (13731:67cd980cb20f)
1# Copyright (c) 2016 Georgia Institute of Technology
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 73 unchanged lines hidden (view full) ---

82 0 and 1 are 1-flit, 2 is 5-flit.\
83 Set to -1 to inject randomly in all vnets.")
84
85#
86# Add the ruby specific and protocol specific options
87#
88Ruby.define_options(parser)
89
1# Copyright (c) 2016 Georgia Institute of Technology
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 73 unchanged lines hidden (view full) ---

82 0 and 1 are 1-flit, 2 is 5-flit.\
83 Set to -1 to inject randomly in all vnets.")
84
85#
86# Add the ruby specific and protocol specific options
87#
88Ruby.define_options(parser)
89
90execfile(os.path.join(config_root, "common", "Options.py"))
90exec(compile(open(os.path.join(config_root, "common", "Options.py")).read(),
91 os.path.join(config_root, "common", "Options.py"), 'exec'))
91
92(options, args) = parser.parse_args()
93
94if args:
95 print("Error: script doesn't take any positional arguments")
96 sys.exit(1)
97
98

--- 8 unchanged lines hidden (view full) ---

107 single_sender=options.single_sender_id,
108 single_dest=options.single_dest_id,
109 sim_cycles=options.sim_cycles,
110 traffic_type=options.synthetic,
111 inj_rate=options.injectionrate,
112 inj_vnet=options.inj_vnet,
113 precision=options.precision,
114 num_dest=options.num_dirs) \
92
93(options, args) = parser.parse_args()
94
95if args:
96 print("Error: script doesn't take any positional arguments")
97 sys.exit(1)
98
99

--- 8 unchanged lines hidden (view full) ---

108 single_sender=options.single_sender_id,
109 single_dest=options.single_dest_id,
110 sim_cycles=options.sim_cycles,
111 traffic_type=options.synthetic,
112 inj_rate=options.injectionrate,
113 inj_vnet=options.inj_vnet,
114 precision=options.precision,
115 num_dest=options.num_dirs) \
115 for i in xrange(options.num_cpus) ]
116 for i in range(options.num_cpus) ]
116
117# create the desired simulated system
118system = System(cpu = cpus, mem_ranges = [AddrRange(options.mem_size)])
119
120
121# Create a top-level voltage domain and clock domain
122system.voltage_domain = VoltageDomain(voltage = options.sys_voltage)
123

--- 34 unchanged lines hidden ---
117
118# create the desired simulated system
119system = System(cpu = cpus, mem_ranges = [AddrRange(options.mem_size)])
120
121
122# Create a top-level voltage domain and clock domain
123system.voltage_domain = VoltageDomain(voltage = options.sys_voltage)
124

--- 34 unchanged lines hidden ---