TheBorg
Junior Member level 1
Hi.
I have now for some time tried to use the WebPack simulator from Xilinx, i have defined a port as inout port (databus for a SRAM), there is no problems writing to the port, but i cant get it to work when trying to read from the port according the simulator.
I have added the simple test code, which i have testet the inout with, with the code below a cant read from the databus, so if anybody body has an idear what i am doing wrong here ?
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity Counter is
Port ( EXT_SYS_Clock : in std_logic;
EXT_SRAM_Data : inout std_logic_vector(7 downto 0);
EXT_LATCH_Data : out std_logic_vector(7 downto 0));
end Counter;
architecture Behavioral of Counter is
TEST: process (EXT_SYS_Clock)
begin
if (EXT_SYS_Clock' event and EXT_SYS_Clock = '1') then
EXT_SRAM_Data <= "ZZZZZZZZ";
EXT_LATCH_Data <= EXT_SRAM_Data;
end if;
end process;
end Behavioral;
Thanks for your help in advance.
Best regards
René
I have now for some time tried to use the WebPack simulator from Xilinx, i have defined a port as inout port (databus for a SRAM), there is no problems writing to the port, but i cant get it to work when trying to read from the port according the simulator.
I have added the simple test code, which i have testet the inout with, with the code below a cant read from the databus, so if anybody body has an idear what i am doing wrong here ?
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity Counter is
Port ( EXT_SYS_Clock : in std_logic;
EXT_SRAM_Data : inout std_logic_vector(7 downto 0);
EXT_LATCH_Data : out std_logic_vector(7 downto 0));
end Counter;
architecture Behavioral of Counter is
TEST: process (EXT_SYS_Clock)
begin
if (EXT_SYS_Clock' event and EXT_SYS_Clock = '1') then
EXT_SRAM_Data <= "ZZZZZZZZ";
EXT_LATCH_Data <= EXT_SRAM_Data;
end if;
end process;
end Behavioral;
Thanks for your help in advance.
Best regards
René