I'm trying to verify an MBIST by randomly injecting the memory with errors and looking for error status. The force statement(given below) I've been using doesn't work when I replace a hardcoded path with the `define `RAM_PATH(mem_indx) ; ncvlog says ncvlog: *E,EXPIDN (.....) expecting an identifier [9.2(IEEE)].
Code:
[B] force `RAM_PATH(mem_indx).MEM[mem_addr][bit_indx] = bit_val; [/B]
Is there a way around this problem? I've the memory paths in the `define array `RAM_PATH(mem_indx) but I'm not able to use it because of this error.
Also if possible, please suggest any alternate ways for error injection.