Судя по всему нет назначения, ведь отсутствуют выходные сигналы.Может кто подскажет что может быть не так?
Сложно в вашем тексте разбираться, научитесь его вкладывать файлом.
Вот к примеру сравните как сделан тестбенч
Код: Выделить всё
library ieee;
use ieee.numeric_std.all;
use ieee.std_logic_1164.all;
Entity cmd_detector_test IS
Generic(
witch:natural:=3;
len:natural:=6
);
PORT(
enabled:out std_logic_vector(len-1 downto 0)
);
End entity cmd_detector_test;
ARCHITECTURE test OF cmd_detector_test IS
--BEGIN
signal clk, strt:std_logic:='0';
signal cmd:std_logic_vector(witch-1 downto 0):="000";
component cmd_detector IS
Generic(
witch:natural:=3;
len:natural:=6
);
PORT(
clk, strt:in std_logic;
cmd:in std_logic_vector(witch-1 downto 0);
enabled:out std_logic_vector(len-1 downto 0)
);
End component;
BEGIN
D: cmd_detector
PORT MAP(
clk=>clk,
strt=>strt,
cmd=> cmd,
enabled=>enabled
);
clock:process
begin
wait for 10 ns; clk<=not clk;
end process;
comd:process
variable cmd_v:unsigned(2 downto 0):="000";
constant step:unsigned(2 downto 0):="001";
begin
wait for 100 ns; cmd<=std_logic_vector(cmd_v);
wait for 60 ns; strt<='1';
wait for 100 ns; strt<='0';
wait for 40 ns; cmd_v:=cmd_v+step;
end process;
end test;



