CIDARLAB/pyLFR

MAP declarations in a distribute block not working

ryu-bu opened this issue · 0 comments

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