hello,Gabe ,Thank you very much ,you are so kind !
But now I have another questions ,The following code is sequencer.py:
class RubyPort(MemObject):
type = 'RubyPort'
abstract = True
port = VectorPort("M5 port") ................................. 1
version = Param.Int(0, "")
pio_port = Port("Ruby_pio_port") ............................ 2
physmem = Param.PhysicalMemory("")
physMemPort = Port("port to physical memory")
class RubySequencer(RubyPort):
type = 'RubySequencer'
cxx_class = 'Sequencer'
icache = Param.RubyCache("")
dcache = Param.RubyCache("")
max_outstanding_requests = Param.Int(16,
"max requests (incl. prefetches) outstanding")
deadlock_threshold = Param.Int(500000,
"max outstanding cycles for a request before deadlock/livelock
declared")
using_ruby_tester = Param.Bool(False, "")
class DMASequencer(RubyPort):
type = 'DMASequencer'
questions :
1 Is “M5 port” the RubyPort’s name ?and could I use just like RubyPort.M5
port or some other types ?and the pio_port ,could I use RubyPort.pio_port
or RubyPort.Ruby_pio_port ;
2 what are the difference of the port and pio_port ?
3 there is no port in DMASequencer ,could it means that it has ports just
like RubyPort ()?
在 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