The definitions of Principal Ideal Domain (PID) and Euclidean Domain (ED) are both from integral domain:
A non-trivial ring $R$ with no zero divisors is said to be entire; a commutative entire ring is called an integral domain.
Let $R$ be an integral domain. $R$ is a principal ideal domain (PID) if every ideal of $R$ is principal.
If $R$ is an integral domain, a Euclidean function on $R$ is a function $f$ from $R\setminus\{0\}$ to the non-negative integers satisfying the following fundamental division-with-remainder property:
(EF1) If $a$ and $b$ are in $R$ and $b$ is nonzero, then there exist $q$ and $r$ in $R$ such that $a = bq + r$ and either $r = 0$ or $f (r) < f (b)$.
A Euclidean domain is an integral domain which can be endowed with at least one Euclidean function.
And it's known that each ED is a PID, but not every PID is an ED.
However, what confused me is seems the requirements for an integral domain to be an PID or an ED are in different direction, and then surprisingly, walking a bit further from PID, one arrives ED.
Is there a sufficient and necessary condition, such that, if a PID fulfills it then it is an ED? i.e. something like:
If $R$ is a PID, $R$ is a Euclidean domain if it fulfills condition A) ...