data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v
None: at end of input
1: b'%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:15: 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/drivers/sim,data/full_repos/permissive/190755935/../../utils/sim/sim.v\n             data/full_repos/permissive/190755935/src/drivers/sim,data/full_repos/permissive/190755935/../../utils/sim/sim.v.v\n             data/full_repos/permissive/190755935/src/drivers/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/drivers/sim/camera_image_tb.v:17: Cannot find include file: ../../pipe/rtl/pipe_defs.v\n`include "../../pipe/rtl/pipe_defs.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:19: 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/drivers/sim/camera_image_tb.v:23: Define or directive not defined: \'`OutputDebug\'\n    parameter Output=`OutputDebug;\n                     ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:23: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n    parameter Output=`OutputDebug;\n                                 ^\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:28: Unsupported or unknown PLI call: $dumpfile\n        $dumpfile("camera_image_tb.vcd");\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:29: Unsupported or unknown PLI call: $dumpvars\n        $dumpvars( 1, camera_image_tb );\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:30: Unsupported or unknown PLI call: $dumpvars\n        $dumpvars( 1, camera_image_tb.cam_image );\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:31: Unsupported or unknown PLI call: $dumpvars\n        $dumpvars( 1, camera_image_tb.cam_image.cam );\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:32: Unsupported or unknown PLI call: $dumpvars\n        $dumpvars( 1, camera_image_tb.buffer );\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:33: Unsupported or unknown PLI call: $dumpvars\n        $dumpvars( 1, camera_image_tb.cam_proxy );\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:34: Unsupported or unknown PLI call: $dumpvars\n        $dumpvars( 0, camera_image_tb.cam_proxy.i2c_s );\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:38: Define or directive not defined: \'`Realtime\'\n    `Realtime\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:41: Define or directive not defined: \'`Clock10MHz\'\n    `Clock10MHz\n    ^~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:43: Define or directive not defined: \'`AssertSetup\'\n    `AssertSetup\n    ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:110: Define or directive not defined: \'`IS\'\n    localparam IS =  `IS( 0, 0, CameraWidth - 1, CameraHeight - 4, 0, 1, `IS_FORMAT_GRAYSCALE, 10, 0, 0, 0, 0 );\n                     ^~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:110: syntax error, unexpected \',\'\n    localparam IS =  `IS( 0, 0, CameraWidth - 1, CameraHeight - 4, 0, 1, `IS_FORMAT_GRAYSCALE, 10, 0, 0, 0, 0 );\n                           ^\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:110: Define or directive not defined: \'`IS_FORMAT_GRAYSCALE\'\n    localparam IS =  `IS( 0, 0, CameraWidth - 1, CameraHeight - 4, 0, 1, `IS_FORMAT_GRAYSCALE, 10, 0, 0, 0, 0 );\n                                                                         ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:112: Define or directive not defined: \'`IS_WIDTH\'\n    localparam ImageWidth = `IS_WIDTH( IS );\n                            ^~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:113: Define or directive not defined: \'`IS_HEIGHT\'\n    localparam ImageHeight = `IS_HEIGHT( IS );\n                             ^~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:115: Define or directive not defined: \'`IS_PIXEL_COUNT\'\n    localparam ImagePixelCount = `IS_PIXEL_COUNT( IS );\n                                 ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:117: Define or directive not defined: \'`IS_WIDTH_WIDTH\'\n    localparam ImageWidthWidth =  `IS_WIDTH_WIDTH( IS );\n                                  ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:118: Define or directive not defined: \'`IS_HEIGHT_WIDTH\'\n    localparam ImageHeightWidth = `IS_HEIGHT_WIDTH( IS );\n                                  ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:119: Define or directive not defined: \'`IS_DATA_WIDTH\'\n    localparam ImageDataWidth =   `IS_DATA_WIDTH( IS );\n                                  ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:121: Define or directive not defined: \'`IS_C0_WIDTH\'\n    localparam ImageC0Width =     `IS_C0_WIDTH( IS );\n                                  ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:122: Define or directive not defined: \'`IS_C1_WIDTH\'\n    localparam ImageC1Width =     `IS_C1_WIDTH( IS );\n                                  ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:123: Define or directive not defined: \'`IS_C2_WIDTH\'\n    localparam ImageC2Width =     `IS_C2_WIDTH( IS );\n                                  ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:124: Define or directive not defined: \'`IS_ALPHA_WIDTH\'\n    localparam ImageAlphaWidth =  `IS_ALPHA_WIDTH( IS );\n                                  ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:125: Define or directive not defined: \'`IS_Z_WIDTH\'\n    localparam ImageZWidth =      `IS_Z_WIDTH( IS );\n                                  ^~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:127: Define or directive not defined: \'`I_w\'\n    wire [`I_w( IS )-1:0 ] image_out;\n          ^~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:141: Define or directive not defined: \'`I_Start\'\n    assign image_out_start = `I_Start( IS, image_out );\n                             ^~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:141: syntax error, unexpected \',\'\n    assign image_out_start = `I_Start( IS, image_out );\n                                         ^\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:142: Define or directive not defined: \'`I_Stop\'\n    assign image_out_stop = `I_Stop( IS, image_out );\n                            ^~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:142: syntax error, unexpected \',\'\n    assign image_out_stop = `I_Stop( IS, image_out );\n                                       ^\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:143: Define or directive not defined: \'`I_Data\'\n    assign image_out_data = `I_Data( IS, image_out );\n                            ^~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:143: syntax error, unexpected \',\'\n    assign image_out_data = `I_Data( IS, image_out );\n                                       ^\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:144: Define or directive not defined: \'`I_Error\'\n                                                                                  : ... Suggested alternative: \'`error\'\n    assign image_out_error = `I_Error( IS, image_out );\n                             ^~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:144: syntax error, unexpected \',\'\n    assign image_out_error = `I_Error( IS, image_out );\n                                         ^\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:145: Define or directive not defined: \'`I_Valid\'\n    assign image_out_valid = `I_Valid( IS, image_out );\n                             ^~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:145: syntax error, unexpected \',\'\n    assign image_out_valid = `I_Valid( IS, image_out );\n                                         ^\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:147: Define or directive not defined: \'`I_Valid\'\n    assign image_out_request = `I_Valid( IS, image_out );\n                               ^~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:147: syntax error, unexpected \',\'\n    assign image_out_request = `I_Valid( IS, image_out );\n                                           ^\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:148: Define or directive not defined: \'`I_Cancel\'\n    assign image_out_cancel = `I_Cancel( IS, image_out );\n                              ^~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:148: syntax error, unexpected \',\'\n    assign image_out_cancel = `I_Cancel( IS, image_out );\n                                           ^\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:149: Define or directive not defined: \'`I_Ready\'\n    assign image_out_ready = `I_Ready( IS, image_out );\n                             ^~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:149: syntax error, unexpected \',\'\n    assign image_out_ready = `I_Ready( IS, image_out );\n                                         ^\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:214: Define or directive not defined: \'`I_w\'\n    wire [`I_w( IS )-1:0 ] buffer_image_out;\n          ^~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:227: Define or directive not defined: \'`I_Start\'\n    assign buffer_image_out_start = `I_Start( IS, buffer_image_out );\n                                    ^~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:227: syntax error, unexpected \',\'\n    assign buffer_image_out_start = `I_Start( IS, buffer_image_out );\n                                                ^\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/camera_image_tb.v:228: Define or directive not defined: \'`I_Stop\'\n    assign buffer_image_out_stop = `I_Stop( IS, buffer_image_out );\n                                   ^~~~~~~\n%Error: Exiting due to too many errors encountered; --error-limit=50\n'
function [2:0] out_brightness( input reg[ ImageDataWidth-1:0 ] pixel ); begin

            out_frame_pixel = ( ImageC0Width ) ? `I_C0( IS, pixel ) : 0;

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



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

            out_frame_pixel = ( ImageC0Width ) ? `I_C0( IS, pixel ) : 0;

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



        end
    endfunction