So functions are just used to make the life easier in "compilation time", they aren't translated in hardware, so they can have only static inputs (like constants). Am I right? Thank you for the videos
Not entirely correct. You can assign signals or variables to function parameters as well, not only constants. But inside of the function, the parameters behave like constants. You can't change them inside of the function, and you can't send values out of the function through the parameter list. Use the 'return' keyword for that.
Thank you for taking you're time to make all these wonderful tutorials!
Very straightforward.
this wonderful tutorials really helpfull thx
So functions are just used to make the life easier in "compilation time", they aren't translated in hardware, so they can have only static inputs (like constants). Am I right?
Thank you for the videos
Not entirely correct. You can assign signals or variables to function parameters as well, not only constants. But inside of the function, the parameters behave like constants. You can't change them inside of the function, and you can't send values out of the function through the parameter list. Use the 'return' keyword for that.
Great thanks!