Forum Discussion
Altera_Forum
Honored Contributor
14 years ago[VHDL] integer to std_logic or std_logic_vector conversion
Hello, I've some issues to convert integer to std_logic or std_logic_vector. I need to do so for a testbench which reads stimuli (binary or positive integers) in a text file, stores it as intege...
Altera_Forum
Honored Contributor
14 years agoLooks like a pretty long thread about a trivial VHDL problem.
Why don't you simply write a conversion function that returns '0'= for input = 0 otherwise '1'?