Skip to content

Commit

Permalink
vhdl: remove iir_kind_anonymous_signal_declaration (now unused)
Browse files Browse the repository at this point in the history
  • Loading branch information
tgingold committed Aug 24, 2021
1 parent 839ac86 commit 8dce980
Show file tree
Hide file tree
Showing 23 changed files with 377 additions and 643 deletions.
359 changes: 179 additions & 180 deletions pyGHDL/libghdl/vhdl/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,186 +183,185 @@ class Iir_Kind(IntEnum):
Interface_Package_Declaration = 136
Interface_Function_Declaration = 137
Interface_Procedure_Declaration = 138
Anonymous_Signal_Declaration = 139
Signal_Attribute_Declaration = 140
Identity_Operator = 141
Negation_Operator = 142
Absolute_Operator = 143
Not_Operator = 144
Implicit_Condition_Operator = 145
Condition_Operator = 146
Reduction_And_Operator = 147
Reduction_Or_Operator = 148
Reduction_Nand_Operator = 149
Reduction_Nor_Operator = 150
Reduction_Xor_Operator = 151
Reduction_Xnor_Operator = 152
And_Operator = 153
Or_Operator = 154
Nand_Operator = 155
Nor_Operator = 156
Xor_Operator = 157
Xnor_Operator = 158
Equality_Operator = 159
Inequality_Operator = 160
Less_Than_Operator = 161
Less_Than_Or_Equal_Operator = 162
Greater_Than_Operator = 163
Greater_Than_Or_Equal_Operator = 164
Match_Equality_Operator = 165
Match_Inequality_Operator = 166
Match_Less_Than_Operator = 167
Match_Less_Than_Or_Equal_Operator = 168
Match_Greater_Than_Operator = 169
Match_Greater_Than_Or_Equal_Operator = 170
Sll_Operator = 171
Sla_Operator = 172
Srl_Operator = 173
Sra_Operator = 174
Rol_Operator = 175
Ror_Operator = 176
Addition_Operator = 177
Substraction_Operator = 178
Concatenation_Operator = 179
Multiplication_Operator = 180
Division_Operator = 181
Modulus_Operator = 182
Remainder_Operator = 183
Exponentiation_Operator = 184
Function_Call = 185
Aggregate = 186
Parenthesis_Expression = 187
Qualified_Expression = 188
Type_Conversion = 189
Allocator_By_Expression = 190
Allocator_By_Subtype = 191
Selected_Element = 192
Dereference = 193
Implicit_Dereference = 194
Slice_Name = 195
Indexed_Name = 196
Psl_Prev = 197
Psl_Stable = 198
Psl_Rose = 199
Psl_Fell = 200
Psl_Onehot = 201
Psl_Onehot0 = 202
Psl_Expression = 203
Sensitized_Process_Statement = 204
Process_Statement = 205
Concurrent_Simple_Signal_Assignment = 206
Concurrent_Conditional_Signal_Assignment = 207
Concurrent_Selected_Signal_Assignment = 208
Concurrent_Assertion_Statement = 209
Concurrent_Procedure_Call_Statement = 210
Concurrent_Break_Statement = 211
Psl_Assert_Directive = 212
Psl_Assume_Directive = 213
Psl_Cover_Directive = 214
Psl_Restrict_Directive = 215
Block_Statement = 216
If_Generate_Statement = 217
Case_Generate_Statement = 218
For_Generate_Statement = 219
Component_Instantiation_Statement = 220
Psl_Default_Clock = 221
Generate_Statement_Body = 222
If_Generate_Else_Clause = 223
Simple_Simultaneous_Statement = 224
Simultaneous_Null_Statement = 225
Simultaneous_Procedural_Statement = 226
Simultaneous_Case_Statement = 227
Simultaneous_If_Statement = 228
Simultaneous_Elsif = 229
Simple_Signal_Assignment_Statement = 230
Conditional_Signal_Assignment_Statement = 231
Selected_Waveform_Assignment_Statement = 232
Signal_Force_Assignment_Statement = 233
Signal_Release_Assignment_Statement = 234
Null_Statement = 235
Assertion_Statement = 236
Report_Statement = 237
Wait_Statement = 238
Variable_Assignment_Statement = 239
Conditional_Variable_Assignment_Statement = 240
Return_Statement = 241
For_Loop_Statement = 242
While_Loop_Statement = 243
Next_Statement = 244
Exit_Statement = 245
Case_Statement = 246
Procedure_Call_Statement = 247
Break_Statement = 248
If_Statement = 249
Elsif = 250
Character_Literal = 251
Simple_Name = 252
Selected_Name = 253
Operator_Symbol = 254
Reference_Name = 255
External_Constant_Name = 256
External_Signal_Name = 257
External_Variable_Name = 258
Selected_By_All_Name = 259
Parenthesis_Name = 260
Package_Pathname = 261
Absolute_Pathname = 262
Relative_Pathname = 263
Pathname_Element = 264
Base_Attribute = 265
Subtype_Attribute = 266
Element_Attribute = 267
Across_Attribute = 268
Through_Attribute = 269
Nature_Reference_Attribute = 270
Left_Type_Attribute = 271
Right_Type_Attribute = 272
High_Type_Attribute = 273
Low_Type_Attribute = 274
Ascending_Type_Attribute = 275
Image_Attribute = 276
Value_Attribute = 277
Pos_Attribute = 278
Val_Attribute = 279
Succ_Attribute = 280
Pred_Attribute = 281
Leftof_Attribute = 282
Rightof_Attribute = 283
Signal_Slew_Attribute = 284
Quantity_Slew_Attribute = 285
Ramp_Attribute = 286
Zoh_Attribute = 287
Ltf_Attribute = 288
Ztf_Attribute = 289
Dot_Attribute = 290
Integ_Attribute = 291
Above_Attribute = 292
Quantity_Delayed_Attribute = 293
Delayed_Attribute = 294
Stable_Attribute = 295
Quiet_Attribute = 296
Transaction_Attribute = 297
Event_Attribute = 298
Active_Attribute = 299
Last_Event_Attribute = 300
Last_Active_Attribute = 301
Last_Value_Attribute = 302
Driving_Attribute = 303
Driving_Value_Attribute = 304
Behavior_Attribute = 305
Structure_Attribute = 306
Simple_Name_Attribute = 307
Instance_Name_Attribute = 308
Path_Name_Attribute = 309
Left_Array_Attribute = 310
Right_Array_Attribute = 311
High_Array_Attribute = 312
Low_Array_Attribute = 313
Length_Array_Attribute = 314
Ascending_Array_Attribute = 315
Range_Array_Attribute = 316
Reverse_Range_Array_Attribute = 317
Attribute_Name = 318
Signal_Attribute_Declaration = 139
Identity_Operator = 140
Negation_Operator = 141
Absolute_Operator = 142
Not_Operator = 143
Implicit_Condition_Operator = 144
Condition_Operator = 145
Reduction_And_Operator = 146
Reduction_Or_Operator = 147
Reduction_Nand_Operator = 148
Reduction_Nor_Operator = 149
Reduction_Xor_Operator = 150
Reduction_Xnor_Operator = 151
And_Operator = 152
Or_Operator = 153
Nand_Operator = 154
Nor_Operator = 155
Xor_Operator = 156
Xnor_Operator = 157
Equality_Operator = 158
Inequality_Operator = 159
Less_Than_Operator = 160
Less_Than_Or_Equal_Operator = 161
Greater_Than_Operator = 162
Greater_Than_Or_Equal_Operator = 163
Match_Equality_Operator = 164
Match_Inequality_Operator = 165
Match_Less_Than_Operator = 166
Match_Less_Than_Or_Equal_Operator = 167
Match_Greater_Than_Operator = 168
Match_Greater_Than_Or_Equal_Operator = 169
Sll_Operator = 170
Sla_Operator = 171
Srl_Operator = 172
Sra_Operator = 173
Rol_Operator = 174
Ror_Operator = 175
Addition_Operator = 176
Substraction_Operator = 177
Concatenation_Operator = 178
Multiplication_Operator = 179
Division_Operator = 180
Modulus_Operator = 181
Remainder_Operator = 182
Exponentiation_Operator = 183
Function_Call = 184
Aggregate = 185
Parenthesis_Expression = 186
Qualified_Expression = 187
Type_Conversion = 188
Allocator_By_Expression = 189
Allocator_By_Subtype = 190
Selected_Element = 191
Dereference = 192
Implicit_Dereference = 193
Slice_Name = 194
Indexed_Name = 195
Psl_Prev = 196
Psl_Stable = 197
Psl_Rose = 198
Psl_Fell = 199
Psl_Onehot = 200
Psl_Onehot0 = 201
Psl_Expression = 202
Sensitized_Process_Statement = 203
Process_Statement = 204
Concurrent_Simple_Signal_Assignment = 205
Concurrent_Conditional_Signal_Assignment = 206
Concurrent_Selected_Signal_Assignment = 207
Concurrent_Assertion_Statement = 208
Concurrent_Procedure_Call_Statement = 209
Concurrent_Break_Statement = 210
Psl_Assert_Directive = 211
Psl_Assume_Directive = 212
Psl_Cover_Directive = 213
Psl_Restrict_Directive = 214
Block_Statement = 215
If_Generate_Statement = 216
Case_Generate_Statement = 217
For_Generate_Statement = 218
Component_Instantiation_Statement = 219
Psl_Default_Clock = 220
Generate_Statement_Body = 221
If_Generate_Else_Clause = 222
Simple_Simultaneous_Statement = 223
Simultaneous_Null_Statement = 224
Simultaneous_Procedural_Statement = 225
Simultaneous_Case_Statement = 226
Simultaneous_If_Statement = 227
Simultaneous_Elsif = 228
Simple_Signal_Assignment_Statement = 229
Conditional_Signal_Assignment_Statement = 230
Selected_Waveform_Assignment_Statement = 231
Signal_Force_Assignment_Statement = 232
Signal_Release_Assignment_Statement = 233
Null_Statement = 234
Assertion_Statement = 235
Report_Statement = 236
Wait_Statement = 237
Variable_Assignment_Statement = 238
Conditional_Variable_Assignment_Statement = 239
Return_Statement = 240
For_Loop_Statement = 241
While_Loop_Statement = 242
Next_Statement = 243
Exit_Statement = 244
Case_Statement = 245
Procedure_Call_Statement = 246
Break_Statement = 247
If_Statement = 248
Elsif = 249
Character_Literal = 250
Simple_Name = 251
Selected_Name = 252
Operator_Symbol = 253
Reference_Name = 254
External_Constant_Name = 255
External_Signal_Name = 256
External_Variable_Name = 257
Selected_By_All_Name = 258
Parenthesis_Name = 259
Package_Pathname = 260
Absolute_Pathname = 261
Relative_Pathname = 262
Pathname_Element = 263
Base_Attribute = 264
Subtype_Attribute = 265
Element_Attribute = 266
Across_Attribute = 267
Through_Attribute = 268
Nature_Reference_Attribute = 269
Left_Type_Attribute = 270
Right_Type_Attribute = 271
High_Type_Attribute = 272
Low_Type_Attribute = 273
Ascending_Type_Attribute = 274
Image_Attribute = 275
Value_Attribute = 276
Pos_Attribute = 277
Val_Attribute = 278
Succ_Attribute = 279
Pred_Attribute = 280
Leftof_Attribute = 281
Rightof_Attribute = 282
Signal_Slew_Attribute = 283
Quantity_Slew_Attribute = 284
Ramp_Attribute = 285
Zoh_Attribute = 286
Ltf_Attribute = 287
Ztf_Attribute = 288
Dot_Attribute = 289
Integ_Attribute = 290
Above_Attribute = 291
Quantity_Delayed_Attribute = 292
Delayed_Attribute = 293
Stable_Attribute = 294
Quiet_Attribute = 295
Transaction_Attribute = 296
Event_Attribute = 297
Active_Attribute = 298
Last_Event_Attribute = 299
Last_Active_Attribute = 300
Last_Value_Attribute = 301
Driving_Attribute = 302
Driving_Value_Attribute = 303
Behavior_Attribute = 304
Structure_Attribute = 305
Simple_Name_Attribute = 306
Instance_Name_Attribute = 307
Path_Name_Attribute = 308
Left_Array_Attribute = 309
Right_Array_Attribute = 310
High_Array_Attribute = 311
Low_Array_Attribute = 312
Length_Array_Attribute = 313
Ascending_Array_Attribute = 314
Range_Array_Attribute = 315
Reverse_Range_Array_Attribute = 316
Attribute_Name = 317


