data/full_repos/permissive/2084115/projects/ultra96v2_display_port_test/rtl/ultra96v2_display_port_test.v
1: b"%Error: data/full_repos/permissive/2084115/projects/ultra96v2_display_port_test/rtl/ultra96v2_display_port_test.v:42: Cannot find file containing module: 'design_1'\n    design_1\n    ^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/2084115/projects/ultra96v2_display_port_test/rtl,data/full_repos/permissive/2084115/design_1\n             data/full_repos/permissive/2084115/projects/ultra96v2_display_port_test/rtl,data/full_repos/permissive/2084115/design_1.v\n             data/full_repos/permissive/2084115/projects/ultra96v2_display_port_test/rtl,data/full_repos/permissive/2084115/design_1.sv\n             design_1\n             design_1.v\n             design_1.sv\n             obj_dir/design_1\n             obj_dir/design_1.v\n             obj_dir/design_1.sv\n%Error: data/full_repos/permissive/2084115/projects/ultra96v2_display_port_test/rtl/ultra96v2_display_port_test.v:70: Cannot find file containing module: 'jelly_vsync_generator_core'\n    jelly_vsync_generator_core\n    ^~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: Exiting due to 2 error(s)\n"
module ultra96v2_display_port_test
            (
                output  wire    [1:0]   led
            );
    
    
    



    
    wire        dp_video_ref_clk_0;
    wire        dp_external_custom_event1_0;
    wire        dp_external_custom_event2_0;
    wire        dp_external_vsync_event_0;
    wire [7:0]  dp_live_gfx_alpha_in_0;
    wire [35:0] dp_live_gfx_pixel1_in_0;
    wire        dp_live_video_de_out_0;
    wire        dp_live_video_in_de_0;
    wire        dp_live_video_in_hsync_0;
    wire [35:0] dp_live_video_in_pixel1_0;
    wire        dp_live_video_in_vsync_0;
    wire        dp_video_in_clk_0;
    wire        dp_video_out_hsync_0;
    wire [35:0] dp_video_out_pixel1_0;
    wire        dp_video_out_vsync_0;
    wire        pl_clk0_0;
    
    design_1
        i_design_1_i
            (
                .dp_video_ref_clk_0             (dp_video_ref_clk_0),
                .dp_external_custom_event1_0    (dp_external_custom_event1_0),
                .dp_external_custom_event2_0    (dp_external_custom_event2_0),
                .dp_external_vsync_event_0      (dp_external_vsync_event_0),
                .dp_live_gfx_alpha_in_0         (dp_live_gfx_alpha_in_0),
                .dp_live_gfx_pixel1_in_0        (dp_live_gfx_pixel1_in_0),
                .dp_live_video_de_out_0         (dp_live_video_de_out_0),
                .dp_live_video_in_de_0          (dp_live_video_in_de_0),
                .dp_live_video_in_hsync_0       (dp_live_video_in_hsync_0),
                .dp_live_video_in_pixel1_0      (dp_live_video_in_pixel1_0),
                .dp_live_video_in_vsync_0       (dp_live_video_in_vsync_0),
                .dp_video_in_clk_0              (dp_video_in_clk_0),
                .dp_video_out_hsync_0           (dp_video_out_hsync_0),
                .dp_video_out_pixel1_0          (dp_video_out_pixel1_0),
                .dp_video_out_vsync_0           (dp_video_out_vsync_0),
                .pl_clk0_0                      ()
            );
    
    assign pl_clk0_0 = dp_video_ref_clk_0;
    
    



    
    jelly_vsync_generator_core
            #(
                .V_COUNTER_WIDTH    (16),
                .H_COUNTER_WIDTH    (16)
            )
        i_vsync_generator_core
            (
                .reset              (1'b0),
                .clk                (pl_clk0_0),
                
                .ctl_enable         (1'b1),
                .ctl_busy           (),
                
                .param_htotal       (2200),
                .param_hdisp_start  (0),
                .param_hdisp_end    (1920),
                .param_hsync_start  (2008),
                .param_hsync_end    (2052),
                .param_hsync_pol    (1),
                .param_vtotal       (1125),
                .param_vdisp_start  (0),
                .param_vdisp_end    (1080),
                .param_vsync_start  (1084),
                .param_vsync_end    (1089),
                .param_vsync_pol    (1),
                
                .out_vsync          (dp_live_video_in_vsync_0),
                .out_hsync          (dp_live_video_in_hsync_0),
                .out_de             (dp_live_video_in_de_0)
            );
    
    (* mark_debug="true" *) reg                 reg_d = 0;
    (* mark_debug="true" *) reg                 reg_h = 0;
    (* mark_debug="true" *) reg     [13:0]      reg_x = 0;
    (* mark_debug="true" *) reg     [13:0]      reg_y = 0;
    

    
    
    always @(posedge dp_video_ref_clk_0) begin
        reg_h <= dp_video_out_hsync_0;
        
        if ( dp_video_out_hsync_0 ) begin
            reg_d <= 0;
            reg_x <= 0;
        end
        else if ( dp_live_video_de_out_0 || 1 ) begin
            reg_d <= 1;
            reg_x <= reg_x + 1;
        end
        
        if ( dp_video_out_vsync_0 ) begin
            reg_y <= 0;
        end
        else if ( reg_d && {reg_h, dp_video_out_hsync_0} == 2'b01 ) begin
            reg_y <= reg_y + 1;
        end
    end
    assign dp_video_in_clk_0         = dp_video_ref_clk_0;
    
    
    
    reg     [35:0]  tmp_pixel;
    always @* begin
        if ( reg_x == reg_y ) begin
            tmp_pixel = {12'hfff, 12'hfff, 12'hfff};
        end
        else begin
            if ( reg_x < 512 ) begin
                tmp_pixel[0*12 +: 12] = 12'h000;
                tmp_pixel[1*12 +: 12] = 12'h000;
                tmp_pixel[2*12 +: 12] = 12'h000;
            end
            else if ( reg_x < 1024 ) begin
                tmp_pixel[0*12 +: 12] = 12'hfff;
                tmp_pixel[1*12 +: 12] = 12'h000;
                tmp_pixel[2*12 +: 12] = 12'h000;
            end
            else if ( reg_x < 1024+512 ) begin
                tmp_pixel[0*12 +: 12] = 12'h000;
                tmp_pixel[1*12 +: 12] = 12'hfff;
                tmp_pixel[2*12 +: 12] = 12'h000;
            end
            else begin
                tmp_pixel[0*12 +: 12] = 12'h000;
                tmp_pixel[1*12 +: 12] = 12'h000;
                tmp_pixel[2*12 +: 12] = 12'hfff;
            end
            
            if ( reg_y >= 512 ) begin
                tmp_pixel = ~tmp_pixel;
            end
        end
    end
    assign dp_live_video_in_pixel1_0 = tmp_pixel;
    
    
    assign dp_live_gfx_alpha_in_0  = 8'h7f;
    assign dp_live_gfx_pixel1_in_0 = ~tmp_pixel;
    
    
    






    
    
    

    
    
    reg     [31:0]      reg_counter;
    always @(posedge pl_clk0_0) begin
        reg_counter <= reg_counter + 1;
    end
    
    reg     [31:0]      reg_counter_ref;
    always @(posedge dp_video_ref_clk_0) begin
        reg_counter_ref <= reg_counter_ref + 1;
    end
    
    assign led[0] = reg_counter[26];
    assign led[1] = reg_counter_ref[26];
    
    (* mark_debug="true" *) reg         dbg_dp_live_video_in_de_0;
    (* mark_debug="true" *) reg         dbg_dp_live_video_in_hsync_0;
    (* mark_debug="true" *) reg  [35:0] dbg_dp_live_video_in_pixel1_0;
    (* mark_debug="true" *) reg         dbg_dp_live_video_in_vsync_0;
    
    (* mark_debug="true" *) reg         dbg_dp_live_video_de_out_0;
    (* mark_debug="true" *) reg         dbg_dp_video_out_hsync_0;
    (* mark_debug="true" *) reg [35:0]  dbg_dp_video_out_pixel1_0;
    (* mark_debug="true" *) reg         dbg_dp_video_out_vsync_0;
    
    always @(posedge dp_video_ref_clk_0) begin
        dbg_dp_live_video_in_de_0      <= dp_live_video_in_de_0    ;
        dbg_dp_live_video_in_hsync_0   <= dp_live_video_in_hsync_0 ;
        dbg_dp_live_video_in_pixel1_0  <= dp_live_video_in_pixel1_0;
        dbg_dp_live_video_in_vsync_0   <= dp_live_video_in_vsync_0 ;
        
        dbg_dp_live_video_de_out_0     <= dp_live_video_de_out_0;
        dbg_dp_video_out_hsync_0       <= dp_video_out_hsync_0;
        dbg_dp_video_out_pixel1_0      <= dp_video_out_pixel1_0;
        dbg_dp_video_out_vsync_0       <= dp_video_out_vsync_0;
    end
    
    
    
    




    (* mark_debug="true" *) reg         mon_dp_live_video_in_de_0;
    (* mark_debug="true" *) reg         mon_dp_live_video_in_hsync_0;
    (* mark_debug="true" *) reg  [35:0] mon_dp_live_video_in_pixel1_0;
    (* mark_debug="true" *) reg         mon_dp_live_video_in_vsync_0;
    
    (* mark_debug="true" *) reg         mon_dp_live_video_de_out_0;
    (* mark_debug="true" *) reg         mon_dp_video_out_hsync_0;
    (* mark_debug="true" *) reg  [35:0] mon_dp_video_out_pixel1_0;
    (* mark_debug="true" *) reg         mon_dp_video_out_vsync_0;
    always @(posedge pl_clk0_0) begin
        mon_dp_live_video_in_de_0      <= dp_live_video_in_de_0    ;
        mon_dp_live_video_in_hsync_0   <= dp_live_video_in_hsync_0 ;
        mon_dp_live_video_in_pixel1_0  <= dp_live_video_in_pixel1_0;
        mon_dp_live_video_in_vsync_0   <= dp_live_video_in_vsync_0 ;
        
        mon_dp_live_video_de_out_0     <= dp_live_video_de_out_0   ;
        mon_dp_video_out_hsync_0       <= dp_video_out_hsync_0     ;
        mon_dp_video_out_pixel1_0      <= dp_video_out_pixel1_0    ;
        mon_dp_video_out_vsync_0       <= dp_video_out_vsync_0     ;
    end
    
    
    
    
    
    
    
    
endmodule
module ultra96v2_display_port_test
            (
                output  wire    [1:0]   led
            );

    
    
    



    
    wire        dp_video_ref_clk_0;
    wire        dp_external_custom_event1_0;
    wire        dp_external_custom_event2_0;
    wire        dp_external_vsync_event_0;
    wire [7:0]  dp_live_gfx_alpha_in_0;
    wire [35:0] dp_live_gfx_pixel1_in_0;
    wire        dp_live_video_de_out_0;
    wire        dp_live_video_in_de_0;
    wire        dp_live_video_in_hsync_0;
    wire [35:0] dp_live_video_in_pixel1_0;
    wire        dp_live_video_in_vsync_0;
    wire        dp_video_in_clk_0;
    wire        dp_video_out_hsync_0;
    wire [35:0] dp_video_out_pixel1_0;
    wire        dp_video_out_vsync_0;
    wire        pl_clk0_0;
    
    design_1
        i_design_1_i
            (
                .dp_video_ref_clk_0             (dp_video_ref_clk_0),
                .dp_external_custom_event1_0    (dp_external_custom_event1_0),
                .dp_external_custom_event2_0    (dp_external_custom_event2_0),
                .dp_external_vsync_event_0      (dp_external_vsync_event_0),
                .dp_live_gfx_alpha_in_0         (dp_live_gfx_alpha_in_0),
                .dp_live_gfx_pixel1_in_0        (dp_live_gfx_pixel1_in_0),
                .dp_live_video_de_out_0         (dp_live_video_de_out_0),
                .dp_live_video_in_de_0          (dp_live_video_in_de_0),
                .dp_live_video_in_hsync_0       (dp_live_video_in_hsync_0),
                .dp_live_video_in_pixel1_0      (dp_live_video_in_pixel1_0),
                .dp_live_video_in_vsync_0       (dp_live_video_in_vsync_0),
                .dp_video_in_clk_0              (dp_video_in_clk_0),
                .dp_video_out_hsync_0           (dp_video_out_hsync_0),
                .dp_video_out_pixel1_0          (dp_video_out_pixel1_0),
                .dp_video_out_vsync_0           (dp_video_out_vsync_0),
                .pl_clk0_0                      ()
            );
    
    assign pl_clk0_0 = dp_video_ref_clk_0;
    
    



    
    jelly_vsync_generator_core
            #(
                .V_COUNTER_WIDTH    (16),
                .H_COUNTER_WIDTH    (16)
            )
        i_vsync_generator_core
            (
                .reset              (1'b0),
                .clk                (pl_clk0_0),
                
                .ctl_enable         (1'b1),
                .ctl_busy           (),
                
                .param_htotal       (2200),
                .param_hdisp_start  (0),
                .param_hdisp_end    (1920),
                .param_hsync_start  (2008),
                .param_hsync_end    (2052),
                .param_hsync_pol    (1),
                .param_vtotal       (1125),
                .param_vdisp_start  (0),
                .param_vdisp_end    (1080),
                .param_vsync_start  (1084),
                .param_vsync_end    (1089),
                .param_vsync_pol    (1),
                
                .out_vsync          (dp_live_video_in_vsync_0),
                .out_hsync          (dp_live_video_in_hsync_0),
                .out_de             (dp_live_video_in_de_0)
            );
    
    (* mark_debug="true" *) reg                 reg_d = 0;
    (* mark_debug="true" *) reg                 reg_h = 0;
    (* mark_debug="true" *) reg     [13:0]      reg_x = 0;
    (* mark_debug="true" *) reg     [13:0]      reg_y = 0;
    

    
    
    always @(posedge dp_video_ref_clk_0) begin
        reg_h <= dp_video_out_hsync_0;
        
        if ( dp_video_out_hsync_0 ) begin
            reg_d <= 0;
            reg_x <= 0;
        end
        else if ( dp_live_video_de_out_0 || 1 ) begin
            reg_d <= 1;
            reg_x <= reg_x + 1;
        end
        
        if ( dp_video_out_vsync_0 ) begin
            reg_y <= 0;
        end
        else if ( reg_d && {reg_h, dp_video_out_hsync_0} == 2'b01 ) begin
            reg_y <= reg_y + 1;
        end
    end
    assign dp_video_in_clk_0         = dp_video_ref_clk_0;
    
    
    
    reg     [35:0]  tmp_pixel;
    always @* begin
        if ( reg_x == reg_y ) begin
            tmp_pixel = {12'hfff, 12'hfff, 12'hfff};
        end
        else begin
            if ( reg_x < 512 ) begin
                tmp_pixel[0*12 +: 12] = 12'h000;
                tmp_pixel[1*12 +: 12] = 12'h000;
                tmp_pixel[2*12 +: 12] = 12'h000;
            end
            else if ( reg_x < 1024 ) begin
                tmp_pixel[0*12 +: 12] = 12'hfff;
                tmp_pixel[1*12 +: 12] = 12'h000;
                tmp_pixel[2*12 +: 12] = 12'h000;
            end
            else if ( reg_x < 1024+512 ) begin
                tmp_pixel[0*12 +: 12] = 12'h000;
                tmp_pixel[1*12 +: 12] = 12'hfff;
                tmp_pixel[2*12 +: 12] = 12'h000;
            end
            else begin
                tmp_pixel[0*12 +: 12] = 12'h000;
                tmp_pixel[1*12 +: 12] = 12'h000;
                tmp_pixel[2*12 +: 12] = 12'hfff;
            end
            
            if ( reg_y >= 512 ) begin
                tmp_pixel = ~tmp_pixel;
            end
        end
    end
    assign dp_live_video_in_pixel1_0 = tmp_pixel;
    
    
    assign dp_live_gfx_alpha_in_0  = 8'h7f;
    assign dp_live_gfx_pixel1_in_0 = ~tmp_pixel;
    
    
    






    
    
    

    
    
    reg     [31:0]      reg_counter;
    always @(posedge pl_clk0_0) begin
        reg_counter <= reg_counter + 1;
    end
    
    reg     [31:0]      reg_counter_ref;
    always @(posedge dp_video_ref_clk_0) begin
        reg_counter_ref <= reg_counter_ref + 1;
    end
    
    assign led[0] = reg_counter[26];
    assign led[1] = reg_counter_ref[26];
    
    (* mark_debug="true" *) reg         dbg_dp_live_video_in_de_0;
    (* mark_debug="true" *) reg         dbg_dp_live_video_in_hsync_0;
    (* mark_debug="true" *) reg  [35:0] dbg_dp_live_video_in_pixel1_0;
    (* mark_debug="true" *) reg         dbg_dp_live_video_in_vsync_0;
    
    (* mark_debug="true" *) reg         dbg_dp_live_video_de_out_0;
    (* mark_debug="true" *) reg         dbg_dp_video_out_hsync_0;
    (* mark_debug="true" *) reg [35:0]  dbg_dp_video_out_pixel1_0;
    (* mark_debug="true" *) reg         dbg_dp_video_out_vsync_0;
    
    always @(posedge dp_video_ref_clk_0) begin
        dbg_dp_live_video_in_de_0      <= dp_live_video_in_de_0    ;
        dbg_dp_live_video_in_hsync_0   <= dp_live_video_in_hsync_0 ;
        dbg_dp_live_video_in_pixel1_0  <= dp_live_video_in_pixel1_0;
        dbg_dp_live_video_in_vsync_0   <= dp_live_video_in_vsync_0 ;
        
        dbg_dp_live_video_de_out_0     <= dp_live_video_de_out_0;
        dbg_dp_video_out_hsync_0       <= dp_video_out_hsync_0;
        dbg_dp_video_out_pixel1_0      <= dp_video_out_pixel1_0;
        dbg_dp_video_out_vsync_0       <= dp_video_out_vsync_0;
    end
    
    
    
    




    (* mark_debug="true" *) reg         mon_dp_live_video_in_de_0;
    (* mark_debug="true" *) reg         mon_dp_live_video_in_hsync_0;
    (* mark_debug="true" *) reg  [35:0] mon_dp_live_video_in_pixel1_0;
    (* mark_debug="true" *) reg         mon_dp_live_video_in_vsync_0;
    
    (* mark_debug="true" *) reg         mon_dp_live_video_de_out_0;
    (* mark_debug="true" *) reg         mon_dp_video_out_hsync_0;
    (* mark_debug="true" *) reg  [35:0] mon_dp_video_out_pixel1_0;
    (* mark_debug="true" *) reg         mon_dp_video_out_vsync_0;
    always @(posedge pl_clk0_0) begin
        mon_dp_live_video_in_de_0      <= dp_live_video_in_de_0    ;
        mon_dp_live_video_in_hsync_0   <= dp_live_video_in_hsync_0 ;
        mon_dp_live_video_in_pixel1_0  <= dp_live_video_in_pixel1_0;
        mon_dp_live_video_in_vsync_0   <= dp_live_video_in_vsync_0 ;
        
        mon_dp_live_video_de_out_0     <= dp_live_video_de_out_0   ;
        mon_dp_video_out_hsync_0       <= dp_video_out_hsync_0     ;
        mon_dp_video_out_pixel1_0      <= dp_video_out_pixel1_0    ;
        mon_dp_video_out_vsync_0       <= dp_video_out_vsync_0     ;
    end
    
    
    
    
    
    
    
    
endmodule