diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-06-30 18:42:53 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-06-30 19:34:50 +0200 |
commit | 1cc80ba8063de7083de78fc0473a1e5d6999a111 (patch) | |
tree | d0d4248123dda129a4624e50f86fbc8cad613906 /src/vhdl | |
parent | aedbcc715e099335d28e1e06934e75263bd335e9 (diff) | |
download | ghdl-1cc80ba8063de7083de78fc0473a1e5d6999a111.tar.gz ghdl-1cc80ba8063de7083de78fc0473a1e5d6999a111.tar.bz2 ghdl-1cc80ba8063de7083de78fc0473a1e5d6999a111.zip |
vhdl-sem_psl: avoid a crash in synth on incorrect clock.
Diffstat (limited to 'src/vhdl')
-rw-r--r-- | src/vhdl/vhdl-sem_psl.adb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-sem_psl.adb b/src/vhdl/vhdl-sem_psl.adb index 0e077b8c9..da5eaa2a2 100644 --- a/src/vhdl/vhdl-sem_psl.adb +++ b/src/vhdl/vhdl-sem_psl.adb @@ -24,6 +24,7 @@ with PSL.Types; use PSL.Types; with PSL.Nodes; use PSL.Nodes; with PSL.Subsets; with PSL.Hash; +with PSL.Rewrites; with PSL.Errors; use PSL.Errors; with Vhdl.Sem_Expr; @@ -1002,6 +1003,7 @@ package body Vhdl.Sem_Psl is Report_End_Group; end if; Expr := Sem_Boolean (Get_Psl_Boolean (Stmt)); + Expr := PSL.Rewrites.Rewrite_Boolean (Expr); Set_Psl_Boolean (Stmt, Expr); Current_Psl_Default_Clock := Stmt; end Sem_Psl_Default_Clock; |