J
johnp
Guest
I looking at some Verilog code that I believe is legal but one of my
tools complains about. The code used `ifdef...`endif constructs to
select signals to pass to a module for different configurations.
The problem pops up at the very end of a module instantiation:
// instantiate the module
my_mod u_my_mod (
`ifdef foo
.p1 (param1a),
.p2 (param2a),
.p3 (param3a)
`else
.p1 (param1b),
.p2 (param2b),
.p3 (param3b)
`endif );
Note the ");" immediately after the `endif. A gross coding style, but
I
believe this is legal.
Any opinions on if this style is OK?
Thanks!
John Providenza
tools complains about. The code used `ifdef...`endif constructs to
select signals to pass to a module for different configurations.
The problem pops up at the very end of a module instantiation:
// instantiate the module
my_mod u_my_mod (
`ifdef foo
.p1 (param1a),
.p2 (param2a),
.p3 (param3a)
`else
.p1 (param1b),
.p2 (param2b),
.p3 (param3b)
`endif );
Note the ");" immediately after the `endif. A gross coding style, but
I
believe this is legal.
Any opinions on if this style is OK?
Thanks!
John Providenza