data/full_repos/permissive/512077043/real_deal/real_deal.v
1: b"%Error: data/full_repos/permissive/512077043/real_deal/real_deal.v:88: Cannot find file containing module: 'rgb_pll'\n    rgb_pll pll (\n    ^~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/512077043/real_deal,data/full_repos/permissive/512077043/rgb_pll\n             data/full_repos/permissive/512077043/real_deal,data/full_repos/permissive/512077043/rgb_pll.v\n             data/full_repos/permissive/512077043/real_deal,data/full_repos/permissive/512077043/rgb_pll.sv\n             rgb_pll\n             rgb_pll.v\n             rgb_pll.sv\n             obj_dir/rgb_pll\n             obj_dir/rgb_pll.v\n             obj_dir/rgb_pll.sv\n%Error: data/full_repos/permissive/512077043/real_deal/real_deal.v:95: Cannot find file containing module: 'rgb_sinp'\n    rgb_sinp #(\n    ^~~~~~~~\n%Error: data/full_repos/permissive/512077043/real_deal/real_deal.v:109: Cannot find file containing module: 'rgb_sbit2wrd'\n    rgb_sbit2wrd   sbit2wrd (\n    ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/512077043/real_deal/real_deal.v:124: Cannot find file containing module: 'async_fifo'\n    async_fifo #(\n    ^~~~~~~~~~\n%Error: data/full_repos/permissive/512077043/real_deal/real_deal.v:141: Cannot find file containing module: 'rgb_sotp'\n    rgb_sotp #( \n    ^~~~~~~~\n%Error: Exiting due to 5 error(s)\n"
module real_deal(

    input               ref_clk,       
    input               pmod_01_rst_h,
    input               pmod_02_inprgb,
                           

    output  reg         pmod_03_otprgbw,
    output  reg         pmod_04_ffovflw,
    output  reg         pmod_07_clk_96,           
    output  reg         pmod_08_locked,
    output  reg [3:0]   led_red,
    output  reg         led_green
);


    localparam SINP_COUNTER_MAX = 5000;
    localparam STREAM_RESET_CLKS = 4800;
    localparam SAMPLE_TIME_CLKS   = 57;












    localparam  DATA_SIZE = 32;
    localparam  ADDR_SIZE = 8;
    

    localparam RGBW_T0H = 16;
    localparam RGBW_T0L = 74;
    localparam RGBW_T1H = 45;
    localparam RGBW_T1L = 45;
    localparam RGBW_STR_RST = 7681;
    localparam SOTP_COUNTER_MAX = 7800;



    wire                    r_en;
    wire    [DATA_SIZE-1:0] r_data;
    wire                    r_empty;
    wire                    w_full;
    wire                    w_en;
    wire    [DATA_SIZE-1:0] w_data;
    wire                    s2wd_wr_fifo_overflow;
    wire                    so_out_serial;
    wire                    pll_clk_96;
    wire                    pll_locked;


    wire                    si_2_s2wd_strobe;
    wire                    si_2_s2wd_stream_reset;
    wire                    si_2_s2wd_value;
    











    always @ (posedge pll_clk_96) begin
        pmod_03_otprgbw <= so_out_serial;
        pmod_04_ffovflw <= 1'b0;
        pmod_07_clk_96 <= 1'b0;          
        pmod_08_locked <= 1'b0;
        led_red <= 4'b0;
        led_green <= 1'b1;
    end



    rgb_pll pll (
        .ref_clk(ref_clk),
        .clk_96(pll_clk_96),
        .locked(pll_locked)
    );
    

    rgb_sinp #(
        .COUNTER_MAX(SINP_COUNTER_MAX),
        .STREAM_RESET_CLKS(STREAM_RESET_CLKS),
        .SAMPLE_TIME_CLKS(SAMPLE_TIME_CLKS)
    ) sinp (
        .clk(pll_clk_96),
        .rst(pmod_01_rst_h),
        .sig(pmod_02_inprgb),
        .strobe(si_2_s2wd_strobe),
        .sbit_value(si_2_s2wd_value),
        .stream_reset(si_2_s2wd_stream_reset)
    );


    rgb_sbit2wrdsbit2wrd (

        .clk(pll_clk_96),
        .rst(pmod_01_rst_h),
        .in_strobe(si_2_s2wd_strobe),
        .in_sbit_value(si_2_s2wd_value),
        .in_stream_reset(si_2_s2wd_stream_reset),
        .in_wr_fifo_full(w_full),

        .out_word(w_data),
        .out_strobe(w_en),
        .out_wr_fifo_overflow(s2wd_wr_fifo_overflow)
    );


    async_fifo #(
        .DATA_SIZE(DATA_SIZE),
        .ADDR_SIZE(ADDR_SIZE)
    ) fifo (
        .w_data(w_data),
        .w_en(w_en),
        .w_clk(pll_clk_96),
        .w_rst(pmod_01_rst_h),
        .r_en(r_en),
        .r_clk(pll_clk_96),
        .r_rst(pmod_01_rst_h),
        .w_full(w_full),
        .r_data(r_data),
        .r_empty(r_empty)
    );


    rgb_sotp #( 
        .RGBW_T0H(RGBW_T0H),
        .RGBW_T0L(RGBW_T0L),
        .RGBW_T1H(RGBW_T1H),
        .RGBW_T1L(RGBW_T1L),
        .RGBW_STR_RST(RGBW_STR_RST),
        .COUNTER_MAX(SOTP_COUNTER_MAX)
    ) sotp (

        .clk(pll_clk_96),
        .rst(pmod_01_rst_h),
        .in_rd_fifo_empty(r_empty),
        .in_rd_fifo_data(r_data),

        .out_rd_fifo_en(r_en),
        .out_sig(so_out_serial)
    );
    

