I’m using macros in a signal name. But ,I see compilation errors
define PATH rx
define REPLACE(x) x
class my_class;
int v_PATH ; // 1st approach int y_
REPLACE(`PATH) ;//2nd approach
endclass
Both the approaches are giving me error. What is the correct way of doing it. I want to declare two variables
int v_rx;
int y_rx;
But the suffix should come from a macro