2 use ieee.std_logic_1164.all;
14 architecture rtl of sequencer is
16 signal index : natural := seq'low;
18 function to_bit (a : in character) return std_logic is
19 variable ret : std_logic;
22 when '0' | '_' => ret := '0';
23 when '1' | '-' => ret := '1';
24 when others => ret := 'X';
33 if rising_edge(clk) then
34 if (index < seq'high) then
40 data <= to_bit(seq(index));
46 use ieee.std_logic_1164.all;
47 use ieee.numeric_std.all;
55 architecture psl of issue is
57 signal a, b : std_logic;
62 SEQ_A : entity work.sequencer generic map ("--____") port map (clk, a);
63 SEQ_B : entity work.sequencer generic map ("_-____") port map (clk, b);
67 vunit issue_1899_vu0 {
69 -- Using named sequences
70 sequence s_a (boolean a) is {a; a};
71 sequence s_b (boolean b) is {b};
75 vunit issue_1899_vu1 (issue(psl)) {
77 inherit issue_1899_vu0;
79 -- All is sensitive to rising edge of clk
80 default clock is rising_edge(clk);
82 SERE_0_a : assert always s_a(a) |-> s_b(b);