RE: [sv-ec] restriction on typedef on net.

From: Feldman, Yulik <yulik.feldman_at_.....>
Date: Thu Dec 20 2007 - 22:06:16 PST
>2) 'output wire T' still do not allow you to manage the net kinds
globally
>(i.e.: via type parameters) - what if you would like to change the net
kind
>across whole design (or its portion) ? 

This is true (though there is nothing to prevent the addition of
something
like a nettype parameter).  On the other hand, if wire were part of the
data type, it would not be possible to declare a variable and a wire of
the same data type, which would create far more problems.

[Yulik] I can easily imagine code like:

typedef logic [24:0] data_type;
typedef wire data_type net_type;
module (output data_type var_sum, output net_type net_sum);

Why not?
---------------------------------------------------------------------
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 Thu Dec 20 22:06:56 2007

This archive was generated by hypermail 2.1.8 : Thu Dec 20 2007 - 22:07:22 PST