clearable_enabled_latch : process(le, clr, ce, d) is
begin
    if (clr = '1') then
        q <= '0';
    else if ((le = '1') and (ce = '1')) then
        q < = d;
    end if;
end process clearable_enabled_latch;