I wish to monitor two signals and I wish to determine which of the two
changed first and then do some work accordingly.
module tb(input sel1,
//Determine which of the two changed first
if sel1 changed first :
//Do some work
//Do some Other work'
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.