Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > Re: fixed point representation and signed numbers

Reply
Thread Tools

Re: fixed point representation and signed numbers

 
 
KJ
Guest
Posts: n/a
 
      09-05-2008
On Sep 5, 10:50*am, blackpadme <rando...@gmail.com> wrote:
> Hi, i'm working with fixed point numbers which have two bits for no-
> fractional part (in two complement) and eight bits for fractional
> (i.e. pi/2 = *0.5703 => 00.10010010). But, what happen if i need
> signed representation for the fractional part ? 11.10010010 = -1.5703.
> What can i do if a need to represent -pi/2 and i need to work across
> division, add, multiplicacion etc. ?
>


Google for "Fixed_pkg_c.vhdl" (I think it's at vhdl.org somewhere).
This relatively new package nicely handles all the bit fiddlings
required to work with fixed point numbers...saves you the trouble of
re-inventing the wheel.

KJ
 
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
Share-Point-2010 ,Share-Point -2010 Training , Share-point-2010Hyderabad , Share-point-2010 Institute Saraswati lakki ASP .Net 0 01-06-2012 06:39 AM
fixed point representation and signed numbers blackpadme VHDL 4 09-07-2008 03:03 PM
Re: fixed point representation and signed numbers blackpadme VHDL 0 09-05-2008 04:06 PM
Binary representation of floating point numbers 63q2o4i02@sneakemail.com Python 10 12-15-2005 03:45 PM
Fixed-point format for floating-point numbers Motaz Saad Java 7 11-05-2005 05:33 PM



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