New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dpi open array support (LRM 35.5.6.1 Open arrays) #1245
Comments
Original Redmine Comment My verilator is: Verilator 3.906 2017-06-22 rev verilator_3_904-11-g1da5a33 |
Original Redmine Comment Open arrays are not currently supported, it isn't hugely difficult but the biggest problem would be that at present Verilator makes a wrapper that is size dependent, so this code would have to be specialized for each differently sized attachment. Could you please contribute a test_regress example (perhaps modifying an existing example) that works on another simulator, and also perhaps attempt a patch? |
Original Redmine Comment I am integrating verilator with my DPI library (https://github.com/xver/Shunt). |
Original Redmine Comment Nice. There was recently a patch to hook Verilator up to MyHDL, wish MyHDL used Shunt. |
Original Redmine Comment Hi Wilson. I am just updated Shunt depository. To make "shunt_dpi_send_bitN" error, you need to comment out send/recv defines: BTW: Some comments about new errors are embedded into the same file too... Thanks Victor |
Original Redmine Comment Making progress, but not there yet. Note this is a superset of #�. |
Original Redmine Comment Open arrays supported in git towards 3.917. Based on a survey of other simulators, Verilator matches what they do and only supports unpacked arrays up to 3D (bit [31:0] foo[][][]). It does not support packed openarrays ("bit [] foo"). Your Shunt example passes in some cases, and fails on others. If this is due to a bug in this support please file another bug with a testcase - you can edit test_regress/t/t_open.v. |
Original Redmine Comment In 3.918. |
Author Name: victor besyakov
Original Redmine Issue: 1245 from https://www.veripool.org
Original Assignee: Wilson Snyder (@wsnyder)
trying to compile following:
import "DPI-C" function int shunt_dpi_send_bitN(input int sockid,input int size,input bit[] bitN);
and getting " syntax error, unexpected ']', expecting TYPE-IDENTIFIER"
Do you have any workaround, fixes?
Thanks Victor
The text was updated successfully, but these errors were encountered: