diff --git a/parse.y b/parse.y index d03f804f4..191761500 100644 --- a/parse.y +++ b/parse.y @@ -2226,10 +2226,26 @@ module_item { pform_makegates(PGBuiltin::PULLUP, $3, 0, $5, 0); } + | K_pullup '(' dr_strength1 ',' dr_strength0 ')' gate_instance_list ';' + { pform_makegates(PGBuiltin::PULLUP, $3, 0, $7, 0); + } + + | K_pullup '(' dr_strength0 ',' dr_strength1 ')' gate_instance_list ';' + { pform_makegates(PGBuiltin::PULLUP, $5, 0, $7, 0); + } + | K_pulldown '(' dr_strength0 ')' gate_instance_list ';' { pform_makegates(PGBuiltin::PULLDOWN, $3, 0, $5, 0); } + | K_pulldown '(' dr_strength1 ',' dr_strength0 ')' gate_instance_list ';' + { pform_makegates(PGBuiltin::PULLDOWN, $5, 0, $7, 0); + } + + | K_pulldown '(' dr_strength0 ',' dr_strength1 ')' gate_instance_list ';' + { pform_makegates(PGBuiltin::PULLDOWN, $3, 0, $7, 0); + } + /* 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. */