Wilson Snyder
af84c975f1
Misc style cleanup.
2020-02-23 19:57:28 -05:00
Wilson Snyder
784e39131b
Merge from master
2020-02-23 19:38:27 -05:00
Tobias Wölfel
18f8cd0529
Allow assert disable ( #2168 )
...
* Add +verilator+noassert flag
This allows to disable the assert check per simulation argument.
* Add AssertOn check for assert
Insert the check AssertOn to allow disabling of asserts.
Asserts can be disabled by not using the `--assert` flag or by calling
`AssertOn(false)`, or passing the "+verilator+noassert" runtime flag.
Add tests for this behavior.
Bad tests check that the assert still causes a stop.
Non bad tests check that asserts are properly disabled and cause no stop
of the simulation.
Fixes #2162 .
Signed-off-by: Tobias Wölfel <tobias.woelfel@mailbox.org>
* Correct file location
Signed-off-by: Tobias Wölfel <tobias.woelfel@mailbox.org>
* Add description for single test execution
Without this description it is not obvious how to run a single test from
the regression test suite.
Signed-off-by: Tobias Wölfel <tobias.woelfel@mailbox.org>
2020-02-15 18:17:23 -06:00
Wilson Snyder
02786b3f09
Commentary
2020-02-12 22:46:59 -05:00
Yutetsu TAKATSUKASA
241e54e7b3
Tested with all existing cases after changing the code to split everything.
...
The following tests fail. Explanation is here.
- Failure because extra warnings
- vlt/t_a1_first_cc: %Error: Exec of perl failed: No stack.
make -j && test_regress/t/t_a1_first_cc.pl --vlt
- vlt/t_a2_first_sc: %Error: Exec of perl failed: No stack.
make -j && test_regress/t/t_a2_first_sc.pl --vlt
- vlt/t_flag_debugi9: %Error: Exec of perl failed: Starting Verilator 4.029 devel rev v4.028-114-g8e707db3 (mod)
make -j && test_regress/t/t_flag_debugi9.pl --vlt
- Failures because the statistics changes
- vlt/t_split_var_0: %Error: File_grep: obj_vlt/t_split_var_0/Vt_split_var_0__stats.txt: Got='26' Expected='23' in regexp: (?^i:SplitVar,\s+Split unpacked arrays\s+(\d+))
make -j && test_regress/t/t_split_var_0.pl --vlt
- vlt/t_split_var_1_bad: %Error: Line 1 mismatches; obj_vlt/t_split_var_1_bad/vlt_compile.log != t/t_split_var_1_bad.out
make -j && test_regress/t/t_split_var_1_bad.pl --vlt
- vlt/t_split_var_2_trace: %Error: VCD miscompare obj_vlt/t_split_var_2_trace/simx.vcd t/t_split_var_2_trace.out
make -j && test_regress/t/t_split_var_2_trace.pl --vlt
- vlt/t_unopt_combo_isolate: %Error: File_grep: obj_vlt/t_unopt_combo_isolate/Vt_unopt_combo_isolate__stats.txt: Regexp not found: (?^i:Optimizations, isolate_assignments blocks\s+5)
make -j && test_regress/t/t_unopt_combo_isolate.pl --vlt
- vlt/t_unopt_combo_isolate_vlt: %Error: File_grep: obj_vlt/t_unopt_combo_isolate_vlt/Vt_unopt_combo_isolate_vlt__stats.txt: Regexp not found: (?^i:Optimizations, isolate_assignments blocks\s+5)
make -j && test_regress/t/t_unopt_combo_isolate_vlt.pl --vlt
- vlt/t_xml_tag: %Error: Line 26 mismatches; obj_vlt/t_xml_tag/Vt_xml_tag.xml != t/t_xml_tag.out
make -j && test_regress/t/t_xml_tag.pl --vlt
- SplitVar changed error message by other pass.
- vlt/t_bitsel_wire_array_bad: %Error: Line 1 mismatches; obj_vlt/t_bitsel_wire_array_bad/vlt_compile.log != t/t_bitsel_wire_array_bad.out
make -j && test_regress/t/t_bitsel_wire_array_bad.pl --vlt
- vlt/t_lint_multidriven_bad: %Error: Line 9 mismatches; obj_vlt/t_lint_multidriven_bad/vlt_compile.log != t/t_lint_multidriven_bad.out
make -j && test_regress/t/t_lint_multidriven_bad.pl --vlt
- vlt/t_gen_forif: %Error: Exec of perl failed: %Warning-CLKDATA: t/t_gen_forif.v:35: Clock used as data (on rhs of assignment) in sequential block 't.Result'
make -j && test_regress/t/t_gen_forif.pl --vlt
- vlt/t_unoptflat_simple_2_bad: %Error: Exec of perl ok, but expected to fail
make -j && test_regress/t/t_unoptflat_simple_2_bad.pl --vlt
- Because of other issue https://github.com/verilator/verilator/issues/1008#issuecomment-581078519
- vlt/t_select_bound1: %Error: Exec of perl failed: %Error: t/t_select_bound1.v:23: Unsupported: 4-state numbers in this context
make -j && test_regress/t/t_select_bound1.pl --vlt
2020-02-12 09:41:44 +09:00
Wilson Snyder
2108b19b94
Commentary
2020-02-09 18:08:04 -05:00
Yutetsu TAKATSUKASA
3abd3cb648
Merge branch 'master' into split_var0
2020-01-30 21:00:11 +09:00
Wilson Snyder
a4e8d39932
Spelling fixes
2020-01-24 20:10:44 -05:00
Stefan Wallentowitz
22088c907f
Set maximum number width ( #2128 )
...
Adjust the maximum number width to 64K. Add --max-num-width option to
adjust this setting.
Closes #2082
2020-01-21 12:17:31 +01:00
Pieter Kapsenberg
4a122fd0f2
Add detailed location to XML output ( #2122 )
...
* Add detailed location to XML output
* Fixing build failures
* less cryptic regulary expressions
* correcting typo in test
* Adding file letter to the location attribute, and cleaning up the regular expression in the tests.
* Add remaining test expected output files for XML changes
* spacing fix, adding documentation on changes
2020-01-20 14:08:13 -05:00
Wilson Snyder
1acff950d0
Commentary: Add deprecations section to docs. Closes #2081 .
2020-01-20 10:06:45 -05:00
Yutetsu TAKATSUKASA
e9fcd6eb25
split_var supports assignment of unpacked arrays.
2020-01-16 00:18:14 +09:00
Yutetsu TAKATSUKASA
a1b3d57fe2
Merge branch 'master' into split_var0
2020-01-15 08:45:49 +09: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
8859cbf5bc
Commentary
2020-01-10 19:12:45 -05:00
Philipp Wagner
4a307742c4
Fix typo in help output ( #2096 )
...
The variable is named VM_PARALLEL_BUILDS, not VM_PARALLEL_BUILD.
Signed-off-by: Philipp Wagner <mail@philipp-wagner.com>
2020-01-09 20:07:08 -05:00
Wilson Snyder
a2911ed933
Fix shebang breaking some shells. Closes #2067 .
2020-01-09 20:01:12 -05:00
Wilson Snyder
f23fe8fd84
Update copyright year.
2020-01-06 18:05:53 -05:00
Yutetsu TAKATSUKASA
9d09ace1d6
Splitting multi-dimensional unpacked array is supported.
2020-01-05 15:16:48 +09:00
Yutetsu TAKATSUKASA
20b59f381d
split_var supports packed data.
2020-01-05 01:13:37 +09: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
Yutetsu TAKATSUKASA
8b38a15765
update per PR comment
2019-12-30 16:09:10 +09:00
Yutetsu TAKATSUKASA
d19fbd164c
Add V3SplitVar which splits variables marked split_var.
2019-12-23 22:56:58 +09:00
Wilson Snyder
39950d16d0
Ignore `uselib to end-of-line, bug1634.
2019-12-12 20:57:48 -05:00
Todd Strader
c62c152048
Commentary
2019-12-12 07:53:08 -05:00
Wilson Snyder
cda5c53cf9
Add BOUNDED warning and promote bounded queues to unbounded.
2019-12-08 15:56:49 -05:00
Wilson Snyder
c199930943
Commentary
2019-12-08 07:34:47 -05:00
Wilson Snyder
32f93a8a1e
Commentary, bug1615.
2019-12-01 12:43:41 -05:00
Wilson Snyder
3d6e8e9eb0
Add -Wno-context.
...
Signed-off-by: Wilson Snyder <wsnyder@wsnyder.org>
2019-11-23 10:40:32 -05:00
Wilson Snyder
17ad59394f
Support shortreal as real, with a SHORTREAL warning.
2019-11-23 08:34:40 -05:00
Wilson Snyder
2ff22d9050
Fix earlier +verilated+error+count to do all .
2019-11-17 08:12:39 -05:00
Wilson Snyder
c726ad0142
Commentary
2019-11-17 07:53:30 -05:00
Wilson Snyder
d480c2f033
Add +verilator+error+limit to see more assertion errors.
2019-11-16 18:25:47 -05:00
Wilson Snyder
c36d9a68f5
Support $ungetc.
2019-11-16 12:55:10 -05:00
Wilson Snyder
47b5e36e60
Add -Wpedantic for compliance testing.
2019-11-16 11:59:21 -05:00
Wilson Snyder
5811ec07e6
Update URLs to https://verilator.org
2019-11-07 22:33:59 -05:00
Wilson Snyder
f1b10e2b4c
Improve error messages on DIDNOTSETTLE, bug1556.
2019-11-06 19:47:34 -05:00
Wilson Snyder
f781085755
Add --xml-output option.
2019-10-31 21:17:05 -04:00
Wilson Snyder
8f6efdaf5c
Allow both -MMD and --no-MMD, and --no/--skip-identical to override default
2019-10-31 20:59:52 -04:00
Wilson Snyder
40bdd85a07
Fix minor output spacing issues.
2019-10-29 23:19:59 -04:00
Wilson Snyder
647c321437
Suppress 'command failed' on normal errors.
2019-10-27 17:34:04 -04:00
Wilson Snyder
bac5d32582
Commentary; fix example here documents.
2019-10-27 11:30:12 -04:00
Wilson Snyder
3ebd6915f3
Commentary
2019-10-27 10:29:19 -04:00
Wilson Snyder
f852ba8a33
Add --trace-coverage.
2019-10-27 09:27:18 -04:00
Wilson Snyder
e15d3afb7b
Commentary
2019-10-19 07:08:18 -04:00
Ahmed El-Mahmoudy
712bc43a06
Commentary, bug1568.
2019-10-19 06:47:46 -04:00
Patrick Stewart
1e4f471049
Add cmake support, bug1363.
...
Signed-off-by: Wilson Snyder <wsnyder@wsnyder.org>
2019-10-17 19:44:10 -04:00
Wilson Snyder
a7c2037b7a
Add --generate-key.
2019-10-09 18:53:30 -04:00
Todd Strader
da0da9e258
Add --protect-lib to create protected libraries, bug1490.
2019-10-09 06:47:26 -04:00
Patrick Stewart
07db53e54f
Commentary
2019-10-07 22:11:50 -04:00