Skip to content
New issue

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

can't execute && operator in if statement #12

Open
ryu-bu opened this issue Jan 31, 2021 · 0 comments
Open

can't execute && operator in if statement #12

ryu-bu opened this issue Jan 31, 2021 · 0 comments

Comments

@ryu-bu
Copy link
Collaborator

ryu-bu commented Jan 31, 2021

Code;

module seeding(
    control [6:0] c,
    finput buffer, stimuli,
    foutput seeding_out, waste
);

    storage culture;

    distribute@(c[0]) begin 
        if (c[0] == 1 && c[1] == 0)
            culture <= stimuli;
    end
endmodule;

Error message

line 12:22 mismatched input '&&' expecting ')'
line 12:30 mismatched input '==' expecting '<='
Stopping compiler because of syntax errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant