Variables

A

ALuPin

Hi everybody,

I have an warning message that no output is dependant on the input 'In_sel'.
Why is 'Out_data' not dependent on l_transmit (which is dependent on
var_transmit (which is dependent on In_sel) ) ?
(I use QuartusII software)

Thank you for your help.


Here is the shortened code:

-------------------------------------
-------------------------------------
entity xy is
port( In_sel : in std_logic;
...
Out_data : out std_logic;
);
end xy;

architecture yz of xy is
signal l_data : std_logic;
signal l_transmit : std_logic;
begin

Out_data <= l_data;

process(Reset, Clk)
variable var_transmit : std_logic;
begin
if Reset='1' then
l_transmit <= '0';
l_data <= '0';
elsif rising_edge(Clk) then
l_data <= l_data;
l_transmit <= l_transmit;
var_transmit := l_transmit;
...
if In_sel='1' then
var_transmit:= '1';
end if;
if var_transmit='1' then
l_data <= '1';
end if;

l_transmit <= var_transmit;

end if;
end process;

end yz;
 
M

Mike Treseler

ALuPin said:
I have an warning message that no output is dependant on the input 'In_sel'.
Why is 'Out_data' not dependent on l_transmit (which is dependent on
var_transmit (which is dependent on In_sel) ) ?
(I use QuartusII software)

Consider learning modelsim so you can eliminate
logical problems before attempting synthesis.

Consider writing a text description of what
the code is intended to do at the top of
the architecture. In a few months, you will
be as baffled as I am now about what you are
attempting to do.

if In_sel='1' then
var_transmit:= '1';
end if;
if var_transmit='1' then
l_data <= '1';

Do you ever want var_transmit to return to zero?

-- Mike Treseler
 
N

Nicolas Matringe

Mike Treseler a écrit:
[...]
In a few months, you will
be as baffled as I am now about what you are
attempting to do.




Do you ever want var_transmit to return to zero?

You missed the line just before:
var_transmit := l_transmit;

Anyway I too think this is badly coded.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,159
Messages
2,570,884
Members
47,419
Latest member
ArturoBres

Latest Threads

Top