RE: [sv-bc] port-size mismatch warning

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Wed Sep 06 2006 - 02:45:55 PDT
Sure such warnings are useful, but there are dozens of useful warnings.
The vast majority are left up to the tool implementors.

First question is, is this already required in 1364?
Second is, is this required in 1800 deliberately or by mistake?
Third is, should this be required by the standard?

I don't know for sure, but I think the answers are: no, by mistake, no.

Shalom


> -----Original Message-----
> From: owner-sv-bc@server.eda.org [mailto:owner-sv-bc@server.eda.org]
On
> Behalf Of Brad Pierce
> Sent: Wednesday, September 06, 2006 8:03 AM
> To: sv-bc@server.eda-stds.org
> Subject: Re: [sv-bc] port-size mismatch warning
> 
> I don't see anything in the LRM about such a warning being required
> here, but a warning would be helpful.  Here's a 1995-style test case
--
> 
> module TOP(test_bit);
>   output test_bit;
>   wire o2, o3;
>   BOT#(2) bot2(.in(2'b11 + 2'b01 >> 1), .out(o2));
>   BOT#(3) bot3(.in(2'b11 + 2'b01 >> 1), .out(o3));
>   assign test_bit = o2 != o3;
>   initial #1 $display("test_bit == %b", test_bit);
> endmodule
> 
> module BOT(in, out);
>   parameter N = 0;
>   input [N-1:0] in;
>   output out;
>   assign out = in[1];
> endmodule
> 
> [This message is in reply to
http://www.eda-stds.org/sv-bc/hm/5040.html
> .]
> 
> -- Brad
Received on Wed Sep 6 02:49:05 2006

This archive was generated by hypermail 2.1.8 : Wed Sep 06 2006 - 02:49:27 PDT