1.

Are The Following Codes Are Synthesizable ? Is There Any Difference In The Synthesis Result Of (i) And (ii)?< (i) Always @ (posedge Clk1 Or Negedge Clk2) Begin If (!clk2 && A) Dout <= 0; Else Dout<= Din; End (ii)

Answer»

ALWAYS @ (posedge Clk1 Or Negedge Rst)
Begin
If (!rst && A)
Dout <= 0;
Else
Dout<= DIN;
End

Both are not synthesizable as there is a MIXING of asynchronous and synchronous element in the if condition.

Both are not synthesizable as there is a mixing of asynchronous and synchronous element in the if condition.



Discussion

No Comment Found