Semiconductor devices and methods of handling data lifetime codes used therein
A semiconductor device includes a latch circuit and a code comparison circuit. The latch circuit latches an output code generated based on an active command. The latch circuit outputs the latched output code as a latch code in response to a write command. The code comparison circuit compares the latch code with a write code to generate a detection signal.
1. A semiconductor device comprising:
a code comparison circuit configured to compare an output code generated based on a command with a set code to generate a detection signal controlling a predetermined operation; and
a code adjuster configured to adjust the output code in response to the detection signal to generate an adjustment code, wherein the code adjuster counts down the output code to generate the adjustment code if the detection signal is enabled.
2. The semiconductor device of claim 1 , wherein the set code is set to have a logic level combination that means data lifetime of zero.
3. The semiconductor device of claim 1 , wherein the code comparison circuit generates the detection signal which is enabled if the output code is identical to the set code.
4. The semiconductor device of claim 1 ,
wherein the predetermined operation terminates if the detection signal is enabled; and
wherein the predetermined operation is a refresh operation or a recharge operation.
5. The semiconductor device of claim 1 , wherein the adjustment code is stored as a data lifetime code corresponding to data selected by an address.
6. A method of handling a data lifetime code, the method comprising:
comparing an output code generated based on a command with a set code to generate a detection signal controlling a predetermined operation; and
adjusting the output code in response to the detection signal to generate an adjustment code, wherein the adjustment code is generated by counting down the output code if the detection signal is enabled.
7. The method of claim 6 , wherein the set code is set to have a logic level combination that means data lifetime of zero.
8. The method of claim 6 , wherein the detection signal is enabled if the output code is identical to the set code.
9. The method of claim 6 ,
wherein the predetermined operation terminates if the detection signal is enabled; and
wherein the predetermined operation is a refresh operation or a recharge operation.
10. The method of claim 6 , wherein the adjustment code is stored as a data lifetime code corresponding to data selected by an address.