2 function automatic [31:0] operation1;
11 for (i = 0; i < rounds; i = i + 1)
17 function automatic [31:0] pass_through;
22 function automatic [31:0] operation2;
27 operation2 = num * var;
31 function automatic [31:0] operation3;
41 for (i = 0; i < rounds; i = i + 1)
47 function automatic [16:0] operation4;
53 function automatic integer operation5;
65 assign x1 = operation1(A, a);
68 assign x1b = operation1(pass_through(A), a);
71 assign x2 = operation2(A, a);
74 assign x3 = operation3(A, a);
77 assign x4 = operation4(a[15:0], 0);
80 assign x5 = operation5(64);
84 assert property (a == 2);
85 assert property (A == 3);
86 assert property (x1 == 16);
87 assert property (x1b == 16);
88 assert property (x2 == 4);
89 assert property (x3 == 16);
90 assert property (x4 == a << 1);
91 assert property (x5 == 64);