Forum Discussion
Altera_Forum
Honored Contributor
10 years agoHow to call a module from an always block?
Hey guys! I am trying to implement a 32-bit ALU. I have different modules for the adder, subtractor, multiplier and divider. Now the problem is based on a select line input (S) I have to decide w...
Altera_Forum
Honored Contributor
10 years agoCreate the operations as tasks. You can put them all in a separate file then `include that file in the file where you want to call them. You can call tasks from inside an always block.