Compilation error ..please hlp me solve this

In reply to Rohith j:

There is something wrong with the data structure in wr_driver.sv

endtask is missing at the end of the last Task implementation.

Your data structure and the compile strategy you are using is chaotic and makes debugging very hard.
You should make for each agent a seperate package you can include easily in the test.

I’d recommend you should use a UVM Framework generator to cretae a complete Environment with a proven UVM structure (see EasierUVM from Doulos: Doulos KnowHow or UVMF from Mentor).