Re: [Gems-users] Data structure in SLICC


Date: Thu, 2 Nov 2006 00:00:23 -0600
From: "Lei Yang" <lya755@xxxxxxxxxxxxxxxxxxxx>
Subject: Re: [Gems-users] Data structure in SLICC
Hi Hongxia,
 
That's very helpful! Before I saw your email, I had assumed that trigger cannot be used in that function, so I started to add another port and try to trigger events in that port. Things are a lot more complex but I guess it should work.
 
Thanks again!
 
Lei
----- Original Message -----
Sent: Wednesday, November 01, 2006 11:54 PM
Subject: Re: [Gems-users] Data structure in SLICC

Dear Lei,
 
"trigger" is a function which declares in "/slicc/ast/InportDeclAst.C" and its implementation is in "/slicc/ast/FuncCallExprAST.C". Therefore, "trigger" is a special function which can only used in "inport" and cannot be used in Entry getL2CacheEntry(Address addr). However, if you want to change the data structure, you can add your field in "Entry" in *.sm file and add your function operated on this field in /ruby/system/CacheMemory.h.
 
Hope it can be helpful!
 
Best Regards,
Hongxia SUN


 
在06-11-2,Lei Yang <lya755@xxxxxxxxxxxxxxxxxxxx> 写道:
Dear List,
 
I have a question on the SLICC language. I'm working with MSI_MOSI_CMP_directory protocol. In my implementation I need to change the data structure, Entry getL2CacheEntry(Address addr), and I need to trigger a replacement event in that function. However when I try to compile, SLICC gives me the following error:
 
../protocols/MSI_MOSI_CMP_directory-L2cache.sm:258: Error: Unrecognized function name: 'trigger'
 
I think this is because the data structure doesn't allow triggering events. Would anyone tell me what's an alternative way to achieve what I want to do? I really appreciate your comments!!
 
Best Regards,
Lei

_______________________________________________
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→]