Hello Praneeth,
Yes the only way to access the register of IDCODE it is through JTAG. This is for security reasons.
Have a great day,
Jaime
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------