Bluespec complains when I try to use $display within a function definition.
It is only allowed within a rule definition.
Is there a way that I can get to display variable names within a function?
I think it might be using the ActionValue# but I cannot get the syntax right. I also cannot find examples online.
Thanks
One correct syntax is -
function ActionValue#(rtype) func(...)
= actionvalue
do something;
$display(...);
return val;
endactionvalue;