Subject: RE: [sv-bc] Errata in SV 3.1 BNF for unique/priority if...else
From: Brad Pierce (Brad.Pierce@synopsys.com)
Date: Tue Sep 02 2003 - 10:37:33 PDT
Stu,
Another interpretation is that the following is legal --
always_comb
if (opcode == 0) y = a + b;
else unique if (opcode == 1) y = a - b;
else if (opcode == 2) y = a * b;
else y = a / b;
Or is a begin/end required? --
always_comb
if (opcode == 0) y = a + b;
else begin
unique if (opcode == 1) y = a - b;
else if (opcode == 2) y = a * b;
else y = a / b;
end
-- Brad
This archive was generated by hypermail 2b28 : Tue Sep 02 2003 - 10:39:03 PDT