data/full_repos/permissive/531094269/verilog/rtl/src/ogfx_backend.v
1: b'%Error: data/full_repos/permissive/531094269/verilog/rtl/src/ogfx_backend.v:44: Cannot find include file: openGFX430_defines.v\n`include "openGFX430_defines.v" \n         ^~~~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/531094269/verilog/rtl/src,data/full_repos/permissive/531094269/openGFX430_defines.v\n             data/full_repos/permissive/531094269/verilog/rtl/src,data/full_repos/permissive/531094269/openGFX430_defines.v.v\n             data/full_repos/permissive/531094269/verilog/rtl/src,data/full_repos/permissive/531094269/openGFX430_defines.v.sv\n             openGFX430_defines.v\n             openGFX430_defines.v.v\n             openGFX430_defines.v.sv\n             obj_dir/openGFX430_defines.v\n             obj_dir/openGFX430_defines.v.v\n             obj_dir/openGFX430_defines.v.sv\n%Error: data/full_repos/permissive/531094269/verilog/rtl/src/ogfx_backend.v:231: Cannot find include file: openGFX430_undefines.v\n`include "openGFX430_undefines.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/531094269/verilog/rtl/src/ogfx_backend.v:98: Define or directive not defined: \'`VRAM_MSB\'\noutput [`VRAM_MSB:0] vid_ram_addr_o;               \n        ^~~~~~~~~\n%Error: data/full_repos/permissive/531094269/verilog/rtl/src/ogfx_backend.v:98: syntax error, unexpected \':\', expecting TYPE-IDENTIFIER\noutput [`VRAM_MSB:0] vid_ram_addr_o;               \n                 ^\n%Error: data/full_repos/permissive/531094269/verilog/rtl/src/ogfx_backend.v:111: Define or directive not defined: \'`LPIX_MSB\'\ninput  [`LPIX_MSB:0] display_width_i;              \n        ^~~~~~~~~\n%Error: data/full_repos/permissive/531094269/verilog/rtl/src/ogfx_backend.v:111: syntax error, unexpected \':\', expecting TYPE-IDENTIFIER\ninput  [`LPIX_MSB:0] display_width_i;              \n                 ^\n%Error: data/full_repos/permissive/531094269/verilog/rtl/src/ogfx_backend.v:112: Define or directive not defined: \'`LPIX_MSB\'\ninput  [`LPIX_MSB:0] display_height_i;             \n        ^~~~~~~~~\n%Error: data/full_repos/permissive/531094269/verilog/rtl/src/ogfx_backend.v:112: syntax error, unexpected \':\', expecting TYPE-IDENTIFIER\ninput  [`LPIX_MSB:0] display_height_i;             \n                 ^\n%Error: data/full_repos/permissive/531094269/verilog/rtl/src/ogfx_backend.v:113: Define or directive not defined: \'`SPIX_MSB\'\ninput  [`SPIX_MSB:0] display_size_i;               \n        ^~~~~~~~~\n%Error: data/full_repos/permissive/531094269/verilog/rtl/src/ogfx_backend.v:113: syntax error, unexpected \':\', expecting TYPE-IDENTIFIER\ninput  [`SPIX_MSB:0] display_size_i;               \n                 ^\n%Error: data/full_repos/permissive/531094269/verilog/rtl/src/ogfx_backend.v:130: Define or directive not defined: \'`APIX_MSB\'\ninput  [`APIX_MSB:0] refresh_frame_base_addr_i;    \n        ^~~~~~~~~\n%Error: data/full_repos/permissive/531094269/verilog/rtl/src/ogfx_backend.v:130: syntax error, unexpected \':\', expecting TYPE-IDENTIFIER\ninput  [`APIX_MSB:0] refresh_frame_base_addr_i;    \n                 ^\n%Error: Exiting due to 12 error(s)\n'
module  ogfx_backend (


    refresh_data_o,
    refresh_data_ready_o,

    vid_ram_addr_o,
    vid_ram_cen_o,

`ifdef WITH_PROGRAMMABLE_LUT
    lut_ram_addr_o,
    lut_ram_cen_o,
`endif


    mclk,
    puc_rst,

    display_width_i,
    display_height_i,
    display_size_i,
    display_y_swap_i,
    display_x_swap_i,
    display_cl_swap_i,

    gfx_mode_i,

`ifdef WITH_PROGRAMMABLE_LUT
    lut_ram_dout_i,
    lut_ram_dout_rdy_nxt_i,
`endif

    vid_ram_dout_i,
    vid_ram_dout_rdy_nxt_i,

    refresh_active_i,
    refresh_data_request_i,
    refresh_frame_base_addr_i,

    hw_lut_palette_sel_i,
    hw_lut_bgcolor_i,
    hw_lut_fgcolor_i,
    sw_lut_enable_i,
    sw_lut_bank_select_i
);



