VHDL テスト ファイル a.vhd があります。
猫 a.vhd
package pak is
component b is -- 1st definition of component b.
end component
end pak;
use work.pak.all; -- 1st definition visible through this package use clause
entity a is
port (in1 : in std_logic );
end a;
architecture a of a is
component b -- 2nd definition of component b.
port ( in11 : in std_logic);
end component;
begin
inst : b port map ( in11=> in1); -- there are two definitions of component b at this instance.
end a;
entity b is
port (in11 : in std_logic);
end b;
architecture b of b is
begin
end b;
そのため、modelsim を実行すると、オーバーライドされたコンポーネントの警告/エラーは発生しませんでした。パッケージで宣言された同じ名前のコンポーネントよりも、アーキテクチャで宣言されているコンポーネントを常に優先しますか。LRMがそれについて何を言っているのか誰か教えてもらえますか? これを説明してください。