Re: Problem Passing Values to a function in Verilog
It's not clear what you're trying to do and what "error" you get.
I don't see arr1 anywhere in the posted code.
You didn't say what the error was.
Your function uses loop variables m and n, but prints out the value of i and j. I imagine it should print the same values 9 times. Is that the "error you're talking about?
On another note. I see this a lot in these forums. Your code is not indented. My guess is that your text editor is using tab characters for indentation, and these are removed when the text is pasted into the post. If your text editor supports it (most do) you should set it to replace tabs with spaces. Then pasting the code would show the indentation as you see it. It also keeps your code formatted the same if someone else opens it in a different editor, or even the same editor with different tab settings.