diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-11-17 21:22:02 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-11-17 21:22:02 +0100 |
commit | e890899a52b1b879694a41759e7644613d7bd1a6 (patch) | |
tree | 17c2639eeb58f90eec82c4d21b2c7364543d50e9 /src/synth/netlists-dump.adb | |
parent | 4ac40b32c52686bb2c84b640d25d71919cafdf0e (diff) | |
download | ghdl-e890899a52b1b879694a41759e7644613d7bd1a6.tar.gz ghdl-e890899a52b1b879694a41759e7644613d7bd1a6.tar.bz2 ghdl-e890899a52b1b879694a41759e7644613d7bd1a6.zip |
synth: renaming to instance_attributes.
Diffstat (limited to 'src/synth/netlists-dump.adb')
-rw-r--r-- | src/synth/netlists-dump.adb | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/synth/netlists-dump.adb b/src/synth/netlists-dump.adb index 4007e0e24..bd9554839 100644 --- a/src/synth/netlists-dump.adb +++ b/src/synth/netlists-dump.adb @@ -311,7 +311,8 @@ package body Netlists.Dump is procedure Dump_Attributes (M : Module; Indent : Natural := 0) is - Attrs : constant Attribute_Map_Acc := Get_Attributes (M); + Attrs : constant Instances_Attribute_Map_Acc := + Get_Instance_Attributes (M); Attr : Attribute; Inst : Instance; Kind : Param_Type; @@ -322,13 +323,13 @@ package body Netlists.Dump is return; end if; - for I in - Attribute_Maps.First_Index .. Attribute_Maps.Last_Index (Attrs.all) + for I in Instances_Attribute_Maps.First_Index + .. Instances_Attribute_Maps.Last_Index (Attrs.all) loop - Attr := Attribute_Maps.Get_Value (Attrs.all, I); - Inst := Attribute_Maps.Get_By_Index (Attrs.all, I); + Attr := Instances_Attribute_Maps.Get_Value (Attrs.all, I); + Inst := Instances_Attribute_Maps.Get_By_Index (Attrs.all, I); while Attr /= No_Attribute loop - pragma Assert (Has_Attribute (Inst)); + pragma Assert (Has_Instance_Attribute (Inst)); Put_Indent (Indent); Put ("attribute "); @@ -528,7 +529,7 @@ package body Netlists.Dump is if Get_Nbr_Outputs (Inst) /= 1 then return False; end if; - if Has_Attribute (Inst) then + if Has_Instance_Attribute (Inst) then return False; end if; O := Get_Output (Inst, 0); @@ -632,13 +633,13 @@ package body Netlists.Dump is Disp_Instance_Id (Inst); - if Has_Attribute (Inst) then + if Has_Instance_Attribute (Inst) then declare Attr : Attribute; Kind : Param_Type; Val : Pval; begin - Attr := Get_First_Attribute (Inst); + Attr := Get_Instance_First_Attribute (Inst); Put ("(* "); loop Put_Id (Get_Attribute_Name (Attr)); |