M
Mike
Guest
Can someone help me with the following question? Thanks!
Suppose A and B are mutually exclusive,
Is the following code synthesizable (i.e., will it cause race condition)?
If synthesizable, what will the gates look like?
always @ (posedge CLK)
begin
if (reset)
sig <= 0;
else
begin
if (A)
sig <= 1;
if (B)
sig <= 0;
end
end
Suppose A and B are mutually exclusive,
Is the following code synthesizable (i.e., will it cause race condition)?
If synthesizable, what will the gates look like?
always @ (posedge CLK)
begin
if (reset)
sig <= 0;
else
begin
if (A)
sig <= 1;
if (B)
sig <= 0;
end
end