In reply to Abhijitsjadhav:
In reply to sharat:
Thanks you @sharvil111, @sharat for your quick response.
@sharat, But as per @sharvil11 response we cannot define macros based on signal values,and here `define is based on “sel” signal.
The macros cannot be defined conditionally based on a signal value as they are unrolled at compiled time as sharvil11 mentioned. In the example that I provided, the macro is not defined conditionally, the value of data is being calculated conditionally.