I need some clarification! - regs vs. nets

T

thomasc

Guest
Say I need to call tasks, functions and other modules from a procedural
construct and that the parameters(for the tasks, functions and modules)
and LHS of assignments in the procedural block consists of both regs and
nets.

Then do I need to declare temporary regs for the wires? and assign those
temp regs to wires outside the procedural block?

Please let me know if my understanding is correct. If not, let me know
what I should do in such a case. Thanks!
 
Nets cannot be driven inside of a procedural block hence you can only
use regs. these regs can later be assigned to nets.
 

Welcome to EDABoard.com

Sponsor

Back
Top