Skip to content

MAP declarations in a distribute block not working #25

@ryu-bu

Description

@ryu-bu

FLR code:

module PCR(
    finput A,
    foutput a_out,
    control c1, c2
);

    flow mixer_in, mixed, incubated;
    
    #MAP "Incubator" "~"

    // load PCR solution
    distribute@(c1) begin 
        if (c1 == 1) begin 
            mixer_in <= A;
            // mix
            #MAP "MIX" "+"
            mixed <= +mixer_in;
            // incubate
            #MAP "Incubator" "~"
            incubated <= ~mixed;
        end
    end

    
    // out
    distribute@(c2) begin 
        if (c2 == 1)
            a_out <= incubated;
    end

endmodule

Error:

line 16:12 extraneous input '#MAP' expecting {'end', '{', ID}
line 17:18 no viable alternative at input 'mixed<='
line 20:22 no viable alternative at input 'incubated<='
line 21:8 mismatched input 'end' expecting 'endmodule'
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