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.
Related Questions in FPGA
- uart in vhdl send a string
- A FPGA Project Proposal where I can use both PS and PL
- IO placement is infeasible error in Vivado
- Why RTOS is needed for FPGA based real-time embedded system?
- Padding zeros with std_logic_vector results in Implementation Error
- How to write into 12 addresses at the same cycle in vivado and still be recognized as BRAM
- PLL not showing output on ModelSim
- Using FPGA to sample and filter audio based off switch selection
- Why is there no output from the verilog test bench?
- Freeze after two subsequent software resets for Zynq 7000 FPGA (with SoC)
- Verilog module always going to default case when assigning value to input
- Where do I find the Xilinx xc7z007sclg400-1 master constaint file?
- Failed to use memory bits in fpga
- How to increase baudrate on Device Manager Windows?
- Gate-Level Sim: Hold time violation between testbench and first registers?
Related Questions in FIXED-POINT
- Adding halls to a production area by using GAMS?
- Is there a way in Python to translate a hexidecimal representation of a fixed point number to the decimal representation of a fixed point number?
- Why is 'q_format_voltaged' value not being used in the 'q_format_voltages' arithmetic line in this C code?
- Fixed Point Notation (in Register)
- Abinitio explicit fixed point
- How to make smooth horizontal / vertical movement in 6502 assembly (NES)?
- How to use FixedU128?
- Fast changing of Fixed-Point objects (Matlab)
- How is multiplication in Libfixmath performed?
- Change -0.67 floating point to fixed point
- How to convert a string to fixed point format?
- What is the fixed-point representation of -0.5?
- Python decimal sum returning wrong value
- fxpmath : substract two unsigned into a signed result
- short2, 10 bit integer, 5 bit fraction, one sign bit
Related Questions in INTEGER-DIVISION
- Restoring division algorithm in Risc V
- Canonical way to ensure float point division across py2 and py3?
- Optimized 53->32 bit modulo computation on 32-bit processors
- non-restoring division: how to avoid code bloat for divisor MSB set?
- How to return integer part using backslash when dividing two decimals in Visual Basic
- How to divide a nonnegative variable integer by a constant fixed-point rational ≥1 without overflow (at all, if possible)?
- Division produces unexpected results
- Maximize the length of a sequence of numbers having certain properties
- Catching / disabling SIGFPE exceptions from assembly
- Why is my variable returning a large negative number when dividing?
- How to convert a binary number into decimal and show the answer in 3 digits?
- Integer division in PowerShell
- Nextion: Calculate inverse tan (arctan) without trig functions or floating point
- Divide by variable power of 2 using assembly
- Convert HEX to decimal in assembly 8086
Related Questions in HARDWARE-DESIGN
- Xilinx iterate error: Loop has iterated 64 times. Use "set -loop_iteration_limit XX" to iterate more
- stm32wb, nucleo-wb55, sensor, hardware
- Data hazards in hardware platforms
- Multiplexer in vhdl with structural design
- Cache request in Forth CPU
- Why are inner components not being executed
- Can two chips take turns accessing two memory banks?
- Verilog: wait for module logic evaluation in an always block
- Hardware for "A div B" with A and B fixed point
- How to implement a schematic in vhdl code and converting the datatypes from std_logic to bit
- Unknown Wrong result when simulating Verilog design in modelsim
- Using Generate in Vhdl
- Hardware design a 3 binary numbers adder
- Can I use openCV libraries with Catapult C?
- How to manage uninitialized input signals
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?
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)
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.