data/full_repos/permissive/492704601/verilog/rtl/usb1_host/src/top/usb1_host.sv
1: b"%Error: data/full_repos/permissive/492704601/verilog/rtl/usb1_host/src/top/usb1_host.sv:117: Cannot find file containing module: 'async_wb'\nasync_wb  #(.AW (6))\n^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/492704601/verilog/rtl/usb1_host/src/top,data/full_repos/permissive/492704601/async_wb\n             data/full_repos/permissive/492704601/verilog/rtl/usb1_host/src/top,data/full_repos/permissive/492704601/async_wb.v\n             data/full_repos/permissive/492704601/verilog/rtl/usb1_host/src/top,data/full_repos/permissive/492704601/async_wb.sv\n             async_wb\n             async_wb.v\n             async_wb.sv\n             obj_dir/async_wb\n             obj_dir/async_wb.v\n             obj_dir/async_wb.sv\n%Error: data/full_repos/permissive/492704601/verilog/rtl/usb1_host/src/top/usb1_host.sv:148: Cannot find file containing module: 'usbh_core'\nusbh_core  u_core (\n^~~~~~~~~\n%Error: data/full_repos/permissive/492704601/verilog/rtl/usb1_host/src/top/usb1_host.sv:185: Cannot find file containing module: 'usb_fs_phy'\nusb_fs_phy  u_phy(\n^~~~~~~~~~\n%Error: data/full_repos/permissive/492704601/verilog/rtl/usb1_host/src/top/usb1_host.sv:216: Cannot find file containing module: 'usb_transceiver'\n usb_transceiver u_usb_xcvr (\n ^~~~~~~~~~~~~~~\n%Error: Exiting due to 4 error(s)\n"
module usb1_host (
    input  logic           usb_clk_i   ,
    input  logic           usb_rstn_i  ,


    input                  in_dp   ,
    input                  in_dn   ,

    output                 out_dp   ,
    output                 out_dn   ,
    output                 out_tx_oen,


    input   logic          wbm_rst_n   ,
    input   logic          wbm_clk_i   ,
    input   logic          wbm_stb_i   ,
    input   logic [5:0]    wbm_adr_i   ,
    input   logic          wbm_we_i    ,
    input   logic [31:0]   wbm_dat_i   ,
    input   logic [3:0]    wbm_sel_i   ,
    output  logic [31:0]   wbm_dat_o   ,
    output  logic          wbm_ack_o   ,
    output  logic          wbm_err_o   ,


    output                 usb_intr_o


    );

    logic  [7:0]           utmi_data_in_i;
    logic                  utmi_txready_i;
    logic                  utmi_rxvalid_i;
    logic                  utmi_rxactive_i;
    logic                  utmi_rxerror_i;
    logic  [1:0]           utmi_linestate_i;

    logic [7:0]            utmi_data_out_o;
    logic                  utmi_txvalid_o;
    logic [1:0]            utmi_op_mode_o;
    logic [1:0]            utmi_xcvrselect_o;
    logic                  utmi_termselect_o;
    logic                  utmi_dppulldown_o;
    logic                  utmi_dmpulldown_o;
    logic                  usb_pads_tx_dp_w;
    logic                  usb_pads_tx_oen_w;
    logic                  usb_pads_rx_dn_w;
    logic                  usb_pads_tx_dn_w;
    logic                  usb_pads_rx_rcv_w;
    logic                  usb_pads_rx_dp_w;
    logic                  usb_xcvr_mode_w = 1'h1;


    logic                  reg_cs;
    logic                  reg_wr;
    logic [5:0]            reg_addr;
    logic [31:0]           reg_wdata;
    logic [3:0]            reg_be;


    logic [31:0]           reg_rdata;
    logic                  reg_ack;



