diff options
author | Ondrej Ille <ondrej.ille@gmail.com> | 2021-04-07 13:30:36 +0200 |
---|---|---|
committer | tgingold <tgingold@users.noreply.github.com> | 2021-04-08 20:22:42 +0200 |
commit | 32610986dde102e695c2f4f752f925d61f277f12 (patch) | |
tree | 07fd37b9f7f42420a3d2d8c979710129ac718da3 | |
parent | 32bcb07c7d7a809fc94fc438835e5e3109ace30a (diff) | |
download | ghdl-32610986dde102e695c2f4f752f925d61f277f12.tar.gz ghdl-32610986dde102e695c2f4f752f925d61f277f12.tar.bz2 ghdl-32610986dde102e695c2f4f752f925d61f277f12.zip |
src: Fix PSL start count assignment for PSL endpoints.
-rw-r--r-- | src/vhdl/translate/trans-chap9.adb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/vhdl/translate/trans-chap9.adb b/src/vhdl/translate/trans-chap9.adb index f9d8f5054..4a41c26aa 100644 --- a/src/vhdl/translate/trans-chap9.adb +++ b/src/vhdl/translate/trans-chap9.adb @@ -718,16 +718,16 @@ package body Trans.Chap9 is New_Lit (Ghdl_Index_1))); Close_Temp; Finish_If_Stmt (S_Blk); - end if; - -- Check "started" flag, increment started count if set - Start_If_Stmt (S_Blk, New_Value (New_Obj (Var_SFlag))); - New_Assign_Stmt - (Get_Var (Info.Psl_Start_Count_Var), - New_Dyadic_Op (ON_Add_Ov, - New_Value (Get_Var (Info.Psl_Start_Count_Var)), - New_Lit (Ghdl_Index_1))); - Finish_If_Stmt (S_Blk); + -- Check "started" flag, increment started count if set + Start_If_Stmt (S_Blk, New_Value (New_Obj (Var_SFlag))); + New_Assign_Stmt + (Get_Var (Info.Psl_Start_Count_Var), + New_Dyadic_Op (ON_Add_Ov, + New_Value (Get_Var (Info.Psl_Start_Count_Var)), + New_Lit (Ghdl_Index_1))); + Finish_If_Stmt (S_Blk); + end if; -- Assign state vector. Start_Declare_Stmt; |