Forum Discussion
Altera_Forum
Honored Contributor
9 years agoSystemVerilog is SystemVerilog-2005, and the LRM 19.8 says:
--- Quote Start --- For the first port, if neither a type nor a direction is specified, then it shall be assumed to be a member of a port list, and any port direction or type declarations must be declared after the port list. This is compatible with the Verilog-1995 syntax. If the first port kind or data type is specified, but no direction is specified, then the port direction shall default to inout. If the first port direction is specified, but no port kind or data type is specified, then the port shall default to a net of net type wire. This default net type can be changed using the ‘default_nettype compiler directive, as in Verilog. --- Quote End --- So because you declared rl_sck as output, it defaults to wire type and cannot be re-declared So yes - it is legal 2001 syntax, but not 2005 (which systemverilog is)