data/full_repos/permissive/205682213/src_v/audio.v
None: at end of input
1: b'%Error: data/full_repos/permissive/205682213/src_v/audio.v:35: Cannot find include file: audio_defs.v\n`include "audio_defs.v" \n         ^~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/205682213/src_v,data/full_repos/permissive/205682213/audio_defs.v\n             data/full_repos/permissive/205682213/src_v,data/full_repos/permissive/205682213/audio_defs.v.v\n             data/full_repos/permissive/205682213/src_v,data/full_repos/permissive/205682213/audio_defs.v.sv\n             audio_defs.v\n             audio_defs.v.v\n             audio_defs.v.sv\n             obj_dir/audio_defs.v\n             obj_dir/audio_defs.v.v\n             obj_dir/audio_defs.v.sv\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:106: Define or directive not defined: \'`AUDIO_CFG\'\nelse if (write_en_w && (cfg_awaddr_i[7:0] == `AUDIO_CFG))\n                                             ^~~~~~~~~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:106: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\nelse if (write_en_w && (cfg_awaddr_i[7:0] == `AUDIO_CFG))\n                                                       ^\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:116: Number is missing value digits: 16\'d\n    audio_cfg_int_threshold_q <= 16\'d`AUDIO_CFG_INT_THRESHOLD_DEFAULT;\n                                 ^~~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:116: Define or directive not defined: \'`AUDIO_CFG_INT_THRESHOLD_DEFAULT\'\n    audio_cfg_int_threshold_q <= 16\'d`AUDIO_CFG_INT_THRESHOLD_DEFAULT;\n                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:117: Define or directive not defined: \'`AUDIO_CFG\'\nelse if (write_en_w && (cfg_awaddr_i[7:0] == `AUDIO_CFG))\n                                             ^~~~~~~~~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:117: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\nelse if (write_en_w && (cfg_awaddr_i[7:0] == `AUDIO_CFG))\n                                                       ^\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:118: Define or directive not defined: \'`AUDIO_CFG_INT_THRESHOLD_R\'\n    audio_cfg_int_threshold_q <= cfg_wdata_i[`AUDIO_CFG_INT_THRESHOLD_R];\n                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:128: Number is missing value digits: 1\'d\n    audio_cfg_byte_swap_q <= 1\'d`AUDIO_CFG_BYTE_SWAP_DEFAULT;\n                             ^~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:128: Define or directive not defined: \'`AUDIO_CFG_BYTE_SWAP_DEFAULT\'\n    audio_cfg_byte_swap_q <= 1\'d`AUDIO_CFG_BYTE_SWAP_DEFAULT;\n                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:129: Define or directive not defined: \'`AUDIO_CFG\'\nelse if (write_en_w && (cfg_awaddr_i[7:0] == `AUDIO_CFG))\n                                             ^~~~~~~~~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:129: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\nelse if (write_en_w && (cfg_awaddr_i[7:0] == `AUDIO_CFG))\n                                                       ^\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:130: Define or directive not defined: \'`AUDIO_CFG_BYTE_SWAP_R\'\n    audio_cfg_byte_swap_q <= cfg_wdata_i[`AUDIO_CFG_BYTE_SWAP_R];\n                                         ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:140: Number is missing value digits: 1\'d\n    audio_cfg_ch_swap_q <= 1\'d`AUDIO_CFG_CH_SWAP_DEFAULT;\n                           ^~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:140: Define or directive not defined: \'`AUDIO_CFG_CH_SWAP_DEFAULT\'\n    audio_cfg_ch_swap_q <= 1\'d`AUDIO_CFG_CH_SWAP_DEFAULT;\n                              ^~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:141: Define or directive not defined: \'`AUDIO_CFG\'\nelse if (write_en_w && (cfg_awaddr_i[7:0] == `AUDIO_CFG))\n                                             ^~~~~~~~~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:141: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\nelse if (write_en_w && (cfg_awaddr_i[7:0] == `AUDIO_CFG))\n                                                       ^\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:142: Define or directive not defined: \'`AUDIO_CFG_CH_SWAP_R\'\n    audio_cfg_ch_swap_q <= cfg_wdata_i[`AUDIO_CFG_CH_SWAP_R];\n                                       ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:152: Number is missing value digits: 2\'d\n    audio_cfg_target_q <= 2\'d`AUDIO_CFG_TARGET_DEFAULT;\n                          ^~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:152: Define or directive not defined: \'`AUDIO_CFG_TARGET_DEFAULT\'\n    audio_cfg_target_q <= 2\'d`AUDIO_CFG_TARGET_DEFAULT;\n                             ^~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:153: Define or directive not defined: \'`AUDIO_CFG\'\nelse if (write_en_w && (cfg_awaddr_i[7:0] == `AUDIO_CFG))\n                                             ^~~~~~~~~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:153: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\nelse if (write_en_w && (cfg_awaddr_i[7:0] == `AUDIO_CFG))\n                                                       ^\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:154: Define or directive not defined: \'`AUDIO_CFG_TARGET_R\'\n    audio_cfg_target_q <= cfg_wdata_i[`AUDIO_CFG_TARGET_R];\n                                      ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:164: Number is missing value digits: 3\'d\n    audio_cfg_vol_ctrl_q <= 3\'d`AUDIO_CFG_VOL_CTRL_DEFAULT;\n                            ^~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:164: Define or directive not defined: \'`AUDIO_CFG_VOL_CTRL_DEFAULT\'\n    audio_cfg_vol_ctrl_q <= 3\'d`AUDIO_CFG_VOL_CTRL_DEFAULT;\n                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:165: Define or directive not defined: \'`AUDIO_CFG\'\nelse if (write_en_w && (cfg_awaddr_i[7:0] == `AUDIO_CFG))\n                                             ^~~~~~~~~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:165: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\nelse if (write_en_w && (cfg_awaddr_i[7:0] == `AUDIO_CFG))\n                                                       ^\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:166: Define or directive not defined: \'`AUDIO_CFG_VOL_CTRL_R\'\n    audio_cfg_vol_ctrl_q <= cfg_wdata_i[`AUDIO_CFG_VOL_CTRL_R];\n                                        ^~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:176: Number is missing value digits: 1\'d\n    audio_cfg_buffer_rst_q <= 1\'d`AUDIO_CFG_BUFFER_RST_DEFAULT;\n                              ^~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:176: Define or directive not defined: \'`AUDIO_CFG_BUFFER_RST_DEFAULT\'\n    audio_cfg_buffer_rst_q <= 1\'d`AUDIO_CFG_BUFFER_RST_DEFAULT;\n                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:177: Define or directive not defined: \'`AUDIO_CFG\'\nelse if (write_en_w && (cfg_awaddr_i[7:0] == `AUDIO_CFG))\n                                             ^~~~~~~~~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:177: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\nelse if (write_en_w && (cfg_awaddr_i[7:0] == `AUDIO_CFG))\n                                                       ^\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:178: Define or directive not defined: \'`AUDIO_CFG_BUFFER_RST_R\'\n    audio_cfg_buffer_rst_q <= cfg_wdata_i[`AUDIO_CFG_BUFFER_RST_R];\n                                          ^~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:180: Number is missing value digits: 1\'d\n    audio_cfg_buffer_rst_q <= 1\'d`AUDIO_CFG_BUFFER_RST_DEFAULT;\n                              ^~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:180: Define or directive not defined: \'`AUDIO_CFG_BUFFER_RST_DEFAULT\'\n    audio_cfg_buffer_rst_q <= 1\'d`AUDIO_CFG_BUFFER_RST_DEFAULT;\n                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:193: Define or directive not defined: \'`AUDIO_STATUS\'\nelse if (write_en_w && (cfg_awaddr_i[7:0] == `AUDIO_STATUS))\n                                             ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:193: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\nelse if (write_en_w && (cfg_awaddr_i[7:0] == `AUDIO_STATUS))\n                                                          ^\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:209: Define or directive not defined: \'`AUDIO_CLK_DIV\'\nelse if (write_en_w && (cfg_awaddr_i[7:0] == `AUDIO_CLK_DIV))\n                                             ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:209: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\nelse if (write_en_w && (cfg_awaddr_i[7:0] == `AUDIO_CLK_DIV))\n                                                           ^\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:219: Number is missing value digits: 16\'d\n    audio_clk_div_whole_cycles_q <= 16\'d`AUDIO_CLK_DIV_WHOLE_CYCLES_DEFAULT;\n                                    ^~~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:219: Define or directive not defined: \'`AUDIO_CLK_DIV_WHOLE_CYCLES_DEFAULT\'\n    audio_clk_div_whole_cycles_q <= 16\'d`AUDIO_CLK_DIV_WHOLE_CYCLES_DEFAULT;\n                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:220: Define or directive not defined: \'`AUDIO_CLK_DIV\'\nelse if (write_en_w && (cfg_awaddr_i[7:0] == `AUDIO_CLK_DIV))\n                                             ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:220: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\nelse if (write_en_w && (cfg_awaddr_i[7:0] == `AUDIO_CLK_DIV))\n                                                           ^\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:221: Define or directive not defined: \'`AUDIO_CLK_DIV_WHOLE_CYCLES_R\'\n    audio_clk_div_whole_cycles_q <= cfg_wdata_i[`AUDIO_CLK_DIV_WHOLE_CYCLES_R];\n                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:234: Define or directive not defined: \'`AUDIO_CLK_FRAC\'\nelse if (write_en_w && (cfg_awaddr_i[7:0] == `AUDIO_CLK_FRAC))\n                                             ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:234: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\nelse if (write_en_w && (cfg_awaddr_i[7:0] == `AUDIO_CLK_FRAC))\n                                                            ^\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:244: Number is missing value digits: 16\'d\n    audio_clk_frac_numerator_q <= 16\'d`AUDIO_CLK_FRAC_NUMERATOR_DEFAULT;\n                                  ^~~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:244: Define or directive not defined: \'`AUDIO_CLK_FRAC_NUMERATOR_DEFAULT\'\n    audio_clk_frac_numerator_q <= 16\'d`AUDIO_CLK_FRAC_NUMERATOR_DEFAULT;\n                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:245: Define or directive not defined: \'`AUDIO_CLK_FRAC\'\nelse if (write_en_w && (cfg_awaddr_i[7:0] == `AUDIO_CLK_FRAC))\n                                             ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/205682213/src_v/audio.v:245: syntax error, unexpected \')\', expecting TYPE-IDENTIFIER\nelse if (write_en_w && (cfg_awaddr_i[7:0] == `AUDIO_CLK_FRAC))\n                                                            ^\n%Error: Exiting due to too many errors encountered; --error-limit=50\n'
function [15:0] vol_adjust;
    input  [15:0] x;
    input  [2:0] y;
    reg [15:0] val;
