2 use ieee.std_logic_1164.all;
3 use ieee.numeric_std.all;
9 cnt : out std_logic_vector (7 downto 0)
13 architecture behav of attr01 is
14 signal counter : std_logic_vector (7 downto 0);
16 attribute keep : boolean;
17 attribute keep of counter : signal is True;
21 if rising_edge (clk) then
23 counter <= (others => '0');
25 counter <= std_logic_vector (unsigned (counter) + 1);