Skip to content
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

String conditional operation gives compile error #1345

Closed
veripoolbot opened this issue Sep 12, 2018 · 2 comments
Closed

String conditional operation gives compile error #1345

veripoolbot opened this issue Sep 12, 2018 · 2 comments
Assignees
Labels
resolution: fixed Closed; fixed

Comments

@veripoolbot
Copy link
Contributor


Author Name: Iztok Jeras (@jeras)
Original Redmine Issue: 1345 from https://www.veripool.org

Original Assignee: Wilson Snyder (@wsnyder)


This is an error compiling generated C++ code. I assume it is related to SV string type functionality, but it could be something else.

I tried to make the test case smaller (it is now about 20 lines), but if I remove additional lines of code the code compiles and runs properly. Verilator Git HEAD from a couple of days ago was used.

I attached a tarball containing the example and generated code.
To reproduce the issue do:

tar -xvf bugreport.tgz
cd bugreport/sim
export VERILATOR_ROOT=???
make

Regards, Iztok Jeras

@veripoolbot
Copy link
Contributor Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2018-09-12T23:21:07Z


The problem is related to conditional ? : operators not propagating the string type.

Fixed in git towards 4.000.

@veripoolbot
Copy link
Contributor Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2018-09-16T21:28:48Z


In 4.002.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolution: fixed Closed; fixed
Projects
None yet
Development

No branches or pull requests

2 participants