data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v
 line:980: before: "@"
1: b'%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:13: Cannot find include file: ../../utils/sim/sim.v\n`include "../../utils/sim/sim.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/190755935/src/image/sim,data/full_repos/permissive/190755935/../../utils/sim/sim.v\n             data/full_repos/permissive/190755935/src/image/sim,data/full_repos/permissive/190755935/../../utils/sim/sim.v.v\n             data/full_repos/permissive/190755935/src/image/sim,data/full_repos/permissive/190755935/../../utils/sim/sim.v.sv\n             ../../utils/sim/sim.v\n             ../../utils/sim/sim.v.v\n             ../../utils/sim/sim.v.sv\n             obj_dir/../../utils/sim/sim.v\n             obj_dir/../../utils/sim/sim.v.v\n             obj_dir/../../utils/sim/sim.v.sv\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:15: Cannot find include file: ../../image/rtl/image_defs.v\n`include "../../image/rtl/image_defs.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:20: Define or directive not defined: \'`IS_DEFAULT\'\n        parameter IS = `IS_DEFAULT\n                       ^~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:21: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\n    )(\n    ^\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:24: Define or directive not defined: \'`OutputDebug\'\n    parameter Output=`OutputDebug;\n                     ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:24: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n    parameter Output=`OutputDebug;\n                                 ^\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:27: Define or directive not defined: \'`Realtime\'\n    `Realtime\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:30: Define or directive not defined: \'`Clock10MHz\'\n    `Clock10MHz\n    ^~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:40: syntax error, unexpected \'@\'\n            @( posedge clock );\n            ^\n%Warning-STMTDLY: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:39: Unsupported: Ignoring delay on this delayed statement.\n            #2\n            ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:42: Unsupported: Ignoring delay on this delayed statement.\n            #2\n            ^\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:52: Define or directive not defined: \'`Info\'\n            `Info( "    Reset");\n            ^~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:52: syntax error, unexpected \';\'\n            `Info( "    Reset");\n                               ^\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:72: Define or directive not defined: \'`I_w\'\n    localparam ImageWidth =  `I_w( IS );\n                             ^~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:75: Define or directive not defined: \'`IS_WIDTH\'\n    localparam Width = `IS_WIDTH( IS );\n                       ^~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:76: Define or directive not defined: \'`IS_HEIGHT\'\n    localparam Height = `IS_HEIGHT( IS );\n                        ^~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:78: Define or directive not defined: \'`IS_PIXEL_COUNT\'\n    localparam PixelCount = `IS_PIXEL_COUNT( IS );\n                            ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:80: Define or directive not defined: \'`IS_WIDTH_WIDTH\'\n    localparam WidthWidth =  `IS_WIDTH_WIDTH( IS );\n                             ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:81: Define or directive not defined: \'`IS_HEIGHT_WIDTH\'\n    localparam HeightWidth = `IS_HEIGHT_WIDTH( IS );\n                             ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:82: Define or directive not defined: \'`IS_DATA_WIDTH\'\n    localparam DataWidth =   `IS_DATA_WIDTH( IS );\n                             ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:84: Define or directive not defined: \'`IS_C0_WIDTH\'\n    localparam C0Width =     `IS_C0_WIDTH( IS );\n                             ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:85: Define or directive not defined: \'`IS_C1_WIDTH\'\n    localparam C1Width =     `IS_C1_WIDTH( IS );\n                             ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:86: Define or directive not defined: \'`IS_C2_WIDTH\'\n    localparam C2Width =     `IS_C2_WIDTH( IS );\n                             ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:87: Define or directive not defined: \'`IS_ALPHA_WIDTH\'\n    localparam AlphaWidth =  `IS_ALPHA_WIDTH( IS );\n                             ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:88: Define or directive not defined: \'`IS_Z_WIDTH\'\n    localparam ZWidth =      `IS_Z_WIDTH( IS );\n                             ^~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:107: syntax error, unexpected IDENTIFIER\n    image_buffer #(\n    ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:144: syntax error, unexpected assign\n    assign `I_Start( IS, image_in ) = in_start;\n    ^~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:144: Define or directive not defined: \'`I_Start\'\n    assign `I_Start( IS, image_in ) = in_start;\n           ^~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:145: Define or directive not defined: \'`I_Stop\'\n    assign `I_Stop( IS, image_in ) = in_stop;\n           ^~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:146: Define or directive not defined: \'`I_Data\'\n    assign `I_Data( IS, image_in ) = in_data;\n           ^~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:147: Define or directive not defined: \'`I_Error\'\n                                                                                : ... Suggested alternative: \'`error\'\n    assign `I_Error( IS, image_in ) = in_error;\n           ^~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:148: Define or directive not defined: \'`I_Valid\'\n    assign `I_Valid( IS, image_in ) = in_valid;\n           ^~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:151: Define or directive not defined: \'`I_Request\'\n    assign in_request = `I_Request( IS, image_in );\n                        ^~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:152: Define or directive not defined: \'`I_Cancel\'\n    assign in_cancel  = `I_Cancel( IS, image_in );\n                        ^~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:153: Define or directive not defined: \'`I_Ready\'\n    assign in_ready   = `I_Ready( IS, image_in );\n                        ^~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:166: syntax error, unexpected assign\n    assign out_start = `I_Start( IS, image_out );\n    ^~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:166: Define or directive not defined: \'`I_Start\'\n    assign out_start = `I_Start( IS, image_out );\n                       ^~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:167: Define or directive not defined: \'`I_Stop\'\n    assign out_stop = `I_Stop( IS, image_out );\n                      ^~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:168: Define or directive not defined: \'`I_Data\'\n    assign out_data = `I_Data( IS, image_out );\n                      ^~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:169: Define or directive not defined: \'`I_Error\'\n                                                                                : ... Suggested alternative: \'`error\'\n    assign out_error = `I_Error( IS, image_out );\n                       ^~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:170: Define or directive not defined: \'`I_Valid\'\n    assign out_valid = `I_Valid( IS, image_out );\n                       ^~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:172: Define or directive not defined: \'`I_Request\'\n    assign `I_Request( IS, image_out ) = out_request;\n           ^~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:173: Define or directive not defined: \'`I_Cancel\'\n    assign `I_Cancel( IS, image_out ) = out_cancel;\n           ^~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:174: Define or directive not defined: \'`I_Ready\'\n    assign `I_Ready( IS, image_out ) = out_ready;\n           ^~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:182: Define or directive not defined: \'`InfoDo\'\n            `InfoDo $display( "    Test Initial State" );\n            ^~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:184: Define or directive not defined: \'`InfoDo\'\n            `InfoDo $display( "        IS %x", IS );\n            ^~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:185: Define or directive not defined: \'`InfoDo\'\n            `InfoDo $display( "            IS.X      %d",  `IS_X( IS ) );\n            ^~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:185: Define or directive not defined: \'`IS_X\'\n            `InfoDo $display( "            IS.X      %d",  `IS_X( IS ) );\n                                                           ^~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:186: Define or directive not defined: \'`InfoDo\'\n            `InfoDo $display( "            IS.Y      %d",  `IS_Y( IS ) );\n            ^~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:186: Define or directive not defined: \'`IS_Y\'\n            `InfoDo $display( "            IS.Y      %d",  `IS_Y( IS ) );\n                                                           ^~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:187: Define or directive not defined: \'`InfoDo\'\n            `InfoDo $display( "            IS.Width  %d",  `IS_WIDTH( IS ) );\n            ^~~~~~~\n%Error: data/full_repos/permissive/190755935/src/image/sim/image_buffer_tb.v:187: Define or directive not defined: \'`IS_WIDTH\'\n            `InfoDo $display( "            IS.Width  %d",  `IS_WIDTH( IS ) );\n                                                           ^~~~~~~~~\n%Error: Exiting due to too many errors encountered; --error-limit=50\n'
function [2:0] out_brightness( input reg[ DataWidth-1:0 ] pixel ); begin

            out_frame_pixel_r = ( C0Width ) ? `I_C0( IS, pixel ) : 0;
            out_frame_pixel_g = ( C1Width ) ? `I_C1( IS, pixel ) : 0;
            out_frame_pixel_b = ( C2Width ) ? `I_C2( IS, pixel ) : 0;




            out_frame_pixel_total = out_frame_pixel_r + out_frame_pixel_g + out_frame_pixel_b;



            out_brightness = ( out_frame_pixel_total == 0 ) ? 0 :
                                  ( ( out_frame_pixel_total <= ( out_frame_pixel_max_total / 4 ) ? 1 :
                                       ( out_frame_pixel_total <= ( out_frame_pixel_max_total / 2 ) ? 2 : 3 ) ) );



        end
    endfunction
function [2:0] out_brightness( input reg[ DataWidth-1:0 ] pixel );
 begin

            out_frame_pixel_r = ( C0Width ) ? `I_C0( IS, pixel ) : 0;
            out_frame_pixel_g = ( C1Width ) ? `I_C1( IS, pixel ) : 0;
            out_frame_pixel_b = ( C2Width ) ? `I_C2( IS, pixel ) : 0;




            out_frame_pixel_total = out_frame_pixel_r + out_frame_pixel_g + out_frame_pixel_b;



            out_brightness = ( out_frame_pixel_total == 0 ) ? 0 :
                                  ( ( out_frame_pixel_total <= ( out_frame_pixel_max_total / 4 ) ? 1 :
                                       ( out_frame_pixel_total <= ( out_frame_pixel_max_total / 2 ) ? 2 : 3 ) ) );



        end
    endfunction