Re: [Gems-users] NEW QUERY!! Random Tester with Trace


Date: Fri, 21 Nov 2008 11:30:08 -0500
From: "Ashwath Narasimhan" <nashwath@xxxxxxxxx>
Subject: Re: [Gems-users] NEW QUERY!! Random Tester with Trace
Hi,
Thank you for helping me out.
I have a question.

1)  I am having a trace file which maps the physical address in my machine. This is in the range of GB eg:
           5  0x3086061930 0 LD
          1 0x3086061924 0 IFETCH
          2 0x3086061927 0 IFETCH
          1 0x3215124728 0 LD
          2 0x3086061930 0 IFETCH
          5 0x3086061932 0 IFETCH

           How Can I better represent this ? I would like to reduce the number of bits.
=============================================================================================
BACKGROUND of Problem.
=============================================================================================

I was not able to index this address so I increased g_MEMORY_SIZE_BYTES to 2^36 = 68719476736
I then executed the tester and this is what i get..I feel the problem arises when ruby tries to create array of g_MEMORY_SIZE_BYTES. Am I right??????????

===============================================================================================
OUTPUT
===============================================================================================

an2355@athens /local/csee6824/an2355/gems/ruby $ ./x86-linux/generated/MOSI_SMP_bcast/bin/tester.exec -p 16 -z little.trace -s 1
Parsing command line arguments:
  tracefile = little.trace
  debug start cycle = 1
Ruby Timing Mode
Creating event queue...
Creating event queue done
Creating system...
  Processors: 16
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted

===================================================================================================

Thanks,
Ashwath



On Fri, Nov 21, 2008 at 9:52 AM, Derek Hower <drh5@xxxxxxxxxxx> wrote:
1.  The size of messages are specified in the protocol files (e.g. by
setting out_msg.MessageSize := MessageSizeType:Data).  The MessageSize
types are defined in GEMS/protocols/RubySlicc_Exports.sm.  The integer
size of the types is defined in GEMS/ruby/network/Network.h in the
function MessageSizeType_to_int.
2.  The CacheMsg class is in a file generated by SLICC.  It's members
are initially declared in GEMS/protocols/RubySlicc_Exports.sm, and the
generated C file is found in
GEMS/ruby/generated/{PROTOCOL_NAME}/CacheMsg.h.

-Derek

On Thu, Nov 20, 2008 at 10:11 PM, Ashwath Narasimhan <nashwath@xxxxxxxxx> wrote:
> Hi,
> I have two queries
>
> 1. How do I specify the "Size" of a load instruction as in no of bytes of
> data to be fetched from memory in the tracefile of the Random tester?
>
> 2. I would like to know more about the CacheMsg class. where can I find this
> .h file?
>
> Thanks for helping me.
>
> regards,
> Ashwath
>
>
> On Thu, Nov 20, 2008 at 2:27 PM, Ashwath Narasimhan <nashwath@xxxxxxxxx>
> wrote:
>>
>> Thanks a lot.. I didnt know about this.. I had started manipulating the
>> code. You have simplified my work and improved my understanding.. Again
>> thanks a lot.
>>
>> regards,
>> Ashwath
>>
>> On Thu, Nov 20, 2008 at 12:44 PM, Niket <niketa@xxxxxxxxxxxxx> wrote:
>>>
>>> You can use the -z option to input a trace file directly to tester. You
>>> can find more information at
>>> http://www.cs.wisc.edu/gems/doc/gems-wiki/moin.cgi/How_do_I_understand_a_Protocol
>>>
>>> Ashwath Narasimhan wrote:
>>>
>>> Hi,
>>> I have a trace file that has the following fields:- address, access type,
>>> thread id. I need to map this fields to the Tester module to feed this as
>>> inputs to RUBY. I am not interested in a timing driven simulation.
>>> When I looked into the tester code, I find that function
>>> "InitiatePrefetch" in Tester/check.c generates Random address inputs. Is
>>> this correct? Do i need to modify this function to provide the inputs from
>>> my trace file? or is there any other way to input my trace file to the RUBY
>>> simulator?
>>>
>>> thanks,
>>> Ashwath
>>>
>>> ________________________________
>>> _______________________________________________
>>> Gems-users mailing list
>>> Gems-users@xxxxxxxxxxx
>>> https://lists.cs.wisc.edu/mailman/listinfo/gems-users
>>> Use Google to search the GEMS Users mailing list by adding
>>> "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.
>>>
>>>
>>>
>>> _______________________________________________
>>> Gems-users mailing list
>>> Gems-users@xxxxxxxxxxx
>>> https://lists.cs.wisc.edu/mailman/listinfo/gems-users
>>> Use Google to search the GEMS Users mailing list by adding
>>> "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.
>>>
>>>
>>
>
>
> _______________________________________________
> Gems-users mailing list
> Gems-users@xxxxxxxxxxx
> https://lists.cs.wisc.edu/mailman/listinfo/gems-users
> Use Google to search the GEMS Users mailing list by adding
> "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.
>
>
>
_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.


[← Prev in Thread] Current Thread [Next in Thread→]