Introduction - If you have any usage issues, please Google them yourself
Make the required flag signals using the input clock signal (clk) and input flag (TKN).
Whenever the TKN signal is activated, a sequence of activation of flag signals should be performed based on the timing diagram