Skip to content

Commit

Permalink
Fix PSL check for valid fifo in data during write, fixes #750
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeissner committed Oct 24, 2021
1 parent b692d66 commit 481cfb3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/vhdl/array_axis_vcs/src/fifo.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,8 @@ begin
-- If your simulator chokes on the following block,
-- see https://electronics.stackexchange.com/questions/540769/what-kind-of-vhdl-process-is-this/
PslChecks : block is
constant dx : std_logic_vector(d'left downto 0) := (others => 'X');
constant du : std_logic_vector(d'left downto 0) := (others => 'U');
begin
assert always (not rst and wr -> not (d ?= dx or d ?= du))@rising_edge(clkw)
assert always (not rst and wr -> not is_x(d))@rising_edge(clkw)
report "wrote X|U to FIFO";
assert always (not rst and f -> not wr)@rising_edge(clkw)
report "Wrote to FIFO while full";
Expand Down

0 comments on commit 481cfb3

Please sign in to comment.