Browse Source

Add example for eventually! operator

* Add example for eventually! operator
* Add formal test for eventually! operator (throws an error during synthesis)
* Add eventually! to supported list with hint to failing synthesis
master
T. Meissner 4 years ago
parent
commit
9e29e0631e
4 changed files with 54 additions and 1 deletions
  1. +1
    -0
      README.md
  2. +18
    -0
      formal/psl_eventually.sby
  3. +2
    -1
      formal/tests.mk
  4. +33
    -0
      src/psl_eventually.vhd

+ 1
- 0
README.md View File

@ -22,6 +22,7 @@ The next two lists will grow during further development
* next_event[n] operator
* until operator
* until_ operator
* eventually! operator (simulation, synthesis throws an error)
## PSL features not yet supported by GHDL:


+ 18
- 0
formal/psl_eventually.sby View File

@ -0,0 +1,18 @@
[tasks]
prove
[options]
depth 25
prove: mode bmc
[engines]
prove: smtbmc z3
[script]
prove: ghdl --std=08 pkg.vhd sequencer.vhd psl_eventually.vhd -e psl_eventually
prep -top psl_eventually
[files]
../src/pkg.vhd
../src/sequencer.vhd
../src/psl_eventually.vhd

+ 2
- 1
formal/tests.mk View File

@ -4,4 +4,5 @@ psl_never \
psl_next \
psl_next_3 \
psl_next_event \
psl_next_event_4
psl_next_event_4 \
psl_until

+ 33
- 0
src/psl_eventually.vhd View File

@ -0,0 +1,33 @@
library ieee;
use ieee.std_logic_1164.all;
use work.pkg.all;
entity psl_eventually is
port (
clk : in std_logic
);
end entity psl_eventually;
architecture psl of psl_eventually is
signal a, b : std_logic;
begin
-- 0123456789012345
SEQ_A : sequencer generic map ("__-__-____-_____") port map (clk, a);
SEQ_B : sequencer generic map ("_______-______-_") port map (clk, b);
-- All is sensitive to rising edge of clk
default clock is rising_edge(clk);
-- This assertion holds
EVENTUALLY_a : assert always (a -> eventually! b);
end architecture psl;

Loading…
Cancel
Save