1
0
mirror of https://github.com/verilator/verilator.git synced 2025-04-30 12:36:53 +00:00
Commit Graph

1170 Commits

Author SHA1 Message Date
Wilson Snyder
0419ed0430 Fix initializing static array in dynamic arrays and queues (). 2024-07-24 06:06:57 -04:00
Andrew Nolte
60f9e21d8c
Fix --x-assign to be independent from +verilator+rand+reset () 2024-07-14 17:04:00 -04:00
Wilson Snyder
131623de34 Internals: Favor s string literals. No functional change. 2024-07-14 11:39:45 -04:00
Bartłomiej Chmiel
11da07d3b9
Support $assertcontrol assertion_type ()
Signed-off-by: Bartłomiej Chmiel <bchmiel@antmicro.com>
Signed-off-by: Ryszard Rozak <rrozak@antmicro.com>
Co-authored-by: Ryszard Rozak <rrozak@antmicro.com>
Co-authored-by: Wilson Snyder <wsnyder@wsnyder.org>
2024-07-10 05:06:13 -04:00
Liam Braun
ca4858eb7f
Fix concurrency for mailbox and semaphores () 2024-07-03 22:29:32 +01:00
Arkadiusz Kozdra
85356f464f
State-dependent constraints ()
Signed-off-by: Arkadiusz Kozdra <akozdra@antmicro.com>
2024-07-01 20:19:15 +02:00
Wilson Snyder
3315a6e431 Internals: Also cleanup gettes/setters in .cpp. No functional change intended. 2024-06-22 19:50:59 -04:00
github action
ba0183131c Apply 'make format' 2024-06-22 22:58:42 +00:00
Ryan Ziegler
e1580b9c3d
Internals: Reorder class getters/setters (). No functional change intended. 2024-06-22 18:57:54 -04:00
Wilson Snyder
2641bc98aa Update include/gtkwave from upstream 2024-06-15 08:14:43 -04:00
Wilson Snyder
ad2862ce3f Fix DPI import of null C-string (). 2024-06-14 22:50:54 -04:00
Wilson Snyder
f96e99542c Internals: Fix cppcheck warnings. No functional change. 2024-06-13 21:29:03 -04:00
Wilson Snyder
6f0a36318e Tests: Fix test stability ( update). 2024-06-11 20:55:01 -04:00
Wilson Snyder
fd1e4d9e45 Add assertion on reusing VerilatedContext (). 2024-06-11 19:38:58 -04:00
Wilson Snyder
920ed5ca3d Internals: Avoid unordered_map/set. No functional change intended. 2024-06-11 18:52:09 -04:00
Bartłomiej Chmiel
13114f2efe
Fix SystemC BITS_PER_DIGIT in VL_ASSIGN_SBW ()
The BITS_PER_DIGIT macro value differs between SystemC versions,
thus referencing it directly is required.
2024-06-10 20:45:49 -04:00
Paul Bowen-Huggett
9ff06c1664
Fix 'experimental/coroutine' file not found on macOS () () ()
libcxx has removed the experimental/coroutine include file in favor of
the C++20-standard coroutine include. If the latter is available we
use it otherwise falling back to the existing experimental version (in
which case we also disable the deprecated-experimental-coroutine warning).

