Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
I just wanted to know if it is not a problem using an if statement inside a function to assign a value to the function output (this should be a simple question )
Which programming language? If you are talking about verilog, you can't use if statement outside always loop. You can use conditional operator to assign a value to a variable outside always loop.
now we have two contradictory replies by arishsu and rberek :thinker:
Functions are placed inside of always blocks, so I am not sure why arishsu was concerned that they fell outside of them.
r.b.
Because unlike rberek, arishsu hasn't been using Verilog at work for years. Hence the contradictory replies...one from an experienced Verolog coder and one from presumably a student based on their previous posts.now we have two contradictory replies by arishsu and rberek