| Author |
Message |
Tan
Joined: 23 Jul 2006 Posts: 123
|
28 Jun 2008 7:08 is division operator synthesizable in this conditoin....? |
|
|
|
Hi,
I need to divide a number by a number which is not power of 2.
I tried it,but could not synthesize the code as it is not power of 2.
for ex:
I took a constant value 5.
and a variable 'x'.
The y = x/5;
hope my problem is clear.
Thanks
Last edited by Tan on 28 Jun 2008 9:58; edited 1 time in total |
|
| Back to top |
|
 |
FvM
Joined: 22 Jan 2008 Posts: 2323 Helped: 385 Location: Bochum, Germany
|
28 Jun 2008 8:21 Re: Conversion of Real to integer |
|
|
|
| I don't see a relation of the question title to the question. You didn't mention the involved data types at all.
|
|
| Back to top |
|
 |
pini_1
Joined: 18 Jun 2007 Posts: 88 Helped: 6
|
28 Jun 2008 11:06 Re: is division operator synthesizable in this conditoin.... |
|
|
|
The division operator may cause an error when synthesizing depends on the synthesizer. Unlike + or – operator, multiply and divide are complex modules (in terms of gate count and power etc ...). So you want to do it yourself: decide on which method it will be built precision etc ... Usually you select from the ASIC vendor library or from your synthesizer library.
An example for what I did for a divide by 7 at :
http://bknpk.no-ip.biz/divide_by_constnat/divide_by_constant.html
Lots of other vhdl/verilog and linux scripts at
http://bknpk.no-ip.biz
|
|
| Back to top |
|
 |
atena
Joined: 22 Feb 2007 Posts: 94 Helped: 5
|
28 Jun 2008 15:45 is division operator synthesizable in this conditoin....? |
|
|
|
No, remember one thing, division is not synthesizable with respect to ASIC design ...
To make it be synthesizable, you have to define the algorithm and clear syntax in your package functions.
Say if you want to perform the divide by 5 : you have to call the pre_defined function say : Divide_By_Five({set of operators}) instead of directly using the division operator "/" ...
For more detailed informations why division operator is very hard to synthesize ( or in general you can say the operation involving Real(Floating Point) elements is very hard to be synthesized ) ? You cn do self practice by designing the multiply by 3, and divide by 3 circuits and compare the circuits complexity, you will archieve the most satisfied answer yourself ...
|
|
| Back to top |
|
 |
wkong_zhu
Joined: 13 Nov 2004 Posts: 164 Helped: 2
|
30 Jun 2008 15:07 is division operator synthesizable in this conditoin....? |
|
|
|
division can be synthesized by Design Compiler as long as you have Designware license.
Designware license has divider implementation, including parallel divider and pipelined divider. Just use it if your divider is a general one which is to say, you divider has no specific requirements or constraints. If your divider is a special one, design it by yourself.
|
|
| Back to top |
|
 |