Subject: Re: Unsized array declarations using .name / .* and interfaces
From: Adam Krolnik (krolnik@lsil.com)
Date: Mon Apr 08 2002 - 15:29:37 PDT
Hi Kevin;
This 'local' capability already exists (as a lint error :)
Something like:
   module foo (input x)
     local reg [4:0] bar;
     local wire y;
   
     sbmdl s1 (.*); // Try to connect to bar or y.
     reg [4:0] bar;
     wire y;
You will get a message like:
Warning-[IPDW] Identifier previously declared
        Second declaration for identifier 'y' ignored
        "/tmp/preconnect.v", 8
or
Warning-[PCWM] Port connection width mismatch
        The following 1-bit expression is connected to 3-bit port "bar"
of module
                "sbmdl", instance "s1".
        Expression: bar  "/tmp/preconnect.v", 6
   Adam Krolnik
   Verification Mgr.
   LSI Logic Corp.
   Plano TX. 75074
This archive was generated by hypermail 2b28 : Mon Apr 08 2002 - 15:31:32 PDT