Writing a plugin for `xsim`.
Posted: Thu Oct 20, 2011 11:07 am
Hello,
I have started looking into the example plugin code distributed with the XDE,
however it appears to have almost no documentation to it.
Does anyone here have experience writing plugins for xsim?
I have a few ideas, though for now I'll probably start by doing an audio testbench
similar to what I did for Verilog VPI (https://github.com/errordeveloper/sftb).
The way I'd like to do this is using I2S, hence I'll need to react to the clock pulses,
is this possible?
I can see there is also a TB example (ExableTestbench), what is the major difference??
Another great idea in the future would be to write an interface for co-simulating
with Qemu, probably first by implementing a plugin that would mimic XLink and
then finding the best way to interface to Qemu. There is one existing yet closed
project that uses Qemu & device trees to co-simulate Linux on Microblaze/FPGA
(http://www.petalogix.com/products/cosim).
Certainly a networking plugin would be also very interesting, but seems more
complex of a task. Well, at the moment I'd very much appreciate hearing of
anybody who worked with xsim plugin API. I haven't yet submitted a support
ticket, but may be someone from Xmos could reply whether a draft of some
kind exists that documents this API. The examples and `xsiplugin.h` are quite
okay to read, though I wish I didn't have to guess how things work!
Cheers,
--
Ilya
I have started looking into the example plugin code distributed with the XDE,
however it appears to have almost no documentation to it.
Does anyone here have experience writing plugins for xsim?
I have a few ideas, though for now I'll probably start by doing an audio testbench
similar to what I did for Verilog VPI (https://github.com/errordeveloper/sftb).
The way I'd like to do this is using I2S, hence I'll need to react to the clock pulses,
is this possible?
I can see there is also a TB example (ExableTestbench), what is the major difference??
Another great idea in the future would be to write an interface for co-simulating
with Qemu, probably first by implementing a plugin that would mimic XLink and
then finding the best way to interface to Qemu. There is one existing yet closed
project that uses Qemu & device trees to co-simulate Linux on Microblaze/FPGA
(http://www.petalogix.com/products/cosim).
Certainly a networking plugin would be also very interesting, but seems more
complex of a task. Well, at the moment I'd very much appreciate hearing of
anybody who worked with xsim plugin API. I haven't yet submitted a support
ticket, but may be someone from Xmos could reply whether a draft of some
kind exists that documents this API. The examples and `xsiplugin.h` are quite
okay to read, though I wish I didn't have to guess how things work!
Cheers,
--
Ilya