test: Updating simple_traffic_run and adding tests
This change updates simple_traffic_run.py with adding clock_domain for GUPSGen based generators. Also the tests that resulted in error before are now fixed and added. Change-Id: I992898a3aef509afd9dec1f9b5d14c5fd67cff37 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/53164 Reviewed-by: Bobby Bruce <bbruce@ucdavis.edu> Maintainer: Bobby Bruce <bbruce@ucdavis.edu> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -35,7 +35,6 @@ import m5
|
||||
import argparse
|
||||
import importlib
|
||||
|
||||
from os.path import join
|
||||
from m5.objects import Root, MemorySize
|
||||
from gem5.components.boards.test_board import TestBoard
|
||||
|
||||
@@ -71,15 +70,18 @@ def generator_factory(
|
||||
from gem5.components.processors.gups_generator import GUPSGenerator
|
||||
|
||||
table_size = f"{int(mem_size / 2)}B"
|
||||
return GUPSGenerator(0, table_size, update_limit=1000)
|
||||
return GUPSGenerator(
|
||||
0, table_size, update_limit=1000, clk_freq="2GHz"
|
||||
)
|
||||
elif generator_class == "GUPSGeneratorEP":
|
||||
from gem5.components.processors.gups_generator_ep import (
|
||||
GUPSGeneratorEP,
|
||||
)
|
||||
|
||||
table_size = f"{int(mem_size / 2)}B"
|
||||
|
||||
return GUPSGeneratorEP(
|
||||
generator_cores, 0, table_size, update_limit=1000
|
||||
generator_cores, 0, table_size, update_limit=1000, clk_freq="2GHz"
|
||||
)
|
||||
elif generator_class == "GUPSGeneratorPAR":
|
||||
from gem5.components.processors.gups_generator_par import (
|
||||
@@ -88,7 +90,7 @@ def generator_factory(
|
||||
|
||||
table_size = f"{int(mem_size / 2)}B"
|
||||
return GUPSGeneratorPAR(
|
||||
generator_cores, 0, table_size, update_limit=1000
|
||||
generator_cores, 0, table_size, update_limit=1000, clk_freq="2GHz"
|
||||
)
|
||||
else:
|
||||
raise ValueError(f"Unknown generator class {generator_class}")
|
||||
|
||||
@@ -106,9 +106,7 @@ multi_memory_classes = [
|
||||
|
||||
|
||||
def create_single_core_tests(module, memory_classes):
|
||||
# TODO: Add GUPSGenerator to these tests after adding ClockDomain as
|
||||
# an input parameter.
|
||||
generator_classes = ["LinearGenerator", "RandomGenerator"]
|
||||
generator_classes = ["LinearGenerator", "RandomGenerator", "GUPSGenerator"]
|
||||
for generator_class in generator_classes:
|
||||
for cache_class in cache_classes:
|
||||
for memory_class in memory_classes:
|
||||
|
||||
Reference in New Issue
Block a user