data/full_repos/permissive/208741034/eeprom/rtl/eeprom_top.v
1: b"%Error: data/full_repos/permissive/208741034/eeprom/rtl/eeprom_top.v:35: Cannot find file containing module: 'eeprom_rw'\neeprom_rw u_e2prom_rw(\n^~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/208741034/eeprom/rtl,data/full_repos/permissive/208741034/eeprom_rw\n             data/full_repos/permissive/208741034/eeprom/rtl,data/full_repos/permissive/208741034/eeprom_rw.v\n             data/full_repos/permissive/208741034/eeprom/rtl,data/full_repos/permissive/208741034/eeprom_rw.sv\n             eeprom_rw\n             eeprom_rw.v\n             eeprom_rw.sv\n             obj_dir/eeprom_rw\n             obj_dir/eeprom_rw.v\n             obj_dir/eeprom_rw.sv\n%Error: data/full_repos/permissive/208741034/eeprom/rtl/eeprom_top.v:51: Cannot find file containing module: 'i2c_driver'\ni2c_driver #(\n^~~~~~~~~~\n%Error: data/full_repos/permissive/208741034/eeprom/rtl/eeprom_top.v:74: Cannot find file containing module: 'led_alarm'\nled_alarm #(.L_TIME(L_TIME  )      \n^~~~~~~~~\n%Error: Exiting due to 3 error(s)\n"
module eeprom_top(

    input               sys_clk    ,
    input               sys_rst_n  ,

    output              rom_scl    ,
    inout               rom_sda    ,

    output   [3:0]      led
);


parameter    SLAVE_ADDR =  7'b1010000   ;
parameter    BIT_CTRL   =  1'b1         ;
parameter    CLK_FREQ   = 26'd50_000_000;
parameter    I2C_FREQ   = 18'd250_000   ;
parameter    L_TIME     = 17'd125_000   ;


wire           clk       ;
wire           i2c_exec  ;
wire   [15:0]  i2c_addr  ;
wire   [ 7:0]  i2c_data_w;
wire           i2c_done  ;
wire           i2c_rh_wl ;
wire   [ 7:0]  i2c_data_r;
wire           error_flag;






eeprom_rw u_e2prom_rw(

    .clk         (clk       ),
    .rst_n       (sys_rst_n ),

    .i2c_exec    (i2c_exec  ),
    .i2c_rh_wl   (i2c_rh_wl ),
    .i2c_addr    (i2c_addr  ),
    .i2c_data_w  (i2c_data_w),
    .i2c_data_r  (i2c_data_r),
    .i2c_done    (i2c_done  ),

    .error_flag  (error_flag)
);


i2c_driver #(
    .SLAVE_ADDR  (SLAVE_ADDR),
    .CLK_FREQ    (CLK_FREQ  ),
    .I2C_FREQ    (I2C_FREQ  )
) u_i2c_driver(

    .clk         (sys_clk   ),
    .rst_n       (sys_rst_n ),

    .i2c_exec    (i2c_exec  ),
    .bit_ctrl    (BIT_CTRL  ),
    .i2c_rh_wl   (i2c_rh_wl ),
    .i2c_addr    (i2c_addr  ),
    .i2c_data_w  (i2c_data_w),
    .i2c_data_r  (i2c_data_r),
    .i2c_done    (i2c_done  ),
    .scl         (rom_scl   ),
    .sda         (rom_sda   ),

    .i2c_driv_clk(clk       )
);


led_alarm #(.L_TIME(L_TIME  )
) u_led_alarm(

    .clk         (clk       ),
    .rst_n       (sys_rst_n ),

    .led         (led       ),

    .error_flag  (error_flag)
);
endmodule
module eeprom_top(

    input               sys_clk    ,
    input               sys_rst_n  ,

    output              rom_scl    ,
    inout               rom_sda    ,

    output   [3:0]      led
);



parameter    SLAVE_ADDR =  7'b1010000   ;
parameter    BIT_CTRL   =  1'b1         ;
parameter    CLK_FREQ   = 26'd50_000_000;
parameter    I2C_FREQ   = 18'd250_000   ;
parameter    L_TIME     = 17'd125_000   ;


wire           clk       ;
wire           i2c_exec  ;
wire   [15:0]  i2c_addr  ;
wire   [ 7:0]  i2c_data_w;
wire           i2c_done  ;
wire           i2c_rh_wl ;
wire   [ 7:0]  i2c_data_r;
wire           error_flag;






eeprom_rw u_e2prom_rw(

    .clk         (clk       ),
    .rst_n       (sys_rst_n ),

    .i2c_exec    (i2c_exec  ),
    .i2c_rh_wl   (i2c_rh_wl ),
    .i2c_addr    (i2c_addr  ),
    .i2c_data_w  (i2c_data_w),
    .i2c_data_r  (i2c_data_r),
    .i2c_done    (i2c_done  ),

    .error_flag  (error_flag)
);


i2c_driver #(
    .SLAVE_ADDR  (SLAVE_ADDR),
    .CLK_FREQ    (CLK_FREQ  ),
    .I2C_FREQ    (I2C_FREQ  )
) u_i2c_driver(

    .clk         (sys_clk   ),
    .rst_n       (sys_rst_n ),

    .i2c_exec    (i2c_exec  ),
    .bit_ctrl    (BIT_CTRL  ),
    .i2c_rh_wl   (i2c_rh_wl ),
    .i2c_addr    (i2c_addr  ),
    .i2c_data_w  (i2c_data_w),
    .i2c_data_r  (i2c_data_r),
    .i2c_done    (i2c_done  ),
    .scl         (rom_scl   ),
    .sda         (rom_sda   ),

    .i2c_driv_clk(clk       )
);


led_alarm #(.L_TIME(L_TIME  )
) u_led_alarm(

    .clk         (clk       ),
    .rst_n       (sys_rst_n ),

    .led         (led       ),

    .error_flag  (error_flag)
);
endmodule