superosjecaj
Programmer
Hi!
I'd laike to make a bidirectional port with vhdl, bu i don't know how to...
i tried sth like this
io : inout std_logic;
i : in std logic;
o : std_logic;
rw,vma : in std_logic
...
p0rocess(vma,rw...)
begin
if vma = '1' then
if rw = '1' then
i <= io;
else
io <= o;
end if;
else
io <= 'Z';
end if;
end process;
...
but the synthesis reports a latch...
how can i avoid that
thanx,
blaz
I'd laike to make a bidirectional port with vhdl, bu i don't know how to...
i tried sth like this
io : inout std_logic;
i : in std logic;
o : std_logic;
rw,vma : in std_logic
...
p0rocess(vma,rw...)
begin
if vma = '1' then
if rw = '1' then
i <= io;
else
io <= o;
end if;
else
io <= 'Z';
end if;
end process;
...
but the synthesis reports a latch...
how can i avoid that
thanx,
blaz