> Can assignment pattern be used on string type variable? > >Consider the testcase, >module top; > string s; > initial begin > s = '{s}; // legal? > s = string'{s}; // legal ? > end >endmodule It is plausible that an assignment pattern could be used to build a string, given their similarity to an unpacked array of characters. But even if that were true, this example would be illegal. The elements in the assignment pattern would have to be compatible with the elements of the string. They would need to be integral values, not strings. An assignment pattern containing a string would have to be assigned to an array of strings. Steven Sharp sharp@cadence.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Thu Jun 4 08:04:41 2009
This archive was generated by hypermail 2.1.8 : Thu Jun 04 2009 - 08:05:24 PDT