[sv-bc] input port kind

From: danielm <danielm_at_.....>
Date: Mon Feb 18 2008 - 02:38:24 PST
As per LRM 1800-2005:
"For input and inout ports, if the port kind is omitted, 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."

so inputs in below codes have kind as described below

module sub(input reg i);//i is a net 

endmodule

 

module sub(input var reg i); //i is a variable of type reg

endmodule

 

module sub(input bit i);

//what is kind of i in this case - i cannot be a net becouse nets cannot
have 2-value type. it shouold be an error? or i should be a variable?????
LRM doesnt specufy that.

endmodule

 

 

DANiel


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Mon Feb 18 02:41:37 2008

This archive was generated by hypermail 2.1.8 : Mon Feb 18 2008 - 02:42:26 PST