Forum Discussion
Altera_Forum
Honored Contributor
16 years ago --- Quote Start --- So what is a "proper" way to call a module inside an if? --- Quote End --- There is simply no way. Actually, a Verilog module respectively a VHDL component is a an independent logic unit, it isn't called rather than instantiated. As you mentioned at the beginning, FPGA programming with hardware description languages is different from a procedural programming of a processor. If you want an external signal to modify the logical behaviour of a module, possibly stop it's operation, this must be achieved somehow through the module's ports. In case of a clocked module, a clock enable can be e.g. cut off.