data/full_repos/permissive/492704601/verilog/rtl/sspim/src/sspim_top.sv
1: b"%Error: data/full_repos/permissive/492704601/verilog/rtl/sspim/src/sspim_top.sv:130: Cannot find file containing module: 'sspim_if'\nsspim_if  u_spi_if\n^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/492704601/verilog/rtl/sspim/src,data/full_repos/permissive/492704601/sspim_if\n             data/full_repos/permissive/492704601/verilog/rtl/sspim/src,data/full_repos/permissive/492704601/sspim_if.v\n             data/full_repos/permissive/492704601/verilog/rtl/sspim/src,data/full_repos/permissive/492704601/sspim_if.sv\n             sspim_if\n             sspim_if.v\n             sspim_if.sv\n             obj_dir/sspim_if\n             obj_dir/sspim_if.v\n             obj_dir/sspim_if.sv\n%Error: data/full_repos/permissive/492704601/verilog/rtl/sspim/src/sspim_top.sv:154: Cannot find file containing module: 'sspim_ctl'\nsspim_ctl  u_spi_ctrl\n^~~~~~~~~\n%Error: data/full_repos/permissive/492704601/verilog/rtl/sspim/src/sspim_top.sv:185: Cannot find file containing module: 'sspim_cfg'\nsspim_cfg u_cfg (\n^~~~~~~~~\n%Error: Exiting due to 3 error(s)\n"
module sspim_top (
           input  logic         clk          ,
           input  logic         reset_n      ,          
           
           



           input logic          reg_cs       ,
           input logic          reg_wr       ,
           input logic [7:0]    reg_addr     ,
           input logic [31:0]   reg_wdata    ,
           input logic [3:0]    reg_be       ,
           

           output logic [31:0]  reg_rdata    ,
           output logic         reg_ack      ,
           



           
           output logic        sck           ,
           output logic        so            ,
           input  logic        si            ,
           output logic  [3:0] ssn

           );
 





logic [7:0]          byte_in                       ;
logic [7:0]          byte_out                      ;


logic  [1:0]         cfg_tgt_sel                   ;

logic                cfg_op_req                    ;
logic                cfg_endian                    ;
logic  [1:0]         cfg_op_type                   ;
logic  [1:0]         cfg_transfer_size             ;
logic  [5:0]         cfg_sck_period                ;
logic  [4:0]         cfg_sck_cs_period             ;
logic  [7:0]         cfg_cs_byte                   ;
logic  [31:0]        cfg_datain                    ;
logic  [31:0]        cfg_dataout                   ;
logic                hware_op_done                 ;


sspim_if  u_spi_if
          (
          . clk                         (clk                          ), 
          . reset_n                     (reset_n                      ),


          . sck_pe                      (sck_pe                       ),
          . sck_int                     (sck_int                      ),
          . cs_int_n                    (cs_int_n                     ),
          . byte_in                     (byte_in                      ),
          . load_byte                   (load_byte                    ),
          . byte_out                    (byte_out                     ),
          . shift_out                   (shift_out                    ),
          . shift_in                    (shift_in                     ),

          . cfg_tgt_sel                 (cfg_tgt_sel                  ),

          . sck                         (sck                          ),
          . so                          (so                           ),
          . si                          (si                           ),
          . cs_n                        (ssn                          )
           );


sspim_ctl  u_spi_ctrl
       ( 
          . clk                         (clk                          ),
          . reset_n                     (reset_n                      ),

          . cfg_op_req                  (cfg_op_req                   ),
          . cfg_endian                  (cfg_endian                   ),
          . cfg_op_type                 (cfg_op_type                  ),
          . cfg_transfer_size           (cfg_transfer_size            ),
          . cfg_sck_period              (cfg_sck_period               ),
          . cfg_sck_cs_period           (cfg_sck_cs_period            ),
          . cfg_cs_byte                 (cfg_cs_byte                  ),
          . cfg_datain                  (cfg_datain                   ),
          . cfg_dataout                 (cfg_dataout                  ),
          . op_done                     (hware_op_done                ),

          . sck_int                     (sck_int                      ),
          . cs_int_n                    (cs_int_n                     ),
          . sck_pe                      (sck_pe                       ),
          . sck_ne                      (sck_ne                       ),
          . shift_out                   (shift_out                    ),
          . shift_in                    (shift_in                     ),
          . load_byte                   (load_byte                    ),
          . byte_out                    (byte_out                     ),
          . byte_in                     (byte_in                      )
         
         );




