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
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
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
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
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
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
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
72e86d396c
Add regression test for issue #703 .
2024-02-09 22:38:32 +00:00
Martin Whitaker
2299fc1b2b
Add regression tests for mixed procedural/continuous assignments.
2024-02-03 22:24:22 +00:00
Martin Whitaker
53b8220b9f
Add extra regression tests for multiple drivers on uwires.
2024-02-03 22:23:45 +00:00
Martin Whitaker
5e139890b6
Add regression test for connecting module output port to array variable (issue #1001 ).
2024-01-30 23:31:56 +00:00
Martin Whitaker
39753da458
Add regression test for disabling binary NAND and NOR operators.
2024-01-28 22:47:46 +00:00
Martin Whitaker
81d7abaf88
Add regression tests for checking wire data types (issue 1087).
2024-01-28 15:53:47 +00:00
Martin Whitaker
18720fe060
Enable the sv_literals test, now that it is fixed (issue #1082 )
2024-01-28 12:23:45 +00:00
Martin Whitaker
8ee1d56e1a
Enable the sv_parameter_type test, now it is fixed (issue #1083 )
2024-01-27 16:23:40 +00:00
Martin Whitaker
fbb2d91927
Add regression tests for issue #1074 .
2024-01-27 16:17:31 +00:00
Stephen Williams
71b9c551df
Move tests pr2509349a/b to the new test format.
...
This removes the regress-msys2.list file, fixes the output from the
pr2509349a.v test to not be different on different systems, and
documents the $readmempath task.
2024-01-21 15:49:09 -08:00
Stephen Williams
5e97884ccd
Remove the sv_regress.list file
...
This file contained some SystemVerilog tests that are not yet supported.
Move the tests to the regress-vvp.list format, and mark them as NI so
that we know what's going on.
2024-01-20 18:51:43 -08:00
Martin Whitaker
7b99cd25ca
Add regression tests for suppressed VCD/LXT/LXT2 warnings (issue #710 )
2024-01-07 20:34:45 +00:00
Martin Whitaker
fa2dfe690c
Add regression test for synthesisable for loop check (issue #687 )
2024-01-07 13:23:36 +00:00
Cary R
7c25e8506c
Merge pull request #1060 from larsclausen/ident-test-width
...
Correctly calculate width of nested path identifiers
2024-01-01 12:26:51 -08:00
Cary R
1712b2e8e8
Merge pull request #1059 from larsclausen/invalid-partsel
...
Detect reversed part select on inner dimensions
2024-01-01 12:25:07 -08:00
Lars-Peter Clausen
9a563e9bab
Add regression test for nested struct width
...
Check that expression width is correctly calculated for nested structs.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2023-12-30 18:30:24 -08:00
Johan Euphrosine
2e00a7d482
ivtests/array_slice_contact: add test manifest
2023-12-30 10:57:24 +09:00
Lars-Peter Clausen
57f8084d0c
Add regression tests for reversed part select indices
...
Check that reversed part selects result in an error. Check this for both
right-hand and left-hand side expressions as well as for inner and outer
dimensions.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2023-12-29 16:34:46 -08:00
Cary R
cc829031ff
Elaborate system elab tasks in gen blocks
2023-12-28 15:07:37 -08:00
Lars-Peter Clausen
7fb1cabdbb
Merge pull request #1055 from larsclausen/invalid-index-base
...
Handle invalid vector slice base expressions
2023-12-28 13:38:28 -08:00
Cary R
b14c4ca26c
add suport for the shortreal conversion functions
2023-12-28 13:30:27 -08:00
Lars-Peter Clausen
8f006a22b4
Add regression tests for invalid part select base expressions
...
Check that a invalid part select base expression results in a compile
error.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2023-12-28 13:21:37 -08:00
Stephen Williams
56c5bf1da1
ivtest: Remove regress v11, v12, and v13
...
These tests lists are no longer needed.
2023-12-17 20:13:00 -08:00
Stephen Williams
c6df820ff9
Merge pull request #1043 from steveicarus/steveicarus/remove-regress-vams
...
vams: Remove the regress-vams test
2023-12-10 20:40:34 -08:00
Stephen Williams
3c65f5d750
vams: Remove the regress-vams test
...
Use the more sophisticated python based tests to run these tests, and
remove the verilog-vams list.
2023-12-10 20:06:46 -08:00
Stephen Williams
0be07afab3
ivtest: Remove the regress-v10 test list
...
This list is not needed with the new scheme. This means that some gold
files that are v10 specific are removed, as well as the list itself.
2023-12-10 19:05:12 -08:00
Stephen Williams
58dcf39db3
Merge pull request #1017 from steveicarus/steveicarus/ivtest-test-conversion-20231029
...
ivtest: reformat some regression tests
2023-11-25 17:43:12 -08:00
Stephen Williams
bed166915f
ivtest: reformat some regression tests
...
This empties out the revress-ivl2.list
This includes the tests:
* always4A
* always4B
* br_gh383a
* br_gh383b
* br_gh383c
* br_gh383d
* ca_time_real
* delayed_sfunc
* localparam_type
* parameter_type
* pr1701890
* pr1864110a
* pr1864110b
2023-11-17 15:00:25 -08:00
Sylvain Munaut
483de9a75b
ivtest: Add test for partselect on enum inside pack struct
...
See issue #1033
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2023-11-16 09:26:04 +01:00
Sylvain Munaut
d564cecfb9
ivtest: Add test for $left / $right on structure field
...
See issue #1032
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2023-11-16 09:26:01 +01:00
Lars-Peter Clausen
b7ef0b5d88
Add regression test for continuous assignment to 2-state arrays
...
Check that continuous assignments to both signed and unsigned 2-state
arrays are supported.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2023-10-15 10:07:24 -07:00
Lars-Peter Clausen
6e81891de0
Add regression test for 2-state array initial value propagation
...
Check that the initial value that gets propagated for 2-state arrays is '0.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2023-09-23 06:19:09 -07:00
mole99
023c5f2754
Add testcase with input and output vectors
2023-09-04 09:20:19 +02:00
Cary R
64cfd681af
Merge pull request #980 from sifferman/argumentless-functions-fix
...
Argumentless functions fix
2023-09-03 17:31:10 -07:00
mole99
665295ba00
Also enable -gspecify for interconnect tests
2023-08-30 15:13:18 +02:00
mole99
306e4cfa6b
Add three tests to exercise interconnection delays in designs
2023-08-23 12:56:11 +02:00
Lars-Peter Clausen
250c456f94
Add regression tests for binding task/function arguments by name
...
Check that binding task and function arguments by name works as expected.
Also check that is works for the various variations of invoking a class
constructor.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2023-08-20 08:20:54 -07:00
Lars-Peter Clausen
8ca8ad3c81
Add regression tests for chained constructors
...
Check that constructor chaining for various corner cases of mixing implicit
and explicit constructors are handled correctly.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2023-08-06 02:10:28 -07:00
Cary R
0651e0be17
Merge pull request #982 from larsclausen/const-var-fix
...
Make sure `const var` variables are constant
2023-08-05 18:27:34 -07:00
Lars-Peter Clausen
bdfd873dc4
Add regression test for `const var`
...
Check that variables declared with `const var` can not be modified.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2023-07-29 12:26:35 -07:00
Lars-Peter Clausen
6928b38720
Add regression tests for automatic 2-state variable default value
...
Check that automatic 2-state variables get initialized to 0.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2023-07-29 06:33:46 -07:00
Ethan Sifferman
44badf50de
added test
2023-07-28 23:51:02 -07:00
Lars-Peter Clausen
f092820599
Add regression tests for const variables
...
Check that const variables are supported and they can not be overridden by
type of assignment.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2023-07-23 15:14:04 -07:00
mole99
7aabcc113e
Add test for delayed signals in timing checks
2023-07-05 16:24:04 +02:00
mole99
21b73eb187
Add test for parsing timing checks
2023-07-05 16:23:15 +02:00
Lars-Peter Clausen
c5f98fb671
Add regression tests for partial ANSI port declarations
...
Check that it is possible to declare module ports with only partial
attributes. Other attributes should be inherited from the previous port in
the list or use the default.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2023-06-30 06:09:45 -07:00
Lars-Peter Clausen
708f7bc651
Add regression test for $bits() on array identifiers
...
Check that for array identifiers $bits() includes the total size of the
signal.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2023-06-27 05:29:47 -07:00
Lars-Peter Clausen
2a17b06fc4
Add regression test for bit select on multi-dimensional signed packed array
...
Check that element and bit select on multi-dimensional signed packed arrays
are unsigned.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2023-06-26 06:27:52 -07:00
Lars-Peter Clausen
79fc09717e
Add regression test for module array port initializers
...
Check that initializers are supported for module array ports.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2023-06-19 08:08:41 -07:00
Lars-Peter Clausen
6991b2d84f
Add regression tests for assigning scalar value to array
...
Check that trying to assign a scalar value to an array results in an error.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2023-06-17 12:03:20 -07:00
Lars-Peter Clausen
90a1168086
Add regression tests for unpacked array assignment patterns
...
Check that basic assignment patterns are supported for unpacked arrays.
Check that all of packed types, reals and string arrays are supported.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2023-06-17 12:03:20 -07:00
Cary R
560fbeeae4
Merge pull request #936 from larsclausen/trailing-module-port
...
Allow to omit trailing module ports in ordered list connection
2023-06-14 07:35:39 -07:00
Lars-Peter Clausen
9357a62dce
Add regression test for implicit named port connection errors
...
Check that the file and line location is correct for errors
related to implicit named port connections.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2023-06-14 04:33:41 -07:00
Cary R
75cd1a19f0
Merge pull request #938 from larsclausen/unit-scope-possible-imports
...
Handle implicit task/function imports in the unit scope
2023-06-11 10:07:29 -07:00
Lars-Peter Clausen
542d80b1b1
Add regression tests for implicit function/task import the unit scope
...
Check that implicit import of functions and tasks is supported if the
wildcard import statement is in the unit scope.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2023-06-11 09:21:00 -07:00
Lars-Peter Clausen
946ded13c7
Add regression tests for continue/break in constant functions
...
Check that continue and break are supported in constant functions.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2023-06-11 08:56:06 -07:00
Lars-Peter Clausen
37f7308f80
Add regression test for omitting trailing ports in ordered list connection
...
Check that it is possible to omit trailing ports in a module ordered list
connection list.
Also check that an error is generated if too many ports are specified in a
ordered list connection.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2023-06-11 08:45:34 -07:00
Cary R
bff91566ab
Merge pull request #930 from larsclausen/fix-fn-partial-oob-write
...
Fix incorrect assert for partial oob write to function return value
2023-06-10 18:00:06 -07:00
Cary R
9cb3d53633
Merge pull request #918 from larsclausen/fix-single-element-array-ports
...
Fix connecting single element array ports
2023-06-04 21:09:04 -07:00
Cary R
cd293e17af
Merge pull request #895 from larsclausen/fork-in-final
...
vvp: Handle `%fork` in `final` procedures
2023-06-04 21:07:48 -07:00
Cary R
f22c1a519b
Merge pull request #900 from larsclausen/task-return
...
Support return in tasks
2023-06-04 21:07:30 -07:00
Lars-Peter Clausen
4ab59dd55e
Add regression tests for oob write to function return value
...
Check that partial and fully out-of-bound writes to a function's return
value are handled correctly. Check this for both 4-state and 2-state
vectors.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2023-06-04 16:27:24 -07:00
Lars-Peter Clausen
99a9be25f0
Add regression test for single element module port array
...
Check that connections to a module port array with a single element are
supported.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2023-05-06 09:58:41 -07:00
Lars-Peter Clausen
d1aecf452c
Add regression test for return in tasks
...
Check support for using the return statement in a task.
* That it is possible to exit form a task using the `return` statement
without affecting other concurrently running instances of the same task
* That it is possible to use return in a named block in a task
* That using a return value in a task results in a elaboration error
* Returning from inside a parallel block in a task results in a
elaboration error
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2023-04-16 19:22:49 -07:00
Lars-Peter Clausen
e1691c48fe
Add regression tests for reversed continuous array assignment
...
Check that assigning array that have opposite left-to-righto order for
their dimensions have their elements assigned in reversed order.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2023-04-16 09:21:27 -07:00
Lars-Peter Clausen
7973b105ac
Add regression test for sub-blocks in `final` procedures
...
Check that sub-blocks containing variables inside of `final` procedures do
get executed.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2023-04-16 09:20:39 -07:00
mole99
cca7d15cc4
Add testcase for sdf header
2023-04-14 11:08:08 +02:00
Lars-Peter Clausen
6fc6826822
Add regression test for foreach count direction
...
Check that foreach counts counts from $left to $right. This means it should
count up if $left is less than $right and count down otherwise.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2023-03-12 18:06:43 -07:00
Stephen Williams
564304d20c
ivtests: Add support for vlog95 tests
...
This adds the "normal-vlog95" test type, because we need to run a different
set of commands for this to work so a new test type makes sense. This also
moves a few of the existing tests to the new format in order to test the
new test rig.
2023-03-05 15:09:04 -08:00
Stephen Williams
50722494b9
ivtest: Add the dumpfile.v test
...
Add a regression test to show that the proper dumpfile is selected, by
noting in the output from the vvp command what file name it is creating.
To make this work, I also needed to add some capabilities to the vvp_reg.py
regression test rig.
2023-02-26 14:43:01 -08:00
Stephen Williams
3085bd6845
ivtest: Move some tests to the revress-vvp list
...
Move some tests from the old structure to the new more descriptive
test suite. Remove them from the old lists.
2023-02-11 18:35:41 -08:00
Stephen Williams
4ea442b2d9
ivtest: Create the vvp_reg.py test script
...
This creates a new test suite driver and infrastructure for going
forward. This cleans up the descriptions for tests, and is more
extensible.
Include documentation for the new engine, so that new tests can go
here instead of the old test suite.
2023-02-11 18:33:24 -08:00