RE: [sv-bc] input port kind

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Mon Feb 18 2008 - 03:35:05 PST
Hi,
 
We discussed this in Mantis 1984.
It should be illegal.
In reality, some tools allow it. 
One, for example, defines it as a wire with two-state semantics of their
own devising.
 
Shalom


________________________________

	From: owner-sv-bc@server.eda.org
[mailto:owner-sv-bc@server.eda.org] On Behalf Of danielm
	Sent: Monday, February 18, 2008 12:38 PM
	To: 'sv-bc'
	Subject: [sv-bc] input port kind
	
	
	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 <http://www.mailscanner.info/>
, and is 
	believed to be clean. 

---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

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

This archive was generated by hypermail 2.1.8 : Mon Feb 18 2008 - 03:40:32 PST