Guest
Is there a way to define a default value for an input of a Verilog
module?
Example, I create a Counter module with an CountDown input whose
default is 0. If a user instantiate this module and does not specify
the CountDown input, it will be set by default to 0 such that the
counter does the expected thing of counting up (this is just an
example).
Thanks,
K.
module?
Example, I create a Counter module with an CountDown input whose
default is 0. If a user instantiate this module and does not specify
the CountDown input, it will be set by default to 0 such that the
counter does the expected thing of counting up (this is just an
example).
Thanks,
K.