I have this macro:
`define do_code(DO_SOETHING, ID) \
fork \
begin \
``DO_SOMETHING`` \
end \
begin \
$display("%s",ID.name()); \
end \
join_any \
disable fork; \
and I use it as such:
`do_code($display("%s",argA.name()), argB)
How does the compiler knows to separate the two macro's input arguments correct:
DO_SOMETHING = $display("%s",argA.name())
ID = argB
Why not break it to:
DO_SOMETHING = $display("%s"
ID = argA.name()), argB
???