diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-06-07 07:55:13 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-06-07 07:55:43 +0200 |
commit | 7c464546f0c202bfa95b6516a19effea16f30289 (patch) | |
tree | f2a198c4212853a26ddc4da63151ec747aab1e59 /src/synth/synth-expr.adb | |
parent | 42a04ac8722e89e4454f89ccf540599d10b418f0 (diff) | |
download | ghdl-7c464546f0c202bfa95b6516a19effea16f30289.tar.gz ghdl-7c464546f0c202bfa95b6516a19effea16f30289.tar.bz2 ghdl-7c464546f0c202bfa95b6516a19effea16f30289.zip |
synth: WIP for dependencies.
Diffstat (limited to 'src/synth/synth-expr.adb')
-rw-r--r-- | src/synth/synth-expr.adb | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/synth/synth-expr.adb b/src/synth/synth-expr.adb index c398263f1..1dd5dbbea 100644 --- a/src/synth/synth-expr.adb +++ b/src/synth/synth-expr.adb @@ -538,10 +538,10 @@ package body Synth.Expr is begin return Create_Value_Net (Build_Concat2 (Build_Context, L, Get_Net (Right)), - Bounds_To_Range(Simul.Execution.Create_Bounds_From_Length - (Syn_Inst.Sim, - Get_Index_Type (Get_Type (Loc), 0), - Iir_Index32(Get_Width (L) + 1)))); + Bounds_To_Range (Simul.Execution.Create_Bounds_From_Length + (Syn_Inst.Sim, + Get_Index_Type (Get_Type (Loc), 0), + Iir_Index32 (Get_Width (L) + 1)))); end; when Iir_Predefined_Element_Array_Concat => declare @@ -549,10 +549,10 @@ package body Synth.Expr is begin return Create_Value_Net (Build_Concat2 (Build_Context, Get_Net (Left), R), - Bounds_To_Range(Simul.Execution.Create_Bounds_From_Length - (Syn_Inst.Sim, - Get_Index_Type (Get_Type (Loc), 0), - Iir_Index32(Get_Width (R) + 1)))); + Bounds_To_Range (Simul.Execution.Create_Bounds_From_Length + (Syn_Inst.Sim, + Get_Index_Type (Get_Type (Loc), 0), + Iir_Index32 (Get_Width (R) + 1)))); end; when others => Error_Msg_Synth @@ -609,9 +609,8 @@ package body Synth.Expr is | Iir_Kind_Signal_Declaration => return Get_Value (Syn_Inst, Name); when Iir_Kind_Constant_Declaration => - return Create_Value_Lit( - Syn_Inst.Sim.Objects(Get_Info(Name).Slot), - Get_Type(Name)); + return Create_Value_Lit + (Syn_Inst.Sim.Objects (Get_Info (Name).Slot), Get_Type (Name)); when others => Error_Kind ("synth_name", Name); end case; |