I have a logic pulse output from a system I've been doing. All I want is a system that:

1. Input a logic value (0/1)
2. Output that value for x time, even if the input changes
3. Reset

How can I achieve that?

**Edit:**

For example:
The input goes 0 then 1 every one second.
I need to get the pulse at 0sec and hold it for 3sec. Then again with the pulse at 3sec and etc

Input = {**0** 1 0 **1** 0 1 **0** 1 0 **1** 0 1}

Output = {0 0 0 1 1 1 0 0 0 1 1 1}