Forum Discussion
Altera_Forum
Honored Contributor
16 years agoProbably best to talk about what you are trying to do.
1 - Are you synthesizing or simulating? 2 - You have three constructs in Verilog for subdividing functionality a - Modules b - Functions c - Tasks You may be able to accomplish what you are trying to accomplish using a task or a function. You can NOT normally call a module from within an "if" statement. The one exception to this is if you are using a "generate if" but I don't think that's what you are trying to do. Jake