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 |
90exec(compile(open(os.path.join(config_root, "common", "Options.py")).read(), 91 os.path.join(config_root, "common", "Options.py"), 'exec')) |
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) \ |
116 for i in range(options.num_cpus) ] |
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 --- |