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
copilot-bluespec: Update test suite to match new input/output order. Refs #677.
The current Bluespec backend leads to Verilog code that requires manual
manipulations in order to work correctly. Specifically, Copilot externs, which
are inputs to the Copilot monitoring system, are treated as _outputs_ in
Verilog, and Copilot triggers, which can be considered outputs of the
monitoring system, are treated as _inputs_. This is the opposite of the
interface that we would like users to work with, and of what other backends
generate (e.g., C99).
Now that `copilot-bluespec` has been updated to invert the order in which
Verilog inputs and outputs are declared, this commit updates the test suite to
work with the new design. In addition to changing the code to reflect the new
order of inputs and outputs, this also updates the names of some internal
variables from "`input`" to "`input1`". This is because "`input`" is a reserved
keyword in Verilog, and naming a variable "`input`" clashes with the newly
added Verilog-specific pragmas.
0 commit comments