[sv-bc] Mantis 1340

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Mon Feb 25 2008 - 23:54:29 PST
Hi,

In a Champions vote on Mantis 1340, Stu commented:

    This change is not backwards compatible, at least the way I
interpret it.
    The new text "then the default data type is logic if it is the first
    argument or if the argument direction is explicitly specified"
implies that
    even when a data type has been specified, the next time a direction
is
    given, the previously defined data type is dropped, and the data
type is
    changed to "logic".  I don't think that is how current
implementation work.
    Also, what if "ref" is specified instead of a direction?

I think that when a direction is specified, the previously defined data
type *is* dropped.
To show that, I wrote the following test case:

module m1340;

task t(input integer i, output j);

begin
   $displayb(i);
   $displayb(j);
end

endtask


reg i,j;
initial t(i,j);

endmodule

All three simulators that I tried gave the following result:

0000000000000000000000000000000x
x

This shows that the argument j does not inherit the data type of
argument i.

Regarding 'ref', that is also a direction.

Shalom Bresticker
Intel Jerusalem LAD DA
+972 2 589-6582
+972 54 721-1033

---------------------------------------------------------------------
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 Tue Feb 26 00:00:59 2008

This archive was generated by hypermail 2.1.8 : Tue Feb 26 2008 - 00:01:20 PST