Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

inout Std_logic_vector Signal Test

Hi,

I am getting the following error by writting a testbench for Asynchrone SRAM and I have tried to solve this unsucessfully.Please any advice

error output:# ** Error: Z:/Prototyp/Development_Infos_Collection/LS4000_Development/HW/FPGA/Tutorial/Simulation/Projects/sram1024kx8/tsram1024kx8.vhd(12): (vcom-1136) Unknown identifier "std_logic_vector".

vhdl code:


             entity test_sram1024x8 is
Line 12    PORT ( D    : inout Std_logic_vector(7 downto 0));
             end;
architecture test of test_sram1024x8 is
COMPONENT sram1024x8
  port (A    : in Std_logic_vector(19 downto 0);
        D    : inout Std_logic_vector(7 downto 0);
        nCE : in std_logic;
        nCE2 : in std_logic;
        nWE : in std_logic;
        nOE : in Std_logic);
END COMPONENT ;
SIGNAL A   : bit := '0';
SIGNAL nCE : bit := '1';
SIGNAL nCE2   : bit := '1';
SIGNAL nWE : bit := '1';
SIGNAL nOE : bit := '0';
begin
dut : sram1024x8 
   PORT MAP (
    A => A,
    D => D,
    nCE => nCE,
    nCE2 => nCE2,
    nWE => nWE,
    nOE => nOE );
   
--clock : PROCESS
   --begin
   --wait for 10 ns; clk  <= not clk;
--end PROCESS clock;
stimulus : PROCESS
   begin
   --A <= '1';
   wait for 5 ns; nCE   <= '0';
   wait for 5 ns; nCE2  <= '0';
   wait for 5 ns; nOE  <= '1';
   wait for 12 ns; nWE  <= '0';
   wait;
end PROCESS stimulus;
end test;

20 Replies