From 3fda7e323a4438332540a0197346de5b54a1abe4 Mon Sep 17 00:00:00 2001 From: Cary R Date: Thu, 23 Aug 2007 19:15:47 -0700 Subject: [PATCH] Relax the requirement on list of port declarations for implicit ports. Previously list of port declarations were considered a complete definition of the port. This caused problems for some, so this patch allows implicitly defined ports (no wire/reg/etc.) to have net declarations in the body. --- parse.y | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/parse.y b/parse.y index 0e9f35fde..4d3848f26 100644 --- a/parse.y +++ b/parse.y @@ -1411,14 +1411,23 @@ list_of_port_declarations { svector*tmp = new svector(1); (*tmp)[0] = $1; - pform_set_net_range($1[0].name); + /* + * Uncommenting this makes lopd always fully specified. + * Some wanted an implicit net to not be fully defined. + * + * pform_set_net_range($1[0].name); + */ $$ = tmp; } | list_of_port_declarations ',' port_declaration { svector*tmp = new svector(*$1, $3); delete $1; - pform_set_net_range($3[0].name); + /* + * Same as above. + * + * pform_set_net_range($3[0].name); + */ $$ = tmp; } | list_of_port_declarations ',' IDENTIFIER @@ -1437,7 +1446,11 @@ list_of_port_declarations port_declaration_context.sign_flag, port_declaration_context.range, 0); delete $1; - pform_set_net_range($3); + /* + * Same as above. + * + * pform_set_net_range($3); + */ $$ = tmp; } ;