Jul 6, 2008 #1 D deepu_s_s Full Member level 5 Joined Mar 24, 2007 Messages 305 Helped 15 Reputation 30 Reaction score 5 Trophy points 1,298 Activity points 3,021 Hi All, I am having a doubt in functions. The function can be called from the always block only... is that right? Or can be called outside the always block? can the wires be in the sensitivity list of the always block? can the wires be in the argument list of the function? Where the functions can be defined? is it inside the module or outside? Please help me with ......... I need them as soon as possible Thanks and Regards Deepak
Hi All, I am having a doubt in functions. The function can be called from the always block only... is that right? Or can be called outside the always block? can the wires be in the sensitivity list of the always block? can the wires be in the argument list of the function? Where the functions can be defined? is it inside the module or outside? Please help me with ......... I need them as soon as possible Thanks and Regards Deepak
Jul 7, 2008 #2 S soloktanjung Full Member level 6 Joined Nov 20, 2006 Messages 364 Helped 51 Reputation 100 Reaction score 43 Trophy points 1,308 Location nowhere Activity points 3,194 Hi, The function can be called from the always block only... is that right? Or can be called outside the always block? Click to expand... From what I've read, no. It can be outside the always block. can the wires be in the sensitivity list of the always block? Click to expand... yes. can the wires be in the argument list of the function? Click to expand... yes. Where the functions can be defined? is it inside the module or outside? Click to expand... In the module using "function" keyword. Thanks.
Hi, The function can be called from the always block only... is that right? Or can be called outside the always block? Click to expand... From what I've read, no. It can be outside the always block. can the wires be in the sensitivity list of the always block? Click to expand... yes. can the wires be in the argument list of the function? Click to expand... yes. Where the functions can be defined? is it inside the module or outside? Click to expand... In the module using "function" keyword. Thanks.