Semiconductor device and memory device including sampling circuit
A semiconductor device includes: a sampling control circuit configured to select a coarse section from a plurality of coarse sections according to a first pattern signal during a sampling period, select a fine section from a plurality of fine sections according to a second pattern signal during the selected coarse section, and generate first to third sampling control signals having activated sections defined by the selected coarse section and the selected fine section; and a sampling circuit configured to sample an input address according to the first to third sampling control signals, respectively, to generate first to third sampling addresses, and schedule the first to third sampling addresses according to a sampling signal defining the sampling period to output an output address.
1 . A semiconductor device comprising:
a sampling control circuit configured to
select a coarse section from a plurality of coarse sections according to a first pattern signal during a sampling period,
select a fine section from a plurality of fine sections according to a second pattern signal during the selected coarse section, and
generate first to third sampling control signals having activated sections defined by the selected coarse section and the selected fine section; and
a sampling circuit configured to
sample an input address according to the first to third sampling control signals, respectively, to generate first to third sampling addresses, and
schedule the first to third sampling addresses according to a sampling signal defining the sampling period to output an output address.
2 . The semiconductor device of claim 1 ,
wherein, during the sampling period, the sampling control circuit generates the first sampling control signal and the second sampling control signal having the activated sections separated from each other by the selected fine section, and
wherein, during the sampling period, the sampling control circuit generates the third sampling control signal having the activated section defined by the selected coarse section.
3 . The semiconductor device of claim 1 , wherein the sampling control circuit includes:
a first section control circuit configured to randomly select the coarse section from the plurality of coarse sections according to the sampling signal and the first pattern signal;
a second section control circuit configured to randomly select the fine section from the plurality of fine sections according to the sampling signal and the second pattern signal during the selected coarse section; and
a control signal generation circuit configured to generate the first sampling control signal and the second sampling control signal having the activated sections separated from each other by the selected fine section, and generate the third sampling control signal having the activated section defined by the selected coarse section.
4 . The semiconductor device of claim 3 , wherein the first section control circuit generates a coarse section signal designating the selected coarse section by comparing a first count value generated by counting the first pattern signal with a reference count value generated by counting the sampling signal.
5 . The semiconductor device of claim 4 , wherein the second section control circuit generates a fine section signal designating the selected fine section by comparing a second count value generated by counting the second pattern signal with the reference count value.
6 . The semiconductor device of claim 3 , wherein the control signal generation circuit includes:
a first signal generator configured to generate the first sampling control signal that is set according to the sampling signal and reset according to a fine section signal designating the selected fine section;
a second signal generator configured to generate the second sampling control signal that is set according to the fine section signal and reset according to the sampling signal; and
a third signal generator configured to generate the third sampling control signal that is set according to the sampling signal and reset according to a coarse section signal designating the selected coarse section.
7 . The semiconductor device of claim 1 , further comprising:
a first pattern generation circuit configured to generate the first pattern signal randomly pulsing during the sampling period; and
a second pattern generation circuit configured to generate the second pattern signal randomly pulsing at a period shorter than the first pattern signal, during the sampling period.
8 . The semiconductor device of claim 1 , wherein the sampling circuit includes:
a first storage circuit configured to receive and store the input address as one of a plurality of first preliminary addresses according to the first sampling control signal, and select one of the first preliminary addresses based on a number of inputs of the first preliminary addresses to output the first sampling address;
a second storage circuit configured to receive and store the input address as one of a plurality of second preliminary addresses according to the second sampling control signal, and select one of the second preliminary addresses based on a number of inputs of the second preliminary addresses to output the second sampling address;
a shadow latch configured to store the input address as the third sampling address according to the third sampling control signal; and
an output control circuit configured to output the output address by scheduling the first to third sampling addresses according to the sampling signal.
9 . The semiconductor device of claim 8 , wherein the first storage circuit includes:
a plurality of address latches configured to store the input address as one of the plurality of first preliminary addresses according to the first sampling control signal;
a plurality of counters configured to respectively count the number of inputs of the first preliminary addresses; and
a latch control circuit configured to control a corresponding first preliminary address to be output as the first sampling address when one of count values of the plurality of counters is equal to or greater than a threshold value.
10 . The semiconductor device of claim 8 , wherein the second storage circuit includes:
a plurality of address latches configured to store the input address as one of the plurality of second preliminary addresses according to the second sampling control signal;
a plurality of counters configured to respectively count the number of inputs of the second preliminary addresses; and
a latch control circuit configured to control a corresponding second preliminary address to be output as the second sampling address when one of count values of the plurality of counters is equal to or greater than a threshold value.
11 . The semiconductor device of claim 8 ,
wherein the output control circuit includes:
an order control circuit configured to determine an activation order of first to third output control signals according to a number of inputs of the sampling signal;
a first output latch circuit configured to sequentially store the first sampling address to sequentially output the output address according to the first output control signal; and
a second output latch circuit configured to sequentially store the second sampling address to sequentially output the output address according to the second output control signal, and
wherein the shadow latch is configured to output the third sampling address as the output address, according to the third output control signal.
12 . A semiconductor device comprising:
a sampling control circuit configured to generate a first pattern signal and a second pattern signal, which randomly pulse at different periods according to a sampling signal, and generate first to third sampling control signals based on the first pattern signal and the second pattern signal;
a first storage circuit configured to store an input address as one of a plurality of first preliminary addresses according to the first sampling control signal to generate a first sampling address;
a second storage circuit configured to store the input address as one of a plurality of second preliminary addresses according to the second sampling control signal to generate a second sampling address;
a shadow latch configured to latch the input address as a third sampling address according to the third sampling control signal; and
an output control circuit configured to output an output address by selecting one of the first to third sampling addresses according to the sampling signal.
13 . The semiconductor device of claim 12 , wherein the sampling control circuit includes:
a first section control circuit configured to randomly select a coarse section from a plurality of coarse sections divided by the first pattern signal, according to the sampling signal;
a second section control circuit configured to randomly select a fine section from a plurality of fine sections divided by the second pattern signal according to the sampling signal and the second pattern signal, during the selected coarse section; and
a control signal generation circuit configured to generate the first sampling control signal and the second sampling control signal having activated sections separated from each other by the selected fine section, and generate the third sampling control signal having an activated section defined by the selected coarse section.
14 . The semiconductor device of claim 12 , wherein the first storage circuit includes:
a plurality of address latches configured to store the input address as one of the plurality of first preliminary addresses according to the first sampling control signal;
a plurality of counters configured to respectively count the number of inputs of the first preliminary addresses; and
a latch control circuit configured to control a corresponding first preliminary address to be output as the first sampling address when one of count values of the counters is equal to or greater than a threshold value.
15 . The semiconductor device of claim 12 , wherein the second storage circuit includes:
a plurality of address latches configured to store the input address as one of the plurality of second preliminary addresses according to the second sampling control signal;
a plurality of counters configured to respectively count the number of inputs of the second preliminary addresses; and
a latch control circuit configured to control a corresponding second preliminary address to be output as the second sampling address when one of count values of the counters is equal to or greater than a threshold value.
16 . The semiconductor device of claim 12 ,
wherein the output control circuit includes:
an order control circuit configured to determine an activation order of first to third output control signals according to a number of inputs of the sampling signal;
a first output latch circuit configured to sequentially store the first sampling address to sequentially output the output address according to the first output control signal; and
a second output latch circuit configured to sequentially store the second sampling address to sequentially output the output address according to the second output control signal, and
wherein the shadow latch is configured to output the third sampling address as the output address, according to the third output control signal.