twix232
Newbie
Hello,
I'm trying to implement a prescaler block based on an algorithm.
The block should trigger a certain behavior when both signal1 and signal2 have rising edges.
I have been searching for ways to create netlist-like events to achieve this functionality in Verilog-A, but I couldn't find any similar examples.
Can you provide guidance on how to approach this situation and implement the desired behavior?
I'm trying to implement a prescaler block based on an algorithm.
The block should trigger a certain behavior when both signal1 and signal2 have rising edges.
Code:
// when a signal1 is in rising edge
@(cross(signal1 , 1)) begin
// check also when signal 2 is in rising edge but this checking should be second in priority which means when signal1 is in rising edge go check if signal 2 is in rising edge
@(cross(signal2 , 1)) begin
do something
end
end
I have been searching for ways to create netlist-like events to achieve this functionality in Verilog-A, but I couldn't find any similar examples.
Can you provide guidance on how to approach this situation and implement the desired behavior?