blob: b85d7ec694ce1c68a755293a78271ef6ecd4e0fa (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import typedef_pkg::*;
class generator;
logic [7:0] a;
logic [7:0] b;
logic [15:0] out_put;
operation_t op;
virtual intf ALUintf;
function new (virtual interface intf alu_if_in);
ALUintf = alu_if_in;
endfunction
task sitimulus();
ALUintf.execute_op( op, a, b, out_put);
`RND_CHECK(std::randomize(op) with {op inside {op};})
`RND_CHECK(std::randomize(a))
`RND_CHECK(std::randomize(b))
ALUintf.execute_op( op, a, b, out_put);
endtask
endclass
|