Hi i am trying to concatenate a macro with a string variable. Below is the code:
define VAR_LANE0 8'h0000; //MEMORY is kind of storage memory, defined outside and being included in this file. I am not showing that part class my_class; reg [8*8:0] str_var = "LANE0"; // a string variable which can store max 8 characters. // here it is storing "LANE0" string. bit [7:0] local_var1 = MEMORY[
VAR_LANE0];
bit [7:0] local_var2 = MEMORY[`VAR_str_var]; // trying to concatenate the macro with the
// string. But error is coming.
Any solution please. I want to achieve the VAR_LANE0 by using
VAR_str_var, if any other way is there please tell.