base_config.py (10405:7a618c07e663) base_config.py (10512:b423e1d0735e)
1# Copyright (c) 2012-2013 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

53 system with the usual peripherals (caches, GIC, etc.). It allows
54 customization by defining separate methods for different parts of
55 the initialization process.
56 """
57
58 __metaclass__ = ABCMeta
59
60 def __init__(self, mem_mode='timing', mem_class=SimpleMemory,
1# Copyright (c) 2012-2013 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

53 system with the usual peripherals (caches, GIC, etc.). It allows
54 customization by defining separate methods for different parts of
55 the initialization process.
56 """
57
58 __metaclass__ = ABCMeta
59
60 def __init__(self, mem_mode='timing', mem_class=SimpleMemory,
61 cpu_class=TimingSimpleCPU, num_cpus=1, checker=False):
61 cpu_class=TimingSimpleCPU, num_cpus=1, checker=False,
62 mem_size=None):
62 """Initialize a simple base system.
63
64 Keyword Arguments:
65 mem_mode -- String describing the memory mode (timing or atomic)
66 mem_class -- Memory controller class to use
67 cpu_class -- CPU class to use
68 num_cpus -- Number of CPUs to instantiate
69 checker -- Set to True to add checker CPUs
63 """Initialize a simple base system.
64
65 Keyword Arguments:
66 mem_mode -- String describing the memory mode (timing or atomic)
67 mem_class -- Memory controller class to use
68 cpu_class -- CPU class to use
69 num_cpus -- Number of CPUs to instantiate
70 checker -- Set to True to add checker CPUs
71 mem_size -- Override the default memory size
70 """
71 self.mem_mode = mem_mode
72 self.mem_class = mem_class
73 self.cpu_class = cpu_class
74 self.num_cpus = num_cpus
75 self.checker = checker
76
77 def create_cpus(self, cpu_clk_domain):

--- 200 unchanged lines hidden ---
72 """
73 self.mem_mode = mem_mode
74 self.mem_class = mem_class
75 self.cpu_class = cpu_class
76 self.num_cpus = num_cpus
77 self.checker = checker
78
79 def create_cpus(self, cpu_clk_domain):

--- 200 unchanged lines hidden ---