foshanno1
Newbie

Hi,
So i am trying to use verilogA to write an edge detector. I can't think of a good way to do this. all i need is to trip the output whenever the input changes. I would have the cross function but the crossing threshold can change. so for example, if the input goes from 0V to 5V, I want to trip the output, but in the case when I go from -2V to -8V, I also want to trip the output. I am not sure how to do this since this requires me to keep recording the previous voltage and current voltage value? would I need a clock to do this ? Any help would appreciate it. Thanks
So i am trying to use verilogA to write an edge detector. I can't think of a good way to do this. all i need is to trip the output whenever the input changes. I would have the cross function but the crossing threshold can change. so for example, if the input goes from 0V to 5V, I want to trip the output, but in the case when I go from -2V to -8V, I also want to trip the output. I am not sure how to do this since this requires me to keep recording the previous voltage and current voltage value? would I need a clock to do this ? Any help would appreciate it. Thanks