Skip to content

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

@ryu-bu

Description

@ryu-bu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions