Allow signed/unsigned for fixed width integer data type parameters

This commit is contained in:
Cary R 2020-12-27 01:01:45 -08:00
parent a019994513
commit 5ca947ea8a
1 changed files with 6 additions and 6 deletions

12
parse.y
View File

@ -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