Report an error when trying to define ports

'v', 'vd', 'i', and 'id' as 'inout'
Parch 105 provided by  Giles Atkinson
This commit is contained in:
Holger Vogt 2021-04-10 16:33:53 +02:00
parent bc74caca2f
commit 545d2f9177
1 changed files with 9 additions and 4 deletions

View File

@ -221,6 +221,11 @@ static void check_port_type_direction (Dir_t dir, Port_Type_t port_type)
case DIFF_VOLTAGE:
case CURRENT:
case DIFF_CURRENT:
if (dir == CMPP_INOUT) {
yyerror ("Port types `v', `vd', `i', `id' are not valid for `inout' ports");
ifs_num_errors++;
}
break;
case DIGITAL:
case USER_DEFINED:
/*