Cosimulate SystemVerilog and python

I have seen Python + Verilog through PLI on the net, same might work for you here with some tweaks.

http://www.nelsim.com/scriptsim/intro.html

Didn’t try it, let me know if this works for you.

Regards
Ajeetha, CVC
www.noveldv.com