Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - help need in conversion problem

 
Thread Tools Search this Thread
Old 02-21-2004, 05:24 AM   #1
Default help need in conversion problem


hello friends,

i do my ifft implementation with respect to complex number input and
got my output as complex number in simulation side.

Modelsim S.E 5.5 -simulator.

With respect to real type in vhld coding, that one is not synthesised.
so, i'm going to convert the real to std_logic_vector. for that i
fixed by quantization of corresponding value of real type to 8 bit.
ok.

for eg. if i have real value = 0.316 i can represent in bitvector as
"00101000"
and 0 .949= "01111001". if i do some calculations like
a <= 0.316+0.949 <= "00" & "00101000" + "00" & "01111001" =
"0010100001"

0.316+0.949 = 1.265 => "10100001"

both come correct ans.. if suppose some of the carry generate means
what can i do. and if i multiply the sum of number with the some
twiddle factor(that i put in lookup table as std_logic_vector of 8
bit), the total bit will increase at that time manuall calculation of
real converted to bit values and computed result are vary..
for that what i can do .. tell me and give some suggestions...

expecting ur reply
cheers
Senthil.R
MTech vlsi design


senthil
  Reply With Quote
Old 02-26-2004, 03:41 AM   #2
senthil
 
Posts: n/a
Default normalization technique real to bit conversion
hi ,,
i in need how to convert the real value to bit of 8 bit vector.. ie.,
normalization techniques..
pls give some guidance.
regrds

(senthil) wrote in message news:<. com>...
> hello friends,
>
> i do my ifft implementation with respect to complex number input and
> got my output as complex number in simulation side.
>
> Modelsim S.E 5.5 -simulator.
>
> With respect to real type in vhld coding, that one is not synthesised.
> so, i'm going to convert the real to std_logic_vector. for that i
> fixed by quantization of corresponding value of real type to 8 bit.
> ok.
>
> for eg. if i have real value = 0.316 i can represent in bitvector as
> "00101000"
> and 0 .949= "01111001". if i do some calculations like
> a <= 0.316+0.949 <= "00" & "00101000" + "00" & "01111001" =
> "0010100001"
>
> 0.316+0.949 = 1.265 => "10100001"
>
> both come correct ans.. if suppose some of the carry generate means
> what can i do. and if i multiply the sum of number with the some
> twiddle factor(that i put in lookup table as std_logic_vector of 8
> bit), the total bit will increase at that time manuall calculation of
> real converted to bit values and computed result are vary..
> for that what i can do .. tell me and give some suggestions...
>
> expecting ur reply
> cheers
> Senthil.R
> MTech vlsi design



senthil
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: expected constructor, destructor or type conversion before '(' token suse Software 0 03-09-2009 03:25 AM
Dial Up Problem smackedass A+ Certification 3 02-02-2007 11:59 PM
Re: Virus Problem ** Help!** David BlandIII A+ Certification 1 03-02-2004 06:00 PM
Re: Serious Computer Problem hootnholler A+ Certification 1 11-24-2003 12:18 PM
Re: Serious Computer Problem Bret A+ Certification 0 11-19-2003 12:51 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

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