In reply to Suresh_R:
In reply to chr_sue:
apb_tx.pwrite is simply a read/write signal.
apb_tx.pwrite = 1 //Write
apb_tx.pwrite = 0 //Read
And what are you compairing? You can compare 2 items, but you have only one. Using the compare method of the seq_item you hae to call this on an item like this:
item1.compare(item2);
compares item1 against item2.