data/full_repos/permissive/121451239/BCDToLED.v
1: b'%Warning-IMPLICIT: data/full_repos/permissive/121451239/BCDToLED.v:26: Signal definition not found, creating implicitly: \'W\'\n    assign W = in[3];\n           ^\n                   ... Use "/* verilator lint_off IMPLICIT */" and lint_on around source to disable this message.\n%Warning-IMPLICIT: data/full_repos/permissive/121451239/BCDToLED.v:27: Signal definition not found, creating implicitly: \'X\'\n    assign X = in[2];\n           ^\n%Warning-IMPLICIT: data/full_repos/permissive/121451239/BCDToLED.v:28: Signal definition not found, creating implicitly: \'Y\'\n    assign Y = in[1];\n           ^\n%Warning-IMPLICIT: data/full_repos/permissive/121451239/BCDToLED.v:29: Signal definition not found, creating implicitly: \'Z\'\n    assign Z = in[0];\n           ^\n%Error: Exiting due to 4 warning(s)\n'
module BCDToLED(
    input [3:0] in,
    output [6:0] segs
    );
    
    assign W = in[3];
    assign X = in[2];
    assign Y = in[1];
    assign Z = in[0];
    
    assign segs[0] = (X&(!Y)&(!Z)) | ((!W)&(!X)&(!Y)&Z);
    assign segs[1] = (X&(!Y)&Z) | (X&Y&(!Z));
    assign segs[2] = (!X&Y&!Z);
    assign segs[3] = ((!W)&(!X)&(!Y)&Z) | (X&(!Y)&(!Z)) | (X&Y&Z);
    assign segs[4] = Z | (X&(!Y));
    assign segs[5] = ((!W)&(!X)&Z) | ((!X)&Y) | (Y&Z);
    assign segs[6] = ((!W)&(!X)&(!Y)) | (X&Y&Z);
    
endmodule
module BCDToLED(
    input [3:0] in,
    output [6:0] segs
    );

    
    assign W = in[3];
    assign X = in[2];
    assign Y = in[1];
    assign Z = in[0];
    
    assign segs[0] = (X&(!Y)&(!Z)) | ((!W)&(!X)&(!Y)&Z);
    assign segs[1] = (X&(!Y)&Z) | (X&Y&(!Z));
    assign segs[2] = (!X&Y&!Z);
    assign segs[3] = ((!W)&(!X)&(!Y)&Z) | (X&(!Y)&(!Z)) | (X&Y&Z);
    assign segs[4] = Z | (X&(!Y));
    assign segs[5] = ((!W)&(!X)&Z) | ((!X)&Y) | (Y&Z);
    assign segs[6] = ((!W)&(!X)&(!Y)) | (X&Y&Z);
    
endmodule