I wish to monitor two signals and I wish to determine which of the two
changed first and then do some work accordingly.
1 | module tb(input sel1,
|
2 | input sel2);
|
3 |
|
4 | //Determine which of the two changed first
|
5 | if sel1 changed first :
|
6 | //Do some work
|
7 | else :
|
8 | //Do some Other work'
|
9 | endmodule
|
The above is a sample code. I have also attached a photo as an example.
In the photo, in the first instance sel1 changed first and the 2nd
time, sel2 changed first, (NOTE : going from low to high is a change,
according to the picture)
Can someone help me write a code which can help me to make out which of
the signal changed first.
Thank you