Mutually exclusive

Discussion in 'VHDL' started by ALuPin, Sep 7, 2004.

  1. ALuPin

    ALuPin Guest

    Hi VHDL folks,

    I get the info warning
    "Info, conditions are mutually exclusive; resolve without priority."


    when compiling the following process:


    process(Reset, Clk)
    begin
    if Reset='1' then
    l_speed <= '0';

    elsif rising_edge(Clk) then

    if Rx_data(3 downto 0)="0100" then
    l_speed <= '0';
    elsif Rx_data(3 downto 0)="1010" then
    l_speed <= '1';
    else
    l_speed <= l_speed;
    end if;
    end if;
    end process;

    What does the info warning mean?

    Thank you for your help.

    Rgds
     
    ALuPin, Sep 7, 2004
    #1
    1. Advertising

  2. ALuPin

    Sunil Shukla Guest

    Hi ALuPin,

    Probably, the compiler wants you to use mux (using case statement, as the
    conditions are mutually exclusive) instead of priority encoder.

    Cheers,
    Sunil
    ====================
    www.uq.edu.au/~uqsshukl

    "ALuPin" <> wrote in message
    news:...
    > Hi VHDL folks,
    >
    > I get the info warning
    > "Info, conditions are mutually exclusive; resolve without priority."
    >
    >
    > when compiling the following process:
    >
    >
    > process(Reset, Clk)
    > begin
    > if Reset='1' then
    > l_speed <= '0';
    >
    > elsif rising_edge(Clk) then
    >
    > if Rx_data(3 downto 0)="0100" then
    > l_speed <= '0';
    > elsif Rx_data(3 downto 0)="1010" then
    > l_speed <= '1';
    > else
    > l_speed <= l_speed;
    > end if;
    > end if;
    > end process;
    >
    > What does the info warning mean?
    >
    > Thank you for your help.
    >
    > Rgds
     
    Sunil Shukla, Sep 7, 2004
    #2
    1. Advertising

  3. (ALuPin) wrote in message news:<>...
    > Hi VHDL folks,
    >
    > I get the info warning
    > "Info, conditions are mutually exclusive; resolve without priority."


    > What does the info warning mean?


    It means that since the if, elsif, and else
    cases don't overlap, this is a logical
    classification rather than a prioritization.
    This might better be labelled "information" rather
    than "warning".

    -- Mike Treseler
     
    Mike Treseler, Sep 7, 2004
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page