(See also https://reviews.llvm.org/D108697.)
2024-06-08 08:33:50 -04:00
Kaleb Barrett
0d3cb86a44
Fix VerilatedVpiPutHolder class () 2024-06-07 22:25:33 -04:00
github action
e834b5be2d Apply 'make format' 2024-05-29 20:56:45 +00:00
Kaleb Barrett
bd7689f59a
Fix overflow of string on VPI reads () () 2024-05-29 16:55:46 -04:00
Kaleb Barrett
3496eb80a5
Improve VerilatedVpiPutHolder storage requirements () 2024-05-29 08:39:08 -04:00
Pawel Jewstafjew
913679f261
Fix output C++ type error on change detect of I/O arrays () ()
operand order reversed for AstCMethodHard "neq"
interface between C-style arrays and VlUnpacked
overloads added to VlUnpacked::neq(), VlUnpacked::assign()
VlUnpacked::operator=() added

Fixes  
2024-05-22 12:53:28 +01:00
Ethan Sifferman
d9078df650
Fix 4-state value support for $readmem () () 2024-05-21 17:27:32 -04:00
Arkadiusz Kozdra
739be2f782
Support constrained randomization with external solvers () 2024-05-17 10:38:34 -04:00
Arkadiusz Kozdra
9a8e68928d
Internals: Move getenvStr to verilatedos. ()
* Internals: Move getenvStr to verilatedos. No functional change intended.
* Fix POS34-C. Do not call putenv() with a pointer to an automatic variable as the argument.

Signed-off-by: Arkadiusz Kozdra <akozdra@antmicro.com>
2024-05-13 10:23:51 -04:00
Todd Strader
19cccd170e
Fix vpiInertialDelay for memories () 2024-05-10 18:49:43 -04:00
Yinan Xu
ce5cad17a8
Add increasing of stack size when possible () () 2024-05-08 22:40:42 -04:00
Geza Lore
80b08b71aa
Support NBAs to arrays inside loops ()
For NBAs that might execute a dynamic number of times in a single
evaluation (specifically: those that assign to array elements inside
loops), we introduce a new run-time VlNBACommitQueue data-structure
(currently a vector), which stores all pending updates and the necessary
info to reconstruct the LHS reference of the AstAssignDly at run-time.

All variables needing a commit queue has their corresponding unique
commit queue.

All NBAs to a variable that requires a commit queue go through the
commit queue. This is necessary to preserve update order in sequential
code, e.g.:
 a[7] <= 10
 for (int i = 1 ; i < 10; ++i) a[i] <= i;
 a[2] <= 10
needs to end with array elements 1..9 being 1, 10, 3, 4, 5, 6, 7, 8, 9.

This enables supporting common forms of NBAs to arrays on the left hand
side of <= in non-suspendable/non-fork code. (Suspendable/fork
implementation is unclear to me so I left it unchanged, see ).

Any NBA that does not need a commit queue (i.e.: those that were
supported before), use the same scheme as before, and this patch should
have no effect on the generated code for those NBAs.
2024-05-03 07:45:49 -04:00
Vito Gamberini
64ba569f0d
Fix MacOS missing <type_traits> header () () 2024-05-02 21:38:36 -04:00
Todd Strader
c99364b81a
Support vpiInertialDelay () 2024-05-01 18:56:50 -04:00
Aleksander Kiryk
8e0301c287
Fix bound queue printing () 2024-04-29 21:52:06 -04:00
Wilson Snyder
5601056ed0 Tests: Check for bad event methods 2024-04-28 13:10:25 -04:00
Todd Strader
25fd8ef5c0
Add VPI eval needed tracking () 2024-04-25 09:07:31 -04:00
Gökçe Aydos
a9664b8d16
Remove $(info) which cannot be silenced by -MAKEFLAGS '--quiet' () 2024-04-20 08:48:16 -05:00
Wilson Snyder
5d8da6b4ac Fix width extension on delays (). 2024-04-13 08:16:59 -04:00
Wilson Snyder
8e44487354 Tests: update style 2024-04-13 08:02:25 -04:00
Wilson Snyder
1012c054e6 Fix $system with string argument (). 2024-04-11 17:31:14 -04:00
Krzysztof Bieganski
7ca2d6470a
Fix consecutive zero-delays ()
Signed-off-by: Krzysztof Bieganski <kbieganski@antmicro.com>
2024-04-05 16:48:47 -04:00
Wilson Snyder
28718f964a
Fix tracing replicated hierarchical models () () 2024-03-30 16:00:52 -04:00
Wilson Snyder
1d486e3a59 Rename statsPrintSummary() 2024-03-30 13:19:47 -04:00
Wilson Snyder
840970e8f7 Internals: Add VL_MT_SAFE flags 2024-03-30 11:54:29 -04:00
Wilson Snyder
e390d6779d Internals: Rename threadsInModel() 2024-03-30 11:13:14 -04:00
Wilson Snyder
0114cb67ca Fix $readmem with missing newline (). 2024-03-27 18:42:20 -04:00
Wilson Snyder
ea8f86dd30 Internals: Prefer '(void)' to avoid unused var. No functional change. 2024-03-27 18:07:14 -04:00
Wilson Snyder
0ff77fc352 Internals: Remove extra single-line {}. No functional change. 2024-03-27 17:57:49 -04:00
Wilson Snyder
4df9e2e0e5
Add printing summary reports () () 2024-03-25 07:03:17 -04:00
Wilson Snyder
71d76c993c Fix MSVC++ warnings. No functional change. 2024-03-24 10:19:26 -04:00
Wilson Snyder
38ad328956 Remove duplicate stop ignored messages 2024-03-22 19:35:42 -04:00
Fuad Ismail
1c79df8630
Support stream operation on unpacked array () () 2024-03-21 18:26:42 -04:00
Wilson Snyder
ba47da6587 Internals: Move vl_timescaled_double to verilated_funcs.h. No functional change intended 2024-03-10 22:34:32 -04:00