S
StefanLevie
Guest
I know that you can use defines to enable/disable a signal from a
module such as:
module my_module
(
input sig_A,
`ifdef TYPE_IS_MULTI
input sig_B,
`endif
....
Since `defines are global, it's tricky (but not impossible) to use
this module multiple times with different configurations.
Is it possible to replace `define / `ifdef with a parameter and
effectively do the same thing?
I am already using parameters to control the width (number bits) of a
signal, but have not been able to find an example where they enable/
disable the signal.
Thanks,
Stefan
module such as:
module my_module
(
input sig_A,
`ifdef TYPE_IS_MULTI
input sig_B,
`endif
....
Since `defines are global, it's tricky (but not impossible) to use
this module multiple times with different configurations.
Is it possible to replace `define / `ifdef with a parameter and
effectively do the same thing?
I am already using parameters to control the width (number bits) of a
signal, but have not been able to find an example where they enable/
disable the signal.
Thanks,
Stefan