data/full_repos/permissive/139767240/CodeSnippetsExamples/Dec-2to4-1.v
 line:25: before: "="
1: b"%Error: data/full_repos/permissive/139767240/CodeSnippetsExamples/Dec-2to4-1.v:25: syntax error, unexpected '=', expecting TYPE-IDENTIFIER\n        for (k = 0; k< = 3; k = k+1)\n                       ^\n%Error: Exiting due to 1 error(s)\n"
module dec2to4 (W, En, Y);
    input [1:0]W;
    input En;
    output reg [0:3] Y;
        
    integer k;
    
    always @(W, En)
        for (k = 0; k< = 3; k = k+1)
            if ((W == k) && (En == 1))
                Y[k] = 1;
            else
                Y[k] = 0;

endmodule
module dec2to4 (W, En, Y);

    input [1:0]W;
    input En;
    output reg [0:3] Y;
        
    integer k;
    
    always @(W, En)
        for (k = 0; k< = 3; k = k+1)
            if ((W == k) && (En == 1))
                Y[k] = 1;
            else
                Y[k] = 0;

endmodule