2013-01-24 81 views
1

我有以下結構:上線Error (10481): VHDL Use Clause error at DE2_TOP.vhd(276): design library "work" does not contain primary unit "lab1"VHDL - 設計庫不包含單位

architecture datapath of DE2_TOP is 
begin 
U1: entity work.lab1 port map (
    clock => clock_50, 
    key => key, 
    hex6 => hex6, 
    hex5 => hex5, 
    hex4 => hex4 
); 
end datapath; 

我收到以下錯誤U1: entity work.lab1 port map (。任何人都知道是什麼導

回答

1

您需要編譯至少entitylab1編譯DE2_TOP

+1

之前...除非你實例lab1中的一個組件,而不是作爲一個實體。 –