You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I find when I compile bluespec to Verilog, I find the functions in bluespec got compiled to verilog modules, but not verilog functions. I'm wondering is there a flag/option to specify compile bluespec functions to verilog functions. Thanks
The text was updated successfully, but these errors were encountered:
No, there is no way to preserve a BSV function as a Verilog function.
All BSV functions are normally inlined, and disappear in the generated Verilog.
But see also "Section 14.1.1 noinline" in the BSV Language Reference Guide. This does not do exactly what you're asking, but it does create a single Verilog module with the function as its only method. The function is not inlined at the invocation sites; instead the Verilog module is instantiated and the method is invoked.
Hi,
I find when I compile bluespec to Verilog, I find the functions in bluespec got compiled to verilog modules, but not verilog functions. I'm wondering is there a flag/option to specify compile bluespec functions to verilog functions. Thanks
The text was updated successfully, but these errors were encountered: