Lars-Peter Clausen
9f8a8959a7
Add regression tests for assignment operators on queue and darray elements
...
Check that assignment operators work as expected on queue and dynamic array
elements.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2025-01-05 15:55:34 -08:00
Lars-Peter Clausen
7c970e91b9
Add regression tests for assignment operators on class properties
...
Check that assignment operators are supported for class properties.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2025-01-05 15:55:20 -08:00
Lars-Peter Clausen
c22b375c86
Add regression test for logic class property default value
...
Check that class logic class properties get initialized to 'x.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2025-01-05 09:46:07 -08:00
Martin Whitaker
8cd7bb3584
Update gold files to match typo fix in previous commit.
2025-01-01 11:22:00 +00:00
Martin Whitaker
f3abd94e9b
Add regression test for issue #1184 .
...
This checks the temporary fix of outputing a suitable "sorry" message.
2024-12-31 17:15:19 +00:00
Martin Whitaker
0119f0d1e8
Add regression test for vvp quiet flag.
2024-12-31 15:05:38 +00:00
Cary R
03835c9d50
Report each line that has a var decl in an unnamed block
2024-12-28 20:51:30 -08:00
Cary R
788a94b310
Nested generate regions are illegal
2024-12-28 18:46:37 -08:00
Cary R
8edf14ae68
Check for primitive port mismatches and other error cleanup
2024-12-08 22:21:51 -08:00
Martin Whitaker
62727e8b2e
Add regression tests for packed/unpacked array parameter declarations.
...
These are currently unsupported, so should result in a compiler error.
2024-11-15 21:10:51 +00:00
Martin Whitaker
6c8ed62a5a
Add regression test for issue #1181 .
2024-11-10 19:34:36 +00:00
Cary R
96d28250bd
br_gh1178b uses inout which cannot be translated currently
2024-11-09 17:43:32 -08:00
Cary R
7a4e17661a
Fix gold file for br_gh1178a (repeat concatenation)
2024-11-09 17:22:40 -08:00
Cary R
00fcd58fab
A repeat concatenation cannot be used as a net l-value
2024-11-09 17:21:44 -08:00
Dag Lem
ba7da9d5a5
Guard against overflow / wrap around of internal part-select bit address
...
Internally, the maximum address space of a vector is 31 bits + a sign bit
to signal invalid addresses (out of bounds or has one or more x or z bits).
This commit ensures that unsigned part-select bit addresses which would
otherwise overflow and wrap around within this address space are correctly
handled as out of bounds.
2024-09-16 23:50:24 +02:00
Martin Whitaker
25a84d5cfc
Update vlog95 test list for tests containing incomplete for loops.
...
The for loop initialisation statement, termination condition, and step
statement were only made optional in IEEE 1800-2012. Commit 0695c1fe
enforced this. So we need to compile with -g2012. The vlog95 code
generator doesn't currently translate this, so the tests will fail
when compiling the translated code.
2024-09-07 18:08:44 +01:00
Martin Whitaker
2ab57a2b09
Add regression test for return type of $bits (issue #1163 ).
2024-09-07 17:56:15 +01:00
martinwhitaker
34ed6f6f97
Merge pull request #1168 from steveicarus/fix-vvp-cg-array-word-aliasing
...
Fix vvp cg array word aliasing
2024-09-07 17:04:57 +01:00
martinwhitaker
74ba42e2df
Merge pull request #1166 from larsclausen/fix-ix-load-sign
...
tgt-vvp: Use signedness of expression instead of signal for index load
2024-09-07 17:04:40 +01:00
Martin Whitaker
ae78218c2f
Add regression test for issue #1155 .
2024-09-03 21:38:09 +01:00
Lars-Peter Clausen
841e5a9d9e
ivtest: Add regression test to check that shift rhs is always unsigned
...
Add a regression test to check that the right-hand side of a shift
operation is always treated as unsigned, even if it is a signed registers
or a variation thereof.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2024-09-02 19:09:06 +02:00
Lars-Peter Clausen
fa83f42cba
ivtest: Add regression test for undefined intra-assignment delay
...
Check that assignments with undefined intra-assignment delay get executed
with zero delay. The assignment should not be skipped.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2024-09-02 14:11:29 +02:00
Cary R
cba2417db5
Update the test files to return the number of failures
2024-08-16 18:20:13 -07:00
Cary R
676b36e455
Fix space issues in the source code
2024-07-21 11:19:41 -07:00
Martin Whitaker
548010e36b
Fix compiler generation option for br_gh801 tests.
...
These test null for-loop initialisation and step, so need -g2012.
2024-07-13 11:46:08 +01:00
Martin Whitaker
488fbfc412
Add regression tests for checking for-loops are fully specified in SV 2009-.
2024-07-13 11:37:23 +01:00
Martin Whitaker
cb6544fac3
Add regression tests for issue #1143 .
2024-07-09 22:22:39 +01:00
Martin Whitaker
5cbdff202e
Add regression tests for checking constant function call scopes.
2024-06-30 11:52:54 +01:00
Martin Whitaker
94d9d19519
Add regression test for issue #1122 .
2024-05-06 21:47:18 +01:00
Paul Rigge
28187823ed
Update handling of single-element arrays.
...
Also, add a test. This fixes #1113 .
2024-04-15 13:14:53 -07:00
Martin Whitaker
ef7f0a8f38
Add regression tests for early signal elaboration.
2024-04-06 10:19:00 +01:00
Martin Whitaker
ff4cd2c5da
Merge branch 'declare-before-use'
2024-04-06 09:13:07 +01:00
Martin Whitaker
52d049b513
Add additional regression tests for issue #1099 .
2024-02-25 21:55:37 +00:00
Martin Whitaker
f08ff895af
Add informational messages that point to declaration after use.
2024-02-25 16:12:31 +00:00
Martin Whitaker
3624a54f7f
Add regression test for issue #1104 .
2024-02-24 13:36:25 +00:00
Martin Whitaker
0679d7c8cf
Add regression test for issue #1099
2024-02-24 11:49:46 +00:00
Martin Whitaker
d043c1fa44
Add regression tests for declare before use.
2024-02-20 08:46:28 +00:00
Martin Whitaker
f1bf6a7a55
Mark the vhdl_fa4_test4 as NI.
...
The VHDL pre-processor is generating illegal code for this test case
(using localparam values before they are declared).
2024-02-19 18:41:33 +00:00
Martin Whitaker
cd76bd2371
Fix tests that used variables/nets before declaring them.
...
The sdf_interconnect tests just need the code reordering. The
pr1909940 tests were written to test use before declaration, so
now need to be CE tests.
2024-02-19 18:20:04 +00:00
martinwhitaker
202d41a60c
Merge pull request #1098 from steveicarus/vpi-callback-improvements
...
VPI callback improvements
2024-02-12 17:42:45 +00:00
Martin Whitaker
72e86d396c
Add regression test for issue #703 .
2024-02-09 22:38:32 +00:00
Martin Whitaker
616afdc4e7
Fix and improve sim_time_cb test.
...
cb_data.obj must be set to a valid handle when requesting vpiScaledRealTime.
Check the returned time value as well as the actual callback time. Zero
the requested cb_data after registering the callbacks to make sure it
is not used during the callback execution.
2024-02-09 11:07:08 +00:00
Martin Whitaker
851aed6272
Rationalise new VPI callback test names.
2024-02-07 00:02:58 +00:00
Martin Whitaker
3433c92742
Add regression tests for VPI simulation time callbacks with both time types.
2024-02-06 23:42:12 +00:00
Martin Whitaker
c363231b9c
vvp: Add support for value change callback on 2-state array word.
2024-02-06 22:04:23 +00:00
Martin Whitaker
ad400ac468
vvp: Remove restriction on time types for cbNextSimTime.
...
IEEE 1364-1995 has different wording to later versions of the standard,
stating "For reason cbNextSimTime, the time structure is ignored." So
it's possible old VPI code might not pass a valid time pointer or time
structure. So remove the checks that the time pointer is non-null and
that the time type is not vpiSuppressTime.
To allow a user to select the time type, we have to assume that if
the time pointer is non-null, it is a valid pointer and not just an
uninitialised field.
2024-02-06 18:47:54 +00:00
Martin Whitaker
5c1ca6eb93
Extend the VPI value change callback tests.
...
Cover the vpiSuppressTime and null time pointer cases.
2024-02-06 09:04:13 +00:00
Martin Whitaker
0c61923636
Add regression tests for VPI value change callback with time reporting.
2024-02-05 22:04:29 +00:00
Martin Whitaker
bb0502a827
vvp: Factor out common code for returning the time of a VPI callback.
...
This adds support for vpiScaledRealTime in various callbacks where it
wasn't previously supported. However this doesn't work properly when
the cb_data.obj field references a scope handle.
2024-02-05 19:41:23 +00:00
Martin Whitaker
5d40f6ecb2
Restructure and simplify the nextsimtime VPI tests.
...
Add support for properly testing the vpiScaledRealTime time type for
when it's implemented.
2024-02-05 18:17:53 +00:00