Wilson Snyder
619214b48f
Support $sampled.
2020-01-26 13:38:15 -05:00
Wilson Snyder
68fa82fb14
Support $typename, and use to cleanup error messages.
2020-01-26 13:21:25 -05:00
Stefan Wallentowitz
fad465abf1
Add lint_off -match waivers ( #2102 )
...
* Add more directives to configuration files
Allow to set the same directives in configuration files that can also
be set by comment attributes (such as /* verilator public */ etc).
* Add support for lint messsage waivers
Add configuration file switch '-match' for lint_off. It takes a string
with wildcards allowed and warnings will be matched against it (if
rule and file also match). If it matches, the warning is waived.
Fixes #1649 and #1514
Closes #2072
2020-01-12 10:03:17 +01:00
Wilson Snyder
f23fe8fd84
Update copyright year.
2020-01-06 18:05:53 -05:00
Stefan Wallentowitz
b7665a88db
Rename msg to rule in configuration files ( #2080 )
...
Rename the -msg switch to -rule in configuration files as it is more
clear.
resolves #2068
2019-12-30 19:15:43 +01:00
Wilson Snyder
bacbb4cafd
Parse join_any/join_none still as unsupported.
2019-12-23 15:19:22 -05:00
Wilson Snyder
2cbfe99ad5
Parse all class constructs, as still unsupported.
2019-12-23 15:03:04 -05:00
Wilson Snyder
f514049c04
Add cleaner error on version control conflicts in sources.
2019-12-16 21:54:20 -05:00
Wilson Snyder
460e0541f3
Add error when `resetall inside module
2019-12-14 22:04:58 -05:00
Wilson Snyder
2a1c57ada6
With -Wpedentic, warn about bad `pragma
2019-12-14 10:13:38 -05:00
Wilson Snyder
39950d16d0
Ignore `uselib to end-of-line, bug1634.
2019-12-12 20:57:48 -05:00
Wilson Snyder
df192f2b61
Support / with warning.
2019-11-23 09:16:06 -05:00
Wilson Snyder
f134ac4f2f
Black box some additional unsupported constructs.
2019-11-17 09:01:41 -05:00
Wilson Snyder
c36d9a68f5
Support $ungetc.
2019-11-16 12:55:10 -05:00
Wilson Snyder
8c5aa21a11
Support $rewind.
2019-11-16 12:21:35 -05:00
Wilson Snyder
47b5e36e60
Add -Wpedantic for compliance testing.
2019-11-16 11:59:21 -05:00
Wilson Snyder
b1c14e485a
Fix capital S signed numbers.
2019-11-16 09:39:41 -05:00
Wilson Snyder
5811ec07e6
Update URLs to https://verilator.org
2019-11-07 22:33:59 -05:00
Wilson Snyder
a1405dac8e
Fix misc bad-syntax crashes, bug1532.
2019-09-30 18:50:27 -04:00
Wilson Snyder
314cd92129
Support $fseek, $ftell, $frewind, bug1496.
2019-09-03 21:28:15 -04:00
Wilson Snyder
97561bf064
When showing an error, show source code.
2019-07-14 21:42:03 -04:00
Wilson Snyder
173efbc829
Offer suggestions on bad identifier errors.
2019-07-14 10:08:53 -04:00
Wilson Snyder
83cf1882de
Quote reserved word messages, and related internal cleanups.
2019-07-11 20:49:35 -04:00
Wilson Snyder
13a20c5ee9
Internals: Fix inserted tabs.
2019-07-11 07:05:33 -04:00
Wilson Snyder
58dfe9d071
Internals: Detab and fix spacing style issues. No functional change.
...
When diff, recommend using "git diff --ignore-all-space"
When merging, recommend using "git merge -Xignore-all-space"
2019-07-11 06:57:49 -04:00
Wilson Snyder
94ed817897
Fix debug over-verbosity.
2019-06-12 19:11:26 -04:00
Wilson Snyder
dd8d5ef687
Internals: Move code out of verilog.l. No functional change.
2019-06-11 21:03:03 -04:00
Wilson Snyder
cfb05cd70a
Whitespace cleanup. No functional change.
2019-06-11 20:20:04 -04:00
Wilson Snyder
f6f8073058
Support logical equivalence operator <->.
2019-06-01 19:40:06 -04:00
Wilson Snyder
902ba752a3
Move many unsupported errors from lex to parser so can --bbox-unsup ignore them.
2019-05-31 21:05:50 -04:00
Wilson Snyder
a58e7d94ec
Error continuation lines no longer have %Error prefix.
2019-05-30 20:30:59 -04:00
Wilson Snyder
b83b606267
Internals: Detab and fix spacing style issues. No functional change.
...
When diff, recommend using "git diff --ignore-all-space"
When merging, recommend using "git merge -Xignore-all-space"
2019-05-19 16:13:13 -04:00
Wilson Snyder
7777d10e9b
Tests: Check for and remove trailing newlines
2019-05-13 19:47:52 -04:00
Wilson Snyder
7bf3366041
Support .
2019-03-07 20:56:53 -05:00
Wilson Snyder
8a4aeddbb0
Copyright year update.
2019-01-03 19:17:22 -05:00
Wilson Snyder
d87b9d25ca
Internals: Cleanup and standardize include order. No functional change intended.
2018-10-14 13:59:40 -04:00
Wilson Snyder
e8b8b33ff6
Internals: Cleanup find with chars for clang-tidy. No functional change.
2018-10-13 22:28:59 -04:00
Wilson Snyder
b59c23d346
Move some unsupported syntax to parser for cleaner errors.
2018-10-11 21:57:07 -04:00
Wilson Snyder
97d89cce35
Move some unsupported syntax to parser for cleaner errors.
2018-10-08 22:18:09 -04:00
Wilson Snyder
c5fee7c456
Fix flex warning
2018-10-04 20:51:20 -04:00
Wilson Snyder
9f8dbc91f2
Support restrict, bug1350.
2018-09-23 15:20:12 -04:00
Wilson Snyder
0e37747d2c
Support $past.
2018-09-23 15:20:01 -04:00
Wilson Snyder
75794e2eaa
Fix number parsing with newline after radix, bug1340.
2018-09-12 19:19:48 -04:00
Wilson Snyder
adfb903469
Merge from master
2018-06-12 05:23:13 -04:00
James Hutchinson
f0ed4346b2
Fix to be in verilog 2005, bug1319.
...
Signed-off-by: Wilson Snyder <wsnyder@wsnyder.org>
2018-06-08 08:01:22 -04:00
Wilson Snyder
02f18fc21b
Merge from master
2018-03-15 23:31:59 -04:00
Wilson Snyder
2d580e6939
Support IEEE 1800-2017 as default language.
2018-03-12 22:26:34 -04:00
John Coiner
fc48008c1c
Support
2018-03-12 16:44:01 -04:00
Wilson Snyder
2c30aecc5b
Merge from master
2018-03-10 16:51:34 -05:00
Wilson Snyder
770045676f
Internals: Split some extremely long lines. No functional change.
2018-03-10 16:32:04 -05:00
Wilson Snyder
f0ba17a19b
Merge from master.
2018-02-27 07:24:31 -05:00
Patrick Stewart
fe5c4df079
Support trig functions (() etc), bug1281.
...
Signed-off-by: Wilson Snyder <wsnyder@wsnyder.org>
2018-02-26 04:25:07 -05:00
Wilson Snyder
597d28b505
Fix internals to make null-pointer-check clean. Also add more const's. No functional change intended, but likely something will break.
2018-02-01 21:32:58 -05:00
Wilson Snyder
097107bd0b
Support 'assume' similar to 'assert', bug1269.
2018-01-31 07:33:10 -05:00
Wilson Snyder
8e65d93d6d
Copyright year update. No functional change.
2018-01-02 18:05:06 -05:00
Wilson Snyder
d119d10569
Add BSSPACE and COLONPLUS lint warnings.
2017-11-15 20:19:12 -05:00
Wilson Snyder
a1a8f17617
Internals: Add const's. No functional change
2017-10-10 20:24:10 -04:00
Chris Randall
264b888ef2
Add /*verilator tag*/ for XML extraction applications.
...
Signed-off-by: Wilson Snyder <wsnyder@wsnyder.org>
2017-10-06 07:33:52 -04:00
Wilson Snyder
89f414b185
Less verbosity for IEEE warnings in earlier commit this rev.
2017-09-21 22:07:49 -04:00
Wilson Snyder
b3cf5c4f5f
Improve error to note common :: package errors
2017-09-18 22:54:54 -04:00
Wilson Snyder
f1960273a0
Internals: Fix over-aggressive debug
2017-09-15 18:25:52 -04:00
Wilson Snyder
9dc01cf540
Support arrayed parameter overrides, bug1153.
2017-05-02 19:16:54 -04:00
Wilson Snyder
e6d7e7e329
Version bump
2017-01-15 12:13:13 -05:00
Wilson Snyder
6f28d21207
With --bbox-unsup, suppress desassign and mixed edges, bug1120.
2016-12-21 17:43:19 -05:00
Wilson Snyder
b748ddfe06
Fix flex 2.6.2 bug, bug1103.
2016-11-06 08:14:05 -05:00
Wilson Snyder
1e4c3751e1
Support foreach, bug1078.
2016-09-19 22:00:13 -04:00
Stefan Wallentowitz
b2623b9841
Internals: Add success parameter to parseDouble. No functional change intended.
...
Signed-off-by: Wilson Snyder <wsnyder@wsnyder.org>
2016-03-23 07:48:32 -04:00
Wilson Snyder
9ae40d64f0
Support parameter type, bug376.
2016-03-14 21:51:31 -04:00
Wilson Snyder
d56179df17
Internals: Fix compares to null, part of bug1030. No functional change intended.
2016-02-02 21:02:00 -05:00
Wilson Snyder
b738d1960a
Copyright year update
2016-01-06 20:36:41 -05:00
Wilson Snyder
318ded4198
Internals: Cleanup cppcheck warnings.
2015-10-03 22:33:06 -04:00
Wilson Snyder
f1874b211f
Support , bug977.
2015-10-03 07:12:56 -04:00
Wilson Snyder
882913f0ca
Add tracing_on, etc to vlt files, bug932.
2015-07-22 20:14:58 -04:00
Wilson Snyder
491539ff32
Fix MSVC++ compiler error, bug927.
2015-06-04 19:37:03 -04:00
Wilson Snyder
486d69da5f
Add --clk and related optimizations, msg1533.
2015-03-12 19:20:46 -04:00
Wilson Snyder
4c91ade61d
Copyright year update
2015-01-07 18:25:53 -05:00
Wilson Snyder
5c3eee34a1
Fix underscores in real literals, bug863.
2014-12-19 18:14:32 -05:00
Wilson Snyder
87a47a5ca0
Remove PSL support
2014-11-22 10:14:14 -05:00
Wilson Snyder
58fd602bbd
Fix flex warning
2014-05-11 09:36:39 -04:00
Wilson Snyder
02331e5536
Fix begin_keywords 1800+VAMS, msg1211.
2014-05-08 07:15:44 -04:00
Wilson Snyder
85c5765c00
Fix parsing "#0 'b0", bug256.
2014-03-11 19:07:58 -04:00
Wilson Snyder
4422de0c6c
Copyright year update.
2014-01-06 19:28:57 -05:00
Wilson Snyder
23bb045a72
Support interfaces and modports, bug102.
2013-05-27 21:39:19 -04:00
Wilson Snyder
d581582339
Add ALWCOMBORDER warning.
2013-04-30 22:55:28 -04:00
Wilson Snyder
70fd64dcd6
IEEE 1800-2012 is now the default language. This adds 4 new keywords and updates the svdpi.h and vpi_user.h header files.
2013-02-26 23:01:19 -05:00
Wilson Snyder
4968a2abc5
Support inside expressions.
2013-02-02 12:55:48 -05:00
Wilson Snyder
929aeebf12
Support , and related functions, bug448.
2013-01-20 12:19:22 -05:00
Wilson Snyder
795e66eac9
Support bind, to module names only, bug602.
2013-01-14 23:19:44 -05:00
Wilson Snyder
a8bbf7231b
Copyright year update.
2013-01-01 09:42:59 -05:00
Wilson Snyder
2238fa46ed
Show fileline in bison debug.
2012-12-02 18:03:34 -05:00
Wilson Snyder
6339159b04
MAJOR: Support packed structures and unions, bug181.
2012-07-29 10:16:20 -04:00
Wilson Snyder
3ec687a0cf
Internals: Merge from struct branch, rework LinkDot symbol table. No functional change intended.
2012-06-20 06:13:28 -04:00
Wilson Snyder
365034d7dd
Internals: Merge from struct branch, rename SymTable calls. No functional change intended.
2012-06-20 06:09:07 -04:00
Wilson Snyder
0c1e184cb7
Fix newlines in radix values, bug507.
2012-05-07 08:58:29 -04:00
Wilson Snyder
9734931f67
IMPORTANT: Rewrite tristate handling, tri0, tri1, etc.
2012-04-21 21:45:28 -04:00
Wilson Snyder
ab9a2b1728
Internal: Prevent possible buffer overrun
2012-04-05 21:46:03 -04:00
Wilson Snyder
f13ffe2098
Internals: Merge from VHDL branch. Minor stuff, no functional change.
2012-02-11 20:40:58 -05:00
Wilson Snyder
c2c7c7bd9a
Copyright year update
2012-01-15 10:26:28 -05:00
Wilson Snyder
bedf946fb2
Support V-AMS wreal
2011-11-27 10:31:06 -05:00
Wilson Snyder
b9e67157c6
With "--language VAMS" support a touch of Verilog AMS.
2011-11-25 00:49:38 -05:00
Wilson Snyder
b30b2a183b
Support .
2011-11-20 02:01:48 -05:00
Wilson Snyder
e378cc5791
Add sc_bv attribute to force bit vectors, bug402.
2011-10-26 08:57:27 -04:00
Wilson Snyder
f19979d928
Fix "always @ (* )", bug403, bug404.
2011-10-25 18:08:24 -04:00
Wilson Snyder
eb6d42acf9
Support $ceil, $floor, etc.
2011-09-28 21:35:26 -04:00
Wilson Snyder
3fae8ade05
Fix PowerPC runtime error, bug288
2011-08-22 21:02:09 -04:00
Wilson Snyder
55906486d8
Support 'real' numbers and related functions.
2011-07-24 15:01:51 -04:00
Wilson Snyder
59c3c536c7
Internals: Real1: properly lex doubles
2011-07-23 08:25:41 -04:00
Wilson Snyder
696660639a
Support 'const' variables in limited cases; similar to enums.
2011-07-02 12:45:26 -04:00
Wilson Snyder
71c1f00ec2
Copyright year update
2011-01-01 18:21:19 -05:00
Wilson Snyder
e94fc1305b
Support unique0; track internally with new attributes
2010-12-26 08:09:25 -05:00
Wilson Snyder
8800efe953
Internals: Rename incLineno to match Verilog-Perl, no functional change.
2010-07-08 20:31:41 -04:00
Wilson Snyder
3841850168
Preproc: fix pass-through of `line enter-exit codes.
...
Internals: Merge Verilog-Perl preproc changes through d450722.
2010-07-06 20:29:12 -04:00
Wilson Snyder
f8eabbc100
From Verilog-Perl: Fix parsing single files > 2GB.
2010-04-06 20:20:44 -04:00
Wilson Snyder
936738b750
Add /*verilator public_flat_rw*/ for timing-specific public access.
2010-04-05 20:01:17 -04:00
Wilson Snyder
f1b6c0c559
Support "`default_nettype none|wire".
2010-02-23 09:27:16 -05:00
Wilson Snyder
e39eddf3fe
Fix parametrized defines with empty arguments.
2010-02-21 07:20:39 -05:00
Wilson Snyder
cdd06e7236
Support "break", "continue", "return".
2010-02-14 10:01:21 -05:00
Wilson Snyder
d17bcd8afe
Allow 'global' reserved identifier in 1800-2009 when possible
2010-01-22 19:08:20 -05:00
Wilson Snyder
58efab5cdf
Add SystemVerilog 1800-2009 keywords
2010-01-21 21:58:45 -05:00
Wilson Snyder
c695af31b8
Add experimental config files to filter warnings outside of the source.
2010-01-21 06:11:30 -05:00
Wilson Snyder
72b596efb3
DPI $display like sformat metacomment and $sformatf
2010-01-17 19:13:44 -05:00
Wilson Snyder
a2629c4929
Internals: Avoid some extra CRELINES
2010-01-09 15:44:06 -05:00
Wilson Snyder
a94f5ba200
--bbox-unsup now ignores cmos and tran gate primitives
2010-01-07 22:08:48 -05:00
Wilson Snyder
729dfdfed7
Copyright year update
2010-01-05 21:15:06 -05:00
Wilson Snyder
f3347be629
Support edge, 1800-2009
2009-12-28 19:49:40 -05:00
Wilson Snyder
dbce06500d
Support enums
2009-12-27 08:29:55 -05:00
Wilson Snyder
5a9309de78
DPI import: Allow system calls to call imports
2009-12-04 07:05:44 -05:00
Wilson Snyder
a40fae04ce
Support direct programming interface (DPI) "import".
2009-12-03 06:55:29 -05:00
Wilson Snyder
d2a27a84cf
Support chandle
2009-11-24 09:11:25 -05:00
Wilson Snyder
c7d8eb126f
Support and .
2009-11-23 21:24:55 -05:00
Wilson Snyder
d7a2362a76
Parse UDP Tables, and report single unsupported error
2009-11-20 19:53:40 -05:00
Wilson Snyder
e479c8a553
Support 'primitive', but not yet 'table'.
2009-11-20 08:41:28 -05:00
Wilson Snyder
62f707f501
Support $test$plusargs and $value$plusargs, but see the docs.
2009-11-19 17:04:21 -05:00
Wilson Snyder
19d62b7a68
Support 'time'.
2009-11-19 10:45:59 -05:00
Wilson Snyder
3b39c3391d
Support "import".
2009-11-09 19:07:59 -05:00
Wilson Snyder
68567e763c
Support "package" and $unit.
...
Add VARHIDDEN warning when signal name hides module name.
2009-11-07 21:05:02 -05:00
Wilson Snyder
377f194837
Support typedef
2009-11-06 23:16:06 -05:00
Wilson Snyder
b1ce6bd5cc
Support "var"
2009-11-05 19:57:31 -05:00
Wilson Snyder
0d65f08b1d
Support "program".
2009-11-05 19:09:45 -05:00
Wilson Snyder
f59467b897
Support void functions.
...
Fix "int" etc added in wrong keyword section in last commit.
2009-11-02 22:50:31 -05:00
Wilson Snyder
6bc81d3d26
Support byte, shortint, int, longint in variables, parameters and functions.
...
Internals: function/var sizing and signing now comes via dtypep()
Internals: cleanup code that widths parameters (again)
2009-11-02 22:14:11 -05:00
Wilson Snyder
9a133ced2d
Support 'bit' keyword
2009-10-31 15:12:28 -04:00
Wilson Snyder
f7efae93d5
Internals: Clean up the main flex/bison files to have some sanity.
...
(Hopefully) no functional change.
. V3Parse.h External consumer interface to V3ParseImp
. V3ParseImp Internals to parser, common to across flex & bison
... V3ParseGrammar Wrapper that includes V3ParseBison
..... V3ParseBison Bison output
... V3ParseLex Wrapper that includes lex output
..... V3Lexer.yy.cpp Flex output
2009-10-31 10:08:38 -04:00
Wilson Snyder
7b4d2118ea
Internals: Realign flex with Verilog-Perl version
2009-10-30 23:17:56 -04:00
Wilson Snyder
e14695c96e
Fix erroring on strings with backslashed newlines, bug168.
2009-10-22 21:46:49 -04:00
Wilson Snyder
996afe7d95
Cleanup handling DOS CRs to match preprocessor
...
Fix missing line number increment for `pragma
2009-10-22 16:51:34 -04:00
Wilson Snyder
faa5ef193b
Add --bbox-sys option to blackbox $system calls.
2009-09-16 09:28:09 -04:00
Wilson Snyder
4dde1ede0e
Support SystemVerilog "logic", bug101.
2009-07-16 09:19:15 -04:00
Wilson Snyder
4569278c53
Reconsile parser with Verilog-Perl version, to enable more SV features
2009-05-07 18:28:05 -04:00
Wilson Snyder
851b022c7a
Change lexer to more closely match Verilog-Perl. Should be no functional change
2009-05-05 13:39:25 -04:00