What should we do when this error strikes up? While compiling all files in Questa sim simulator tool, the following error came. What am I supposed to do?
# ** Error: ** while parsing file included at top_pkg.sv(23)
# ** at top_example_vseq.svh(32): Extern task body declared in top_example_vseq but out-of-body declaration must be in the same scope as the class ('').
What does this mean by?
My code:-
function new
(
string name = "top_example_vseq"
);
super.new(name);
endfunction
task top_example_vseq :: body;
config_t seq0 = config_t :: type_id :: create("config_t");
begin
seq1.start(master_seq_0);
end
endtask: body
endclass: top_example_vseq