R
rajatkmitra@gmail.com
Guest
cant get this to work any thoughts or alternatives??
module transactor();
task foo;
input a;
input b;
input c;
begin
force a = 1'b1;
force b = 1'b0;
if(~c) $display("XOR Failure...");
end
endtask//foo
initial
begin
foo(`DUT.pin1 , `DUT.pin2, `DUTpin3);
end
endmodule //trans
module transactor();
task foo;
input a;
input b;
input c;
begin
force a = 1'b1;
force b = 1'b0;
if(~c) $display("XOR Failure...");
end
endtask//foo
initial
begin
foo(`DUT.pin1 , `DUT.pin2, `DUTpin3);
end
endmodule //trans