Altera_Forum
Honored Contributor
16 years agoCalling a module within an always block
I'm a java coder to begin with so sometimes verilog can be confusing at times and this is one of those times. What I'm trying to do is to call a module inside an if that is inside an always block. When I try to do that it gives me an error that says "task 'module_name' is not used as a task".
I know that I can just copy and paste everything from that module that I need and make it into a task. But inside that module, I also use another module. There are other modules used inside that module as well. So what is a "proper" way to call a module inside an if? Any help would be greatly appreciated. Thank you.