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

Reply

VHDL - 32 bit floating point multiplier

 
Thread Tools Search this Thread
Old 01-27-2007, 02:29 PM   #1
Default 32 bit floating point multiplier


hello,

iam a student of bachelor of engineering,
iam working on the testing of single precision multiplier
using simuTAG (using JTAG interface).can anybody help
me out in finding the VHDL CODE for 32 bit floating point
multiplier.

--ANIL



anil
  Reply With Quote
Old 01-28-2007, 04:14 PM   #2
Mike Treseler
 
Posts: n/a
Default Re: 32 bit floating point multiplier
anil wrote:
> hello,
>
> iam a student of bachelor of engineering,
> iam working on the testing of single precision multiplier
> using simuTAG (using JTAG interface).can anybody help
> me out in finding the VHDL CODE for 32 bit floating point
> multiplier.


Consider using an unsigned multiply.
Writing a floating point multiplier
would be a lot of work.

-- Mike Treseler

__________________________________________________ ________
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
-------------------------------------------------------------------------------
entity mult32 is
-- Sun Jan 28 08:11:41 2007 M.Treseler
generic (vec_len : natural := 32);
port (
reset : in std_ulogic;
clock : in std_ulogic;
a : in unsigned(vec_len-1 downto 0);
b : in unsigned(vec_len-1 downto 0);
c : out unsigned(2*vec_len-1 downto 0)
);
end mult32;
-------------------------------------------------------------------------------
architecture synth of mult32 is
begin
m32x32 : process (reset, clock) is
variable c_v : unsigned(2*vec_len-1 downto 0);
begin
if reset = '1' then
init_regs : c_v := (others => '0');
elsif rising_edge(clock) then
update_regs : c_v := a*b;
end if;
update_ports : c <= c_v;
end process m32x32;
end architecture synth;


Mike Treseler
  Reply With Quote
Old 01-28-2007, 05:07 PM   #3
HT-Lab
 
Posts: n/a
Default Re: 32 bit floating point multiplier

"Mike Treseler" <> wrote in message
news:...
> anil wrote:
>> hello,
>>
>> iam a student of bachelor of engineering,
>> iam working on the testing of single precision multiplier
>> using simuTAG (using JTAG interface).can anybody help
>> me out in finding the VHDL CODE for 32 bit floating point
>> multiplier.

>
> Consider using an unsigned multiply.
> Writing a floating point multiplier
> would be a lot of work.


No, this is not a complicated assignment since a FP multiplier is nothing
more than a standard multiplier with some exponent and rounding logic. A bit
of googling will answer all his questions

Hans
www.ht-lab.com


>
> -- Mike Treseler
>
> __________________________________________________ ________
> library ieee;
> use ieee.std_logic_1164.all;
> use ieee.numeric_std.all;
> -------------------------------------------------------------------------------
> entity mult32 is
> -- Sun Jan 28 08:11:41 2007 M.Treseler
> generic (vec_len : natural := 32);
> port (
> reset : in std_ulogic;
> clock : in std_ulogic;
> a : in unsigned(vec_len-1 downto 0);
> b : in unsigned(vec_len-1 downto 0);
> c : out unsigned(2*vec_len-1 downto 0)
> );
> end mult32;
> -------------------------------------------------------------------------------
> architecture synth of mult32 is
> begin
> m32x32 : process (reset, clock) is
> variable c_v : unsigned(2*vec_len-1 downto 0);
> begin
> if reset = '1' then
> init_regs : c_v := (others => '0');
> elsif rising_edge(clock) then
> update_regs : c_v := a*b;
> end if;
> update_ports : c <= c_v;
> end process m32x32;
> end architecture synth;





HT-Lab
  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
Floating point input leo.udaya Hardware 0 09-15-2008 06:01 AM
Pipeline Floating point ALU velocityreviews Software 0 04-09-2007 10:10 PM
Floating point in VHDL Nirmala Software 0 11-11-2006 06:48 AM
DVD Verdict reviews: A STORY OF FLOATING WEEDS / FLOATING WEEDS: CRITERION COLLECTION and more! DVD Verdict DVD Video 0 04-20-2004 10:04 AM
HD-DVD and DVD's future Phil Riker DVD Video 68 09-28-2003 09:32 PM




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