F
FP
Guest
I have written a code in VHDL which will read input from 1 file,
process it and write output in a different file. I have used 2 file
handles, 1 for read and write each.
procedure get
uses file handle for read
end procedure get;
architecture
begin
open file
get command
close file
end architecture
My question is, should file handle be declared as variable or signal.
Is it 100% ok to use it as a signal.
I have been using different functions within the procedure which
modify the file handle. I dont think it should be defined as a signal.
If defined as a variable then, I am running into problems of opening
and closing the file. I dont want to open and close the file every
time i call the procedure.
Also, I am calling the get procedure more than once.
Any suggestions?
process it and write output in a different file. I have used 2 file
handles, 1 for read and write each.
procedure get
uses file handle for read
end procedure get;
architecture
begin
open file
get command
close file
end architecture
My question is, should file handle be declared as variable or signal.
Is it 100% ok to use it as a signal.
I have been using different functions within the procedure which
modify the file handle. I dont think it should be defined as a signal.
If defined as a variable then, I am running into problems of opening
and closing the file. I dont want to open and close the file every
time i call the procedure.
Also, I am calling the get procedure more than once.
Any suggestions?