From: Brad Pierce (Brad.Pierce@synopsys.com)
Date: Wed Dec 25 2002 - 18:41:49 PST
Precedence: bulk
>Number: 233
>Category: errata
>Originator: "Brad Pierce" <Brad.Pierce@synopsys.com>
>Environment:
>Description:
In 12.3.4, about the new ANSI-like list of port declarations
style, the example notes that
"It is illegal to redeclare any ports of the module
in the body of the module"
It's clear from the BNF, that port declarations may
not be included in the body of the module. But what about
nonport declarations, such as reg declarations, for
identifiers already mentioned in the list of port declarations?
Which, if any, of the following examples are legal?
module m1( input in, output reg signed out );
wire in;
reg signed out;
...
module m2( input in, output out );
wire in;
reg signed out;
...
module m3( input in, output out );
reg [15:0] out ;
...
According 12.3.4, "Each declared port provides the complete
information about the port."
-- Brad
This archive was generated by hypermail 2.1.4
: Wed Dec 25 2002 - 18:51:07 PST
and
sponsored by Boyd Technology, Inc.