Quantcast
Channel: UVM Forums RSS Feed
Viewing all articles
Browse latest Browse all 756

how do we sort the UVM_REG space based on address?

$
0
0

Hi there

 

We want to traverse through all registers present in a UVM_REG_BLOCK based on increasing address.

We have the following pseudocode:

 

model.NTB_DB.get_registers(total_regs_ntb);

foreach (total_regs_ntb[i])

begin

  total_regs_btb[i].write(status, wdata, .parent(this));

end

 

But, the above source code does not go through the registers space based on address.

ie., When I have a 2-dimensional array of registers, array indices are chosen first(not addresses).

 

Any help to workaround this problem is appreciated.

 

Best regards

Balasubramanian G


Viewing all articles
Browse latest Browse all 756

Trending Articles