Ncvlog: *E,DUPIDN (./clk_seq_item.sv,3|17): identifier 'clk_seq_item' previously declared [12.5(IEEE)]

hi All ,

can any body suggest how to solve this error,
i was trying this for many days.

thanks in advance,

Thanks,
Gowtham

In reply to P.Gowtham Santosh:

Only the clk_test_pkg should include other class declaration files. They should be included in the correct order so all classes are defined before use,.

In reply to dave_59:

Hi Dave,

i have tried using all the combinations…
but still did not work .

can u pls guide by providing what mistake did i do …
or what should be right way …

i am not able to progress , kindly help me across.
u can go through the above link only ,

Thanking in advance,
G.S

In reply to P.Gowtham Santosh:

Looks like you are compiling clk_seq_item was compiled twice.

In reply to chr_sue:

hi chr_sue,

As per u r suggestion i have compiled it once only with including all files in package.

but still having compilation issue.
ncvlog: *E,UNDIDN (clk_driver.sv,2|48): ‘clk_seq_item’: undeclared identifier [12.5(IEEE)].

kindly go over this link … and i have updated it …

link : clock_rst - EDA Playground.

Thanks
Gowtham.

In reply to P.Gowtham Santosh:

Did you mean to use clk_seq_txn, not clk_seq_item?

In reply to chr_sue:
hi Dave,
yes i used clk_seq_txn not clk_seq_item,

it is now compilation free mow !

thanks for the help ,

Regards,
Gowtham.