I have a logic that happens at every rising clock edge. I want to do a simple action. I will tell you the situation.
signal a should be 0 as long as signal b is 1. How do i implement this in verilog code other than the conventional if else happening at always @(posedge clk or negedge rst_n) to check this ??
Is there some verilog construct (I mean synthesizable verilog construct) like signal a=0 until signal b=1 ??
Well, I will think I have not worded my question properly. I will think of a way to re-word my question. I will be back to this thread in a couple of days.
a <= not b, where a and b are youre 2 signlas it's jus an assigment(the sintax i used is in vhdl however it is simple to find the verilog analogy) Hope this helped...