sspim_cfg u_cfg (

          . mclk                        (clk                          ),
          . reset_n                     (reset_n                      ),


          . 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                      ),



          . cfg_tgt_sel                 (cfg_tgt_sel                  ),
          . cfg_op_req                  (cfg_op_req                   ),
          . cfg_endian                  (cfg_endian                   ),
          . cfg_op_type                 (cfg_op_type                  ),
          . cfg_transfer_size           (cfg_transfer_size            ),
          . cfg_sck_period              (cfg_sck_period               ),
          . cfg_sck_cs_period           (cfg_sck_cs_period            ),
          . cfg_cs_byte                 (cfg_cs_byte                  ),
          . cfg_datain                  (cfg_datain                   ),
          . cfg_dataout                 (cfg_dataout                  ),
          . hware_op_done               (hware_op_done                )

        );

endmodule
module sspim_top (
           input  logic         clk          ,
           input  logic         reset_n      ,          
           
           



           input logic          reg_cs       ,
           input logic          reg_wr       ,
           input logic [7:0]    reg_addr     ,
           input logic [31:0]   reg_wdata    ,
           input logic [3:0]    reg_be       ,
           

           output logic [31:0]  reg_rdata    ,
           output logic         reg_ack      ,
           



           
           output logic        sck           ,
           output logic        so            ,
           input  logic        si            ,
           output logic  [3:0] ssn

           );

 





logic [7:0]          byte_in                       ;
logic [7:0]          byte_out                      ;


logic  [1:0]         cfg_tgt_sel                   ;

logic                cfg_op_req                    ;
logic                cfg_endian                    ;
logic  [1:0]         cfg_op_type                   ;
logic  [1:0]         cfg_transfer_size             ;
logic  [5:0]         cfg_sck_period                ;
logic  [4:0]         cfg_sck_cs_period             ;
logic  [7:0]         cfg_cs_byte                   ;
logic  [31:0]        cfg_datain                    ;
logic  [31:0]        cfg_dataout                   ;
logic                hware_op_done                 ;


sspim_if  u_spi_if
          (
          . clk                         (clk                          ), 
          . reset_n                     (reset_n                      ),


          . sck_pe                      (sck_pe                       ),
          . sck_int                     (sck_int                      ),
          . cs_int_n                    (cs_int_n                     ),
          . byte_in                     (byte_in                      ),
          . load_byte                   (load_byte                    ),
          . byte_out                    (byte_out                     ),
          . shift_out                   (shift_out                    ),
          . shift_in                    (shift_in                     ),

          . cfg_tgt_sel                 (cfg_tgt_sel                  ),

          . sck                         (sck                          ),
          . so                          (so                           ),
          . si                          (si                           ),
          . cs_n                        (ssn                          )
           );


sspim_ctl  u_spi_ctrl
       ( 
          . clk                         (clk                          ),
          . reset_n                     (reset_n                      ),

          . cfg_op_req                  (cfg_op_req                   ),
          . cfg_endian                  (cfg_endian                   ),
          . cfg_op_type                 (cfg_op_type                  ),
          . cfg_transfer_size           (cfg_transfer_size            ),
          . cfg_sck_period              (cfg_sck_period               ),
          . cfg_sck_cs_period           (cfg_sck_cs_period            ),
          . cfg_cs_byte                 (cfg_cs_byte                  ),
          . cfg_datain                  (cfg_datain                   ),
          . cfg_dataout                 (cfg_dataout                  ),
          . op_done                     (hware_op_done                ),

          . sck_int                     (sck_int                      ),
          . cs_int_n                    (cs_int_n                     ),
          . sck_pe                      (sck_pe                       ),
          . sck_ne                      (sck_ne                       ),
          . shift_out                   (shift_out                    ),
          . shift_in                    (shift_in                     ),
          . load_byte                   (load_byte                    ),
          . byte_out                    (byte_out                     ),
          . byte_in                     (byte_in                      )
         
         );




sspim_cfg u_cfg (

          . mclk                        (clk                          ),
          . reset_n                     (reset_n                      ),


          . 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                      ),



          . cfg_tgt_sel                 (cfg_tgt_sel                  ),
          . cfg_op_req                  (cfg_op_req                   ),
          . cfg_endian                  (cfg_endian                   ),
          . cfg_op_type                 (cfg_op_type                  ),
          . cfg_transfer_size           (cfg_transfer_size            ),
          . cfg_sck_period              (cfg_sck_period               ),
          . cfg_sck_cs_period           (cfg_sck_cs_period            ),
          . cfg_cs_byte                 (cfg_cs_byte                  ),
          . cfg_datain                  (cfg_datain                   ),
          . cfg_dataout                 (cfg_dataout                  ),
          . hware_op_done               (hware_op_done                )

        );

endmodule