garnet_synth_traffic.py (11682:612f75cf36a0) | garnet_synth_traffic.py (11688:725fef71f376) |
---|---|
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 --- 29 unchanged lines hidden (view full) --- 38from ruby import Ruby 39 40# Get paths we might need. It's expected this file is in m5/configs/example. 41config_path = os.path.dirname(os.path.abspath(__file__)) 42config_root = os.path.dirname(config_path) 43m5_root = os.path.dirname(config_root) 44 45parser = optparse.OptionParser() | 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 --- 29 unchanged lines hidden (view full) --- 38from ruby import Ruby 39 40# Get paths we might need. It's expected this file is in m5/configs/example. 41config_path = os.path.dirname(os.path.abspath(__file__)) 42config_root = os.path.dirname(config_path) 43m5_root = os.path.dirname(config_root) 44 45parser = optparse.OptionParser() |
46Options.addCommonOptions(parser) | 46Options.addNoISAOptions(parser) |
47 48parser.add_option("--synthetic", type="choice", default="uniform_random", 49 choices=['uniform_random', 'tornado', 'bit_complement', \ 50 'bit_reverse', 'bit_rotation', 'neighbor', \ 51 'shuffle', 'transpose']) 52 53parser.add_option("-i", "--injectionrate", type="float", default=0.1, 54 metavar="I", --- 102 unchanged lines hidden --- | 47 48parser.add_option("--synthetic", type="choice", default="uniform_random", 49 choices=['uniform_random', 'tornado', 'bit_complement', \ 50 'bit_reverse', 'bit_rotation', 'neighbor', \ 51 'shuffle', 'transpose']) 52 53parser.add_option("-i", "--injectionrate", type="float", default=0.1, 54 metavar="I", --- 102 unchanged lines hidden --- |