data/full_repos/permissive/188795755/elec_design/release/src/top.v
None: at end of input
1: b"%Error: data/full_repos/permissive/188795755/elec_design/release/src/top.v:34: Cannot find file containing module: 'key'\nkey     key_inst(\n^~~\n        ... Looked in:\n             data/full_repos/permissive/188795755/elec_design/release/src,data/full_repos/permissive/188795755/key\n             data/full_repos/permissive/188795755/elec_design/release/src,data/full_repos/permissive/188795755/key.v\n             data/full_repos/permissive/188795755/elec_design/release/src,data/full_repos/permissive/188795755/key.sv\n             key\n             key.v\n             key.sv\n             obj_dir/key\n             obj_dir/key.v\n             obj_dir/key.sv\n%Error: data/full_repos/permissive/188795755/elec_design/release/src/top.v:41: Cannot find file containing module: 'state'\nstate   state_inst(\n^~~~~\n%Error: data/full_repos/permissive/188795755/elec_design/release/src/top.v:52: Cannot find file containing module: 'motor'\nmotor   motor_inst(\n^~~~~\n%Error: Exiting due to 3 error(s)\n"
module  top(

        input                   sclk                    ,  
        input                   s_rst_n                 ,

        input                   key                     ,
        input                   catcher                 ,
        input                   jockey_r                ,
        input                   jockey_l                ,

        output          [ 3:0]  stepdrive               ,

        output          [ 1:0]  MH                      ,
        output                  GND                     
);




wire                    pi_flag                         ;
wire                    direct                          ;
wire                    enable                          ;







assign  MH      =       {1'b0,1'b1};
assign  GND     =       1'b0;


key     key_inst(
        .sclk                   (sclk                   ),
        .s_rst_n                (s_rst_n                ),
        .key                    (key                    ),
        .po_flag                (pi_flag                )
);

state   state_inst(
        .sclk                   (sclk                   ),
        .s_rst_n                (s_rst_n                ),
        .catcher                (catcher                ),
        .jockey_r               (jockey_r               ),
        .jockey_l               (jockey_l               ),
        .key                    (pi_flag                ),
        .direct                 (direct                 ),
        .enable                 (enable                 )
);

motor   motor_inst(
        .sclk                   (sclk                   ),
        .s_rst_n                (s_rst_n                ),
        .direct                 (direct                 ),
        .stepenable             (enable                 ),
        .stepdrive              (stepdrive              )
);










endmodule
module  top(

        input                   sclk                    ,  
        input                   s_rst_n                 ,

        input                   key                     ,
        input                   catcher                 ,
        input                   jockey_r                ,
        input                   jockey_l                ,

        output          [ 3:0]  stepdrive               ,

        output          [ 1:0]  MH                      ,
        output                  GND                     
);





wire                    pi_flag                         ;
wire                    direct                          ;
wire                    enable                          ;







assign  MH      =       {1'b0,1'b1};
assign  GND     =       1'b0;


key     key_inst(
        .sclk                   (sclk                   ),
        .s_rst_n                (s_rst_n                ),
        .key                    (key                    ),
        .po_flag                (pi_flag                )
);

state   state_inst(
        .sclk                   (sclk                   ),
        .s_rst_n                (s_rst_n                ),
        .catcher                (catcher                ),
        .jockey_r               (jockey_r               ),
        .jockey_l               (jockey_l               ),
        .key                    (pi_flag                ),
        .direct                 (direct                 ),
        .enable                 (enable                 )
);

motor   motor_inst(
        .sclk                   (sclk                   ),
        .s_rst_n                (s_rst_n                ),
        .direct                 (direct                 ),
        .stepenable             (enable                 ),
        .stepdrive              (stepdrive              )
);










endmodule