forked from verilator/verilator
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve hex too many digits error (verilator#5419).
- Loading branch information
Showing
6 changed files
with
38 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
%Error: t/t_const_overflow_bad.v:9:34: Too many digits for 94 bit number: 94'd123456789012345678901234567890 | ||
%Error: t/t_const_overflow_bad.v:9:34: Too many digits for 94 bit number: '94'd123456789012345678901234567890' | ||
9 | parameter [200:0] TOO_SMALL = 94'd123456789012345678901234567890; | ||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
%Error: t/t_const_overflow_bad.v:11:31: Too many digits for 8 bit number: 8'habc | ||
%Error: t/t_const_overflow_bad.v:11:31: Too many digits for 8 bit number: '8'habc' | ||
11 | parameter [200:0] SMALLH = 8'habc; | ||
| ^~~~~~ | ||
%Error: t/t_const_overflow_bad.v:12:31: Too many digits for 6 bit number: 6'o1234 | ||
%Error: t/t_const_overflow_bad.v:12:31: Too many digits for 6 bit number: '6'o1234' | ||
12 | parameter [200:0] SMALLO = 6'o1234; | ||
| ^~~~~~~ | ||
%Error: t/t_const_overflow_bad.v:13:31: Too many digits for 3 bit number: 3'b1111 | ||
%Error: t/t_const_overflow_bad.v:13:31: Too many digits for 3 bit number: '3'b1111' | ||
13 | parameter [200:0] SMALLB = 3'b1111; | ||
| ^~~~~~~ | ||
%Error: t/t_const_overflow_bad.v:19:35: Too many digits for 129 bit number: 129'hdeadbeefc001f00ddeadbeefc001f00ddeadbeefc001f00ddeadbeefc001f00d | ||
%Error: t/t_const_overflow_bad.v:19:35: Too many digits for 129 bit number: '129'hdeadbeefc001f00ddeadbeefc001f00ddeadbeefc001f00ddeadbeefc001f00d' | ||
19 | parameter [128:0] ALSO_SMALL = 129'hdeadbeefc001f00ddeadbeefc001f00ddeadbeefc001f00ddeadbeefc001f00d; | ||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
%Error: Exiting due to |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
%Error: t/t_lint_unsized_bad.v:8:22: Too many digits for 32 bit number: 'd123456789123456789123456789 | ||
... As that number was unsized ('d...) it is limited to 32 bits (IEEE 1800-2023 5.7.1) | ||
%Error: t/t_lint_unsized_bad.v:8:22: Too many digits for 32 bit number: ''d123456789123456789123456789' | ||
... As that number was unsized ('...) it is limited to 32 bits (IEEE 1800-2023 5.7.1) | ||
... Suggest adding a size to it. | ||
8 | bit [256:0] num = 'd123456789123456789123456789; | ||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
%Error: t/t_lint_unsized_bad.v:9:22: Too many digits for 32 bit number: ''h123456789123456789123456789' | ||
9 | bit [256:0] num = 'h123456789123456789123456789; | ||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
%Error: t/t_lint_unsized_bad.v:10:22: Illegal character in octal constant | ||
10 | bit [256:0] num = 'o123456789123456789123456789; | ||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
%Error: t/t_lint_unsized_bad.v:10:22: Too many digits for 32 bit number: ''o123456789123456789123456789' | ||
10 | bit [256:0] num = 'o123456789123456789123456789; | ||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
%Error: t/t_lint_unsized_bad.v:11:22: Too many digits for 32 bit number: ''b10101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010' | ||
11 | bit [256:0] num = 'b10101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010; | ||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
%Error: Exiting due to |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters