Here is a simple function for converting integer number to STD logic vector and vice versa. The width can be easily adjusted upto 32 bits (max size of integer number).
This is very useful in handling file i/o for processing images into VHDL modules.
STD LOGIC VECTOR to 8 bit INTEGER:
This is very useful in handling file i/o for processing images into VHDL modules.
STD LOGIC VECTOR to 8 bit INTEGER:




