Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > Unexpected LE

Reply
Thread Tools

Unexpected LE

 
 
atef atef is offline
Junior Member
Join Date: May 2011
Posts: 1
 
      05-13-2011
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;
 
Reply With Quote
 
 
 
 
joris joris is offline
Senior Member
Join Date: Jan 2009
Posts: 153
 
      05-14-2011
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;
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unexpected error when trying to create a network bridge in Windows =?Utf-8?B?Q3JhaWc=?= Wireless Networking 0 11-03-2005 10:17 AM
Unexpected Password Needed When Attempting to Access My Other Comp =?Utf-8?B?RGVubmlzIE4u?= Wireless Networking 0 05-26-2005 07:36 PM
Unexpected Shutdown Myrt Webb Wireless Networking 3 11-10-2004 02:02 AM
Re: unexpected results Scott Lander Perl 0 07-07-2003 02:28 PM
fatal error CS0007: Unexpected common language runtime initialization error -- Polo Lee ASP .Net 0 07-07-2003 01:24 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57