A more natural syntax for linearized short-circuiting would be to add defaults to the existing ?: syntax. If it were legal to omit the then-leg or else-leg of an ?: A ? B --> A ? (|B) : 1'b0 A ?: B --> A ? 1'b1 : (|B) then, where the C language requires if (A && B && C) in Verilog one could write if (A ? B ? C) and where the C langauge requires if (A || B || C) in Verilog one could write if (A ?: B ?: C) because if (A ? B ? C) --> if (A ? |(B ? (|C) : 1'b0) : 1'b0) if (A ?: B ?: C) --> if (A ? 1'b1 : |(B ? 1'b1 : (|C))) -- BradReceived on Fri Aug 11 12:31:50 2006
This archive was generated by hypermail 2.1.8 : Fri Aug 11 2006 - 12:32:04 PDT