async_wb  #(.AW (6))
     u_async_wb(


       .wbm_rst_n        (wbm_rst_n            ),
       .wbm_clk_i        (wbm_clk_i            ),
       .wbm_cyc_i        (wbm_stb_i            ),
       .wbm_stb_i        (wbm_stb_i            ),
       .wbm_adr_i        (wbm_adr_i            ),
       .wbm_we_i         (wbm_we_i             ),
       .wbm_dat_i        (wbm_dat_i            ),
       .wbm_sel_i        (wbm_sel_i            ),
       .wbm_dat_o        (wbm_dat_o            ),
       .wbm_ack_o        (wbm_ack_o            ),
       .wbm_err_o        (wbm_err_o            ),


       .wbs_rst_n        (usb_rstn_i           ),
       .wbs_clk_i        (usb_clk_i            ),
       .wbs_cyc_o        (                     ),
       .wbs_stb_o        (reg_cs               ),
       .wbs_adr_o        (reg_addr             ),
       .wbs_we_o         (reg_wr               ),
       .wbs_dat_o        (reg_wdata            ),
       .wbs_sel_o        (reg_be               ),
       .wbs_dat_i        (reg_rdata            ),
       .wbs_ack_i        (reg_ack              ),
       .wbs_err_i        (1'b0                 )

    );

usbh_core  u_core (

    .clk_i               (usb_clk_i           ),
    .rstn_i              (usb_rstn_i          ),

    .reg_cs              (reg_cs              ),
    .reg_wr              (reg_wr              ),
    .reg_addr            (reg_addr            ),
    .reg_wdata           (reg_wdata           ),
    .reg_be              (reg_be              ),


    .reg_rdata           (reg_rdata           ),
    .reg_ack             (reg_ack             ),


    .intr_o              (usb_intr_o          ),

    .utmi_data_in_i      (utmi_data_in_i      ),
    .utmi_rxvalid_i      (utmi_rxvalid_i      ),
    .utmi_rxactive_i     (utmi_rxactive_i     ),
    .utmi_rxerror_i      (utmi_rxerror_i      ),
    .utmi_linestate_i    (utmi_linestate_i    ),

    .utmi_txready_i      (utmi_txready_i      ),
    .utmi_data_out_o     (utmi_data_out_o     ),
    .utmi_txvalid_o      (utmi_txvalid_o      ),

    .utmi_op_mode_o      (utmi_op_mode_o      ),
    .utmi_xcvrselect_o   (utmi_xcvrselect_o   ),
    .utmi_termselect_o   (utmi_termselect_o   ),
    .utmi_dppulldown_o   (utmi_dppulldown_o   ),
    .utmi_dmpulldown_o   (utmi_dmpulldown_o   )
);



usb_fs_phy  u_phy(

         .clk_i               (usb_clk_i           ),
         .rstn_i              (usb_rstn_i          ),
         .utmi_data_out_i     (utmi_data_out_o     ),
         .utmi_txvalid_i      (utmi_txvalid_o      ),
         .utmi_op_mode_i      (utmi_op_mode_o      ),
         .utmi_xcvrselect_i   (utmi_xcvrselect_o   ),
         .utmi_termselect_i   (utmi_termselect_o   ),
         .utmi_dppulldown_i   (utmi_dppulldown_o   ),
         .utmi_dmpulldown_i   (utmi_dmpulldown_o   ),
         .usb_rx_rcv_i        (usb_pads_rx_rcv_w   ),
         .usb_rx_dp_i         (usb_pads_rx_dp_w    ),
         .usb_rx_dn_i         (usb_pads_rx_dn_w    ),
         .usb_reset_assert_i  ( 1'b0               ),


         .utmi_data_in_o     (utmi_data_in_i      ),
         .utmi_txready_o     (utmi_txready_i      ),
         .utmi_rxvalid_o     (utmi_rxvalid_i      ),
         .utmi_rxactive_o    (utmi_rxactive_i     ),
         .utmi_rxerror_o     (utmi_rxerror_i      ),
         .utmi_linestate_o   (utmi_linestate_i    ),
         .usb_tx_dp_o        (usb_pads_tx_dp_w    ),
         .usb_tx_dn_o        (usb_pads_tx_dn_w    ),
         .usb_tx_oen_o       (usb_pads_tx_oen_w   ),
         .usb_reset_detect_o (                    ),
         .usb_en_o           (                    )
    );


 usb_transceiver u_usb_xcvr (

         .usb_phy_tx_dp_i    (usb_pads_tx_dp_w   ),
         .usb_phy_tx_dn_i    (usb_pads_tx_dn_w   ),
         .usb_phy_tx_oen_i   (usb_pads_tx_oen_w  ),
         .mode_i             (usb_xcvr_mode_w    ),

	 .out_dp             (out_dp             ),
         .out_dn             (out_dn             ),
	 .out_tx_oen         (out_tx_oen         ),

         .in_dp              (in_dp              ),
         .in_dn              (in_dn              ),



         .usb_phy_rx_rcv_o  (usb_pads_rx_rcv_w   ),
         .usb_phy_rx_dp_o   (usb_pads_rx_dp_w    ),
         .usb_phy_rx_dn_o   (usb_pads_rx_dn_w    )
);


endmodule
module usb1_host (
    input  logic           usb_clk_i   ,
    input  logic           usb_rstn_i  ,


    input                  in_dp   ,
    input                  in_dn   ,

    output                 out_dp   ,
    output                 out_dn   ,
    output                 out_tx_oen,


    input   logic          wbm_rst_n   ,
    input   logic          wbm_clk_i   ,
    input   logic          wbm_stb_i   ,
    input   logic [5:0]    wbm_adr_i   ,
    input   logic          wbm_we_i    ,
    input   logic [31:0]   wbm_dat_i   ,
    input   logic [3:0]    wbm_sel_i   ,
    output  logic [31:0]   wbm_dat_o   ,
    output  logic          wbm_ack_o   ,
    output  logic          wbm_err_o   ,


    output                 usb_intr_o


    );


    logic  [7:0]           utmi_data_in_i;
    logic                  utmi_txready_i;
    logic                  utmi_rxvalid_i;
    logic                  utmi_rxactive_i;
    logic                  utmi_rxerror_i;
    logic  [1:0]           utmi_linestate_i;

    logic [7:0]            utmi_data_out_o;
    logic                  utmi_txvalid_o;
    logic [1:0]            utmi_op_mode_o;
    logic [1:0]            utmi_xcvrselect_o;
    logic                  utmi_termselect_o;
    logic                  utmi_dppulldown_o;
    logic                  utmi_dmpulldown_o;
    logic                  usb_pads_tx_dp_w;
    logic                  usb_pads_tx_oen_w;
    logic                  usb_pads_rx_dn_w;
    logic                  usb_pads_tx_dn_w;
    logic                  usb_pads_rx_rcv_w;
    logic                  usb_pads_rx_dp_w;
    logic                  usb_xcvr_mode_w = 1'h1;


    logic                  reg_cs;
    logic                  reg_wr;
    logic [5:0]            reg_addr;
    logic [31:0]           reg_wdata;
    logic [3:0]            reg_be;


    logic [31:0]           reg_rdata;
    logic                  reg_ack;



async_wb  #(.AW (6))
     u_async_wb(


       .wbm_rst_n        (wbm_rst_n            ),
       .wbm_clk_i        (wbm_clk_i            ),
       .wbm_cyc_i        (wbm_stb_i            ),
       .wbm_stb_i        (wbm_stb_i            ),
       .wbm_adr_i        (wbm_adr_i            ),
       .wbm_we_i         (wbm_we_i             ),
       .wbm_dat_i        (wbm_dat_i            ),
       .wbm_sel_i        (wbm_sel_i            ),
       .wbm_dat_o        (wbm_dat_o            ),
       .wbm_ack_o        (wbm_ack_o            ),
       .wbm_err_o        (wbm_err_o            ),


       .wbs_rst_n        (usb_rstn_i           ),
       .wbs_clk_i        (usb_clk_i            ),
       .wbs_cyc_o        (                     ),
       .wbs_stb_o        (reg_cs               ),
       .wbs_adr_o        (reg_addr             ),
       .wbs_we_o         (reg_wr               ),
       .wbs_dat_o        (reg_wdata            ),
       .wbs_sel_o        (reg_be               ),
       .wbs_dat_i        (reg_rdata            ),
       .wbs_ack_i        (reg_ack              ),
       .wbs_err_i        (1'b0                 )

    );

usbh_core  u_core (

    .clk_i               (usb_clk_i           ),
    .rstn_i              (usb_rstn_i          ),

    .reg_cs              (reg_cs              ),
    .reg_wr              (reg_wr              ),
    .reg_addr            (reg_addr            ),
    .reg_wdata           (reg_wdata           ),
    .reg_be              (reg_be              ),


    .reg_rdata           (reg_rdata           ),
    .reg_ack             (reg_ack             ),


    .intr_o              (usb_intr_o          ),

    .utmi_data_in_i      (utmi_data_in_i      ),
    .utmi_rxvalid_i      (utmi_rxvalid_i      ),
    .utmi_rxactive_i     (utmi_rxactive_i     ),
    .utmi_rxerror_i      (utmi_rxerror_i      ),
    .utmi_linestate_i    (utmi_linestate_i    ),

    .utmi_txready_i      (utmi_txready_i      ),
    .utmi_data_out_o     (utmi_data_out_o     ),
    .utmi_txvalid_o      (utmi_txvalid_o      ),

    .utmi_op_mode_o      (utmi_op_mode_o      ),
    .utmi_xcvrselect_o   (utmi_xcvrselect_o   ),
    .utmi_termselect_o   (utmi_termselect_o   ),
    .utmi_dppulldown_o   (utmi_dppulldown_o   ),
    .utmi_dmpulldown_o   (utmi_dmpulldown_o   )
);



usb_fs_phy  u_phy(

         .clk_i               (usb_clk_i           ),
         .rstn_i              (usb_rstn_i          ),
         .utmi_data_out_i     (utmi_data_out_o     ),
         .utmi_txvalid_i      (utmi_txvalid_o      ),
         .utmi_op_mode_i      (utmi_op_mode_o      ),
         .utmi_xcvrselect_i   (utmi_xcvrselect_o   ),
         .utmi_termselect_i   (utmi_termselect_o   ),
         .utmi_dppulldown_i   (utmi_dppulldown_o   ),
         .utmi_dmpulldown_i   (utmi_dmpulldown_o   ),
         .usb_rx_rcv_i        (usb_pads_rx_rcv_w   ),
         .usb_rx_dp_i         (usb_pads_rx_dp_w    ),
         .usb_rx_dn_i         (usb_pads_rx_dn_w    ),
         .usb_reset_assert_i  ( 1'b0               ),


         .utmi_data_in_o     (utmi_data_in_i      ),
         .utmi_txready_o     (utmi_txready_i      ),
         .utmi_rxvalid_o     (utmi_rxvalid_i      ),
         .utmi_rxactive_o    (utmi_rxactive_i     ),
         .utmi_rxerror_o     (utmi_rxerror_i      ),
         .utmi_linestate_o   (utmi_linestate_i    ),
         .usb_tx_dp_o        (usb_pads_tx_dp_w    ),
         .usb_tx_dn_o        (usb_pads_tx_dn_w    ),
         .usb_tx_oen_o       (usb_pads_tx_oen_w   ),
         .usb_reset_detect_o (                    ),
         .usb_en_o           (                    )
    );


 usb_transceiver u_usb_xcvr (

         .usb_phy_tx_dp_i    (usb_pads_tx_dp_w   ),
         .usb_phy_tx_dn_i    (usb_pads_tx_dn_w   ),
         .usb_phy_tx_oen_i   (usb_pads_tx_oen_w  ),
         .mode_i             (usb_xcvr_mode_w    ),

	 .out_dp             (out_dp             ),
         .out_dn             (out_dn             ),
	 .out_tx_oen         (out_tx_oen         ),

         .in_dp              (in_dp              ),
         .in_dn              (in_dn              ),



         .usb_phy_rx_rcv_o  (usb_pads_rx_rcv_w   ),
         .usb_phy_rx_dp_o   (usb_pads_rx_dp_w    ),
         .usb_phy_rx_dn_o   (usb_pads_rx_dn_w    )
);


endmodule