endmodule
module real_deal(

    input               ref_clk,       
    input               pmod_01_rst_h,
    input               pmod_02_inprgb,
                           

    output  reg         pmod_03_otprgbw,
    output  reg         pmod_04_ffovflw,
    output  reg         pmod_07_clk_96,           
    output  reg         pmod_08_locked,
    output  reg [3:0]   led_red,
    output  reg         led_green
);



    localparam SINP_COUNTER_MAX = 5000;
    localparam STREAM_RESET_CLKS = 4800;
    localparam SAMPLE_TIME_CLKS   = 57;












    localparam  DATA_SIZE = 32;
    localparam  ADDR_SIZE = 8;
    

    localparam RGBW_T0H = 16;
    localparam RGBW_T0L = 74;
    localparam RGBW_T1H = 45;
    localparam RGBW_T1L = 45;
    localparam RGBW_STR_RST = 7681;
    localparam SOTP_COUNTER_MAX = 7800;



    wire                    r_en;
    wire    [DATA_SIZE-1:0] r_data;
    wire                    r_empty;
    wire                    w_full;
    wire                    w_en;
    wire    [DATA_SIZE-1:0] w_data;
    wire                    s2wd_wr_fifo_overflow;
    wire                    so_out_serial;
    wire                    pll_clk_96;
    wire                    pll_locked;


    wire                    si_2_s2wd_strobe;
    wire                    si_2_s2wd_stream_reset;
    wire                    si_2_s2wd_value;
    











    always @ (posedge pll_clk_96) begin
        pmod_03_otprgbw <= so_out_serial;
        pmod_04_ffovflw <= 1'b0;
        pmod_07_clk_96 <= 1'b0;          
        pmod_08_locked <= 1'b0;
        led_red <= 4'b0;
        led_green <= 1'b1;
    end



    rgb_pll pll (
        .ref_clk(ref_clk),
        .clk_96(pll_clk_96),
        .locked(pll_locked)
    );
    

    rgb_sinp #(
        .COUNTER_MAX(SINP_COUNTER_MAX),
        .STREAM_RESET_CLKS(STREAM_RESET_CLKS),
        .SAMPLE_TIME_CLKS(SAMPLE_TIME_CLKS)
    ) sinp (
        .clk(pll_clk_96),
        .rst(pmod_01_rst_h),
        .sig(pmod_02_inprgb),
        .strobe(si_2_s2wd_strobe),
        .sbit_value(si_2_s2wd_value),
        .stream_reset(si_2_s2wd_stream_reset)
    );


    rgb_sbit2wrdsbit2wrd (

        .clk(pll_clk_96),
        .rst(pmod_01_rst_h),
        .in_strobe(si_2_s2wd_strobe),
        .in_sbit_value(si_2_s2wd_value),
        .in_stream_reset(si_2_s2wd_stream_reset),
        .in_wr_fifo_full(w_full),

        .out_word(w_data),
        .out_strobe(w_en),
        .out_wr_fifo_overflow(s2wd_wr_fifo_overflow)
    );


    async_fifo #(
        .DATA_SIZE(DATA_SIZE),
        .ADDR_SIZE(ADDR_SIZE)
    ) fifo (
        .w_data(w_data),
        .w_en(w_en),
        .w_clk(pll_clk_96),
        .w_rst(pmod_01_rst_h),
        .r_en(r_en),
        .r_clk(pll_clk_96),
        .r_rst(pmod_01_rst_h),
        .w_full(w_full),
        .r_data(r_data),
        .r_empty(r_empty)
    );


    rgb_sotp #( 
        .RGBW_T0H(RGBW_T0H),
        .RGBW_T0L(RGBW_T0L),
        .RGBW_T1H(RGBW_T1H),
        .RGBW_T1L(RGBW_T1L),
        .RGBW_STR_RST(RGBW_STR_RST),
        .COUNTER_MAX(SOTP_COUNTER_MAX)
    ) sotp (

        .clk(pll_clk_96),
        .rst(pmod_01_rst_h),
        .in_rd_fifo_empty(r_empty),
        .in_rd_fifo_data(r_data),

        .out_rd_fifo_en(r_en),
        .out_sig(so_out_serial)
    );
    

endmodule