How to pass debug messages to a macro in SystemVerilog

后端 未结 0 769
耶瑟儿~
耶瑟儿~ 2020-12-19 03:03

I\'m attempting the following SystemVerilog:

`define DEBUG (ARG) \\
`ifdef DEBUG_ON \\
  $display ARG;
`endif
`endif

module my_mod;
logic a;
logic [1:0] b;

         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题