In reply to chr_sue:
Thanks for the response .
Yes. I understand what you are saying but what I actually want is to check if the protocol is working via reg_transactions. The “base_test.sv” runs multiple register transactions.
Problem I have : All the reg transactions are sent on the MOSI lines and for each transaction that is sent on the MOSI lines, I want to read data on the MISO lines and send it back to the “base_test.sv” which I dont know how. I made the changes in driver to get the data back till bus2reg in adapter but not back to test. As mentioned earlier I get the data back in the next cycle/frame [ If Cycle 1 is READ, then I get data back in Cycle2]. The test has access to only the RAL API calls like .read, .write, .peek etc…
I can use the virtual spi interface handle to get access but I am not sure if its the right way.
Lets take for Example the following sequence :-
MOSI LINES =========== Wrt[0xA] || Rd || Write[0xB] || Read || Write[0xC]
MISO LINES =========== garbage || garbage || rd_data=0xA|| garbage || rd_data=0xB
I will be missing the check on “rd_data=0xA” since data is not returned back to base_test.sv.
Is there any alternative to this or a better way to test the same?
Any kind of help is much appreciated.
Regards
Nirliptha