mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-27 10:55:51 +00:00
Extend "delay" expressions to handle pair and triplet, i.e. rise, fall and turn-off (#2566)
This commit is contained in:
parent
fffbf651df
commit
dcd9f0af23
3 changed files with 445 additions and 2 deletions
|
@ -609,12 +609,17 @@ interface_body_stmt:
|
|||
param_decl | localparam_decl | typedef_decl | defparam_decl | wire_decl | always_stmt | assign_stmt |
|
||||
modport_stmt;
|
||||
|
||||
mintypmax_expr:
|
||||
expr { delete $1; } |
|
||||
expr ':' expr ':' expr { delete $1; delete $3; delete $5; };
|
||||
|
||||
non_opt_delay:
|
||||
'#' TOK_ID { delete $2; } |
|
||||
'#' TOK_CONSTVAL { delete $2; } |
|
||||
'#' TOK_REALVAL { delete $2; } |
|
||||
'#' '(' expr ')' { delete $3; } |
|
||||
'#' '(' expr ':' expr ':' expr ')' { delete $3; delete $5; delete $7; };
|
||||
'#' '(' mintypmax_expr ')' |
|
||||
'#' '(' mintypmax_expr ',' mintypmax_expr ')' |
|
||||
'#' '(' mintypmax_expr ',' mintypmax_expr ',' mintypmax_expr ')';
|
||||
|
||||
delay:
|
||||
non_opt_delay | %empty;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue