I need a way to compute how many times a fixed point number B is contained into a fixed point number A. Something like integer division but on non-integer operands. I need to design an hardware block for this operation. My first guess is to use division as shift and subtract and stop when I reach the fractional part but maybe you know better ways to find it.
Hardware for "A div B" with A and B fixed point
244 Views Asked by KBowser At
1
There are 1 best solutions below
Related Questions in FPGA
- Is an inferred latch in Quartus II necessarily transparent
- VHDL, concurrent signal assignment wrong on FPGA but right in Modelsim
- Read file in FPGA
- xilinx sdka error when using lwip library
- How to demonstrate a 32-bit MIPS with FPUs in a FPGA?
- How to get rid of scale factor from CORDIC
- Verilog Inter-FPGA SPI Communication
- Using C programming to call VHDL implementation
- Why we use CORDIC gain?
- Altera UART IP Core
- What is the cause of Vivados 'synth 8-1027' error?
- How to change timescale of VCD file dumped?
- Sync two FPGAs to generate same Sine Wave
- Connect stack of Parallela boards and a rPI via FPGA and 1/0 pins
- Error synthesizing hierarchical names in vivado
Related Questions in FIXED-POINT
- Splines in integer arithmetic?
- Calculating RMS using fixed point math (C)
- fixed point subtraction for two's complement data
- Matlab image stabilization by fixed point in the video
- fixed point multiplication for normal multiplication
- How to perform division of two Q15 values in Verilog , with out using '/' (division) Operator?
- Emulating fixed precision in python
- Complex division using Fixed Point
- Using fixed-point toolboxt to simulate DSP's behaviour
- Matlab Double cast from Uint64
- CMSIS real-FFT on 8192 samples in Q15
- Using Eigen Library for fixed-point matrix multiplication
- How can we calculate 1/3 by using fixed-point arithmetic?
- Fixed Point Library OpenCL FPGA
- Fixed point processing: what is the difference between uint16_t and uint_fast16_t?
Related Questions in INTEGER-DIVISION
- 32 bit signed integer division gives 0x7fffffff as quotient on PowerPC
- Why does Python 3.x have unusual floored (integer) division behaviour?
- testing for an integer square root in R
- Unexpected result when calculating a percentage - even when factoring in integer division rules
- Mechanics of 'x % y != 0' in C++
- division an integer into k parts
- Rounding numbers to the nearest 10 in Postgres
- Why does GCC use multiplication by a strange number in implementing integer division?
- what is wrong about this script?
- Java integer division result as double?
- Haskell Novice Trouble with Splitting a List in Half
- How to divide minute by 3 in PHP ?
- Displaying numbers with DOS
- Fast floor of a signed integer division in C / C++
- Help with JavaME Function
Related Questions in HARDWARE-DESIGN
- Unknown Wrong result when simulating Verilog design in modelsim
- Using Generate in Vhdl
- How to implement a schematic in vhdl code and converting the datatypes from std_logic to bit
- Why are inner components not being executed
- Can I use openCV libraries with Catapult C?
- Verilog: wait for module logic evaluation in an always block
- Can two chips take turns accessing two memory banks?
- stm32wb, nucleo-wb55, sensor, hardware
- Multiplexer in vhdl with structural design
- Cache request in Forth CPU
- Hardware for "A div B" with A and B fixed point
- Xilinx iterate error: Loop has iterated 64 times. Use "set -loop_iteration_limit XX" to iterate more
- Hardware design a 3 binary numbers adder
- How to manage uninitialized input signals
- Data hazards in hardware platforms
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
If I understand you correctly you want the integer part of the fractional division, i.e.
Now, fractional division is not any different than integer division, besides adjusting the decimal point, if you represent
A = a * 2^-nandB = b * 2^-myou getSo you can use the division algorithm for integers (which is essentially shift and subtract) unchanged and ignore (round down) the least significant
n+mbits, or more efficiently just stop iterating once you've reached the decimal point.