Search Engine www.edaboard.com

# Fixed Point Division

22 Threads found on edaboard.com: Fixed Point Division

## Why no Multiply and Divide for Q15 Fixed Point?

Some Microchip fixed point libraries do provide multiply and division. The question would be much clearer if you mention the processor family and exact library version respectively give a Micrcochip link to it.

## -.5 representation in binary

hi .. in division that includes fraction , i am using fixed point the division includes negative numbers too..but i have a problem . For negative numbers i am using 2's complement methode and i dont know how to represent (-.5) using 2's complement. is it possible to represent numbres like -.25 (...)

## division in FPGA using verilog

Hi, I am trying to do a code for do division using verilog that is work with fpga. The thing is division operator is not syntyhesizable.I am using fixed point arithmetic to represent a number (includes fraction),think the only methode to do it is loop baised substraction methode or quotient remainder methodeIis there (...)

## vhdl output from division operation

There's no need to change anything to fixed point package. It's just a kind of wrapper around integer arithmetic making your life comfortable. But you can do anything manually as well. As a first step, you need to figure out the right scaling, preferably using pencil and paper.

## vhdl code for division of two fixed point numbers

dear all, I need to do the division of two fixed point numbers.Can anybody help me to do coding for this. eg: 1.75 /1.5 1.75 is 0000000111000000(16 bit representation) 1.5 is 0000000110000000(16 bit representation). 1.75 /1.5=1.166667. =0000000100101011.

Google around for "verilog fixed point" and you'll find some inspiration...

## Fixed-point division in VHDL

Hi everybody, i'm quite new to vhdl and hardware implementation and i have a problem. I have to implement a weighted average (weights are not constant) with integer fixed-point numbers. The problem is that the sum of the weights (the divisor in the average) is not always a power of 2, so how i can perform that division WITHOUT use any ipcor

## Fixed-point division in C

Hi all, Does anyone know of a division function in C for fixed-point numbers? I am using ac_fixed header but apparently that doesn't work since I'm getting zeros when I do 1/a where "a" is a fixed-type with values between 30-60. Thank you, Elnaz

## Arithmetic functions for fixed point [VERILOG]

Hello, I need to 1. convert integer to fixed point 2. Then perform functions such as division and exponential equation Do you know any library or function for this? I know about mega functions but that is for floating point and it will require alot of resources that will be needed for other computations in my (...)

## fixed point division in verilog

i wanted to implement fixed point format division in verilog. can anyone help me?

## build fixed point vector from 6 integers

hi all i need yours help for some little implementation algorithm in FPGA i am using uart that gives me 7 bytes of ascii codes , 6 bytes on integers and one byte of point in that way XXX.XXX i need to create a floating point vector - i mean to sub x"30" from each integer byte and collect the integers to floating point vector/ (...)

## How to synthesize sfixed division.

Hi everyone, I am using fixed_pkg.vhd for our project. I want to divide two signals of type sfixed. When I use normal division ('/') operand I am able to simulate. But when I try to synthesize, it shows error division operand cannot be synthesize. Can anyone please let me know how to proceed. Is there any package available (...)

## lookup table using vhdl:

Arithmetic functions (e.g. sqrt, division) are operating on numbers, not bits. These numbers have a digital representation. The first point, when thinking about lookup tables, is to specify numeric ranges and resolutions, then about a suitable numeric format, mostly fixed point. There's a large amount of contributions (...)

## what is the most efficient algorithm (area wise) for 16 bit/16 bit division in VHDL?

Hi, maybe this links helps ) High speed fixed point division in FPGAs ECE 645 Spring 2009 regards

## floating point computation

You have to do it by hand, using shifting operations for multiplication and division. I had a similar situation for color conversion functions. I replaced floating point operations to fixed point operations. Target multiplication and division operations first. -- Amr

## 24 bit by 24 bit division in vhdl

So the value will always be between 0 and 1 and I require upto 3 decimal places. Binary arithmetic doesn't know decimal places. You have to choose a suitable representation for the result first. My suggestion would be a binary fixed point format with a factor of 2**10. It can be easily achieved by extending the numerator to 34 bit

## verilog code to find mean of 20 numbers

Today's HDL synthesis tools don't support Verilog or VHDL floating point type, but you can use fixed-point techniques instead. For example, 0.02 is approximately equal to 1311/65536, so you could multiply by 1311, add 32768 (for rounding), and then right-shift by 16. For higher accuracy, use larger terms in the ratio.

## Fixed Point division in VHDL

Hello dear, I need algoritm/ guideline on fiexed point division in vhdl. Secodnly, how to check that in how many cycles FPGA performs an operation(i.e. +, -, / etc.).

## signed n in qformat Division

hi everyone can anybody help me in writing a code in fpga for divsion division which is for signed number s n also for fixed floating point plz thanks

## A MICROCONTROLLER WITH FPU!

Hola namqn, I recall a FPU, probably that one, which had a fixed delay for reading its data of about 200 usec? Is it this one? Good to keep in mind, before buying.