data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/device_id_reg.v
 line:61: before: "/"
1: b"%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/device_id_reg.v:48: Define or directive not defined: '`CORE_REG_ADDR_WIDTH'\n      input [(`CORE_REG_ADDR_WIDTH - 2 - 4) - 1:0] reg_addr,\n              ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/device_id_reg.v:50: Define or directive not defined: '`CPCI_NF2_DATA_WIDTH'\n      output reg [`CPCI_NF2_DATA_WIDTH - 1:0]   reg_rd_data,\n                  ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/device_id_reg.v:51: Define or directive not defined: '`CPCI_NF2_DATA_WIDTH'\n      input [`CPCI_NF2_DATA_WIDTH - 1:0]        reg_wr_data,\n             ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/device_id_reg.v:61: Define or directive not defined: '`CPCI_NF2_DATA_WIDTH'\nlocalparam WORD_WIDTH       = `CPCI_NF2_DATA_WIDTH / 8;\n                              ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/device_id_reg.v:61: syntax error, unexpected '/', expecting TYPE-IDENTIFIER\nlocalparam WORD_WIDTH       = `CPCI_NF2_DATA_WIDTH / 8;\n                                                   ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/device_id_reg.v:68: Define or directive not defined: '`CPCI_NF2_DATA_WIDTH'\nfunction [`CPCI_NF2_DATA_WIDTH - 1:0] get_device_substr;\n          ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/device_id_reg.v:112: Define or directive not defined: '`CPCI_NF2_DATA_WIDTH'\nwire [`CPCI_NF2_DATA_WIDTH-1:0] device_id[0:NUM_REGS - 1];\n      ^~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/device_id_reg.v:116: Define or directive not defined: '`DEV_ID_MD5_0'\nassign device_id[`DEV_ID_MD5_0]      = `DEV_ID_MD5_VALUE_0;\n                 ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/device_id_reg.v:116: syntax error, unexpected ']', expecting TYPE-IDENTIFIER\nassign device_id[`DEV_ID_MD5_0]      = `DEV_ID_MD5_VALUE_0;\n                              ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/device_id_reg.v:116: Define or directive not defined: '`DEV_ID_MD5_VALUE_0'\nassign device_id[`DEV_ID_MD5_0]      = `DEV_ID_MD5_VALUE_0;\n                                       ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/device_id_reg.v:117: Define or directive not defined: '`DEV_ID_MD5_1'\nassign device_id[`DEV_ID_MD5_1]      = `DEV_ID_MD5_VALUE_1;\n                 ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/device_id_reg.v:117: syntax error, unexpected ']', expecting TYPE-IDENTIFIER\nassign device_id[`DEV_ID_MD5_1]      = `DEV_ID_MD5_VALUE_1;\n                              ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/device_id_reg.v:117: Define or directive not defined: '`DEV_ID_MD5_VALUE_1'\nassign device_id[`DEV_ID_MD5_1]      = `DEV_ID_MD5_VALUE_1;\n                                       ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/device_id_reg.v:118: Define or directive not defined: '`DEV_ID_MD5_2'\nassign device_id[`DEV_ID_MD5_2]      = `DEV_ID_MD5_VALUE_2;\n                 ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/device_id_reg.v:118: syntax error, unexpected ']', expecting TYPE-IDENTIFIER\nassign device_id[`DEV_ID_MD5_2]      = `DEV_ID_MD5_VALUE_2;\n                              ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/device_id_reg.v:118: Define or directive not defined: '`DEV_ID_MD5_VALUE_2'\nassign device_id[`DEV_ID_MD5_2]      = `DEV_ID_MD5_VALUE_2;\n                                       ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/device_id_reg.v:119: Define or directive not defined: '`DEV_ID_MD5_3'\nassign device_id[`DEV_ID_MD5_3]      = `DEV_ID_MD5_VALUE_3;\n                 ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/device_id_reg.v:119: syntax error, unexpected ']', expecting TYPE-IDENTIFIER\nassign device_id[`DEV_ID_MD5_3]      = `DEV_ID_MD5_VALUE_3;\n                              ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/device_id_reg.v:119: Define or directive not defined: '`DEV_ID_MD5_VALUE_3'\nassign device_id[`DEV_ID_MD5_3]      = `DEV_ID_MD5_VALUE_3;\n                                       ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/device_id_reg.v:120: Define or directive not defined: '`DEV_ID_DEVICE_ID'\nassign device_id[`DEV_ID_DEVICE_ID]  = DEVICE_ID;\n                 ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/device_id_reg.v:120: syntax error, unexpected ']', expecting TYPE-IDENTIFIER\nassign device_id[`DEV_ID_DEVICE_ID]  = DEVICE_ID;\n                                  ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/device_id_reg.v:121: Define or directive not defined: '`DEV_ID_REVISION'\nassign device_id[`DEV_ID_REVISION]   = REVISION;\n                 ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/device_id_reg.v:121: syntax error, unexpected ']', expecting TYPE-IDENTIFIER\nassign device_id[`DEV_ID_REVISION]   = REVISION;\n                                 ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/device_id_reg.v:122: Define or directive not defined: '`DEV_ID_CPCI_ID'\nassign device_id[`DEV_ID_CPCI_ID]    = {`CPCI_REVISION_ID, `CPCI_VERSION_ID};\n                 ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/device_id_reg.v:122: syntax error, unexpected ']', expecting TYPE-IDENTIFIER\nassign device_id[`DEV_ID_CPCI_ID]    = {`CPCI_REVISION_ID, `CPCI_VERSION_ID};\n                                ^\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/device_id_reg.v:122: Define or directive not defined: '`CPCI_REVISION_ID'\nassign device_id[`DEV_ID_CPCI_ID]    = {`CPCI_REVISION_ID, `CPCI_VERSION_ID};\n                                        ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/13196823/fpga/DE4_Ethernet_0/src/device_id_reg.v:122: Define or directive not defined: '`CPCI_VERSION_ID'\nassign device_id[`DEV_ID_CPCI_ID]    = {`CPCI_REVISION_ID, `CPCI_VERSION_ID};\n                                                           ^~~~~~~~~~~~~~~~\n%Error: Exiting due to 27 error(s)\n"
function [`CPCI_NF2_DATA_WIDTH - 1:0] get_device_substr;
   input integer word;
   reg [DEVICE_STR_LEN  *  8 - 1:0] temp_str;
   reg [7:0] result_1;
   reg [7:0] result_2;
   reg [7:0] result_3;
   reg [7:0] result_4;
   integer length;
   integer pos;
   integer i;
   begin
      temp_str = DEVICE_STR;


      length = 0;

      pos = 0;
      while (pos <= DEVICE_STR_LEN * 8 - 1 && temp_str[pos +: 8] != 8'h0) begin
         length = length + 1;
         pos = pos + 8;
      end


      pos = (length - word * WORD_WIDTH) * 8 - 1;


      result_1 = (pos < 0) ? 8'b0 : temp_str[pos -: 8];
      pos = pos - 8;

      result_2 = (pos < 0) ? 8'b0 : temp_str[pos -: 8];
      pos = pos - 8;

      result_3 = (pos < 0) ? 8'b0 : temp_str[pos -: 8];
      pos = pos - 8;

      result_4 = (pos < 0) ? 8'b0 : temp_str[pos -: 8];

      get_device_substr = {result_1, result_2, result_3, result_4};
   end
endfunction
function [`CPCI_NF2_DATA_WIDTH - 1:0] get_device_substr;

   input integer word;
   reg [DEVICE_STR_LEN  *  8 - 1:0] temp_str;
   reg [7:0] result_1;
   reg [7:0] result_2;
   reg [7:0] result_3;
   reg [7:0] result_4;
   integer length;
   integer pos;
   integer i;
   begin
      temp_str = DEVICE_STR;


      length = 0;

      pos = 0;
      while (pos <= DEVICE_STR_LEN * 8 - 1 && temp_str[pos +: 8] != 8'h0) begin
         length = length + 1;
         pos = pos + 8;
      end


      pos = (length - word * WORD_WIDTH) * 8 - 1;


      result_1 = (pos < 0) ? 8'b0 : temp_str[pos -: 8];
      pos = pos - 8;

      result_2 = (pos < 0) ? 8'b0 : temp_str[pos -: 8];
      pos = pos - 8;

      result_3 = (pos < 0) ? 8'b0 : temp_str[pos -: 8];
      pos = pos - 8;

      result_4 = (pos < 0) ? 8'b0 : temp_str[pos -: 8];

      get_device_substr = {result_1, result_2, result_3, result_4};
   end
endfunction