The Bluespec compiler provides a default name for the output port generated for value methods and ActionValue methods. The attribute result=
allows the designer to specify a string for the name of the output
port. This is useful when the port names must begin with an upper case
letter, which is not a valid method name.Default Namingoutput port name: methodname Attribute Syntax
(* result= "outputportname" *)
The string outputportname is the name to be generated for the output port. The result= attribute is ignored if the method is an Action method which does not return a result. BSV Example
interface GrabAndGive;
Generated Verilog
// action method grab |
Learning BSV > Attributes >