Microblaze and PowerPC

Jun 02, 2011 3 Replies

Hi, I would like to perform mathematical operations as Division and Square root. From what i have read, i either need to use Microblaze or PowerPC. can anyone please tell me the difference in performance between them, and is it a hardware or software calculation. Does each one of these options has a dedicated FPU?


--------------------------------------- Posted through

formatting link


Not at all true. Either of those algorithms can be implemented, either in fixed or floating point, as pure hardware.

Rob Gaddi, Highland Technology Email address is currently out of order

And either pipelined or combinatorial.

-- glen

Where did you read that? You can perform those mathematical operations using the FPGA fabric perfectly well.

To directly answer the question, Microblaze has an optional FPU (made of LUTs and flipflops). IIRC PowerPC could have an FPU added (also made of LUTs and FFs) so I'd expect performance on those operations to be similar(ish).

Microblaze with an FPU in a Spartan3ADSP will clock happily at tens of MHz. Maths performance is limited - the square-root takes ~30 cycles to complete, so you may get 2-3 Msqrts/sec.

Conversely I've written a pretty wide fixed-point square-root which runs at about the same clock rate, but produces an answer every clock cycle (heavily pipelined).

Cheers, Martin

martin.j.thompson@trw.com TRW Conekt - Consultancy in Engineering, Knowledge and Technology http://www.conekt.co.uk/capabilities/39-electronic-hardware

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required