|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity con_led is
port(
clk:in std_logic;
clk_rom:buffer std_logic;
addr:buffer std_logic_vector(15 downto 0);
scanut std_logic_vector(15 downto 0)
);
end con_led;
architecture abc of con_led is
signal clk_mn:std_logic;
begin
fenpin:process(clk)
variable counter_mn:integer range 0 to 15;
begin
if(rising_edge(clk))then
if(counter_mn=15)then
counter_mn:=0;
clk_mn<=not clk_mn;
elsif (counter_mn=5)then
clk_rom<=not clk_rom;
counter_mn:=counter_mn+1;
else counter_mn:=counter_mn+1;
end if;
end if;
end process fenpin;
adder_mn:process(clk_mn)
variable counter_n:integer range 0 to 5*16*2;
variable counter_m:integer range 0 to 15;
begin
if(rising_edge(clk_mn))then
if(counter_n=160)then
counter_n:=0;
else
counter_n:=counter_n+1;
addr<=addr+1;
end if;
if(counter_m=15)then
counter_m:=0;
else
counter_m:=counter_m+1;
case counter_m is
when 0=> scan<="0000000000000001";
when 1=> scan<="0000000000000010";
when 2=> scan<="0000000000000100";
when 3=> scan<="0000000000001000";
when 4=> scan<="0000000000010000";
when 5=> scan<="0000000000100000";
when 6=> scan<="0000000001000000";
when 7=> scan<="0000000010000000";
when 8=> scan<="0000000100000000";
when 9=> scan<="0000001000000000";
when 10=> scan<="0000010000000000";
when 11=> scan<="0000100000000000";
when 12=> scan<="0001000000000000";
when 13=> scan<="0010000000000000";
when 14=> scan<="0100000000000000";
when 15=> scan<="1000000000000000";
when others => scan<="0000000000000000";
end case;
end if;
end if;
end process adder_mn;
end abc;
============================================================================================
提示如下错误:
Error: Cannot route source node "scan[15]~reg0" of type logic cell to destination node "scan[15]" of type I/O pin
Error: Cannot route source node "scan[8]~reg0" of type logic cell to destination node "scan[8]" of type I/O pin
Error: Can't find fit
Error: Quartus II Fitter was unsuccessful. 3 errors, 0 warnings
Info: Allocated 153 megabytes of memory during processing
Error: Processing ended: Tue Apr 15 13:04:07 2008
Error: Elapsed time: 00:00:15
Error: Quartus II Full Compilation was unsuccessful. 3 errors, 0 warnings
双击错误提示过后,弹出如下的一个图像。啊~~~!! 这是什么啊,我看不懂啊···
|
|