edhunter2003
Technical User
Hi all,
I am writing a testbench and I need to know something about file IO. How can you read a byte from a file and convert it to a std_logic_vector(7 downto 0)?
I have looked at all the text IO stuff, but none of it fits my need.
What I want is to read a pixel from a bitmap file, and convert it to std_logic_vector(7 downto 0) to pass to my VHDL core.
Any ideas?
Thanks a million
Ed
I am writing a testbench and I need to know something about file IO. How can you read a byte from a file and convert it to a std_logic_vector(7 downto 0)?
I have looked at all the text IO stuff, but none of it fits my need.
What I want is to read a pixel from a bitmap file, and convert it to std_logic_vector(7 downto 0) to pass to my VHDL core.
Any ideas?
Thanks a million
Ed