mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-27 02:45:52 +00:00
Merge pull request #1147 from YosysHQ/clifford/fix1144
Improve specify dummy parser
This commit is contained in:
commit
e38b2ac648
3 changed files with 26 additions and 82 deletions
|
@ -1021,13 +1021,8 @@ list_of_specparam_assignments:
|
|||
specparam_assignment:
|
||||
ignspec_id '=' constant_mintypmax_expression ;
|
||||
|
||||
/*
|
||||
pulsestyle_declaration :
|
||||
;
|
||||
|
||||
showcancelled_declaration :
|
||||
;
|
||||
*/
|
||||
ignspec_opt_cond:
|
||||
TOK_IF '(' ignspec_expr ')' | /* empty */;
|
||||
|
||||
path_declaration :
|
||||
simple_path_declaration ';'
|
||||
|
@ -1036,8 +1031,8 @@ path_declaration :
|
|||
;
|
||||
|
||||
simple_path_declaration :
|
||||
parallel_path_description '=' path_delay_value |
|
||||
full_path_description '=' path_delay_value
|
||||
ignspec_opt_cond parallel_path_description '=' path_delay_value |
|
||||
ignspec_opt_cond full_path_description '=' path_delay_value
|
||||
;
|
||||
|
||||
path_delay_value :
|
||||
|
@ -1047,32 +1042,20 @@ path_delay_value :
|
|||
;
|
||||
|
||||
list_of_path_delay_extra_expressions :
|
||||
/*
|
||||
t_path_delay_expression
|
||||
| trise_path_delay_expression ',' tfall_path_delay_expression
|
||||
| trise_path_delay_expression ',' tfall_path_delay_expression ',' tz_path_delay_expression
|
||||
| t01_path_delay_expression ',' t10_path_delay_expression ',' t0z_path_delay_expression ','
|
||||
tz1_path_delay_expression ',' t1z_path_delay_expression ',' tz0_path_delay_expression
|
||||
| t01_path_delay_expression ',' t10_path_delay_expression ',' t0z_path_delay_expression ','
|
||||
tz1_path_delay_expression ',' t1z_path_delay_expression ',' tz0_path_delay_expression ','
|
||||
t0x_path_delay_expression ',' tx1_path_delay_expression ',' t1x_path_delay_expression ','
|
||||
tx0_path_delay_expression ',' txz_path_delay_expression ',' tzx_path_delay_expression
|
||||
*/
|
||||
',' path_delay_expression
|
||||
| ',' path_delay_expression ',' path_delay_expression
|
||||
| ',' path_delay_expression ',' path_delay_expression ','
|
||||
path_delay_expression ',' path_delay_expression ',' path_delay_expression
|
||||
| ',' path_delay_expression ',' path_delay_expression ','
|
||||
path_delay_expression ',' path_delay_expression ',' path_delay_expression ','
|
||||
path_delay_expression ',' path_delay_expression ',' path_delay_expression ','
|
||||
path_delay_expression ',' path_delay_expression ',' path_delay_expression
|
||||
;
|
||||
',' path_delay_expression | ',' path_delay_expression list_of_path_delay_extra_expressions;
|
||||
|
||||
specify_edge_identifier :
|
||||
TOK_POSEDGE | TOK_NEGEDGE ;
|
||||
|
||||
parallel_path_description :
|
||||
'(' specify_input_terminal_descriptor opt_polarity_operator '=' '>' specify_output_terminal_descriptor ')' ;
|
||||
'(' specify_input_terminal_descriptor opt_polarity_operator '=' '>' specify_output_terminal_descriptor ')' |
|
||||
'(' specify_edge_identifier specify_input_terminal_descriptor '=' '>' '(' specify_output_terminal_descriptor opt_polarity_operator ':' ignspec_expr ')' ')' |
|
||||
'(' specify_edge_identifier specify_input_terminal_descriptor '=' '>' '(' specify_output_terminal_descriptor TOK_POS_INDEXED ignspec_expr ')' ')' ;
|
||||
|
||||
full_path_description :
|
||||
'(' list_of_path_inputs '*' '>' list_of_path_outputs ')' ;
|
||||
'(' list_of_path_inputs '*' '>' list_of_path_outputs ')' |
|
||||
'(' specify_edge_identifier list_of_path_inputs '*' '>' '(' list_of_path_outputs opt_polarity_operator ':' ignspec_expr ')' ')' |
|
||||
'(' specify_edge_identifier list_of_path_inputs '*' '>' '(' list_of_path_outputs TOK_POS_INDEXED ignspec_expr ')' ')' ;
|
||||
|
||||
// This was broken into 2 rules to solve shift/reduce conflicts
|
||||
list_of_path_inputs :
|
||||
|
@ -1112,56 +1095,6 @@ system_timing_args :
|
|||
system_timing_arg |
|
||||
system_timing_args ',' system_timing_arg ;
|
||||
|
||||
/*
|
||||
t_path_delay_expression :
|
||||
path_delay_expression;
|
||||
|
||||
trise_path_delay_expression :
|
||||
path_delay_expression;
|
||||
|
||||
tfall_path_delay_expression :
|
||||
path_delay_expression;
|
||||
|
||||
tz_path_delay_expression :
|
||||
path_delay_expression;
|
||||
|
||||
t01_path_delay_expression :
|
||||
path_delay_expression;
|
||||
|
||||
t10_path_delay_expression :
|
||||
path_delay_expression;
|
||||
|
||||
t0z_path_delay_expression :
|
||||
path_delay_expression;
|
||||
|
||||
tz1_path_delay_expression :
|
||||
path_delay_expression;
|
||||
|
||||
t1z_path_delay_expression :
|
||||
path_delay_expression;
|
||||
|
||||
tz0_path_delay_expression :
|
||||
path_delay_expression;
|
||||
|
||||
t0x_path_delay_expression :
|
||||
path_delay_expression;
|
||||
|
||||
tx1_path_delay_expression :
|
||||
path_delay_expression;
|
||||
|
||||
t1x_path_delay_expression :
|
||||
path_delay_expression;
|
||||
|
||||
tx0_path_delay_expression :
|
||||
path_delay_expression;
|
||||
|
||||
txz_path_delay_expression :
|
||||
path_delay_expression;
|
||||
|
||||
tzx_path_delay_expression :
|
||||
path_delay_expression;
|
||||
*/
|
||||
|
||||
path_delay_expression :
|
||||
ignspec_constant_expression;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue