I'm not sure what the answer is to many of your questions, but it seems that
a good solution to figuring them out would be to just run some simple
workloads and then look at the "config.ini" file (default outputted to the
m5out directory) to verify your configuration is what you think it is. At
first glance, just running "hello world" programs in SE mode would be OK and
then you can do some trial/error in the Ruby files to figure out how things
work.

Once you are ready for FS mode, check the gem5 page for instructions on
getting started there, and then I would say the same process would suffice
as well. Start up a simple workload and then toggle configuration parameters
to learn how the different things work.

And the end of the day, there is no substitute for going through the code
itself, so as you do that I would suggest noting helpful "DebugFlags" that
are denoted by "DPRINTF" statements. There is documentation on how to use
these DebugFlags (TraceFlags) on the gem5 page as well and these will also
help you figure out what's going on:
./m5.opt --debug-flags=Ruby configs/example/ruby_se.py

2011/5/17 xuewen zhou <[email protected]>

> hello,Gabe ,
> I am still another question :
> in DMA_controller.py,there is no port,in RubyController,there is also no
> port ,could I add port myself ? or do something else to get the
> DMA_controller‘s
> port ?Thank you!
>
> 在 2011年5月17日 下午5:48,Gabe Black <[email protected]>写道:
>
>  The best place to see what parameters and ports are on SimObjects is to
>> look in the src directory for .py files. That's where the SimObjects are
>> defined. The values in those files are defaults, and not meant for actually
>> configuring things.
>>
>> The scripts that are normally used to set up a simulation are in the
>> configs directory. You are encouraged to make your own scripts using those
>> as an example, but you can also use those directly, especially to get
>> started. Those scripts (in particular your versions of them) are where you
>> should configure the SimObjects.
>>
>> Gabe
>>
>>
>> On 05/16/11 21:19, xuewen zhou wrote:
>>
>> I have read this part ,but where could I get the ports’ name and how could
>> I connect them?(for example how could I know the  DMA_controller‘s port and
>> how to connect them to Ruby system ),Thank you very much!
>>
>> 2011/5/17 Gabriel Michael Black <[email protected]>
>>
>>> This should get you started.
>>>
>>> http://m5sim.org/Simulation_Scripts_Explained
>>>
>>>
>>> Quoting xuewen zhou <[email protected]>:
>>>
>>>  hello,Gabe,
>>>> Could you tell me where I find the hardware confige file in M5. Or I
>>>> should
>>>> ask that ,now I have design
>>>>  a hardware system which contais two ARM cores , DMA ,crossbar and other
>>>> modules ,I want to implement this system in M5 , how could
>>>>  I config it (or which files I can use in M5,or how could I do ) ? Thank
>>>> you
>>>> very much!
>>>>
>>>>
>>>> 2011/3/22 Gabriel Michael Black <[email protected]>
>>>>
>>>>  There's some documentation on the website you might find helpful. You
>>>>> should read through that first.
>>>>>
>>>>> www.m5sim.org
>>>>>
>>>>> Gabe
>>>>>
>>>>>
>>>>> Quoting xuewen zhou <[email protected]>:
>>>>>
>>>>>  Thank you very much !
>>>>>
>>>>>>
>>>>>> Could you tell me how to get the help of command line parameter,such
>>>>>> as -n
>>>>>> (or how could you know to use '-n' as the parameter of core
>>>>>> number.)And
>>>>>> how
>>>>>> to set other parameters ,such as cpu frequency , memory size and so on
>>>>>> ,where could I get help about these and othe useful command.
>>>>>>
>>>>>> Best regards!
>>>>>> 2011/3/21 Nilay Vaish <[email protected]>
>>>>>>
>>>>>>  On Mon, 21 Mar 2011, xuewen zhou wrote:
>>>>>>
>>>>>>>
>>>>>>> hello , every body ,could someone tell me how to use M5(configure it
>>>>>>> with
>>>>>>>
>>>>>>>  the number cores , connection--crossbar,and memory),Thank you very
>>>>>>>> much!
>>>>>>>>
>>>>>>>>
>>>>>>>>  The number of cores is configured with the command line parameter
>>>>>>>> '-n',
>>>>>>>>
>>>>>>> as
>>>>>>> in -n 4 would create a four-processor system. Ruby uses Crossbar by
>>>>>>> default,
>>>>>>> so as such there is no need to change the topology. You can do so by
>>>>>>> using
>>>>>>> the option --topology <topology name>. The available topologies are
>>>>>>> in
>>>>>>> the
>>>>>>> directory src/mem/ruby/network/topologies.
>>>>>>>
>>>>>>> Have a look at the file configs/common/Options.py for more command
>>>>>>> line
>>>>>>> parameters.
>>>>>>>
>>>>>>> --
>>>>>>> Nilay
>>>>>>> _______________________________________________
>>>>>>> m5-users mailing list
>>>>>>> [email protected]
>>>>>>> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> Xuewen Zhou  Master
>>>>>> Shanghai Jiaotong University
>>>>>> School of Microelectronics
>>>>>> National Engineering Laboratory For Automotive Electronic Control
>>>>>> Technology
>>>>>> 800 Dongchuan Road, Shanghai 200240, P. R. China
>>>>>> Phone : 13062728106
>>>>>>
>>>>>>
>>>>>>
>>>>> _______________________________________________
>>>>> m5-users mailing list
>>>>> [email protected]
>>>>> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Xuewen Zhou  Master
>>>> Shanghai Jiaotong University
>>>> School of Microelectronics
>>>> National Engineering Laboratory For Automotive Electronic Control
>>>> Technology
>>>> 800 Dongchuan Road, Shanghai 200240, P. R. China
>>>> Phone : 13062728106
>>>>
>>>>
>>>
>>>  _______________________________________________
>>> gem5-users mailing list
>>> [email protected]
>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>>
>>
>>
>>
>> --
>> Xuewen Zhou  Master
>> Shanghai Jiaotong University
>> School of Microelectronics
>> National Engineering Laboratory For Automotive Electronic Control
>> Technology
>> 800 Dongchuan Road, Shanghai 200240, P. R. China
>> Phone : 13062728106
>>
>>
>> _______________________________________________
>> gem5-users mailing 
>> [email protected]http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>>
>>
>> _______________________________________________
>> gem5-users mailing list
>> [email protected]
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>
>
>
> --
> Xuewen Zhou  Master
> Shanghai Jiaotong University
> School of Microelectronics
> National Engineering Laboratory For Automotive Electronic Control
> Technology
> 800 Dongchuan Road, Shanghai 200240, P. R. China
> Phone : 13062728106
>
>
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>



-- 
- Korey
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to