我在ise中仿真,出不来波形,老师说是没有信号。怎么样添加信号?
代码是这样的。
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity sanj is
port(clk3:in
std_logic;
dd3ut std_logic_vector(7 downto 0));
end sanj;
architecture art of
sanj is signal
b:std_logic;
signal c:std_logic_vector(7 downto 0);
begin
process(clk3)
begin
if (clk3'event and clk3='1')
then if(b='0') then
c<=c+1;
if(c=250) then
b<='1';
end if;
elsif(b='1')
then
c<=c-1;
if(c=1) then
b<='0';
end if;
end if;
dd3<=c;
end if;
end process;
end art;