blob: f3d23f5dc70cc41ee9487d5df32bb9ecb881f19d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
library ieee;
use ieee.std_logic_1164.all;
entity ent is
port (
clk : in std_logic;
o : out bit
);
end ent;
architecture a of ent is
type reg_t is array(0 to 7) of std_logic_vector(0 to 7);
signal reg : reg_t;
begin
process(clk)
begin
if rising_edge(clk) then
reg <= reg(1 to 7) & x"00";
end if;
end process;
o <= '1';
end;
|