A semiconductor device having a delay-locked loop includes: a variable
delayer that delays a clock signal for a predetermined period of time to
generate an internal clock signal; a normal pass that outputs data read
from a memory cell outside the semiconductor device in response to the
internal clock signal; a replica pass that has a substantial identical
time delay to the normal pass and delays the internal clock signal to
generate an output signal; and a phase detector that compares a phase of
the clock signal with a phase of a predetermined feedback clock signal to
control a time delay in the variable delayer. Here, the internal clock
signal is output, instead of the output signal from the replica pass, as
the predetermined feedback clock signal in a predetermined test mode.