[gem5-dev] Cron /z/m5/regression/do-regression quick

2015-02-25 Thread Cron Daemon via gem5-dev

See /z/m5/regression/regress-2015-02-25-03:00:01 for details.

___
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev


Re: [gem5-dev] how can I add cache in tgen-simple-mem

2015-02-25 Thread Erfan Azarkhish via gem5-dev
Dear Sensen,

If you take a look at *src/sim/ClockedObject.py*, you can see that the
parameter *clk_domain* is by default inherited from the parent. This means
that:

For all classes which are inherited from the ClockedObject class (including
CPU, memories, ...), if you do not specify any value for their clk_domain,
gem5 will automatically use the clk_domain of their parent for them.

So in your case, you do not need to assign cpu.clk_domain =
system.cpu_clk_domain. This will happen automatically. Because *system* is
the parent of the *cpu*.
But if you want to override the clock domain of on CPU explicitly and
assign it to a DIFFERENT value, you can do this:

cpu.clk_domain = SrcClockDomain(clock = '2.5GHz', voltage_domain =
VoltageDomain(voltage = '1V'))

Best,

On Tue, Feb 24, 2015 at 8:24 PM, Sensen Hu - EWI via gem5-dev <
gem5-dev@gem5.org> wrote:

> hi, Andreas.
> Thanks for your help.
> I followed your advise to delete the test.py file and just set maxtick
> directly in run.py.
> But I failed again. Could you tell me the relationship among these
> parameters
> cpu_clk_domain, system.cpu_clk_domain
>
> STATE 0 100 TRACE tests/quick/se/70.tgen/tgen-simple-mem.trc(the
> third data, namely 10) and maxtick
>
>
> Could you give some advice? thank you.
>
> I attach my tgen-simple-mem.py file.
>
> import m5
> from m5.objects import *
>
> #
> m5.util.addToPath('../configs/common')
> from Caches import *
> #
>
> # both traffic generator and communication monitor are only available
> # if we have protobuf support, so potentially skip this test
> require_sim_object("TrafficGen")
> require_sim_object("CommMonitor")
>
> # even if this is only a traffic generator, call it cpu to make sure
> # the scripts are happy
> cpu = TrafficGen(config_file =
> "tests/quick/se/70.tgen/tgen-simple-mem.cfg")
>
> # system simulated
> system = System(cpu = cpu,
> physmem = SimpleMemory(),
> membus = NoncoherentXBar(width=16))
> # Dummy voltage domain for all our clock domains
> system.voltage_domain = VoltageDomain()
> system.clk_domain = SrcClockDomain(clock = '1GHz',
>voltage_domain = system.voltage_domain)
>
>
> #--
>
> # add a communication monitor, and also trace all the packets
> system.monitor = CommMonitor(trace_file = "monitor.ptrc.gz",
>  trace_enable = True)
>
> # connect the traffic generator to the bus via a communication monitor
> system.cpu.port = system.monitor.slave
>
> #-
> # Create a seperate clock domain for components that should run at
> # CPUs frequency
> system.cpu_clk_domain = SrcClockDomain(clock = '2GHz',
>voltage_domain =
> system.voltage_domain)
>
> system.toL2Bus = NoncoherentXBar(clk_domain = system.cpu_clk_domain,
> width=16)
> system.l2c = L2Cache(clk_domain = system.cpu_clk_domain, size='64kB',
> assoc=8)
> system.l2c.cpu_side = system.toL2Bus.master
> system.l2c.mem_side = system.membus.slave
>
> cpu.clk_domain = system.cpu_clk_domain
> cpu.l1c = L1Cache(size = '16kB', assoc = 2)
>
> cpu.l1c.mem_side = system.toL2Bus.slave
> system.monitor.master = cpu.l1c.cpu_side
>
> # connect the system port even if it is not used in this example
> system.system_port = system.membus.slave
>
> # connect memory to membus
> system.physmem.port = system.membus.master
>
>
> # ---
> # run simulation
> # ---
>
> root = Root(full_system = False, system = system)
> root.system.mem_mode = 'timing'
> ___
> gem5-dev mailing list
> gem5-dev@gem5.org
> http://m5sim.org/mailman/listinfo/gem5-dev
>



-- 
Erfan Azarkhish
Micrel Lab - Viale Carlo Pepoli 3/2 - 40123, Bologna
DEI - University of Bologna, Italy
https://www.linkedin.com/in/erfanazarkhish
___
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev


Re: [gem5-dev] Review Request 2668: config: Support full-system with SST's memory system

2015-02-25 Thread Steve Reinhardt via gem5-dev

---
This is an automatically generated e-mail. To reply, visit:
http://reviews.gem5.org/r/2668/#review5914
---


Took me longer to review this just because I'm not sure what to think of it.  
It's not pretty, but I don't have better ideas, so it's hard to object.

One thing that bothers me is that, while it's noble to try and generalize 
things, despite the generic-sounding "--external-memory-system" switch, many of 
the low-level details seem very sst-specific (like 'port_type="sst"' as an 
obvious one).  Would it be more appropriate just to call the option 
"--sst-memory"?

Also, the ExternalCache thing looks like it should be a subclass, even though 
it's just a function.  I can see how the function is more convenient, but 
making it a subclass would allow some better encapsulation of the cpu_side 
__getattr__/__setattr__ hack.

These are just general thoughts though... I'm very interested in others' input.


configs/common/CacheConfig.py


This seems obviously specific to sst here



configs/common/CacheConfig.py


I assume this naming is also specific to sst



src/mem/ExternalSlave.py


To me, this clearly straddles the line between "clever" and "horrifying" 
:).  If nothing else, it would be nice to put these in an ExternalCache 
subclass.


- Steve Reinhardt


On Feb. 20, 2015, 10:47 a.m., Curtis Dunham wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> http://reviews.gem5.org/r/2668/
> ---
> 
> (Updated Feb. 20, 2015, 10:47 a.m.)
> 
> 
> Review request for Default.
> 
> 
> Repository: gem5
> 
> 
> Description
> ---
> 
> Changeset 10709:a3b771cd744c
> ---
> config: Support full-system with SST's memory system
> 
> This patch adds an example configuration in ext/sst/tests/ that allows
> an SST/gem5 instance to simulate a 4-core AArch64 system with SST's
> memHierarchy components providing all the caches and memories.
> 
> 
> Diffs
> -
> 
>   configs/common/CacheConfig.py c6cb94a14fea4c59780d73d1623d7031bcede6af 
>   configs/common/FSConfig.py c6cb94a14fea4c59780d73d1623d7031bcede6af 
>   configs/common/MemConfig.py c6cb94a14fea4c59780d73d1623d7031bcede6af 
>   configs/common/Options.py c6cb94a14fea4c59780d73d1623d7031bcede6af 
>   configs/example/fs.py c6cb94a14fea4c59780d73d1623d7031bcede6af 
>   ext/sst/tests/test6_arm_4c.py PRE-CREATION 
>   src/dev/arm/RealView.py c6cb94a14fea4c59780d73d1623d7031bcede6af 
>   src/mem/ExternalSlave.py c6cb94a14fea4c59780d73d1623d7031bcede6af 
> 
> Diff: http://reviews.gem5.org/r/2668/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Curtis Dunham
> 
>

___
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev