1152995039
1152995039
> Can you show me the code where you call the DPI function? Especially the array definition. Ok, in python side: ``` class Img2colVerificationTools: @sv() def __init__(self): self.fea = None...
> `int fea_queue[$];` defines a queue. SystemVerilog LRM does not specify how it can be translated to a DPI interface type. It should work once you convert it to an...
> That's a good point. I will double check the spec. In the meantime, can you try to modify the generated C++ code and see if it works? > Only...
Ok, i modify the code in pysv package installed and it works. The code modified is in file snippets/buffer_impl.cc: ``` auto dim = svDimensions(array_handle); for (auto i = 1; i...
Looking forward to improvements in future
> Should be fixed in the latest commit/release. Please reopen this issue if it doesn't work for you (I only tested it with Verilator). Example usage for a 3D array:...
> What simulator are you using? I tested the open array DPI interface with all big three simulators (VCS, Xcelium, and Questa), and Verilator. They all work with static-sized array....