mag
Guest
Wed Aug 10, 2011 3:56 pm
Which is faster on the various SystemVerilog simulators? DPI or PLI?
Jonathan Bromley
Guest
Sat Aug 13, 2011 1:56 pm
On Wed, 10 Aug 2011 08:56:21 -0700, mag <mag_at_internet.com> wrote:
Quote:
Which is faster on the various SystemVerilog
simulators? DPI or PLI?
You might reasonably expect DPI to be faster because
its call/return mechanism is so much simpler. However,
PLI (or, properly speaking these days, VPI) has been
around for a long time and it's likely that the
vendors have some pretty neat optimizations for it.
And depending on the simulator and the underlying
machine architecture, a DPI implementation may
have quite a lot of data representaion work to do
behind the curtain as you call from SV to C and
back. So I strongly suggest you simply try it.
--
Jonathan Bromley