-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend PSL prev with configurable cycle count.
- Loading branch information
Ondrej Ille
committed
Jan 19, 2025
1 parent
2c4d8c5
commit 721add5
Showing
7 changed files
with
92 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
** Note: 2ns+1: one | ||
** Note: 3ns+1: one | ||
** Note: 4ns+1: two | ||
** Note: 6ns+1: three | ||
** Note: 7ns+1: four |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
entity psl19 is | ||
end entity; | ||
|
||
architecture tb of psl19 is | ||
|
||
signal clk : natural; | ||
signal a,b,c : bit; | ||
signal v : bit_vector(15 downto 0); | ||
|
||
constant seq_a : bit_vector := "01110000"; | ||
constant seq_b : bit_vector := "01101000"; | ||
constant seq_c : bit_vector := "01000010"; | ||
|
||
type t_matrix is array (0 to 7) of bit_vector(15 downto 0); | ||
constant seq_v : t_matrix := | ||
( | ||
(x"0000"), | ||
(x"0000"), | ||
(x"0000"), | ||
(x"EEEE"), | ||
(x"DDDD"), | ||
(x"CCCC"), | ||
(x"BBBB"), | ||
(x"AAAA") | ||
); | ||
|
||
begin | ||
|
||
clkgen: clk <= clk + 1 after 1 ns when clk < 7; | ||
|
||
agen: a <= seq_a(clk); | ||
bgen: b <= seq_b(clk); | ||
cgen: c <= seq_c(clk); | ||
|
||
vgen: v <= seq_v(clk); | ||
|
||
-- psl default clock is clk'delayed(0 ns)'event; | ||
|
||
-- Covered at 2 ns and 3 ns | ||
-- psl one: cover {a and prev(a)} report "one"; | ||
|
||
-- Covered at 4 ns | ||
-- psl two: cover {b and prev(b,2)} report "two"; | ||
|
||
-- Covered at 6 ns | ||
-- psl three: cover {c and prev(c,5)} report "three"; | ||
|
||
-- Covered at 7 ns | ||
-- psl four: cover { v = x"AAAA" and | ||
-- prev(v ) = x"BBBB" and | ||
-- prev(v,2) = x"CCCC" and | ||
-- prev(v,3) = x"DDDD" and | ||
-- prev(v,4) = x"EEEE"} report "four"; | ||
|
||
end architecture; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1095,3 +1095,4 @@ issue1125 normal,2008 | |
issue1137 normal | ||
tcl3 tcl,fail,gold | ||
psl18 fail,gold,2008 | ||
psl19 gold,psl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters