blob: 49b30ffcb5610d0b248e8f964dd70a901cc3dc73 [file] [log] [blame]
module tb (input clock, a, b);
wire x, y;
top top_inst (
.clock(clock),
.a(a), .b(b), .x(x), .y(y)
);
always @(posedge clock) begin
assert (x == ($past(a, 2) ^ $past(b, 2)));
assert (y == (!$past(a, 2) || !$past(b, 2)));
end
endmodule