data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v
 line:661: before: "@"
1: b'%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:24: 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/lcd_tb.v:26: 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/lcd_tb.v:73: Cannot find include file: ../rtl/lcd_defs.v\n    `include "../rtl/lcd_defs.v" \n             ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:30: Define or directive not defined: \'`OutputDebug\'\n    parameter Output=`OutputDebug;\n                     ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:30: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n    parameter Output=`OutputDebug;\n                                 ^\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:48: Unsupported or unknown PLI call: $dumpfile\n        $dumpfile("lcd_tb.vcd");\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:49: Unsupported or unknown PLI call: $dumpvars\n        $dumpvars( 1, lcd_tb );\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:50: Unsupported or unknown PLI call: $dumpvars\n        $dumpvars( 1, lcd_tb.l );\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:51: Unsupported or unknown PLI call: $dumpvars\n        $dumpvars( 1, lcd_tb.lp );\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:55: Define or directive not defined: \'`Realtime\'\n    `Realtime\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:58: Define or directive not defined: \'`Clock10MHz\'\n    `Clock10MHz\n    ^~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:60: Define or directive not defined: \'`AssertSetup\'\n    `AssertSetup\n    ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:215: syntax error, unexpected \'@\'\n            @( posedge clock );\n            ^\n%Warning-STMTDLY: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:214: 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/drivers/sim/lcd_tb.v:217: Unsupported: Ignoring delay on this delayed statement.\n            #2\n            ^\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:234: Define or directive not defined: \'`Info\'\n            `Info( "    Reset");\n            ^~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:234: syntax error, unexpected \';\'\n            `Info( "    Reset");\n                               ^\n%Warning-STMTDLY: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:295: Unsupported: Ignoring delay on this delayed statement.\n                    #1  \n                    ^\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:333: Define or directive not defined: \'`InfoDo\'\n            `InfoDo $display( "        Testing [%3d,%3d] = %x (%x)", x, y, pixel, lcd_out_p );\n            ^~~~~~~\n%Warning-STMTDLY: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:331: Unsupported: Ignoring delay on this delayed statement.\n            #1  \n            ^\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:335: Define or directive not defined: \'`AssertEqual\'\n            `AssertEqual( lcd_out_p, pixel, "Pixel Must Match" );\n            ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:335: syntax error, unexpected \',\'\n            `AssertEqual( lcd_out_p, pixel, "Pixel Must Match" );\n                                   ^\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:341: Define or directive not defined: \'`InfoDo\'\n            `InfoDo $display( "    Check Fill [%3d,%3d]-[%3d,%3d] <= %x", x0, y0, x1, y1, pixel );\n            ^~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:356: Define or directive not defined: \'`Assert\'\n            `Assert( ~ready, "LCD not ready" );\n            ^~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:356: syntax error, unexpected \',\'\n            `Assert( ~ready, "LCD not ready" );\n                           ^\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:366: Define or directive not defined: \'`AssertEqual\'\n                            `AssertEqual( lcd_out_data, pixel, "Data" );\n                            ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:366: syntax error, unexpected \',\'\n                            `AssertEqual( lcd_out_data, pixel, "Data" );\n                                                      ^\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:379: Define or directive not defined: \'`AssertEqual\'\n            `AssertEqual( command_count, 3, "Must get three commands (col addr, page addr, write)" );\n            ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:379: syntax error, unexpected \',\'\n            `AssertEqual( command_count, 3, "Must get three commands (col addr, page addr, write)" );\n                                       ^\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:380: Define or directive not defined: \'`AssertEqual\'\n            `AssertEqual( data_count, count + 8, "X x Y + ( 8 addrs)" );\n            ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:380: syntax error, unexpected \',\'\n            `AssertEqual( data_count, count + 8, "X x Y + ( 8 addrs)" );\n                                    ^\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:382: Define or directive not defined: \'`Assert\'\n            `Assert( ready, "LCD ready" );\n            ^~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:382: syntax error, unexpected \',\'\n            `Assert( ready, "LCD ready" );\n                          ^\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:408: Define or directive not defined: \'`InfoDo\'\n            `InfoDo $display( "    Check Write [%3d,%3d]-[%3d,%3d]", x0, y0, x1, y1 );\n            ^~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:426: Define or directive not defined: \'`Assert\'\n            `Assert( ~ready, "LCD not ready" );\n            ^~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:426: syntax error, unexpected \',\'\n            `Assert( ~ready, "LCD not ready" );\n                           ^\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:461: Define or directive not defined: \'`AssertEqual\'\n            `AssertEqual( ready_count, count, "Must have a Valid signal for each pixel" );\n            ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:461: syntax error, unexpected \',\'\n            `AssertEqual( ready_count, count, "Must have a Valid signal for each pixel" );\n                                     ^\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:462: Define or directive not defined: \'`AssertEqual\'\n            `AssertEqual( command_count, 3, "Must get three commands (col addr, page addr, write)" );\n            ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:462: syntax error, unexpected \',\'\n            `AssertEqual( command_count, 3, "Must get three commands (col addr, page addr, write)" );\n                                       ^\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:463: Define or directive not defined: \'`AssertEqual\'\n            `AssertEqual( data_count, count + 8, "X x Y + ( 8 addrs)" );\n            ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:463: syntax error, unexpected \',\'\n            `AssertEqual( data_count, count + 8, "X x Y + ( 8 addrs)" );\n                                    ^\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:464: Define or directive not defined: \'`Assert\'\n            `Assert( i < timeout, "Timeout" );\n            ^~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:464: syntax error, unexpected \',\'\n            `Assert( i < timeout, "Timeout" );\n                                ^\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:466: Define or directive not defined: \'`Assert\'\n            `Assert( ready, "LCD ready" );\n            ^~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:466: syntax error, unexpected \',\'\n            `Assert( ready, "LCD ready" );\n                          ^\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:495: Define or directive not defined: \'`Info\'\n        `Info( "    Checking Idle State" );\n        ^~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:495: syntax error, unexpected \';\'\n        `Info( "    Checking Idle State" );\n                                          ^\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:497: Define or directive not defined: \'`Assert\'\n        `Assert( ~ready, "LCD not ready" );\n        ^~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:497: syntax error, unexpected \',\'\n        `Assert( ~ready, "LCD not ready" );\n                       ^\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:498: Define or directive not defined: \'`Assert\'\n        `Assert( ~lcd_rst, "LCD is in reset" );\n        ^~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:498: syntax error, unexpected \',\'\n        `Assert( ~lcd_rst, "LCD is in reset" );\n                         ^\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:499: Define or directive not defined: \'`Assert\'\n        `Assert( lcd_cs, "LCD is not selected" );\n        ^~~~~~~\n%Error: data/full_repos/permissive/190755935/src/drivers/sim/lcd_tb.v:499: syntax error, unexpected \',\'\n        `Assert( lcd_cs, "LCD is not selected" );\n                       ^\n%Error: Exiting due to too many errors encountered; --error-limit=50\n'
function [2:0] lcdtb_brightness( input reg[ PixelWidth-1:0 ] pixel ); begin
            lcd_pixel_r = ( pixel >> ( PixelBlueWidth + PixelGreenWidth ) ) & ( (2**PixelRedWidth)-1);
            lcd_pixel_g = ( pixel >> ( PixelBlueWidth ) ) & ( (2**PixelGreenWidth)-1);
            lcd_pixel_b = ( pixel ) & ( (2**PixelBlueWidth)-1);
            lcd_pixel_total = lcd_pixel_r + lcd_pixel_g + lcd_pixel_b;



            lcdtb_brightness = ( lcd_pixel_total == 0 ) ? 0 :
                                  ( ( lcd_pixel_total <= ( lcd_pixel_max_total / 4 ) ? 1 :
                                       ( lcd_pixel_total <= ( lcd_pixel_max_total / 2 ) ? 2 : 3 ) ) );



        end
    endfunction
function [2:0] lcdtb_brightness( input reg[ PixelWidth-1:0 ] pixel );
 begin
            lcd_pixel_r = ( pixel >> ( PixelBlueWidth + PixelGreenWidth ) ) & ( (2**PixelRedWidth)-1);
            lcd_pixel_g = ( pixel >> ( PixelBlueWidth ) ) & ( (2**PixelGreenWidth)-1);
            lcd_pixel_b = ( pixel ) & ( (2**PixelBlueWidth)-1);
            lcd_pixel_total = lcd_pixel_r + lcd_pixel_g + lcd_pixel_b;



            lcdtb_brightness = ( lcd_pixel_total == 0 ) ? 0 :
                                  ( ( lcd_pixel_total <= ( lcd_pixel_max_total / 4 ) ? 1 :
                                       ( lcd_pixel_total <= ( lcd_pixel_max_total / 2 ) ? 2 : 3 ) ) );



        end
    endfunction