Hi Vipin, I don't think you can use templated types in SLICC (in all cases).
There have been a few hacks over the years for special cases (if I'm remembering correctly). That said, the easiest thing to do would be to use something other than a bitset in your object. You should be able to use MachineID or NetDest which are similar structures. Cheers, Jason On Sun, Jul 5, 2020 at 11:33 PM VIPIN PATEL via gem5-users < [email protected]> wrote: > > Hi All, > > I am getting a syntax error for the bitset template while trying to build > gem5. > I have added following code in "src/mem/ruby/protocol/RubySlicc_Types.sm". > structure (FSGAEntry, external="yes") { > bitset<2> getLastWriterID(); > void setLastWriterID(bitset<2>); > bitset<4> getSharerIDs(); > void setSharerIDs(bitset<4>); > } > FSGAEntry is an external object to hold the metadata. How to import bitset > to fix the syntax issue. > > Regards, > Vipin Patel > > > _______________________________________________ > gem5-users mailing list -- [email protected] > To unsubscribe send an email to [email protected] > %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
_______________________________________________ gem5-users mailing list -- [email protected] To unsubscribe send an email to [email protected] %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
