From 5ca947ea8ae401c67d032825745bbfc63d24558e Mon Sep 17 00:00:00 2001 From: Cary R Date: Sun, 27 Dec 2020 01:01:45 -0800 Subject: [PATCH] Allow signed/unsigned for fixed width integer data type parameters --- parse.y | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/parse.y b/parse.y index ea855fe09..bf0b93f90 100644 --- a/parse.y +++ b/parse.y @@ -5523,14 +5523,14 @@ param_type else param_active_type = $1; } - | K_integer + | K_integer signed_unsigned_opt { param_active_range = make_range_from_width(integer_width); - param_active_signed = true; + param_active_signed = $2; param_active_type = IVL_VT_LOGIC; } - | K_time + | K_time unsigned_signed_opt { param_active_range = make_range_from_width(64); - param_active_signed = false; + param_active_signed = $2; param_active_type = IVL_VT_LOGIC; } | real_or_realtime @@ -5538,9 +5538,9 @@ param_type param_active_signed = true; param_active_type = IVL_VT_REAL; } - | atom2_type + | atom2_type signed_unsigned_opt { param_active_range = make_range_from_width($1); - param_active_signed = true; + param_active_signed = $2; param_active_type = IVL_VT_BOOL; } | TYPE_IDENTIFIER