Hello,
I am making a new cache coherence protocol in Gem5. In one of my actions, I
require using a while loop to send messages to other caches depending on
certain circumstances. I am wondering if there is a while loop in SLICC or if I
need to do something else. My code would look something like this:
while (x < totalNum()){ //pretend totalNum() is a C++ function that returns
the number of cache
if (fulfills certain conditions){
enqueue(replyChild_out, ParentReplyType, latency=issue_latency) {
out_msg.Address := address;
out_msg.Type := ParentReplyType:PYS;
out_msg.Sender := machineID;
out_msg.Destination.add(in_msg.Requestor);
}
}
}
I don't know if this is possible or not.
Best regards,
Alex Tomala_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users