Altera_Forum
Honored Contributor
9 years agoverilog task passing values
In verilog ,I have doubt while passing different values of one argument to task
eg:- module sample_ref(input wire clkA, rstA ,SA, output wire d); initial begin repeat(6) @(posedge clkA)# 1; operation(rstA,SA); end task operation(input wire rst, s); begin if(rst) $display("@%0t test1",$time); else if(s) $display("@%0t test2",$time); end endtask endmodule // here when I try to pass values of variable SA to s inside the task at different times(not at initial time), it didn't enter in to the task. Please explain these..