Forum Discussion
Altera_Forum
Honored Contributor
15 years agoThanks for reply.
I had a problem that only data port was export when I created a tristate slave. showthread.php?p=88948 (I can't post links) So I had to write HDL code but the problem was resolved just now. It was mainly with my own circuit. VHDL code is here. -- MRAM.vhd library IEEE; use IEEE.std_logic_1164.all; use IEEE.numeric_std.all; entity MRAM is port ( data : inout std_logic_vector(15 downto 0) := (others => '0'); -- avalon_tristate_slave.data byteenable_n : in std_logic_vector(1 downto 0) := (others => '0'); -- .byteenable_n chipselect_n : in std_logic := '0'; -- .chipselect_n read_n : in std_logic := '0'; -- .read_n write_n : in std_logic := '0'; -- .write_n address : in std_logic_vector(17 downto 0) := (others => '0'); -- .address add : out std_logic_vector(17 downto 0); -- conduit_end.export be_n : out std_logic_vector(1 downto 0); -- .export cs_n : out std_logic; -- .export oe_n : out std_logic; -- .export wr_n : out std_logic -- .export ); end entity MRAM; architecture rtl of MRAM is begin add <= address; be_n <= byteenable_n; cs_n <= chipselect_n; oe_n <= read_n; wr_n <= write_n; end architecture rtl; -- of MRAM