Hi Leon, SLICC really is its own language. It looks like C++ only to make it simpler to implement, not because you should be able to write C++ code. If you haven't read the Learning gem5 Ruby section, I would suggest starting there: http://www.gem5.org/documentation/learning_gem5/part3/MSIintro/. I believe this video may be helpful as well: https://www.youtube.com/watch?v=XTIrVBb86aM&feature=youtu.be
Cheers, Jason On Wed, Dec 9, 2020 at 2:29 AM Leon Zhao via gem5-users <gem5-users@gem5.org> wrote: > Hi all, > > I'm currently doing some research in Ruby, therefore I've been trying to > modify some .sm file such as > 'src/mem/ruby/protocol/MOESI_CMP_directory-L1cache.sm'. I was wondering how > come this C++-like language cannot recognize simplest syntax such as a > simple semicolon. > > Also, if I want to define a function in this file, would it be appropriate > to just define it in another C++ file and declare the header file in > StateMachine.py? Is there something I missed? > > Any pointers would do. Thank you in advance. > > Leon > _______________________________________________ > gem5-users mailing list -- gem5-users@gem5.org > To unsubscribe send an email to gem5-users-le...@gem5.org > %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s >
_______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s