data/full_repos/permissive/40731079/rtl/sdio_device_stack.v
1: b"%Error: data/full_repos/permissive/40731079/rtl/sdio_device_stack.v:95: Cannot find file containing module: 'sdio_device_card_cnt'\nsdio_device_card_cnt #(\n^~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/40731079/rtl,data/full_repos/permissive/40731079/sdio_device_card_cnt\n             data/full_repos/permissive/40731079/rtl,data/full_repos/permissive/40731079/sdio_device_card_cnt.v\n             data/full_repos/permissive/40731079/rtl,data/full_repos/permissive/40731079/sdio_device_card_cnt.sv\n             sdio_device_card_cnt\n             sdio_device_card_cnt.v\n             sdio_device_card_cnt.sv\n             obj_dir/sdio_device_card_cnt\n             obj_dir/sdio_device_card_cnt.v\n             obj_dir/sdio_device_card_cnt.sv\n%Error: data/full_repos/permissive/40731079/rtl/sdio_device_stack.v:121: Cannot find file containing module: 'sdio_device_phy'\nsdio_device_phy phy(\n^~~~~~~~~~~~~~~\n%Error: Exiting due to 2 error(s)\n"
module sdio_device_stack (

  input               clk,
  input               rst,



  output              ddr_en,
  input               sdio_clk,
  inout               sdio_cmd,
  inout   [3:0]       sdio_data

);



wire          [3:0]   sdio_state;
wire                  sdio_cmd_in;
wire                  sdio_cmd_out;
wire                  sdio_cmd_dir;

wire          [3:0]   sdio_data_in;
wire          [3:0]   sdio_data_out;
wire                  sdio_data_dir;


wire                  spi_phy;
wire                  sd1_phy;
wire                  sd4_phy;


wire                  cmd_phy_idle;
wire                  cmd_stb;
wire                  cmd_crc_stb;
wire          [5:0]   cmd;
wire          [31:0]  cmd_arg;

wire          [127:0] rsps;
wire          [7:0]   rsps_len;

wire                  interrupt;
wire                  read_wait;
wire                  chip_select_n;


wire                  func_dat_rdy;


sdio_device_card_cnt #(
  .NUM_FUNCS        (1                      ),
  .MEM_PRESENT      (0                      ),
  .UHSII_AVAILABLE  (0                      ),
  .IO_OCR           (24'hFFF0               )

) card_controller (
  .sdio_clk         (sdio_clk               ),
  .rst              (rst                    ),

  .func_dat_rdy     (func_dat_rdy           ),

  .cmd_phy_idle     (cmd_phy_idle           ),
  .cmd_stb          (cmd_stb                ),
  .cmd_crc_good_stb (cmd_crc_good_stb       ),
  .cmd              (cmd                    ),
  .cmd_arg          (cmd_arg                ),

  .chip_select_n    (chip_select_n          ),

  .rsps             (rsps                   ),
  .rsps_len         (rsps_len               )
);



sdio_device_phy phy(
  .rst              (rst                    ),


  .spi_phy          (spi_phy                ),
  .sd1_phy          (sd1_phy                ),
  .sd4_phy          (sd4_phy                ),

  .cmd_phy_idle     (cmd_phy_idle           ),


  .cmd_stb          (cmd_stb                ),
  .cmd_crc_good_stb (cmd_crc_good_stb       ),
  .cmd              (cmd                    ),
  .cmd_arg          (cmd_arg                ),

  .rsps             (rsps                   ),
  .rsps_len         (rsps_len               ),

  .interrupt        (interrupt              ),
  .read_wait        (read_wait              ),


  .ddr_en           (ddr_en                 ),
  .sdio_clk         (sdio_clk               ),
  .sdio_cmd_in      (sdio_cmd_in            ),
  .sdio_cmd_out     (sdio_cmd_out           ),
  .sdio_cmd_dir     (sdio_cmd_dir           ),
  .sdio_data_in     (sdio_data_in           ),
  .sdio_data_out    (sdio_data_out          ),
  .sdio_data_dir    (sdio_data_dir          )

);







endmodule
module sdio_device_stack (

  input               clk,
  input               rst,



  output              ddr_en,
  input               sdio_clk,
  inout               sdio_cmd,
  inout   [3:0]       sdio_data

);




wire          [3:0]   sdio_state;
wire                  sdio_cmd_in;
wire                  sdio_cmd_out;
wire                  sdio_cmd_dir;

wire          [3:0]   sdio_data_in;
wire          [3:0]   sdio_data_out;
wire                  sdio_data_dir;


wire                  spi_phy;
wire                  sd1_phy;
wire                  sd4_phy;


wire                  cmd_phy_idle;
wire                  cmd_stb;
wire                  cmd_crc_stb;
wire          [5:0]   cmd;
wire          [31:0]  cmd_arg;

wire          [127:0] rsps;
wire          [7:0]   rsps_len;

wire                  interrupt;
wire                  read_wait;
wire                  chip_select_n;


wire                  func_dat_rdy;


sdio_device_card_cnt #(
  .NUM_FUNCS        (1                      ),
  .MEM_PRESENT      (0                      ),
  .UHSII_AVAILABLE  (0                      ),
  .IO_OCR           (24'hFFF0               )

) card_controller (
  .sdio_clk         (sdio_clk               ),
  .rst              (rst                    ),

  .func_dat_rdy     (func_dat_rdy           ),

  .cmd_phy_idle     (cmd_phy_idle           ),
  .cmd_stb          (cmd_stb                ),
  .cmd_crc_good_stb (cmd_crc_good_stb       ),
  .cmd              (cmd                    ),
  .cmd_arg          (cmd_arg                ),

  .chip_select_n    (chip_select_n          ),

  .rsps             (rsps                   ),
  .rsps_len         (rsps_len               )
);



sdio_device_phy phy(
  .rst              (rst                    ),


  .spi_phy          (spi_phy                ),
  .sd1_phy          (sd1_phy                ),
  .sd4_phy          (sd4_phy                ),

  .cmd_phy_idle     (cmd_phy_idle           ),


  .cmd_stb          (cmd_stb                ),
  .cmd_crc_good_stb (cmd_crc_good_stb       ),
  .cmd              (cmd                    ),
  .cmd_arg          (cmd_arg                ),

  .rsps             (rsps                   ),
  .rsps_len         (rsps_len               ),

  .interrupt        (interrupt              ),
  .read_wait        (read_wait              ),


  .ddr_en           (ddr_en                 ),
  .sdio_clk         (sdio_clk               ),
  .sdio_cmd_in      (sdio_cmd_in            ),
  .sdio_cmd_out     (sdio_cmd_out           ),
  .sdio_cmd_dir     (sdio_cmd_dir           ),
  .sdio_data_in     (sdio_data_in           ),
  .sdio_data_out    (sdio_data_out          ),
  .sdio_data_dir    (sdio_data_dir          )

);







endmodule