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