balasubramanian.g@pmcs.com Posted October 10, 2014 Report Posted October 10, 2014 Hi there A register can have different RTL implementation based on access_mode. ie., When a register REG_1 is read in backdoor, actual HDLPATH of the register would point to 'top.abc.dout'. When a register REG_1 is written in backdoor, actual HDLPATH of the register would point to 'top.abc.dout_temp' We want to program different hdlpaths to REG_1 based on access mode (READ or WRITE). Does UVM_REG provide ready-made hookups or methods like add_hdl_path_slice() methods to setup different hdlpaths to READ/WRITE backdoor access? (Inside the DPI based backdoor access itself?) I checked that write_backdoor and read_backdoor methods need to be overwritten to setup different HDLPATHs based on READ/WRITE access modes. But this involves overriding string based DPI backdoor access factory methods. I'm looking for an alternative here, if it really exists. Suggestions to this requirement, very much appreciated. Best regards Balasubramanian G Quote
uwes Posted October 17, 2014 Report Posted October 17, 2014 hi, UVM doesnt have a ready to use infrastructure for this. however i do believe with a few building blocks you can accomplish this. 1. i would write a new backdoor deriving from uvm_reg_backdoor 2. each reg with your setup i would set my new backdoor as the backdoor to use instead of the hdl backdoor (.set_backdoor) 3. i would implement the backdoor so that the backdoor has access to to register being accessed currently and via the reg i would have access to the setup of the hdl_backdoor (the path setup) 4. the the standard hdl-path setup i could then choose the right hdl path for a read or a write operation for instance "RTL2-R" for read and "RTL2-W" for write... i havent coded that and there might be problems along the road but i could see this working. /uwe Quote
balasubramanian.g@pmcs.com Posted November 5, 2014 Author Report Posted November 5, 2014 Hi Uwe Thanks for your reply. Very much appreciated. Let me work on the same and will get back to you with few more questions. Best regards Balasubramanian G Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.