In reply to Babu Raghunathan:
When you say “Called from outside” where is that? A class method? or top-level module? How does task_fileio send data to the scoreboard?
Instead of a task, could you make fileio another interface that is bound into your interface? The ports of that interface would be inputs and you could have an initial block execute the procedural code you had in the task.
Dave