A difference between ifdef and plusarg is that ifdef removes/adds code in compilation itself, while plusarg will compile the entire code suite. While using ifdef, one needs to re-compile in order to change the macro argument. On the other hand, the plusarg code is compiled irrespective of the command line argument
Hi, I’m Hardik, and welcome to The Art of Verification.
I’m a Verification Engineer who loves to crack complex designs and here to help others commit to mastering Verification Skills through self-learning, System Verilog, UVM, and most important to develop that thought process that every verification engineer should have.
I’ve made it my mission to give back and serve others beyond myself.
I will NEVER settle for less than I can be, do, give, or create.