output        [15:0] refresh_data_o;
output               refresh_data_ready_o;

output [`VRAM_MSB:0] vid_ram_addr_o;
output               vid_ram_cen_o;

`ifdef WITH_PROGRAMMABLE_LUT
output [`LRAM_MSB:0] lut_ram_addr_o;
output               lut_ram_cen_o;
`endif



input                mclk;
input                puc_rst;

input  [`LPIX_MSB:0] display_width_i;
input  [`LPIX_MSB:0] display_height_i;
input  [`SPIX_MSB:0] display_size_i;
input                display_y_swap_i;
input                display_x_swap_i;
input                display_cl_swap_i;

input          [2:0] gfx_mode_i;

`ifdef WITH_PROGRAMMABLE_LUT
input         [15:0] lut_ram_dout_i;
input                lut_ram_dout_rdy_nxt_i;
`endif

input         [15:0] vid_ram_dout_i;
input                vid_ram_dout_rdy_nxt_i;

input                refresh_active_i;
input                refresh_data_request_i;
input  [`APIX_MSB:0] refresh_frame_base_addr_i;

input          [2:0] hw_lut_palette_sel_i;
input          [3:0] hw_lut_bgcolor_i;
input          [3:0] hw_lut_fgcolor_i;
input                sw_lut_enable_i;
input                sw_lut_bank_select_i;







wire  [15:0] frame_data;
wire         frame_data_ready;
wire         frame_data_request;






ogfx_backend_frame_fifo  ogfx_backend_frame_fifo_inst (


    .frame_data_o                  ( frame_data                ),
    .frame_data_ready_o            ( frame_data_ready          ),

    .vid_ram_addr_o                ( vid_ram_addr_o            ),
    .vid_ram_cen_o                 ( vid_ram_cen_o             ),


    .mclk                          ( mclk                      ),
    .puc_rst                       ( puc_rst                   ),

    .display_width_i               ( display_width_i           ),
    .display_height_i              ( display_height_i          ),
    .display_size_i                ( display_size_i            ),
    .display_y_swap_i              ( display_y_swap_i          ),
    .display_x_swap_i              ( display_x_swap_i          ),
    .display_cl_swap_i             ( display_cl_swap_i         ),

    .frame_data_request_i          ( frame_data_request        ),

    .gfx_mode_i                    ( gfx_mode_i                ),

    .vid_ram_dout_i                ( vid_ram_dout_i            ),
    .vid_ram_dout_rdy_nxt_i        ( vid_ram_dout_rdy_nxt_i    ),

    .refresh_active_i              ( refresh_active_i          ),
    .refresh_frame_base_addr_i     ( refresh_frame_base_addr_i )
);






ogfx_backend_lut_fifo  ogfx_backend_lut_fifo_inst (


    .frame_data_request_o          ( frame_data_request        ),

    .refresh_data_o                ( refresh_data_o            ),
    .refresh_data_ready_o          ( refresh_data_ready_o      ),

`ifdef WITH_PROGRAMMABLE_LUT
    .lut_ram_addr_o                ( lut_ram_addr_o            ),
    .lut_ram_cen_o                 ( lut_ram_cen_o             ),
`endif


    .mclk                          ( mclk                      ),
    .puc_rst                       ( puc_rst                   ),

    .frame_data_i                  ( frame_data                ),
    .frame_data_ready_i            ( frame_data_ready          ),

    .gfx_mode_i                    ( gfx_mode_i                ),

`ifdef WITH_PROGRAMMABLE_LUT
    .lut_ram_dout_i                ( lut_ram_dout_i            ),
    .lut_ram_dout_rdy_nxt_i        ( lut_ram_dout_rdy_nxt_i    ),
`endif

    .refresh_active_i              ( refresh_active_i          ),
    .refresh_data_request_i        ( refresh_data_request_i    ),

    .hw_lut_palette_sel_i          ( hw_lut_palette_sel_i      ),
    .hw_lut_bgcolor_i              ( hw_lut_bgcolor_i          ),
    .hw_lut_fgcolor_i              ( hw_lut_fgcolor_i          ),
    .sw_lut_enable_i               ( sw_lut_enable_i           ),
    .sw_lut_bank_select_i          ( sw_lut_bank_select_i      )
);


endmodule
module  ogfx_backend (


    refresh_data_o,
    refresh_data_ready_o,

    vid_ram_addr_o,
    vid_ram_cen_o,

`ifdef WITH_PROGRAMMABLE_LUT
    lut_ram_addr_o,
    lut_ram_cen_o,
`endif


    mclk,
    puc_rst,

    display_width_i,
    display_height_i,
    display_size_i,
    display_y_swap_i,
    display_x_swap_i,
    display_cl_swap_i,

    gfx_mode_i,

`ifdef WITH_PROGRAMMABLE_LUT
    lut_ram_dout_i,
    lut_ram_dout_rdy_nxt_i,
`endif

    vid_ram_dout_i,
    vid_ram_dout_rdy_nxt_i,

    refresh_active_i,
    refresh_data_request_i,
    refresh_frame_base_addr_i,

    hw_lut_palette_sel_i,
    hw_lut_bgcolor_i,
    hw_lut_fgcolor_i,
    sw_lut_enable_i,
    sw_lut_bank_select_i
);




output        [15:0] refresh_data_o;
output               refresh_data_ready_o;

output [`VRAM_MSB:0] vid_ram_addr_o;
output               vid_ram_cen_o;

`ifdef WITH_PROGRAMMABLE_LUT
output [`LRAM_MSB:0] lut_ram_addr_o;
output               lut_ram_cen_o;
`endif



input                mclk;
input                puc_rst;

input  [`LPIX_MSB:0] display_width_i;
input  [`LPIX_MSB:0] display_height_i;
input  [`SPIX_MSB:0] display_size_i;
input                display_y_swap_i;
input                display_x_swap_i;
input                display_cl_swap_i;

input          [2:0] gfx_mode_i;

`ifdef WITH_PROGRAMMABLE_LUT
input         [15:0] lut_ram_dout_i;
input                lut_ram_dout_rdy_nxt_i;
`endif

input         [15:0] vid_ram_dout_i;
input                vid_ram_dout_rdy_nxt_i;

input                refresh_active_i;
input                refresh_data_request_i;
input  [`APIX_MSB:0] refresh_frame_base_addr_i;

input          [2:0] hw_lut_palette_sel_i;
input          [3:0] hw_lut_bgcolor_i;
input          [3:0] hw_lut_fgcolor_i;
input                sw_lut_enable_i;
input                sw_lut_bank_select_i;







wire  [15:0] frame_data;
wire         frame_data_ready;
wire         frame_data_request;






ogfx_backend_frame_fifo  ogfx_backend_frame_fifo_inst (


    .frame_data_o                  ( frame_data                ),
    .frame_data_ready_o            ( frame_data_ready          ),

    .vid_ram_addr_o                ( vid_ram_addr_o            ),
    .vid_ram_cen_o                 ( vid_ram_cen_o             ),


    .mclk                          ( mclk                      ),
    .puc_rst                       ( puc_rst                   ),

    .display_width_i               ( display_width_i           ),
    .display_height_i              ( display_height_i          ),
    .display_size_i                ( display_size_i            ),
    .display_y_swap_i              ( display_y_swap_i          ),
    .display_x_swap_i              ( display_x_swap_i          ),
    .display_cl_swap_i             ( display_cl_swap_i         ),

    .frame_data_request_i          ( frame_data_request        ),

    .gfx_mode_i                    ( gfx_mode_i                ),

    .vid_ram_dout_i                ( vid_ram_dout_i            ),
    .vid_ram_dout_rdy_nxt_i        ( vid_ram_dout_rdy_nxt_i    ),

    .refresh_active_i              ( refresh_active_i          ),
    .refresh_frame_base_addr_i     ( refresh_frame_base_addr_i )
);






ogfx_backend_lut_fifo  ogfx_backend_lut_fifo_inst (


    .frame_data_request_o          ( frame_data_request        ),

    .refresh_data_o                ( refresh_data_o            ),
    .refresh_data_ready_o          ( refresh_data_ready_o      ),

`ifdef WITH_PROGRAMMABLE_LUT
    .lut_ram_addr_o                ( lut_ram_addr_o            ),
    .lut_ram_cen_o                 ( lut_ram_cen_o             ),
`endif


    .mclk                          ( mclk                      ),
    .puc_rst                       ( puc_rst                   ),

    .frame_data_i                  ( frame_data                ),
    .frame_data_ready_i            ( frame_data_ready          ),

    .gfx_mode_i                    ( gfx_mode_i                ),

`ifdef WITH_PROGRAMMABLE_LUT
    .lut_ram_dout_i                ( lut_ram_dout_i            ),
    .lut_ram_dout_rdy_nxt_i        ( lut_ram_dout_rdy_nxt_i    ),
`endif

    .refresh_active_i              ( refresh_active_i          ),
    .refresh_data_request_i        ( refresh_data_request_i    ),

    .hw_lut_palette_sel_i          ( hw_lut_palette_sel_i      ),
    .hw_lut_bgcolor_i              ( hw_lut_bgcolor_i          ),
    .hw_lut_fgcolor_i              ( hw_lut_fgcolor_i          ),
    .sw_lut_enable_i               ( sw_lut_enable_i           ),
    .sw_lut_bank_select_i          ( sw_lut_bank_select_i      )
);


endmodule