How to pass clock signal to a class inside a program?

In reply to ethan_td:

You are only making a one-time assignment to bclk in the new constructor, but it never changes again. Why don’t you just use @(negedge iClk) in your task?