2020-12-06 03:58:36 +00:00
|
|
|
%Warning-CASTCONST: t/t_castdyn_castconst_bad.v:20:11: $cast will always return one as 'int' is always castable from 'logic[31:0]'
|
2023-09-23 12:52:50 +00:00
|
|
|
: ... note: In instance 't'
|
2020-12-06 03:58:36 +00:00
|
|
|
: ... Suggest static cast
|
|
|
|
20 | i = $cast(v, 1);
|
|
|
|
| ^~~~~
|
2021-04-24 14:33:49 +00:00
|
|
|
... For warning description see https://verilator.org/warn/CASTCONST?v=latest
|
2020-12-06 03:58:36 +00:00
|
|
|
... Use "/* verilator lint_off CASTCONST */" and lint_on around source to disable this message.
|
2024-06-01 01:51:12 +00:00
|
|
|
%Warning-CASTCONST: t/t_castdyn_castconst_bad.v:21:11: $cast will always return one as 'class{}Base' is always castable from 'class{}Base'
|
2023-09-23 12:52:50 +00:00
|
|
|
: ... note: In instance 't'
|
2020-12-06 03:58:36 +00:00
|
|
|
: ... Suggest static cast
|
|
|
|
21 | i = $cast(b, b);
|
|
|
|
| ^~~~~
|
2024-06-01 01:51:12 +00:00
|
|
|
%Warning-CASTCONST: t/t_castdyn_castconst_bad.v:22:11: $cast will always return zero as 'class{}Base' is not castable from 'class{}Other'
|
2023-09-23 12:52:50 +00:00
|
|
|
: ... note: In instance 't'
|
2020-12-06 03:58:36 +00:00
|
|
|
22 | i = $cast(b, o);
|
|
|
|
| ^~~~~
|
|
|
|
%Error: Exiting due to
|