aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/vhdl-scanner.adb
diff options
context:
space:
mode:
authorT. Meissner <programming@goodcleanfun.de>2021-02-09 07:31:00 +0100
committerGitHub <noreply@github.com>2021-02-09 07:31:00 +0100
commit7d5bfac5526528e32f5f44b9bea0bbdfee21a589 (patch)
treea3d749912cca5d83f8cb1da304b90a62713d2d59 /src/vhdl/vhdl-scanner.adb
parenta75c135b5bb3c817ff0d9605c5cfabbfa721c13b (diff)
downloadghdl-7d5bfac5526528e32f5f44b9bea0bbdfee21a589.tar.gz
ghdl-7d5bfac5526528e32f5f44b9bea0bbdfee21a589.tar.bz2
ghdl-7d5bfac5526528e32f5f44b9bea0bbdfee21a589.zip
Add support for PSL onehot/onehot0 functions (#1633)
* vhdl: parse PSL onehot/onehot0 builtin calls. For #662 * update pyGHDL bindings * Synthesis of PSL built-in onehot/onehot0 function. * testsuite/synth: add tests of PSL built-in functions onehot()/onehot0() for #662 * doc: add info about PSL built-in functions onehot()/onehot0() for #662 * synth: refactor synthesis of onehot/onehot0 functions Co-authored-by: eine <eine@users.noreply.github.com>
Diffstat (limited to 'src/vhdl/vhdl-scanner.adb')
-rw-r--r--src/vhdl/vhdl-scanner.adb8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-scanner.adb b/src/vhdl/vhdl-scanner.adb
index 0dad688a6..177f04bad 100644
--- a/src/vhdl/vhdl-scanner.adb
+++ b/src/vhdl/vhdl-scanner.adb
@@ -1296,6 +1296,10 @@ package body Vhdl.Scanner is
Current_Token := Tok_Rose;
when Name_Fell =>
Current_Token := Tok_Fell;
+ when Name_Onehot =>
+ Current_Token := Tok_Onehot;
+ when Name_Onehot0 =>
+ Current_Token := Tok_Onehot0;
when Name_Sequence =>
Current_Token := Tok_Sequence;
when Name_Property =>
@@ -1378,6 +1382,10 @@ package body Vhdl.Scanner is
Current_Token := Tok_Rose;
when Name_Fell =>
Current_Token := Tok_Fell;
+ when Name_Onehot =>
+ Current_Token := Tok_Onehot;
+ when Name_Onehot0 =>
+ Current_Token := Tok_Onehot0;
when Name_Clock =>
Current_Token := Tok_Psl_Clock;
when Name_Const =>