Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to convert floating point to integer format using verilog

Status
Not open for further replies.

arishsu

Member level 3
Joined
Sep 10, 2013
Messages
66
Helped
6
Reputation
12
Reaction score
6
Trophy points
8
Location
India
Activity points
422
I am trying to implement a floating point multiplier on spartan3E using verilog. And I want to display the result in LCD(spartan3E 16x2 LCD).
How can we convert floating point to integer format in verilog?
How can we display the floating point number in LCD?
And also I wand to give input to the multiplier through a keyboard. How can we do that?
 

I am trying to implement a floating point multiplier on spartan3E using verilog. And I want to display the result in LCD(spartan3E 16x2 LCD).
How can we convert floating point to integer format in verilog?
How can we display the floating point number in LCD?
And also I wand to give input to the multiplier through a keyboard. How can we do that?
Do you really mean floating point? E.g. IEEE-754
 

Okay...have you looked what estimated resource usage of a IEEE-754 core will require? Based on the resource requirements of the opencores version of the IEEE-754 multiplier design 119 CLBs, I'd say you might have trouble fitting the core into a Spartan 3es100 (240 CLBs) depending on what else you need in the design.

Also I don't understand why you need to convert the floating point to integer...as the maximum and minimum values (dynamic range) are between something around 2^128 and 2^-128 are you planning on showing ~80 digit fixed point decimal (?integer?) numbers in your display (assuming you want to show numbers across the entire dynamic range of IEEE-754)?

You have to be make it clear what you are trying to do. Currently your requirements specification is rather vague.

Regards
 

Actually I want to display the result in LCD as decimal. It is ok even if I can only display the result separately as exponent, sign and mantissa. And mantissa also can be displayed separately as integer part and fractional part, but in decimal.
for example, suppose my result is 1 10000110 01100000000000000000000, and I want to display as below.

sign: '-'
exponent: 7
integer part:1
fractional part: 0.375

Exponent, sign and integer part are ok but the problem is with fractional part.

It will be better if I can display the result completely.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top