Forum Discussion
Altera_Forum
Honored Contributor
13 years agoHi FvM,
Thanks for the reply. Originally I planned to separate division operation by feeding the block with numerator and denominator signals. However, I would not be able to (at least) simulate using ModelSim and check the logics. Therefore, I attempted to include the lpm divide function inside the block. With our current setup, division is necessary. It is required because the results (RGB ) have to be passed to another block, RGBtoHSV. Luckily, this operation needs to be done only once per frame (for RGB ) which allows some clock cycles to be spent. As per now I am testing with a basic "/" division operator, which as you pointed you is supported by the compiler (and replaced with lpm divider). From the compiler message, it seems that the numerator and denominator are assigned with 10 and 8 bits respectively. Also, I'll try your suggestion to tackle the syntax and define the lpm divider parameters as necessary. Vincent.