Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > syntax error? help!

Reply
Thread Tools

syntax error? help!

 
 
Somnium Somnium is offline
Junior Member
Join Date: Apr 2011
Posts: 2
 
      04-02-2011
Hello,

I'm doing some project and as usual I got stuck on the little and the dumbest things...

A : in std_logic_vector(3 downto 0);
B : out std_logic_vector(6 downto 0));
.....
B<=x"OE" when A<"1000" else
x"37"
.....

Now I get 2 errors :
1. ... expected an integer value
2. ... string literal must be terminated


can't understand what's wrong..

thanks,
 
Reply With Quote
 
 
 
 
joris joris is offline
Senior Member
Join Date: Jan 2009
Posts: 152
 
      04-07-2011
- You got a capital 'o' instead of a zero in x"OE"
- x"0E" and x"37" are smaller than B
 
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
Syntax Checker that's better than the normal syntax checker Jacob Grover Ruby 5 07-18-2008 05:07 AM
Syntax error? What syntax error? Assignment fo default values? Mark Richards Perl Misc 3 11-18-2007 05:01 PM
Syntax bug, in 1.8.5? return not (some expr) <-- syntax error vsreturn (not (some expr)) <-- fine Good Night Moon Ruby 9 07-25-2007 04:51 PM
[ANN] SqlStatement 1.0.0 - hide the syntax of SQL behind familiarruby syntax Ken Bloom Ruby 3 10-09-2006 06:46 PM
Syntax highligth with textile: Syntax+RedCloth ? gabriele renzi Ruby 2 12-31-2005 02:44 AM



Advertisments