data/full_repos/permissive/156539908/gray/gray.v
[Errno 2] No such file or directory: 'preprocess.output'
data/verilator_xmls/46384b8e-54c1-4876-8e03-e6a92b77755b.xml
module to_binary (
    input        clk,
    input        enable,
    input  [3:0] gray,
    output [3:0] binary
    );

    reg [3:0] binary_reg;

    always @(posedge clk)
        if (enable)
            binary_reg <= {
                ^gray[3:3],
                ^gray[3:2],
                ^gray[3:1],
                ^gray[3:0]
            };

    assign binary = binary_reg;

endmodule
module to_binary (
    input        clk,
    input        enable,
    input  [3:0] gray,
    output [3:0] binary
    );


    reg [3:0] binary_reg;

    always @(posedge clk)
        if (enable)
            binary_reg <= {
                ^gray[3:3],
                ^gray[3:2],
                ^gray[3:1],
                ^gray[3:0]
            };

    assign binary = binary_reg;

endmodule