B
bister
Guest
Hello,
I want to use a generic constant to pass the file name to the
following VHDL program but this type casting is killing me. Any help
with this would be greatly appreciated.
entity eprom is
generic (hex_file_name : text); <------ I want the file name to be
passed in the generic map here
port
(
.........
architecture behav_eprom of eprom is
file hex_file : text is in "/home/nelsob/d5/rtl/eeprom/npp55a.hex" ;
<--- this is what I have now that
works
but is a hard coded file name
........
begin
c_rom <= (others => 255 );
v_fileend := false;
while (not ( ENDFILE(hex_file) or v_fileend )) loop <---- this
is where it is used
-- while ((not ENDFILE(hex_file)) ) loop
READLINE(hex_file, in_text);
Thanks,
I want to use a generic constant to pass the file name to the
following VHDL program but this type casting is killing me. Any help
with this would be greatly appreciated.
entity eprom is
generic (hex_file_name : text); <------ I want the file name to be
passed in the generic map here
port
(
.........
architecture behav_eprom of eprom is
file hex_file : text is in "/home/nelsob/d5/rtl/eeprom/npp55a.hex" ;
<--- this is what I have now that
works
but is a hard coded file name
........
begin
c_rom <= (others => 255 );
v_fileend := false;
while (not ( ENDFILE(hex_file) or v_fileend )) loop <---- this
is where it is used
-- while ((not ENDFILE(hex_file)) ) loop
READLINE(hex_file, in_text);
Thanks,