diff options
author | Tristan Gingold <tgingold@free.fr> | 2023-03-24 19:28:04 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2023-03-26 16:53:50 +0200 |
commit | b95cc40ac667768cd0ae03adb8c9c8c21ad35a30 (patch) | |
tree | 3d71143278ef285a66107e3dd4861f21358ce562 /pyGHDL | |
parent | cff00f7c56fe0bdcc05c302c679e22ad04c097f7 (diff) | |
download | ghdl-b95cc40ac667768cd0ae03adb8c9c8c21ad35a30.tar.gz ghdl-b95cc40ac667768cd0ae03adb8c9c8c21ad35a30.tar.bz2 ghdl-b95cc40ac667768cd0ae03adb8c9c8c21ad35a30.zip |
vhdl: add Owned_Instance_Package_Body to handle ownership
of package body.
Diffstat (limited to 'pyGHDL')
-rw-r--r-- | pyGHDL/libghdl/vhdl/nodes.py | 13 | ||||
-rw-r--r-- | pyGHDL/libghdl/vhdl/nodes_meta.py | 623 |
2 files changed, 328 insertions, 308 deletions
diff --git a/pyGHDL/libghdl/vhdl/nodes.py b/pyGHDL/libghdl/vhdl/nodes.py index 5700e5df6..72c2c57f6 100644 --- a/pyGHDL/libghdl/vhdl/nodes.py +++ b/pyGHDL/libghdl/vhdl/nodes.py @@ -3031,6 +3031,19 @@ def Set_Instance_Package_Body(obj: Iir, value: Iir) -> None: @export +@BindToLibGHDL("vhdl__nodes__get_owned_instance_package_body") +def Get_Owned_Instance_Package_Body(obj: Iir) -> Iir: + """""" + return 0 + + +@export +@BindToLibGHDL("vhdl__nodes__set_owned_instance_package_body") +def Set_Owned_Instance_Package_Body(obj: Iir, value: Iir) -> None: + """""" + + +@export @BindToLibGHDL("vhdl__nodes__get_need_body") def Get_Need_Body(obj: Iir) -> Boolean: """""" diff --git a/pyGHDL/libghdl/vhdl/nodes_meta.py b/pyGHDL/libghdl/vhdl/nodes_meta.py index 42154df63..3dbf715e1 100644 --- a/pyGHDL/libghdl/vhdl/nodes_meta.py +++ b/pyGHDL/libghdl/vhdl/nodes_meta.py @@ -197,314 +197,315 @@ class fields(IntEnum): Package = 77 Package_Body = 78 Instance_Package_Body = 79 - Need_Body = 80 - Immediate_Body_Flag = 81 - Macro_Expanded_Flag = 82 - Need_Instance_Bodies = 83 - Hierarchical_Name = 84 - Vunit_Item_Chain = 85 - Bound_Vunit_Chain = 86 - Verification_Block_Configuration = 87 - Block_Configuration = 88 - Concurrent_Statement_Chain = 89 - Chain = 90 - Port_Chain = 91 - Generic_Chain = 92 - Type = 93 - Subtype_Indication = 94 - Discrete_Range = 95 - Type_Definition = 96 - Subtype_Definition = 97 - Incomplete_Type_Declaration = 98 - Interface_Type_Subprograms = 99 - Interface_Type_Definition = 100 - Nature_Definition = 101 - Nature = 102 - Subnature_Indication = 103 - Reference_Terminal_Flag = 104 - Mode = 105 - Guarded_Signal_Flag = 106 - Signal_Kind = 107 - Base_Name = 108 - Interface_Declaration_Chain = 109 - Default_Subprogram = 110 - Associated_Subprogram = 111 - Subprogram_Specification = 112 - Sequential_Statement_Chain = 113 - Simultaneous_Statement_Chain = 114 - Subprogram_Body = 115 - Overload_Number = 116 - Subprogram_Depth = 117 - Subprogram_Hash = 118 - Impure_Depth = 119 - Return_Type = 120 - Implicit_Definition = 121 - Uninstantiated_Subprogram_Name = 122 - Default_Value = 123 - Deferred_Declaration = 124 - Deferred_Declaration_Flag = 125 - Shared_Flag = 126 - Design_Unit = 127 - Block_Statement = 128 - Signal_Driver = 129 - Declaration_Chain = 130 - File_Logical_Name = 131 - File_Open_Kind = 132 - Element_Position = 133 - Use_Clause_Chain = 134 - Context_Reference_Chain = 135 - Inherit_Spec_Chain = 136 - Selected_Name = 137 - Type_Declarator = 138 - Complete_Type_Definition = 139 - Incomplete_Type_Ref_Chain = 140 - Associated_Type = 141 - Enumeration_Literal_List = 142 - Entity_Class_Entry_Chain = 143 - Group_Constituent_List = 144 - Unit_Chain = 145 - Primary_Unit = 146 - Identifier = 147 - Label = 148 - Return_Identifier = 149 - Visible_Flag = 150 - Range_Constraint = 151 - Direction = 152 - Left_Limit = 153 - Right_Limit = 154 - Left_Limit_Expr = 155 - Right_Limit_Expr = 156 - Parent_Type = 157 - Simple_Nature = 158 - Base_Nature = 159 - Resolution_Indication = 160 - Record_Element_Resolution_Chain = 161 - Tolerance = 162 - Plus_Terminal_Name = 163 - Minus_Terminal_Name = 164 - Plus_Terminal = 165 - Minus_Terminal = 166 - Magnitude_Expression = 167 - Phase_Expression = 168 - Power_Expression = 169 - Simultaneous_Left = 170 - Simultaneous_Right = 171 - Text_File_Flag = 172 - Only_Characters_Flag = 173 - Is_Character_Type = 174 - Nature_Staticness = 175 - Type_Staticness = 176 - Constraint_State = 177 - Index_Subtype_List = 178 - Index_Subtype_Definition_List = 179 - Element_Subtype_Indication = 180 - Element_Subtype = 181 - Element_Subnature_Indication = 182 - Element_Subnature = 183 - Index_Constraint_List = 184 - Array_Element_Constraint = 185 - Has_Array_Constraint_Flag = 186 - Has_Element_Constraint_Flag = 187 - Elements_Declaration_List = 188 - Owned_Elements_Chain = 189 - Designated_Type = 190 - Designated_Subtype_Indication = 191 - Index_List = 192 - Reference = 193 - Nature_Declarator = 194 - Across_Type_Mark = 195 - Through_Type_Mark = 196 - Across_Type_Definition = 197 - Through_Type_Definition = 198 - Across_Type = 199 - Through_Type = 200 - Target = 201 - Waveform_Chain = 202 - Guard = 203 - Delay_Mechanism = 204 - Reject_Time_Expression = 205 - Force_Mode = 206 - Has_Force_Mode = 207 - Sensitivity_List = 208 - Process_Origin = 209 - Package_Origin = 210 - Condition_Clause = 211 - Break_Element = 212 - Selector_Quantity = 213 - Break_Quantity = 214 - Timeout_Clause = 215 - Postponed_Flag = 216 - Callees_List = 217 - Passive_Flag = 218 - Resolution_Function_Flag = 219 - Wait_State = 220 - All_Sensitized_State = 221 - Seen_Flag = 222 - Pure_Flag = 223 - Foreign_Flag = 224 - Resolved_Flag = 225 - Signal_Type_Flag = 226 - Has_Signal_Flag = 227 - Purity_State = 228 - Elab_Flag = 229 - Vendor_Library_Flag = 230 - Configuration_Mark_Flag = 231 - Configuration_Done_Flag = 232 - Index_Constraint_Flag = 233 - Hide_Implicit_Flag = 234 - Assertion_Condition = 235 - Report_Expression = 236 - Severity_Expression = 237 - Instantiated_Unit = 238 - Instantiated_Header = 239 - Generic_Map_Aspect_Chain = 240 - Port_Map_Aspect_Chain = 241 - Configuration_Name = 242 - Component_Configuration = 243 - Configuration_Specification = 244 - Default_Binding_Indication = 245 - Default_Configuration_Declaration = 246 - Expression = 247 - Conditional_Expression_Chain = 248 - Allocator_Designated_Type = 249 - Selected_Waveform_Chain = 250 - Conditional_Waveform_Chain = 251 - Guard_Expression = 252 - Guard_Decl = 253 - Guard_Sensitivity_List = 254 - Attribute_Implicit_Chain = 255 - Block_Block_Configuration = 256 - Package_Header = 257 - Block_Header = 258 - Uninstantiated_Package_Name = 259 - Uninstantiated_Package_Decl = 260 - Associated_Package = 261 - Instance_Source_File = 262 - Generate_Block_Configuration = 263 - Generate_Statement_Body = 264 - Alternative_Label = 265 - Generate_Else_Clause = 266 - Condition = 267 - Else_Clause = 268 - Parameter_Specification = 269 - Parent = 270 - Loop_Label = 271 - Exit_Flag = 272 - Next_Flag = 273 - Component_Name = 274 - Instantiation_List = 275 - Entity_Aspect = 276 - Default_Entity_Aspect = 277 - Binding_Indication = 278 - Named_Entity = 279 - Referenced_Name = 280 - Expr_Staticness = 281 - Scalar_Size = 282 - Error_Origin = 283 - Operand = 284 - Left = 285 - Right = 286 - Unit_Name = 287 - Name = 288 - Group_Template_Name = 289 - Name_Staticness = 290 - Prefix = 291 - Signature_Prefix = 292 - External_Pathname = 293 - Pathname_Suffix = 294 - Pathname_Expression = 295 - In_Formal_Flag = 296 - Inertial_Flag = 297 - Slice_Subtype = 298 - Suffix = 299 - Index_Subtype = 300 - Parameter = 301 - Parameter_2 = 302 - Parameter_3 = 303 - Parameter_4 = 304 - Attr_Chain = 305 - Attribute_Implicit_Declaration = 306 - Actual_Type = 307 - Actual_Type_Definition = 308 - Association_Chain = 309 - Individual_Association_Chain = 310 - Subprogram_Association_Chain = 311 - Aggregate_Info = 312 - Sub_Aggregate_Info = 313 - Aggr_Dynamic_Flag = 314 - Aggr_Min_Length = 315 - Aggr_Low_Limit = 316 - Aggr_High_Limit = 317 - Aggr_Others_Flag = 318 - Aggr_Named_Flag = 319 - Aggregate_Expand_Flag = 320 - Determined_Aggregate_Flag = 321 - Association_Choices_Chain = 322 - Case_Statement_Alternative_Chain = 323 - Matching_Flag = 324 - Choice_Staticness = 325 - Procedure_Call = 326 - Implementation = 327 - Parameter_Association_Chain = 328 - Method_Object = 329 - Subtype_Type_Mark = 330 - Subnature_Nature_Mark = 331 - Type_Conversion_Subtype = 332 - Type_Mark = 333 - File_Type_Mark = 334 - Return_Type_Mark = 335 - Has_Disconnect_Flag = 336 - Has_Active_Flag = 337 - Is_Within_Flag = 338 - Type_Marks_List = 339 - Implicit_Alias_Flag = 340 - Alias_Signature = 341 - Attribute_Signature = 342 - Overload_List = 343 - Simple_Name_Identifier = 344 - Simple_Name_Subtype = 345 - Protected_Type_Body = 346 - Protected_Type_Declaration = 347 - Use_Flag = 348 - Elaborated_Flag = 349 - End_Has_Reserved_Id = 350 - End_Has_Identifier = 351 - End_Has_Postponed = 352 - Has_Label = 353 - Has_Begin = 354 - Has_End = 355 - Has_Is = 356 - Has_Pure = 357 - Has_Body = 358 - Has_Parameter = 359 - Has_Component = 360 - Has_Identifier_List = 361 - Has_Mode = 362 - Has_Class = 363 - Has_Delay_Mechanism = 364 - Suspend_Flag = 365 - Stop_Flag = 366 - Is_Ref = 367 - Is_Forward_Ref = 368 - Psl_Property = 369 - Psl_Sequence = 370 - Psl_Declaration = 371 - Psl_Expression = 372 - Psl_Boolean = 373 - PSL_Clock = 374 - PSL_NFA = 375 - PSL_Nbr_States = 376 - PSL_Clock_Sensitivity = 377 - PSL_EOS_Flag = 378 - PSL_Abort_Flag = 379 - Count_Expression = 380 - Clock_Expression = 381 - Default_Clock = 382 - Foreign_Node = 383 - Suspend_State_Index = 384 - Suspend_State_Chain = 385 - Suspend_State_Last = 386 - Suspend_State_Decl = 387 + Owned_Instance_Package_Body = 80 + Need_Body = 81 + Immediate_Body_Flag = 82 + Macro_Expanded_Flag = 83 + Need_Instance_Bodies = 84 + Hierarchical_Name = 85 + Vunit_Item_Chain = 86 + Bound_Vunit_Chain = 87 + Verification_Block_Configuration = 88 + Block_Configuration = 89 + Concurrent_Statement_Chain = 90 + Chain = 91 + Port_Chain = 92 + Generic_Chain = 93 + Type = 94 + Subtype_Indication = 95 + Discrete_Range = 96 + Type_Definition = 97 + Subtype_Definition = 98 + Incomplete_Type_Declaration = 99 + Interface_Type_Subprograms = 100 + Interface_Type_Definition = 101 + Nature_Definition = 102 + Nature = 103 + Subnature_Indication = 104 + Reference_Terminal_Flag = 105 + Mode = 106 + Guarded_Signal_Flag = 107 + Signal_Kind = 108 + Base_Name = 109 + Interface_Declaration_Chain = 110 + Default_Subprogram = 111 + Associated_Subprogram = 112 + Subprogram_Specification = 113 + Sequential_Statement_Chain = 114 + Simultaneous_Statement_Chain = 115 + Subprogram_Body = 116 + Overload_Number = 117 + Subprogram_Depth = 118 + Subprogram_Hash = 119 + Impure_Depth = 120 + Return_Type = 121 + Implicit_Definition = 122 + Uninstantiated_Subprogram_Name = 123 + Default_Value = 124 + Deferred_Declaration = 125 + Deferred_Declaration_Flag = 126 + Shared_Flag = 127 + Design_Unit = 128 + Block_Statement = 129 + Signal_Driver = 130 + Declaration_Chain = 131 + File_Logical_Name = 132 + File_Open_Kind = 133 + Element_Position = 134 + Use_Clause_Chain = 135 + Context_Reference_Chain = 136 + Inherit_Spec_Chain = 137 + Selected_Name = 138 + Type_Declarator = 139 + Complete_Type_Definition = 140 + Incomplete_Type_Ref_Chain = 141 + Associated_Type = 142 + Enumeration_Literal_List = 143 + Entity_Class_Entry_Chain = 144 + Group_Constituent_List = 145 + Unit_Chain = 146 + Primary_Unit = 147 + Identifier = 148 + Label = 149 + Return_Identifier = 150 + Visible_Flag = 151 + Range_Constraint = 152 + Direction = 153 + Left_Limit = 154 + Right_Limit = 155 + Left_Limit_Expr = 156 + Right_Limit_Expr = 157 + Parent_Type = 158 + Simple_Nature = 159 + Base_Nature = 160 + Resolution_Indication = 161 + Record_Element_Resolution_Chain = 162 + Tolerance = 163 + Plus_Terminal_Name = 164 + Minus_Terminal_Name = 165 + Plus_Terminal = 166 + Minus_Terminal = 167 + Magnitude_Expression = 168 + Phase_Expression = 169 + Power_Expression = 170 + Simultaneous_Left = 171 + Simultaneous_Right = 172 + Text_File_Flag = 173 + Only_Characters_Flag = 174 + Is_Character_Type = 175 + Nature_Staticness = 176 + Type_Staticness = 177 + Constraint_State = 178 + Index_Subtype_List = 179 + Index_Subtype_Definition_List = 180 + Element_Subtype_Indication = 181 + Element_Subtype = 182 + Element_Subnature_Indication = 183 + Element_Subnature = 184 + Index_Constraint_List = 185 + Array_Element_Constraint = 186 + Has_Array_Constraint_Flag = 187 + Has_Element_Constraint_Flag = 188 + Elements_Declaration_List = 189 + Owned_Elements_Chain = 190 + Designated_Type = 191 + Designated_Subtype_Indication = 192 + Index_List = 193 + Reference = 194 + Nature_Declarator = 195 + Across_Type_Mark = 196 + Through_Type_Mark = 197 + Across_Type_Definition = 198 + Through_Type_Definition = 199 + Across_Type = 200 + Through_Type = 201 + Target = 202 + Waveform_Chain = 203 + Guard = 204 + Delay_Mechanism = 205 + Reject_Time_Expression = 206 + Force_Mode = 207 + Has_Force_Mode = 208 + Sensitivity_List = 209 + Process_Origin = 210 + Package_Origin = 211 + Condition_Clause = 212 + Break_Element = 213 + Selector_Quantity = 214 + Break_Quantity = 215 + Timeout_Clause = 216 + Postponed_Flag = 217 + Callees_List = 218 + Passive_Flag = 219 + Resolution_Function_Flag = 220 + Wait_State = 221 + All_Sensitized_State = 222 + Seen_Flag = 223 + Pure_Flag = 224 + Foreign_Flag = 225 + Resolved_Flag = 226 + Signal_Type_Flag = 227 + Has_Signal_Flag = 228 + Purity_State = 229 + Elab_Flag = 230 + Vendor_Library_Flag = 231 + Configuration_Mark_Flag = 232 + Configuration_Done_Flag = 233 + Index_Constraint_Flag = 234 + Hide_Implicit_Flag = 235 + Assertion_Condition = 236 + Report_Expression = 237 + Severity_Expression = 238 + Instantiated_Unit = 239 + Instantiated_Header = 240 + Generic_Map_Aspect_Chain = 241 + Port_Map_Aspect_Chain = 242 + Configuration_Name = 243 + Component_Configuration = 244 + Configuration_Specification = 245 + Default_Binding_Indication = 246 + Default_Configuration_Declaration = 247 + Expression = 248 + Conditional_Expression_Chain = 249 + Allocator_Designated_Type = 250 + Selected_Waveform_Chain = 251 + Conditional_Waveform_Chain = 252 + Guard_Expression = 253 + Guard_Decl = 254 + Guard_Sensitivity_List = 255 + Attribute_Implicit_Chain = 256 + Block_Block_Configuration = 257 + Package_Header = 258 + Block_Header = 259 + Uninstantiated_Package_Name = 260 + Uninstantiated_Package_Decl = 261 + Associated_Package = 262 + Instance_Source_File = 263 + Generate_Block_Configuration = 264 + Generate_Statement_Body = 265 + Alternative_Label = 266 + Generate_Else_Clause = 267 + Condition = 268 + Else_Clause = 269 + Parameter_Specification = 270 + Parent = 271 + Loop_Label = 272 + Exit_Flag = 273 + Next_Flag = 274 + Component_Name = 275 + Instantiation_List = 276 + Entity_Aspect = 277 + Default_Entity_Aspect = 278 + Binding_Indication = 279 + Named_Entity = 280 + Referenced_Name = 281 + Expr_Staticness = 282 + Scalar_Size = 283 + Error_Origin = 284 + Operand = 285 + Left = 286 + Right = 287 + Unit_Name = 288 + Name = 289 + Group_Template_Name = 290 + Name_Staticness = 291 + Prefix = 292 + Signature_Prefix = 293 + External_Pathname = 294 + Pathname_Suffix = 295 + Pathname_Expression = 296 + In_Formal_Flag = 297 + Inertial_Flag = 298 + Slice_Subtype = 299 + Suffix = 300 + Index_Subtype = 301 + Parameter = 302 + Parameter_2 = 303 + Parameter_3 = 304 + Parameter_4 = 305 + Attr_Chain = 306 + Attribute_Implicit_Declaration = 307 + Actual_Type = 308 + Actual_Type_Definition = 309 + Association_Chain = 310 + Individual_Association_Chain = 311 + Subprogram_Association_Chain = 312 + Aggregate_Info = 313 + Sub_Aggregate_Info = 314 + Aggr_Dynamic_Flag = 315 + Aggr_Min_Length = 316 + Aggr_Low_Limit = 317 + Aggr_High_Limit = 318 + Aggr_Others_Flag = 319 + Aggr_Named_Flag = 320 + Aggregate_Expand_Flag = 321 + Determined_Aggregate_Flag = 322 + Association_Choices_Chain = 323 + Case_Statement_Alternative_Chain = 324 + Matching_Flag = 325 + Choice_Staticness = 326 + Procedure_Call = 327 + Implementation = 328 + Parameter_Association_Chain = 329 + Method_Object = 330 + Subtype_Type_Mark = 331 + Subnature_Nature_Mark = 332 + Type_Conversion_Subtype = 333 + Type_Mark = 334 + File_Type_Mark = 335 + Return_Type_Mark = 336 + Has_Disconnect_Flag = 337 + Has_Active_Flag = 338 + Is_Within_Flag = 339 + Type_Marks_List = 340 + Implicit_Alias_Flag = 341 + Alias_Signature = 342 + Attribute_Signature = 343 + Overload_List = 344 + Simple_Name_Identifier = 345 + Simple_Name_Subtype = 346 + Protected_Type_Body = 347 + Protected_Type_Declaration = 348 + Use_Flag = 349 + Elaborated_Flag = 350 + End_Has_Reserved_Id = 351 + End_Has_Identifier = 352 + End_Has_Postponed = 353 + Has_Label = 354 + Has_Begin = 355 + Has_End = 356 + Has_Is = 357 + Has_Pure = 358 + Has_Body = 359 + Has_Parameter = 360 + Has_Component = 361 + Has_Identifier_List = 362 + Has_Mode = 363 + Has_Class = 364 + Has_Delay_Mechanism = 365 + Suspend_Flag = 366 + Stop_Flag = 367 + Is_Ref = 368 + Is_Forward_Ref = 369 + Psl_Property = 370 + Psl_Sequence = 371 + Psl_Declaration = 372 + Psl_Expression = 373 + Psl_Boolean = 374 + PSL_Clock = 375 + PSL_NFA = 376 + PSL_Nbr_States = 377 + PSL_Clock_Sensitivity = 378 + PSL_EOS_Flag = 379 + PSL_Abort_Flag = 380 + Count_Expression = 381 + Clock_Expression = 382 + Default_Clock = 383 + Foreign_Node = 384 + Suspend_State_Index = 385 + Suspend_State_Chain = 386 + Suspend_State_Last = 387 + Suspend_State_Decl = 388 def Get_Boolean(node, field): @@ -1120,6 +1121,12 @@ def Has_Instance_Package_Body(kind: IirKind) -> bool: @export +@BindToLibGHDL("vhdl__nodes_meta__has_owned_instance_package_body") +def Has_Owned_Instance_Package_Body(kind: IirKind) -> bool: + """""" + + +@export @BindToLibGHDL("vhdl__nodes_meta__has_need_body") def Has_Need_Body(kind: IirKind) -> bool: """""" |