[sv-ec] restriction on typedef on net.

From: danielm <danielm_at_.....>
Date: Thu Dec 20 2007 - 03:08:43 PST
Typedef cannot be used to define NET types. This is very inconvienient ie we
have code like below.
 
module add_sub (   
    input add,
    input sub,
    input [24:0] fa,
    input [24:0] fb,
    output [24:0] sum
    );  
 
Port signals like wire [24:0] are widely used in lots of module declaration.

It would be nice to can wrtie it like below
typedef wire [24:0] T;
module add_sub (   
    input add,
    input sub,
    input T fa,
    input T fb,
    output T sum
    );  
 
Why LRM dissalows this?
 
DANiel

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

This archive was generated by hypermail 2.1.8 : Thu Dec 20 2007 - 03:09:20 PST