Skip to content

Commit c48ea0f

Browse files
committed
Add writing psl endpoint value into VHDL boolean signal
1 parent 7c1f4b1 commit c48ea0f

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

psl_endpoint_eval_in_vhdl/psl_endpoint_eval_in_vhdl.vhd

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ architecture test of psl_endpoint_eval_in_vhdl is
1919
signal s_clk : std_logic := '0';
2020
signal s_write : std_logic;
2121
signal s_read : std_logic;
22+
signal s_test0 : boolean;
2223

2324

2425
begin
@@ -59,4 +60,15 @@ begin
5960
end process;
6061

6162

62-
end architecture test;
63+
process is
64+
begin
65+
wait until rising_edge(s_clk);
66+
if (E_TEST0) then
67+
s_test0 <= true;
68+
else
69+
s_test0 <= false;
70+
end if;
71+
end process;
72+
73+
74+
end architecture test;

0 commit comments

Comments
 (0)