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 represent a floating point number using reg variable

Status
Not open for further replies.

muni123

Member level 3
Joined
Apr 28, 2007
Messages
64
Helped
4
Reputation
8
Reaction score
2
Trophy points
1,288
Location
India
Activity points
1,625
Hi,
How can we design a divider so that the we can preseve the value after decimal point in verilog HDL
Ex: If we need to divide the 3'b100 by 2 we will do it by right shifting 3'b100 by 1 time.
if we need to divide 3'b100 by 8 we will do it by right shifting 3'b100 by 3 times. But we cant preserve the value after the decimal pont ie., 0.1 in Verilog if we took a reg variable.

How can we implement it in verilog.

Thanks in adavance!!
 

Re: How to represent a floating point number using reg varia

If you want to preserve the decimal value you have to use floating point divider. This core is available in opencores.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top