Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Electronic Equipment > VHDL > Re: Decimal to ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 5 Topic 6045 of 6417
Post > Topic >>

Re: Decimal to binary for comparison

by Mike Treseler <mike_treseler@[EMAIL PROTECTED] > May 23, 2008 at 08:40 AM

Klaus Thiele wrote:

> The value is a decimal number
> between 0 and 15, so I wonder if VHDL offers an easy way to convert from
> decimal to binary so that I can compare then values with an AND mask.
> This the thing should also be sythesizable on an XIlinx FPGA ;)

I would declare that natural range as a subtype
and use a constant or variable of that subtype
for the comparison. Synthesis will work out
the details.

            -- Mike Treseler
 




 5 Posts in Topic:
Decimal to binary for comparison
Klaus Thiele <Thiele.K  2008-05-23 16:20:49 
Re: Decimal to binary for comparison
Mike Treseler <mike_tr  2008-05-23 08:40:25 
Re: Decimal to binary for comparison
KJ <kkjennings@[EMAIL   2008-05-23 08:42:07 
Re: Decimal to binary for comparison
Klaus Thiele <Thiele.K  2008-05-23 16:45:21 
Re: Decimal to binary for comparison
Klaus Thiele <Thiele.K  2008-05-23 17:22:35 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 15:27:11 CST 2008.