Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

division in verilog - ok in sumilation, error if synthesized

Status
Not open for further replies.

nidahas

Junior Member level 2
Joined
Oct 4, 2007
Messages
20
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,432
verilog division

hi!!

i a writing a code in verilog which involves the use of division operator.the code works fine if i check it for syntax or for simulation purposes but gives an error if i synthesize it.it says tha division operatation cannot be done.

i f somebdy can guide me how to go about division.

any help is appreciated.

thanks
 

division in verilog

hardware implementation of division if not done by some IPCore (or small uC) can only be done with dividend which is multiple of 2, so unless yout perform something like
Code:
signalOut = signalIn/4;
it probably won't work
 

    nidahas

    Points: 2
    Helpful Answer Positive Rating
Re: division in verilog

Unlike other function blocks, e. g. multiplier, divider are generally not inferred from HDL with usual compiler tools. Parallel dividers, as usually provided as parameterisable modules by FPGA vendors, are performing a division immediately or within one clock cycle, but are consuming a lot of logic cells. Alternatively, serial dividers can do it with less effort, requiring one clock cycle per output bit.
 

    nidahas

    Points: 2
    Helpful Answer Positive Rating
Re: division in verilog

my dividend is basically a variable......i.e it is varying between 50 to 255
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top