data/full_repos/permissive/516679177/TOP/DEC_INPUT_KEY.v
1: b"%Error: data/full_repos/permissive/516679177/TOP/DEC_INPUT_KEY.v:25: Cannot find file containing module: 'DFF'\n    DFF d0(clk, reset, s0v, s0);\n    ^~~\n        ... Looked in:\n             data/full_repos/permissive/516679177/TOP,data/full_repos/permissive/516679177/DFF\n             data/full_repos/permissive/516679177/TOP,data/full_repos/permissive/516679177/DFF.v\n             data/full_repos/permissive/516679177/TOP,data/full_repos/permissive/516679177/DFF.sv\n             DFF\n             DFF.v\n             DFF.sv\n             obj_dir/DFF\n             obj_dir/DFF.v\n             obj_dir/DFF.sv\n%Error: data/full_repos/permissive/516679177/TOP/DEC_INPUT_KEY.v:26: Cannot find file containing module: 'DFF'\n    DFF d1(clk, reset, s1v, s1);\n    ^~~\n%Error: data/full_repos/permissive/516679177/TOP/DEC_INPUT_KEY.v:27: Cannot find file containing module: 'DFF'\n    DFF d2(clk, reset, s2v, s2);\n    ^~~\n%Error: Exiting due to 3 error(s)\n"
module DEC_INPUT_KEY(
    input input_key,
    input valid_cmd,
    input reset,
    input clk,
    output active,
    output mode);

    localparam IDLE = 3'b 000;
    localparam S1 = 3'b 001;
    localparam S2 = 3'b 011;
    localparam S3 = 3'b 010;
    localparam S4 = 3'b 110;
    localparam S5 = 3'b 111;
    localparam S6 = 3'b 101;


    wire s0, s1, s2;
    wire s0v, s1v, s2v ;

    assign s2v = ~s2 & s1 & ~s0 & valid_cmd & ~input_key | s2 & s1 & ~s0 & valid_cmd | s2 & s0;
    assign s1v = ~s2 & ~s1 & s0 & valid_cmd & ~input_key | ~s2 & s1 & s0 & valid_cmd & input_key | s1 & ~s0 & valid_cmd & ~input_key | s2 & s1 & s0;
    assign s0v = ~s2 & ~s1 & ~s0 & valid_cmd & input_key | ~s2 & ~s1 & s0 & valid_cmd & ~input_key | s2 & s1 & ~s0 & valid_cmd | s2 & s0;

    DFF d0(clk, reset, s0v, s0);
    DFF d1(clk, reset, s1v, s1);
    DFF d2(clk, reset, s2v, s2);

    assign mode = s2 & ~s1 & s0;
    assign active = s2 & s0;

endmodule
module DEC_INPUT_KEY(
    input input_key,
    input valid_cmd,
    input reset,
    input clk,
    output active,
    output mode);


    localparam IDLE = 3'b 000;
    localparam S1 = 3'b 001;
    localparam S2 = 3'b 011;
    localparam S3 = 3'b 010;
    localparam S4 = 3'b 110;
    localparam S5 = 3'b 111;
    localparam S6 = 3'b 101;


    wire s0, s1, s2;
    wire s0v, s1v, s2v ;

    assign s2v = ~s2 & s1 & ~s0 & valid_cmd & ~input_key | s2 & s1 & ~s0 & valid_cmd | s2 & s0;
    assign s1v = ~s2 & ~s1 & s0 & valid_cmd & ~input_key | ~s2 & s1 & s0 & valid_cmd & input_key | s1 & ~s0 & valid_cmd & ~input_key | s2 & s1 & s0;
    assign s0v = ~s2 & ~s1 & ~s0 & valid_cmd & input_key | ~s2 & ~s1 & s0 & valid_cmd & ~input_key | s2 & s1 & ~s0 & valid_cmd | s2 & s0;

    DFF d0(clk, reset, s0v, s0);
    DFF d1(clk, reset, s1v, s1);
    DFF d2(clk, reset, s2v, s2);

    assign mode = s2 & ~s1 & s0;
    assign active = s2 & s0;

endmodule