fragnen
Full Member level 4
Is the following code synthesizable? If not, why? Here f(sig_a) if a logical function of sig_a and g(sig_b) is another logical function of sig_b. Here sig_a and sig_b are either wire or reg.
always (posedge sig_a or sig_b or negedge reset)
if (!reset)
out<=1'b0;
else if (enable1)
out<=f(sig_a);
else if (enable2)
out<=g(sig_b);
always (posedge sig_a or sig_b or negedge reset)
if (!reset)
out<=1'b0;
else if (enable1)
out<=f(sig_a);
else if (enable2)
out<=g(sig_b);