@export
Expand Down
6 changes: 0 additions & 6 deletions src/synth/synth-vhdl_decls.adb
Original file line number Diff line number Diff line change
Expand Up @@ -1013,10 +1013,6 @@ package body Synth.Vhdl_Decls is
Synth_Signal_Declaration (Syn_Inst, Decl);
when Iir_Kind_Object_Alias_Declaration =>
Synth_Object_Alias_Declaration (Syn_Inst, Decl);
when Iir_Kind_Anonymous_Signal_Declaration =>
-- Anonymous signals created by inertial associations are
-- simply ignored.
null;
when Iir_Kind_Procedure_Declaration
| Iir_Kind_Function_Declaration =>
Synth_Subprogram_Declaration (Syn_Inst, Decl);
Expand Down Expand Up @@ -1172,8 +1168,6 @@ package body Synth.Vhdl_Decls is
| Iir_Kind_Interface_Signal_Declaration =>
pragma Assert (not Is_Subprg);
Finalize_Signal (Syn_Inst, Decl);
when Iir_Kind_Anonymous_Signal_Declaration =>
null;
when Iir_Kind_Object_Alias_Declaration =>
null;
when Iir_Kind_Procedure_Declaration
Expand Down
3 changes: 0 additions & 3 deletions src/synth/synth-vhdl_expr.adb
Original file line number Diff line number Diff line change
Expand Up @@ -2300,9 +2300,6 @@ package body Synth.Vhdl_Expr is
-- Only used for anonymous signals in internal association.
return Synth_Expression_With_Type
(Syn_Inst, Get_Named_Entity (Expr), Expr_Type);
when Iir_Kind_Anonymous_Signal_Declaration =>
return Synth_Expression_With_Type
(Syn_Inst, Get_Expression (Expr), Expr_Type);
when Iir_Kind_Indexed_Name
| Iir_Kind_Slice_Name =>
declare
Expand Down

0 comments on commit 8dce980

Please sign in to comment.