whether you're using a package or not, it doesn't matter.
tx_serial_in is not defined within the procedure writeTofile (it starts with the keyword 'procedure' and ends with the keyword 'end'), so yes, the error message is correct "Unknown identifier".
And pls use the syntax or code tags.
I think you mean it's not defined within the scope of the procedure. Procedures can read and modify external signals and variables as long as they are within scope of the procedure.
Code VHDL - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 procedure do_something is variable a,b : integer; constant C : integer := 10; procedure do_something_else is variable a,d : integer; begin d := 10; a := C + d; --uses local version of a because it has the narrower scope, answer is 20; b := a; --can see b because it is declared above this procedure. end procedure; begin do_something_else; --b now 20 b := b + C; --b is now 30 d := C; --illegal, because there is no d in scope - it is only contained inside the do_something_else procedure; end procedure;
Yes - procedures procedures have to be called inside processes. I hope you've modified your procedure, because I know it will not work at all the way you think its going to work.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?