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

Comments

@veripoolbot
Copy link

@veripoolbot veripoolbot commented Sep 12, 2018


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

This comment has been minimized.

Copy link
Author

@veripoolbot veripoolbot commented Sep 12, 2018


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

This comment has been minimized.

Copy link
Author

@veripoolbot veripoolbot commented Sep 16, 2018


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
Projects
None yet
2 participants
You can’t perform that action at this time.