The reason for the restriction was to prevent typographical errors that would be very difficult to detect the difference between tri reg and trireg It also is to encourage people to use logic instead of reg as a data type because wire reg is visually contradictory to anyone familiar with Verilog. Dave ________________________________ From: owner-sv-ec@server.eda.org [mailto:owner-sv-ec@server.eda.org] On Behalf Of Surya Pratik Saha Sent: Monday, December 17, 2007 10:20 PM To: sv-ec@server.eda.org; sv-bc@server.eda.org Subject: [sv-ec] 'reg' after net type Hi, As per SV LRM (6.6 Net declarations draft 4), following text is mentioned: A lexical restriction applies to the use of the reg keyword in a net or port declaration. A net type keyword shall not be followed directly by the reg keyword. Thus, the following declarations are in error: Is there special meaning for that restriction. If 'wire scalared reg' is allowed why then 'wire reg' is not allowed. Some tools pass 'wire reg r' syntax. -- Regards Surya -- This message has been scanned for viruses and dangerous content by MailScanner <http://www.mailscanner.info/> , and is believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Tue Dec 18 01:40:11 2007
This archive was generated by hypermail 2.1.8 : Tue Dec 18 2007 - 01:43:40 PST