data/full_repos/permissive/469509877/rtl/GapStateMachine.v
1: b"%Error: data/full_repos/permissive/469509877/rtl/GapStateMachine.v:39: Cannot find file containing module: 'GapStateMachineLogic'\n    GapStateMachineLogic GapStateMachineLogic(.btnUDLR(btnUDLR), .btnC(btnC), .GapWallDetect(GapWallDetect), .SlugRedDetect(SlugRedDetect), \n    ^~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/469509877/rtl,data/full_repos/permissive/469509877/GapStateMachineLogic\n             data/full_repos/permissive/469509877/rtl,data/full_repos/permissive/469509877/GapStateMachineLogic.v\n             data/full_repos/permissive/469509877/rtl,data/full_repos/permissive/469509877/GapStateMachineLogic.sv\n             GapStateMachineLogic\n             GapStateMachineLogic.v\n             GapStateMachineLogic.sv\n             obj_dir/GapStateMachineLogic\n             obj_dir/GapStateMachineLogic.v\n             obj_dir/GapStateMachineLogic.sv\n%Error: data/full_repos/permissive/469509877/rtl/GapStateMachine.v:42: Cannot find file containing module: 'FDRE'\n        FDRE #(.INIT(1'b1)) Q0_FF (.C(clk), .CE(1'b1), .D(D[0]), .Q(Q[0]));\n        ^~~~\n%Error: data/full_repos/permissive/469509877/rtl/GapStateMachine.v:43: Cannot find file containing module: 'FDRE'\n        FDRE #(.INIT(1'b0)) Q1_FF (.C(clk), .CE(1'b1), .D(D[1]), .Q(Q[1]));\n        ^~~~\n%Error: data/full_repos/permissive/469509877/rtl/GapStateMachine.v:44: Cannot find file containing module: 'FDRE'\n        FDRE #(.INIT(1'b0)) Q2_FF (.C(clk), .CE(1'b1), .D(D[2]), .Q(Q[2]));\n        ^~~~\n%Error: data/full_repos/permissive/469509877/rtl/GapStateMachine.v:45: Cannot find file containing module: 'FDRE'\n        FDRE #(.INIT(1'b0)) Q3_FF (.C(clk), .CE(1'b1), .D(D[3]), .Q(Q[3]));\n        ^~~~\n%Error: Exiting due to 5 error(s)\n"
module GapStateMachine(
    input clk,
    input btnUDLR,
    input btnC,
    input GapWallDetect,
    input SlugRedDetect,
    output load,
    output reset,
    output dir1,
    output dir2,
    output flash    
    );
    
    wire [3:0] Q;
    wire [3:0] D;
    
    GapStateMachineLogic GapStateMachineLogic(.btnUDLR(btnUDLR), .btnC(btnC), .GapWallDetect(GapWallDetect), .SlugRedDetect(SlugRedDetect), 
                                              .load(load), .reset(reset), .dir1(dir1), .dir2(dir2), .flash(flash), .Q(Q), .D(D));
    
        FDRE #(.INIT(1'b1)) Q0_FF (.C(clk), .CE(1'b1), .D(D[0]), .Q(Q[0]));
        FDRE #(.INIT(1'b0)) Q1_FF (.C(clk), .CE(1'b1), .D(D[1]), .Q(Q[1]));
        FDRE #(.INIT(1'b0)) Q2_FF (.C(clk), .CE(1'b1), .D(D[2]), .Q(Q[2]));
        FDRE #(.INIT(1'b0)) Q3_FF (.C(clk), .CE(1'b1), .D(D[3]), .Q(Q[3]));
endmodule
module GapStateMachine(
    input clk,
    input btnUDLR,
    input btnC,
    input GapWallDetect,
    input SlugRedDetect,
    output load,
    output reset,
    output dir1,
    output dir2,
    output flash    
    );

    
    wire [3:0] Q;
    wire [3:0] D;
    
    GapStateMachineLogic GapStateMachineLogic(.btnUDLR(btnUDLR), .btnC(btnC), .GapWallDetect(GapWallDetect), .SlugRedDetect(SlugRedDetect), 
                                              .load(load), .reset(reset), .dir1(dir1), .dir2(dir2), .flash(flash), .Q(Q), .D(D));
    
        FDRE #(.INIT(1'b1)) Q0_FF (.C(clk), .CE(1'b1), .D(D[0]), .Q(Q[0]));
        FDRE #(.INIT(1'b0)) Q1_FF (.C(clk), .CE(1'b1), .D(D[1]), .Q(Q[1]));
        FDRE #(.INIT(1'b0)) Q2_FF (.C(clk), .CE(1'b1), .D(D[2]), .Q(Q[2]));
        FDRE #(.INIT(1'b0)) Q3_FF (.C(clk), .CE(1'b1), .D(D[3]), .Q(Q[3]));
endmodule