thanks very much i solvd the problems
now i am trying to do a test_banch for this counter
HTML Code:
library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.std_logic_arith.all;
entity shift_reg is
PORT ( count : BUFFER bit_vector(8 downto 1));
end;
architecture only of shift_reg is
constant GEN: integer := 8;
component counter
generic(G_DATA_WIDTH : integer := 8);
port(clk,reset, load : in std_logic;
opcode : in std_logic_vector (1 downto 0);
data_in : in std_logic_vector(G_DATA_WIDTH-1 downto 0);
cnt : out std_logic_vector(G_DATA_WIDTH-1 downto 0));
end component;
SIGNAL clk1 : std_logic := '0';
SIGNAL reset1 : std_logic := '0';
SIGNAL load1 : std_logic := '0';
signal opcode1: std_logic_vector (1 downto 0);
signal DATA1 : std_logic_vector(GEN-1 downto 0);
signal cnt1 : std_logic_vector(GEN-1 downto 0);
begin
dut : counter
generic map (G_DATA_WIDTH => GEN);
PORT MAP (clk => clk1,reset => reset1,load => load1,opcode => opcode1,data_in => DATA1,cnt => cnt1);
clock : PROCESS
begin
DATA1=1;
opcode="01";
wait for 10 ns; clk <= not clk;
end PROCESS clock;
stimulus : PROCESS
begin
wait for 5 ns; reset <= '1';
wait for 4 ns; reset <= '0';
wait;
end PROCESS stimulus;
end only;
it wrote alot of errors like:
(vcom-1035) Formal port "clk" has OPEN or no actual associated with it.
(vcom-1035) Formal port "reset" has OPEN or no actual associated with it.
(vcom-1035) Formal port "load" has OPEN or no actual associated with it.
(vcom-1035) Formal port "opcode" has OPEN or no actual associated with it.
: (vcom-1035) Formal port "data_in" has OPEN or no actual associated with it.
near "PORT": syntax error
Illegal target for signal assignment.
i reallydont know where is the problem
i will be glad for help
thnaks in advance