Closed knofr closed 2 years ago
Verilog-mode ignores ifdefs, but it doesn't ignore defines, which it processes from top of the file to the bottom. The last define value was the b1 so that is what it uses when looking for the module name.
I understand that this is happening. But is there a possibility that the AUTOINST worked correctly and there was a module, depending on the
`define ENABLE
?
No, sorry.
I carefully read FAQ part, and know that ifdef s directive ignored. But i see in FAQ, that similar example has been covered.
After evaluating AUTO, buffer_inst is always equal to the module instance b1, regardless of the ifdef value.
Using verilog-mode version 2021-10-14. Config :