begin 

    case (y)



   0 : 
   begin
         val = x;
   end



   1 : 
   begin

        if (x[15] == 1'b1)
             val = {1'b1,x[15:1]};
        else
             val = {1'b0,x[15:1]};
   end   



   2 : 
   begin

        if (x[15] == 1'b1)
             val = {2'b11,x[15:2]};
        else
             val = {2'b00,x[15:2]};
   end



   3 : 
   begin

        if (x[15] == 1'b1)
             val = {3'b111,x[15:3]};
        else
             val = {3'b000,x[15:3]};
   end



   4 : 
   begin

        if (x[15] == 1'b1)
             val = {4'b1111,x[15:4]};
        else
             val = {4'b0000,x[15:4]};
   end   



   5 : 
   begin

        if (x[15] == 1'b1)
             val = {5'b11111,x[15:5]};
        else
             val = {5'b00000,x[15:5]};
   end    



   6 : 
   begin

        if (x[15] == 1'b1)
             val = {6'b111111,x[15:6]};
        else
             val = {6'b000000,x[15:6]};         
   end



   7 : 
   begin

        if (x[15] == 1'b1)
             val = {7'b1111111,x[15:7]};
        else
             val = {7'b0000000,x[15:7]};         
   end   
   default : 
        val = x;
   endcase

   vol_adjust = val;
end
endfunction
function [15:0] vol_adjust;

    input  [15:0] x;
    input  [2:0] y;
    reg [15:0] val;
begin 

    case (y)



   0 : 
   begin
         val = x;
   end



   1 : 
   begin

        if (x[15] == 1'b1)
             val = {1'b1,x[15:1]};
        else
             val = {1'b0,x[15:1]};
   end   



   2 : 
   begin

        if (x[15] == 1'b1)
             val = {2'b11,x[15:2]};
        else
             val = {2'b00,x[15:2]};
   end



   3 : 
   begin

        if (x[15] == 1'b1)
             val = {3'b111,x[15:3]};
        else
             val = {3'b000,x[15:3]};
   end



   4 : 
   begin

        if (x[15] == 1'b1)
             val = {4'b1111,x[15:4]};
        else
             val = {4'b0000,x[15:4]};
   end   



   5 : 
   begin

        if (x[15] == 1'b1)
             val = {5'b11111,x[15:5]};
        else
             val = {5'b00000,x[15:5]};
   end    



   6 : 
   begin

        if (x[15] == 1'b1)
             val = {6'b111111,x[15:6]};
        else
             val = {6'b000000,x[15:6]};         
   end



   7 : 
   begin

        if (x[15] == 1'b1)
             val = {7'b1111111,x[15:7]};
        else
             val = {7'b0000000,x[15:7]};         
   end   
   default : 
        val = x;
   endcase

   vol_adjust = val;
end
endfunction