blob: 9cb9c40274ff9555d78c9ca0f7dad4333c581515 (
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
25
26
27
|
package attributes_pkg is
attribute period :time;
end package;
library work;
use work.attributes_pkg.period;
entity inner is
port(
signal clk :in bit
);
end entity;
architecture arch of inner is
constant CLK_PERIOD :time := clk'period;
begin
end architecture;
library work;
use work.attributes_pkg.period;
entity outer is end entity;
architecture arch of outer is
signal clk :bit;
attribute period of clk :signal is 1 ns;
begin
inst: entity work.inner port map(clk);
end architecture;
|