data/full_repos/permissive/20726090/hw/vlog/amber25/a25_dcache.v
None: at end of input
1: b'%Error: data/full_repos/permissive/20726090/hw/vlog/amber25/a25_dcache.v:45: Cannot find include file: global_defines.v\n`include "global_defines.v" \n         ^~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/20726090/hw/vlog/amber25,data/full_repos/permissive/20726090/global_defines.v\n             data/full_repos/permissive/20726090/hw/vlog/amber25,data/full_repos/permissive/20726090/global_defines.v.v\n             data/full_repos/permissive/20726090/hw/vlog/amber25,data/full_repos/permissive/20726090/global_defines.v.sv\n             global_defines.v\n             global_defines.v.v\n             global_defines.v.sv\n             obj_dir/global_defines.v\n             obj_dir/global_defines.v.v\n             obj_dir/global_defines.v.sv\n%Error: data/full_repos/permissive/20726090/hw/vlog/amber25/a25_dcache.v:46: Cannot find include file: a25_config_defines.v\n`include "a25_config_defines.v" \n         ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/20726090/hw/vlog/amber25/a25_dcache.v:108: Cannot find include file: a25_localparams.v\n`include "a25_localparams.v" \n         ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/20726090/hw/vlog/amber25/a25_dcache.v:109: Cannot find include file: a25_functions.v\n`include "a25_functions.v" \n         ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/20726090/hw/vlog/amber25/a25_dcache.v:66: Define or directive not defined: \'`A25_DCACHE_WAYS\'\nparameter WAYS              = `A25_DCACHE_WAYS ,\n                              ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/20726090/hw/vlog/amber25/a25_dcache.v:66: syntax error, unexpected \',\', expecting TYPE-IDENTIFIER\nparameter WAYS              = `A25_DCACHE_WAYS ,\n                                               ^\n%Error: data/full_repos/permissive/20726090/hw/vlog/amber25/a25_dcache.v:70: syntax error, unexpected parameter, expecting IDENTIFIER\nparameter WORD_SEL_WIDTH    = log2 ( CACHE_WORDS_PER_LINE ),                \n^~~~~~~~~\n%Error: data/full_repos/permissive/20726090/hw/vlog/amber25/a25_dcache.v:71: syntax error, unexpected parameter, expecting IDENTIFIER\nparameter TAG_ADDR_WIDTH    = 32 - CACHE_ADDR_WIDTH - WORD_SEL_WIDTH - 2,   \n^~~~~~~~~\n%Error: data/full_repos/permissive/20726090/hw/vlog/amber25/a25_dcache.v:72: syntax error, unexpected parameter, expecting IDENTIFIER\nparameter TAG_WIDTH         = TAG_ADDR_WIDTH + 1,                           \n^~~~~~~~~\n%Error: data/full_repos/permissive/20726090/hw/vlog/amber25/a25_dcache.v:73: syntax error, unexpected parameter, expecting IDENTIFIER\nparameter CACHE_LINE_WIDTH  = CACHE_WORDS_PER_LINE * 32,                    \n^~~~~~~~~\n%Error: data/full_repos/permissive/20726090/hw/vlog/amber25/a25_dcache.v:74: syntax error, unexpected parameter, expecting IDENTIFIER\nparameter TAG_ADDR32_LSB    = CACHE_ADDR_WIDTH + WORD_SEL_WIDTH + 2,        \n^~~~~~~~~\n%Error: data/full_repos/permissive/20726090/hw/vlog/amber25/a25_dcache.v:75: syntax error, unexpected parameter, expecting IDENTIFIER\nparameter CACHE_ADDR32_MSB  = CACHE_ADDR_WIDTH + WORD_SEL_WIDTH + 2 - 1,    \n^~~~~~~~~\n%Error: data/full_repos/permissive/20726090/hw/vlog/amber25/a25_dcache.v:76: syntax error, unexpected parameter, expecting IDENTIFIER\nparameter CACHE_ADDR32_LSB  =                    WORD_SEL_WIDTH + 2    ,    \n^~~~~~~~~\n%Error: data/full_repos/permissive/20726090/hw/vlog/amber25/a25_dcache.v:77: syntax error, unexpected parameter, expecting IDENTIFIER\nparameter WORD_SEL_MSB      = WORD_SEL_WIDTH + 2 - 1,                       \n^~~~~~~~~\n%Error: data/full_repos/permissive/20726090/hw/vlog/amber25/a25_dcache.v:78: syntax error, unexpected parameter, expecting IDENTIFIER\nparameter WORD_SEL_LSB      =                  2                            \n^~~~~~~~~\n%Error: data/full_repos/permissive/20726090/hw/vlog/amber25/a25_dcache.v:80: syntax error, unexpected \')\', expecting \';\'\n)\n^\n%Error: data/full_repos/permissive/20726090/hw/vlog/amber25/a25_dcache.v:191: syntax error, unexpected genvar\ngenvar                      i;\n^~~~~~\n%Error: data/full_repos/permissive/20726090/hw/vlog/amber25/a25_dcache.v:465: syntax error, unexpected assign\nassign consecutive_write_wdata = \n^~~~~~\n%Error: data/full_repos/permissive/20726090/hw/vlog/amber25/a25_dcache.v:742: syntax error, unexpected end\nend\n^~~\n%Error: data/full_repos/permissive/20726090/hw/vlog/amber25/a25_dcache.v:772: syntax error, unexpected end\nend\n^~~\n%Error: data/full_repos/permissive/20726090/hw/vlog/amber25/a25_dcache.v:806: syntax error, unexpected end\nend\n^~~\n%Error: data/full_repos/permissive/20726090/hw/vlog/amber25/a25_dcache.v:856: syntax error, unexpected end\nend\n^~~\n%Error: data/full_repos/permissive/20726090/hw/vlog/amber25/a25_dcache.v:867: syntax error, unexpected assign\nassign xSOURCE_SEL = source_sel[C_CORE]               ? "C_CORE"                :\n^~~~~~\n%Error: data/full_repos/permissive/20726090/hw/vlog/amber25/a25_dcache.v:891: Define or directive not defined: \'`TB_ERROR_MESSAGE\'\n            `TB_ERROR_MESSAGE\n            ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/20726090/hw/vlog/amber25/a25_dcache.v:901: Define or directive not defined: \'`TB_ERROR_MESSAGE\'\n            `TB_ERROR_MESSAGE\n            ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/20726090/hw/vlog/amber25/a25_dcache.v:912: Define or directive not defined: \'`TB_ERROR_MESSAGE\'\n            `TB_ERROR_MESSAGE\n            ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/20726090/hw/vlog/amber25/a25_dcache.v:925: Define or directive not defined: \'`TB_ERROR_MESSAGE\'\n            `TB_ERROR_MESSAGE\n            ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/20726090/hw/vlog/amber25/a25_dcache.v:934: Define or directive not defined: \'`TB_ERROR_MESSAGE\'\n        `TB_ERROR_MESSAGE\n        ^~~~~~~~~~~~~~~~~\n%Error: Exiting due to 28 error(s)\n'
function [WAYS-1:0] pick_way;
    input [WAYS-1:0] valid_bits;
    input [3:0]      random_num;
    begin
        if (      valid_bits[0] == 1'd0 )

            pick_way     = 8'b00000001;
        else if ( valid_bits[1] == 1'd0 )

            pick_way     = 8'b00000010;
        else if ( valid_bits[2] == 1'd0 )

            pick_way     = 8'b00000100;
        else if ( valid_bits[3] == 1'd0 )

            pick_way     = 8'b00001000;
        else if ( valid_bits[4] == 1'd0 )

            pick_way     = 8'b00010000;
        else if ( valid_bits[5] == 1'd0 )

            pick_way     = 8'b00100000;
        else if ( valid_bits[6] == 1'd0 )

            pick_way     = 8'b01000000;
        else if ( valid_bits[7] == 1'd0 )

            pick_way     = 8'b10000000;
        else
            begin

            case (random_num[3:1])
                3'd0:       pick_way = 8'b00010000;
                3'd1:       pick_way = 8'b00100000;
                3'd2:       pick_way = 8'b01000000;
                3'd3:       pick_way = 8'b10000000;
                3'd4:       pick_way = 8'b00000001;
                3'd5:       pick_way = 8'b00000010;
                3'd6:       pick_way = 8'b00000100;
                default:    pick_way = 8'b00001000;
            endcase
            end
    end
    endfunction
function [WAYS-1:0] pick_way;

    input [WAYS-1:0] valid_bits;
    input [3:0]      random_num;
    begin
        if (      valid_bits[0] == 1'd0 )

            pick_way     = 8'b00000001;
        else if ( valid_bits[1] == 1'd0 )

            pick_way     = 8'b00000010;
        else if ( valid_bits[2] == 1'd0 )

            pick_way     = 8'b00000100;
        else if ( valid_bits[3] == 1'd0 )

            pick_way     = 8'b00001000;
        else if ( valid_bits[4] == 1'd0 )

            pick_way     = 8'b00010000;
        else if ( valid_bits[5] == 1'd0 )

            pick_way     = 8'b00100000;
        else if ( valid_bits[6] == 1'd0 )

            pick_way     = 8'b01000000;
        else if ( valid_bits[7] == 1'd0 )

            pick_way     = 8'b10000000;
        else
            begin

            case (random_num[3:1])
                3'd0:       pick_way = 8'b00010000;
                3'd1:       pick_way = 8'b00100000;
                3'd2:       pick_way = 8'b01000000;
                3'd3:       pick_way = 8'b10000000;
                3'd4:       pick_way = 8'b00000001;
                3'd5:       pick_way = 8'b00000010;
                3'd6:       pick_way = 8'b00000100;
                default:    pick_way = 8'b00001000;
            endcase
            end
    end
    endfunction