In reply to Vinay Jain:
Haykp,
Does posedge ifc.spi_cs going low in your simulation?
I tried to understand your requirement , why don’t you write in this way ?
task dutOutMonitor ();
@ (posedge ifc.wr_doing );
@ (posedge ifc.spi_cs );
fork
begin
forever
begin
@ (posedge ifc.spi_sck );
dataIn = {dataIn, ifc.spi_dout};
end
end
begin
@ (negedge ifc.spi_cs );
this.ReceiveBox.put (dataIn );
end
join_any
endtask