In reply to chr_sue:
apb_tx.pwrite is simply a read/write signal. apb_tx.pwrite = 1 //Write apb_tx.pwrite = 0 //Read