File: t_randomize_rand_mode_bad.out

package info (click to toggle)
verilator 5.038-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 162,552 kB
  • sloc: cpp: 139,204; python: 20,931; ansic: 10,222; yacc: 6,000; lex: 1,925; makefile: 1,260; sh: 494; perl: 282; fortran: 22
file content (28 lines) | stat: -rw-r--r-- 1,924 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
%Error: t/t_randomize_rand_mode_bad.v:22:15: Cannot call 'rand_mode()' on non-random, non-class variable
                                           : ... note: In instance 't'
   22 |       p.m_val.rand_mode(0);
      |               ^~~~~~~~~
        ... See the manual at https://verilator.org/verilator_doc.html?v=latest for more assistance.
%Error: t/t_randomize_rand_mode_bad.v:23:19: Cannot call 'rand_mode()' on packed array element
                                           : ... note: In instance 't'
   23 |       p.m_pack[0].rand_mode(0);
      |                   ^~~~~~~~~
%Error: t/t_randomize_rand_mode_bad.v:24:39: Cannot call 'rand_mode()' as a function on non-random variable
                                           : ... note: In instance 't'
   24 |       $display("p.rand_mode()=%0d", p.rand_mode());
      |                                       ^~~~~~~~~
%Error: t/t_randomize_rand_mode_bad.v:25:18: 'rand_mode()' with arguments cannot be called as a function
                                           : ... note: In instance 't'
   25 |       $display(p.rand_mode(0));
      |                  ^~~~~~~~~
%Warning-IGNOREDRETURN: t/t_randomize_rand_mode_bad.v:26:21: Ignoring return value of non-void function (IEEE 1800-2023 13.4.1)
                                                           : ... note: In instance 't'
   26 |       p.m_other_val.rand_mode();
      |                     ^~~~~~~~~
                        ... For warning description see https://verilator.org/warn/IGNOREDRETURN?v=latest
                        ... Use "/* verilator lint_off IGNOREDRETURN */" and lint_on around source to disable this message.
%Error: t/t_randomize_rand_mode_bad.v:13:14: Cannot call 'rand_mode()' as a function on non-random variable
                                           : ... note: In instance 't'
   13 |       return rand_mode();
      |              ^~~~~~~~~
%Error: Exiting due to