Stefan Wallentowitz
045ff25f80
Support vpiModule, bug1469.
...
Add very basic support for vpiModule. Basically it allows to traverse
the module tree to find a variable etc. It does not support more than
vpi_iterate and vpi_scan for vpiModule along basic operations like
vpi_get_str on vpiModule.
The support is added non-intrusively to non-VPI verilator runs. It
essentially:
- Tracks the creation of cell instances and keeps them alive until
the emit phase. They are there converted to scopes if modules.
- Emits empty (don't add anything during construction)
VerilatedScopes for all inlined modules, only for those inlined
modules that are on the hierarchical path to public variables.
- Adds VerilatedHierarchy as abstraction to structure of the
scopes. It is only created for VPI designs. It allows to traverse
the hierarchy from the top (NULL).
Signed-off-by: Stefan Wallentowitz <stefan@wallentowitz.de>
Signed-off-by: Wilson Snyder <wsnyder@wsnyder.org>
2019-10-01 21:57:45 -04:00
Wilson Snyder
7e54ff1b37
Additional lcov code coverage.
2019-07-05 22:30:19 -04:00
Wilson Snyder
01ef7122e9
Internals: Add lcov code coverage markers.
2019-06-30 22:37:03 -04:00
Wilson Snyder
96c70ea2df
Internals: Fix some long lines in include files. No functional change.
...
When merging, recommend using "git merge -Xignore-all-space"
2019-05-14 22:49:32 -04:00
Wilson Snyder
f96942a526
Internals: Detab and fix spacing style issues in include files. No functional change.
...
When merging, recommend using "git merge -Xignore-all-space"
2019-05-08 21:13:38 -04:00
Larry Lee
6a331e37fc
Fix missing VL_SHIFTL_ errors, bug1412, bug1415.
...
Signed-off-by: Wilson Snyder <wsnyder@wsnyder.org>
2019-04-05 19:32:25 -04:00
Wilson Snyder
efa6f4cd95
Fix extraction, part of fix missing VL_SHIFTL_QQW error, bug1412.
2019-03-28 19:46:39 -04:00
Larry Lee
ca537dc3ed
Fix missing VL_SHIFTL_QQW error, bug1412.
...
Signed-off-by: Wilson Snyder <wsnyder@wsnyder.org>
2019-03-28 19:11:46 -04:00
Wilson Snyder
7bf3366041
Support .
2019-03-07 20:56:53 -05:00
Wilson Snyder
f26fb51509
Commentary, bug1339.
2019-03-01 20:14:48 -05:00
Wilson Snyder
27fa19eb94
Add +verilator+seed, bug1396.
2019-02-04 20:28:17 -05:00
Wilson Snyder
8a4aeddbb0
Copyright year update.
2019-01-03 19:17:22 -05:00
Wilson Snyder
f0cdae129e
Removed --trace-lxt2, use --trace-fst instead.
2018-12-06 19:06:20 -05:00
Wilson Snyder
8170391573
Internals: Fix spacing of comments. No functional change.
2018-11-28 19:59:10 -05:00
Wilson Snyder
304a24d03a
Internals: Fix many clang-tidy issues. No functional change intended.
2018-10-14 18:39:33 -04:00
Wilson Snyder
d87b9d25ca
Internals: Cleanup and standardize include order. No functional change intended.
2018-10-14 13:59:40 -04:00
Wilson Snyder
9bc8d77f39
Includes: Move version to implementation only.
2018-10-14 11:21:09 -04:00
Wilson Snyder
8ef9ac7dba
Support in/out directions in FST dumps, bug1358.
2018-10-03 19:51:05 -04:00
Sergi Granell
a5aa0e2b0a
Add GTKWave FST native tracing, bug1356.
...
Signed-off-by: Wilson Snyder <wsnyder@wsnyder.org>
2018-10-02 18:42:53 -04:00
johnjohnlin
acf4a3fa99
Add GTKWave LXT2 native tracing, bug1333.
...
Signed-off-by: Wilson Snyder <wsnyder@wsnyder.org>
2018-08-28 06:41:17 -04:00
Wilson Snyder
45c09f3fae
Fix LLVM thread_safety function
2018-08-27 18:25:58 -04:00
Wilson Snyder
c93d28050e
Fix mkdir on MSYS2, msg2614.
2018-08-27 18:07:52 -04:00
Wilson Snyder
75f28fd446
Internals: Fix spacing of function calls. No functional change.
2018-08-25 09:52:45 -04:00
Wilson Snyder
ec8dbbffed
MAJOR: Add multithreaded model generation.
2018-07-22 20:54:28 -04:00
Wilson Snyder
0ef3baa87d
Merge from master
2018-07-22 11:53:58 -04:00
Wilson Snyder
3a777c2a37
Verilated: Always define VL_RDTSC, though unused; useful for benchmarking.
2018-07-22 11:53:35 -04:00
Wilson Snyder
b1ab48b9fc
Include: Fix command line parser hang when threaded.
2018-05-25 07:02:15 -04:00
Wilson Snyder
92649ba494
includes: Fix VL_RDTSC & misc stuff.
2018-05-24 22:17:44 -04:00
Wilson Snyder
84335b9580
Verilated: Cleanup command line parsing. Backport from pending v4 change.
2018-05-20 08:36:39 -04:00
Wilson Snyder
5e22ca77ec
Tests: Fix misc multithreaded issues, merge from threads branch.
2018-05-19 09:30:54 -04:00
Wilson Snyder
fe917ba7f4
include: Merge misc thread runtime support.
2018-05-13 19:30:51 -04:00
Wilson Snyder
0ef3c10931
Pull some thread include changes from thread branch.
2018-05-08 21:43:32 -04:00
John Coiner
fc48008c1c
Support
2018-03-12 16:44:01 -04:00
Wilson Snyder
770045676f
Internals: Split some extremely long lines. No functional change.
2018-03-10 16:32:04 -05:00
Wilson Snyder
8e65d93d6d
Copyright year update. No functional change.
2018-01-02 18:05:06 -05:00
Wilson Snyder
49fe4d081c
Support DPI open arrays, bug909, bug1245.
2017-12-17 16:28:58 -05:00
Wilson Snyder
895fc0911a
Support > 64 bit decimal $display.
2017-12-02 22:10:58 -05:00
Wilson Snyder
754527edfd
verilated internals: Add VL_BITRSHIFT_W. No functional change.
2017-12-02 08:17:20 -05:00
Wilson Snyder
7369500bb7
Fix cppcheck warnings
2017-11-23 10:43:34 -05:00
Wilson Snyder
cbb7cd16d0
Detect MSB overflow when under VL_DEBUG, bug1238.
2017-11-05 21:47:55 -05:00
Wilson Snyder
add5cc8b56
Internals: Add VL_UNCOPYABLE to make classes uncopyable. No functional change intended.
2017-11-01 18:51:41 -04:00
Wilson Snyder
f91bac7b31
Rewrite include libraries to support VL_THREADED towards future threading
2017-10-26 21:51:51 -04:00
Wilson Snyder
ad693d67b2
Mark Verilated functions with multithreaded status. No functional change.
2017-10-26 20:05:42 -04:00
Wilson Snyder
c17c81254e
Internals: Use = delete via a macro for a bit of C++11 forward compatibility
2017-10-25 20:00:38 -04:00
Wilson Snyder
5ead61dc7b
Unify format of VL_DEBUG print messages
2017-10-24 22:56:58 -04:00
Wilson Snyder
f4b00d3c64
Call VL_PRINTF/vl_stop/vl_finish/vl_fatal through wrappers as hook for future MT use.
2017-10-19 19:40:51 -04:00
Wilson Snyder
13c91f5fce
Internals: Refactor VerilatorSerialize to remove intermediate class. No functional change intended.
2017-10-11 18:55:31 -04:00
Wilson Snyder
3c1b82255e
Change VL_THREADED to use C++11, and compute and test related GCC flags automatically
2017-10-07 21:29:57 -04:00
Wilson Snyder
0ac116bb4e
Internals: Favor C++ cast style. No functional change intended.
2017-10-07 15:01:19 -04:00
Wilson Snyder
c2e8062f84
Verilated headers no longer "use namespace std;"
2017-09-23 07:32:37 -04:00
Wilson Snyder
38ab22bf1d
Simplify VL_CONST_W macro generation for faster compiles.
2017-09-18 21:36:18 -04:00
Wilson Snyder
960b2ed023
Internals: Fix some shadow and other warnings. No functional change
2017-09-14 23:26:23 -04:00
Wilson Snyder
074689b5de
SystemPerl mode (-sp-deprecated) has been removed.
2017-09-07 21:08:49 -04:00
Wilson Snyder
ca26596695
Fix undefined VL_POW_WWI.
2017-07-12 20:08:32 -04:00
Wilson Snyder
13f790360d
Fix compile error on unused VL_VALUEPLUSARGS_IW, bug1181.
2017-07-07 07:50:45 -04:00
Wilson Snyder
00a502942e
Fix valueplus exceeding array bounds.
2017-07-06 19:01:35 -04:00
Wilson Snyder
97093fdf81
Fix power operator on wide constants, bug761.
2017-06-05 20:30:01 -04:00
Wilson Snyder
50c4f60c68
Internals: Favor preincrement. No functional change.
2017-06-05 20:16:51 -04:00
Wilson Snyder
f0fb3b78d1
Internals: New VL_ZERO_W for faster inline. Prefer WData for wide. No functional change intended.
2017-06-05 20:04:09 -04:00
Wilson Snyder
9b06178f35
Fix shifts by more than 32-bit numbers, bug1174.
2017-06-05 07:56:59 -04:00
Wilson Snyder
447d803800
Fix internal clang warnings.
2017-05-24 23:51:15 -04:00
Wilson Snyder
e6d7e7e329
Version bump
2017-01-15 12:13:13 -05:00
Wilson Snyder
4f1398f773
Add commandArgsAdd, msg1890.
2016-05-16 22:04:21 -04:00
Wilson Snyder
850100c9c2
Fix compares to null, part of bug1030.
2016-02-02 19:35:44 -05:00
Wilson Snyder
b738d1960a
Copyright year update
2016-01-06 20:36:41 -05:00
Wilson Snyder
379bfd062f
Fix crash in commandArgsPlusMatch, bug987.
2015-10-29 21:07:49 -04:00
Wilson Snyder
318ded4198
Internals: Cleanup cppcheck warnings.
2015-10-03 22:33:06 -04:00
Todd Strader
34870e899f
Add VerilatedScopeNameMap for introspection, bug966.
...
Signed-off-by: Wilson Snyder <wsnyder@wsnyder.org>
2015-09-24 21:08:58 -04:00
Wilson Snyder
445c83a60d
Fix with SV string, bug947.
2015-07-21 18:36:27 -04:00
Wilson Snyder
238a5809bf
Fix truncation warning with -pins-bv, bug912.
2015-04-28 21:31:25 -04:00
Wilson Snyder
8323092a0c
Fix cppcheck warnings. No functional change.
2015-02-09 21:05:27 -05:00
Wilson Snyder
4c91ade61d
Copyright year update
2015-01-07 18:25:53 -05:00
Wilson Snyder
85ebc5f7bd
Fix called with narrow output strings
2014-11-27 12:32:41 -05:00
Wilson Snyder
d7e4bc1379
Fix huge shifts to zero with -Wno-WIDTH, bug765.
2014-05-13 08:10:59 -04:00
Wilson Snyder
9c5dd8d767
Fix RHEL5.6 compile warnings.
2014-04-15 18:18:36 -04:00
Glen Gibb
d34275150c
Support streaming operators, bug649.
...
Signed-off-by: Wilson Snyder <wsnyder@wsnyder.org>
2014-04-09 20:29:35 -04:00
Wilson Snyder
ff19dd94f9
Fix power operator calculation, bug730.
2014-04-05 15:44:49 -04:00
Wilson Snyder
9e76078939
Fix signed shift right optimization, bug715.
2014-03-09 21:28:28 -04:00
Wilson Snyder
180af74a50
Fix missing VL_SHIFTRS_IQI with WIDTH warning, bug514.
2014-02-13 18:13:30 -05:00
Wilson Snyder
4422de0c6c
Copyright year update.
2014-01-06 19:28:57 -05:00
Wilson Snyder
d3d359e757
Fix clang warnings, bug668.
2013-08-08 19:39:39 -04:00
Wilson Snyder
1e3dcd203d
Fix clang warning, bug668.
2013-07-29 10:37:58 -04:00
Wilson Snyder
ae6f5844da
Add Verilated::internalsDump()
2013-05-04 10:29:54 -04:00
Wilson Snyder
345a5d5646
Add --pins-sc-uint and --pins-sc-biguint, bug638.
2013-04-26 21:02:32 -04:00
Wilson Snyder
e7ba6ef492
Support VPI product info, warning calls, etc, bug588.
2013-01-17 21:40:37 -05:00
Wilson Snyder
a8bbf7231b
Copyright year update.
2013-01-01 09:42:59 -05:00
Wilson Snyder
9c00fd10de
Add --savable to support model save/restore.
2012-08-26 21:19:43 -04:00
Wilson Snyder
1373b81e7c
Include: Allow external progs to test command args
2012-08-14 20:37:15 -04:00
Wilson Snyder
50edef4ab2
Add Emacs indentation line. No functional change
2012-04-12 21:08:20 -04:00
Wilson Snyder
c2c7c7bd9a
Copyright year update
2012-01-15 10:26:28 -05:00
Wilson Snyder
b30b2a183b
Support .
2011-11-20 02:01:48 -05:00
Wilson Snyder
094d676a8b
Fix MSVC compile warning with trunc/round, bug394.
2011-09-21 09:08:05 -04:00
Wilson Snyder
bd55bfa071
Support more vpi file functions
2011-07-28 07:05:40 -04:00
Wilson Snyder
d88d85c172
Internals: Real2: Create numeric class; no functional change intended
2011-07-23 19:58:34 -04:00
Wilson Snyder
ae4a261463
Internals: Rename UnaryMin to Negate. No functional change.
2011-07-08 06:03:07 -04:00
Wilson Snyder
7f49619875
Fix VL_FCLOSE declaration, broke two commits ago, bug363
2011-07-05 20:42:33 -04:00
Wilson Snyder
a901e171b2
Support $fopen and I/O with integer instead of `verilator_file_descriptor.
2011-07-01 13:41:21 -04:00
Wilson Snyder
2b330b78b7
Support bit vectors > 64 bits wide in DPI import and exports.
2011-05-20 21:33:31 -04:00
Wilson Snyder
71c1f00ec2
Copyright year update
2011-01-01 18:21:19 -05:00
Wilson Snyder
7dee344ea9
Add limited support for VPI access to public signals, see docs.
2010-12-25 14:39:41 -05:00
Wilson Snyder
48047d523a
Remove dead code ifdef, bug299
2010-11-03 12:38:26 -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
ba93a08b40
Support runtime access to public signal names
2010-03-17 08:22:49 -04:00
Wilson Snyder
2afe40a0b5
verilated: Add debug pointers to scopeDump()
2010-03-16 19:28:29 -04:00
Wilson Snyder
d780d0aabb
Fix flushing VCD buffers on .
2010-03-12 20:00:08 -05:00
Wilson Snyder
56d8ddbaaf
Fix MSVC compile warning
2010-02-04 20:31:13 -05:00
Wilson Snyder
59cc61529b
Fix DPI pointer size warnings under -m32
2010-02-04 08:15:33 -05:00
Wilson Snyder
e40fbf1470
Verilated: Add missing VL_UNLIKELYs
2010-02-03 06:56:20 -05:00
Wilson Snyder
56a03e1a10
Add vl_mc_scan_plusargs
2010-02-03 06:33:00 -05:00
Wilson Snyder
11e702c430
SystemPerl is no longer required for tracing.
...
Applications must use VerilatedVcdC class in place of SpTraceVcdC.
2010-01-24 18:37:01 -05:00
Wilson Snyder
898c08c8e0
Rename new include/verilated files for readability
2010-01-24 08:38:17 -05:00
Wilson Snyder
b0f431e1a2
Fix MSVC++ 2008 compile issues, bug209.
2010-01-24 07:52:43 -05:00
Wilson Snyder
788f69a8c9
DPI: Support strings in DPI Imports
2010-01-17 15:10:37 -05:00
Wilson Snyder
08b63b4f01
Tests: Add --gdbbt, and abort on V3ERROR_NA in V3Ast
2010-01-17 14:48:39 -05:00
Wilson Snyder
ba07dc1804
Internals: Use D for double; fix t_dist_uint
2010-01-16 20:30:29 -05:00
Wilson Snyder
b6447a9032
Internal cleanup: Prep for strings
2010-01-15 08:20:25 -05:00
Wilson Snyder
e40b5819bd
Speed compiles by avoiding including the STL iostream header.
2010-01-14 21:03:06 -05:00
Wilson Snyder
729dfdfed7
Copyright year update
2010-01-05 21:15:06 -05:00
Wilson Snyder
ef3ed6e338
Support DPI exports
2009-12-20 08:27:00 -05:00
Wilson Snyder
ebe8f554c6
Fix dpiSetScope to really set the scope.
2009-12-16 21:28:35 -05:00
Wilson Snyder
735871d501
Add Verilated::scopesDump(), for debugging.
2009-12-08 06:41:16 -05:00
Wilson Snyder
17bf13fcb6
Support DPI context imports
2009-12-05 10:38:49 -05:00
Wilson Snyder
c7d8eb126f
Support and .
2009-11-23 21:24:55 -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
47b5157f01
Support division and modulus of > 64 bit vectors.
2009-10-26 20:12:09 -04:00
Wilson Snyder
7df730cedd
Verilator is now licensed under LGPL v3 and/or Artistic v2.0.
2009-05-04 17:07:57 -04:00
Wilson Snyder
2c953dc37f
Fix $clog2 calculation error with powers-of-2, bug81.
2009-05-01 22:18:32 -04:00
Wilson Snyder
9b9e4e5a3f
Fix "redefining I" error with complex includes.
2009-04-28 07:19:50 -04:00
Wilson Snyder
cbb3351d97
Fix GCC 4.3.2 compile warnings.
2009-04-23 09:16:25 -04:00
Wilson Snyder
71bdfd9710
Fix ASSIGN_SI errors with new --pins-bv 1 option
2009-03-13 22:58:55 -04:00
Wilson Snyder
3d06720628
Copyright year update
2009-01-02 11:47:39 -05:00
Wilson Snyder
1d091e49e1
Add VL_TIME_MULTIPLIER to allow sub-timeunit time printing
2008-08-05 14:45:20 -04:00
Wilson Snyder
701bd38d01
Add support for , . Bug14.
2008-07-01 14:15:10 -04:00
Wilson Snyder
1a8c8bec0d
Rework $display/$write to go via new VL_WRITE function instead of
...
converting to pure C printf call. This makes the resulting code smaller,
and allows sharing code with future $sprintf support.
2008-06-30 14:31:58 -04:00
Wilson Snyder
20aa21d4b6
Replace stdio.h and stdarg.h with C++ versions
2008-06-30 13:11:25 -04:00
Wilson Snyder
8c6adeb85a
Internals: Convert to use common string convert routine
2008-06-30 07:10:23 -04:00
Wilson Snyder
0703843ac1
Support , .
2008-06-27 20:04:20 -04:00
Wilson Snyder
d6884db439
Support .
2008-06-27 11:36:25 -04:00
Wilson Snyder
52912c6329
Convert repository to git from svn.
...
- Change .cvsignore to .gitignore
- Remove Id metacomments
- Cleanup whitespace at end of lines
2008-06-09 21:25:10 -04:00
Wilson Snyder
8e812058cb
Change website references to veripool.org
...
git-svn-id: file://localhost/svn/verilator/trunk/verilator@1039 77ca24e4-aefa-0310-84f0-b9a241c72d87
2008-04-25 12:14:27 +00:00
Wilson Snyder
215bdfccc2
Use GCC 4 compiler builtins for XORs
...
git-svn-id: file://localhost/svn/verilator/trunk/verilator@1033 77ca24e4-aefa-0310-84f0-b9a241c72d87
2008-04-24 14:26:01 +00:00
Wilson Snyder
956a0a9c99
Add Verilog 2005 () function.
...
git-svn-id: file://localhost/svn/verilator/trunk/verilator@1032 77ca24e4-aefa-0310-84f0-b9a241c72d87
2008-04-24 13:52:51 +00:00
Wilson Snyder
a2ffe86a36
Copyright update
...
git-svn-id: file://localhost/svn/verilator/trunk/verilator@976 77ca24e4-aefa-0310-84f0-b9a241c72d87
2008-01-15 14:29:08 +00:00
Wilson Snyder
f23203dc96
Make __Inlines.h file so we can build VL_CONST_W_#X funcs automatically
...
git-svn-id: file://localhost/svn/verilator/trunk/verilator@974 77ca24e4-aefa-0310-84f0-b9a241c72d87
2007-11-30 22:38:21 +00:00
Wilson Snyder
a94f1c779b
Spelling fixes
...
git-svn-id: file://localhost/svn/verilator/trunk/verilator@973 77ca24e4-aefa-0310-84f0-b9a241c72d87
2007-11-30 22:12:53 +00:00
Wilson Snyder
7fc3e6c168
Fix missing CAST required above some CONSTs
...
git-svn-id: file://localhost/svn/verilator/trunk/verilator@963 77ca24e4-aefa-0310-84f0-b9a241c72d87
2007-10-31 19:22:26 +00:00
Wilson Snyder
2b5d7eeb50
Lesser license for verilated files
...
git-svn-id: file://localhost/svn/verilator/trunk/verilator@931 77ca24e4-aefa-0310-84f0-b9a241c72d87
2007-06-11 17:07:11 +00:00
Wilson Snyder
749302acb8
Fix MSVCC compile warning
...
git-svn-id: file://localhost/svn/verilator/trunk/verilator@908 77ca24e4-aefa-0310-84f0-b9a241c72d87
2007-04-18 17:41:31 +00:00
Wilson Snyder
b5b1d94d4a
Copyright date update
...
git-svn-id: file://localhost/svn/verilator/trunk/verilator@864 77ca24e4-aefa-0310-84f0-b9a241c72d87
2007-01-02 22:06:40 +00:00
Wilson Snyder
699563c9bd
Add support.
...
git-svn-id: file://localhost/svn/verilator/trunk/verilator@846 77ca24e4-aefa-0310-84f0-b9a241c72d87
2006-12-19 14:09:57 +00:00