From 4f3bdd9f3812cbf4203985a0d6928c0ada48bd18 Mon Sep 17 00:00:00 2001 From: steve Date: Sat, 28 Apr 2001 22:56:15 +0000 Subject: [PATCH] Accept single strengths for pullup and pulldown. --- parse.y | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/parse.y b/parse.y index 07da95478..309ff6b08 100644 --- a/parse.y +++ b/parse.y @@ -19,7 +19,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) && !defined(macintosh) -#ident "$Id: parse.y,v 1.119 2001/04/21 00:55:46 steve Exp $" +#ident "$Id: parse.y,v 1.120 2001/04/28 22:56:15 steve Exp $" #endif # include "parse_misc.h" @@ -1229,6 +1229,14 @@ module_item { pform_makegates(PGBuiltin::PULLDOWN, decl_strength, 0, $2); } + | K_pullup '(' dr_strength1 ')' gate_instance_list ';' + { pform_makegates(PGBuiltin::PULLUP, $3, 0, $5); + } + + | K_pulldown '(' dr_strength0 ')' gate_instance_list ';' + { pform_makegates(PGBuiltin::PULLDOWN, $3, 0, $5); + } + /* This rule handles instantiations of modules and user defined primitives. These devices to not have delay lists or strengths, but then can have parameter lists. */