Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PSL check for valid fifo in data during write, fixes #750 #766

Merged
merged 1 commit into from
Oct 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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