Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   VHDL (http://www.velocityreviews.com/forums/f18-vhdl.html)
-   -   Inout signal (http://www.velocityreviews.com/forums/t21363-inout-signal.html)

Tianlun 06-30-2003 01:26 PM

Inout signal
 
Hi,

I use inout signal in my VHDL code

Why can not I get the correct input signal?
The input signal are already there.I can see them through logic analyser.


entity readregister is
Port ( fd : inout std_logic_vector(7 downto 0);
rst:in std_logic);
end readregister;

architecture Behavioral of readregister is
signal fd_s:std_logic_vector(7 downto 0);
begin

process(clk,rst)
begin
if rst='0' then
fd<="ZZZZZZZZ";
fd_s<="ZZZZZZZZ";
elsif clk'event and clk='1' then
if...
fd_s<=fd;
if fd_s(2)='1' then
....
elsif fd_s(5)='1' then
...
else
...
end if;
end if;
end if;
end process;
end archtiture;





Thanks for any valuable advice

Tianlun



Ajeetha Kumari 06-30-2003 04:44 PM

Re: Inout signal
 
Hi,

"Tianlun" <gtl5800@eikon.tum.de> wrote in message news:<bdpd15$q0q$1@wsc10.lrz-muenchen.de>...
> Hi,
>
> I use inout signal in my VHDL code
>
> Why can not I get the correct input signal?


What do you exactly mean by that? Are you seeing X's in waveform?

> The input signal are already there.I can see them through logic analyser.
>


Do you mean Waveform viewer?

>
> entity readregister is
> Port ( fd : inout std_logic_vector(7 downto 0);
> rst:in std_logic);
> end readregister;
>
> architecture Behavioral of readregister is
> signal fd_s:std_logic_vector(7 downto 0);
> begin
>


Normally what I do is, have an output enable, say oe_n and

fd <= (others => 'Z') when (oe_n = '1') else fd_out;

where fd_out is the output from this DUT.

You didn't show the code of your TB which actually drives this fd
(presumably in input mode to DUT, output to TB), so can't comment
more.

HTH,
Ajeetha
http://www.noveldv.com


All times are GMT. The time now is 09:59 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.