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

Strings are limited in width to 64 bits #746

Closed
veripoolbot opened this issue Apr 21, 2014 · 3 comments
Closed

Strings are limited in width to 64 bits #746

veripoolbot opened this issue Apr 21, 2014 · 3 comments
Assignees
Labels
resolution: fixed Closed; fixed type: feature-IEEE Request to add new feature, described in IEEE 1800

Comments

@veripoolbot
Copy link
Contributor


Author Name: Glen Gibb
Original Redmine Issue: 746 from https://www.veripool.org
Original Date: 2014-04-21
Original Assignee: Wilson Snyder (@wsnyder)


Verilator generates an error whenever I try to assign a string longer than 64 bits to a string variable. For example, trying to compile the attached file produces the following errors on the longStr string assignment line:

%Warning-WIDTH: t/t_string_print.v:8: Operator ASSIGN expects 64 bits on the Assign RHS, but Assign RHS's CONST '72'h313233343536373839' generates 72 bits.
%Warning-WIDTH: Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.

@veripoolbot
Copy link
Contributor Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2014-04-21T23:28:45Z


Verilator only supports strings in a few limited cases, and not currently compares. I'm in the middle of a ripup of V3Width, after this is released this should be easier to fix.

@veripoolbot
Copy link
Contributor Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2014-11-28T20:02:07Z


Fixed in git towards 3.867.

@veripoolbot
Copy link
Contributor Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2014-12-20T21:52:26Z


In 3.868.

@veripoolbot veripoolbot added resolution: fixed Closed; fixed type: feature-IEEE Request to add new feature, described in IEEE 1800 labels Dec 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolution: fixed Closed; fixed type: feature-IEEE Request to add new feature, described in IEEE 1800
Projects
None yet
Development

No branches or pull requests

2 participants