Unexpected LE

Discussion in 'VHDL' started by atef, May 13, 2011.

  1. atef

    atef

    Joined:
    May 13, 2011
    Messages:
    1
    i have to do an alu control unit ina small Mips processor , when writing it\s code ,appears this error :
    <<line 42. parse error, unexpected LE>>
    please help me to find a solution for this error :)
    thanks in advanse :)


    library IEEE;
    use IEEE.STD_LOGIC_1164.ALL;
    use IEEE.STD_LOGIC_ARITH.ALL;
    use IEEE.STD_LOGIC_UNSIGNED.ALL;

    entity Alu_Control is
    Port ( AluOp : in STD_LOGIC_VECTOR (1 downto 0);
    Funct : in STD_LOGIC_VECTOR (5 downto 0);
    Control_Lines : in STD_LOGIC_VECTOR (3 downto 0));
    end Alu_Control;

    architecture Behavioral of Alu_Control is

    begin
    Control_Lines <="0000" when (AluOp="10" and Funct="100100") else
    <="0001" when (AluOp="10" and Funct="100101") else ---- this is the line that cause an error
    <="0110" when (AluOp="01" or (AluOp="10" and Funct="100010")) else
    <="0010" when (AluOp="00" or (AluOp="10" and Funct="100000")) else
    <="0111" when (AluOp="10" and Funct="101010") else
    "ZZZZ";
    end Behavioral;
     
    atef, May 13, 2011
    #1
    1. Advertising

  2. atef

    joris

    Joined:
    Jan 29, 2009
    Messages:
    152
    I think this is what you meant,

    Code:
    library IEEE;
    use IEEE.STD_LOGIC_1164.ALL;
    use IEEE.STD_LOGIC_ARITH.ALL;
    use IEEE.STD_LOGIC_UNSIGNED.ALL;
    
    entity Alu_Control is
    Port ( AluOp : in STD_LOGIC_VECTOR (1 downto 0);
    Funct : in STD_LOGIC_VECTOR (5 downto 0);
    Control_Lines : in STD_LOGIC_VECTOR (3 downto 0));
    end Alu_Control;
    
    architecture Behavioral of Alu_Control is
    
    begin
    Control_Lines <="0000" when (AluOp="10" and Funct="100100") else
     "0001" when (AluOp="10" and Funct="100101") else ---- this is the line that cause an error
     "0110" when (AluOp="01" or (AluOp="10" and Funct="100010")) else
     "0010" when (AluOp="00" or (AluOp="10" and Funct="100000")) else
     "0111" when (AluOp="10" and Funct="101010") else
    "ZZZZ";
    end Behavioral; 
    
     
    joris, May 14, 2011
    #2
    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.
Similar Threads
  1. Polo Lee
    Replies:
    0
    Views:
    2,734
    Polo Lee
    Jul 7, 2003
  2. Scott Lander

    Re: unexpected results

    Scott Lander, Jul 7, 2003, in forum: Perl
    Replies:
    0
    Views:
    1,736
    Scott Lander
    Jul 7, 2003
  3. IUnknown
    Replies:
    2
    Views:
    4,357
    Prhando
    Jul 25, 2006
  4. Jack
    Replies:
    2
    Views:
    487
    Alvin Bruney
    Nov 11, 2003
  5. Francois Malgreve

    event mechanism behaves in unexpected way.

    Francois Malgreve, Nov 19, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    296
    Francois Malgreve
    Nov 19, 2003
Loading...

Share This Page