Very hard to debug your issue without seeing all the code as text (not a picture of it) or even a link to the code.
One think I do see is your stimulus is in a race condition with the clock. Use the negative edge to apply stimulus.
Okay Sir. In that case let me share you my code link.
Link ā EDA Playground
Sir, Even after applying negative egde. It fails!. What to do?
Iām not sure if you are right. I made a few modifications. And plese see here:
Actually, The mistake was in design. It was not rectified.

Thank you for the suggestions.
