Integer to std_logic type conversion
Many choices here. You can use a conditional signal assignment:

signal a:    std_logic;
signal int:    integer range 0 to 1;

a &lt;= '0' when int = 0 else
     '1';


And the integer could be class constant, and derived from a generic.