Verilog: Does Vivado Synthesis tool, add signals to sensitivity list automatically?

554 views Asked by At
module Test( input i );
 (* MARK_DEBUG = "TRUE" *) reg b;

 always @(i)
 begin
      if(i)
           b = 1'h0;
      else
           b = ~b;
 end
endmodule

After synthesizing this code I get the following result during Post-Synthesis-Simulation process with ModelSim simulator :

** Error (suppressible): (vsim-3601) Iteration limit 10000000 reached at time 20 ns.

But I have no problem with Behavioral-Simulation phase.

It seems that the Vivado adds "b" signal to the sensitivity list automatically, Isn't it ?

2

There are 2 answers

2
AudioBubble On BEST ANSWER

Think about this module in terms of the hardware it implies.

b can't be implemented as a register or latch, because it's being assigned to from a combinational always block. However, the resulting circuit contains a combinational loop which won't stabilize on any value when i is 0:

schematic

0
AudioBubble On

Yes, Xilinx's synthesis engines (XST in ISE, Vivado) automatically add missing signals to the sensitivity list. No error is given, but a warning by default.

WARNING: [Synth 8-614] signal 'my_signal' is read in the process but is not in the sensitivity list