We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To translate
module MaybePlus where maybe_plus :: Maybe Int -> Maybe Int -> Maybe Int maybe_plus (Just a) (Just b) = Just (a + b) maybe_plus _ _ = Nothing
to
typedef struct { logic ctor; logic [63 : 0] body; } MaybeInt; module maybe_plus(MaybeInt a, MaybeInt b, output MaybeInt o); assign o.ctor = a.ctor && b.ctor; assign o.body = o.ctor ? a.body + b.body : 'x; endmodule
The text was updated successfully, but these errors were encountered:
yjwen
No branches or pull requests
To translate
to
The text was updated successfully, but these errors were encountered: