V
very_very_log
Guest
`define foo(f) f``_suffix
`define \goo* g_suffix
module abc (clk);
wire `foo(bar);
wire `\goo* ;
endmodule
`define \goo* g_suffix
module abc (clk);
wire `foo(bar);
wire `\goo* ;
endmodule
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
It means someone's playing silly-buggers with the`define foo(f) f``_suffix
`define \goo* g_suffix
module abc (clk);
wire `foo(bar);
wire `\goo* ;
endmodule
I think they're great. And I presume that this is a purely(Don't get me started about
preprocessors.... when the revolution happens
and I rule the world, preprocessors will be the
first things to be ceremonially incinerated.)
What?!! Surely the correct answer to very_very_log's first question isThe two
consecutive backticks in the macro body form
the "token-gluing" or concatenation operation,
allowing a macro argument to be concatenated with
a piece of plain text without any intervening
space.
Consider:
[in precis: SystemVerilog is a Bad Thing (TM)]
Please, Evan, don't do this to me! This set ofShould we be encouraging this?
Well you'll have to go through me to get to the incinerator if you're(Don't get me started about
preprocessors.... when the revolution happens
and I rule the world, preprocessors will be the
first things to be ceremonially incinerated.)