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

From: Steven Sharp <sharp_at_.....>
Date: Thu Dec 20 2007 - 18:46:25 PST
>Isn't this:
> 
>typedef reg ... T;
>output wire T ...
> 
>(which virtually expands to:)
> 
>output wire reg ...
> 
>a "visually contradictory"  ?
>(see other thread below ...)

It is enough to make some of us cringe, since we felt that "reg" should
mean what "var" means now, instead of being a synonym for "logic".  But
it is too late for that.



>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.

Steven Sharp
sharp@cadence.com


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Dec 20 18:46:46 2007

This archive was generated by hypermail 2.1.8 : Thu Dec 20 2007 - 18:47:01 PST