cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
MuzamilFarid
Adventurer
Adventurer
344 Views
Registered: ‎04-12-2020

reading from slave register

Jump to solution

Hello everyone

i have small question, I have a custom AXI lite slave peripheral in my design. It has four registers. Is it possible to read these registers directly from XSCT console in SDK by mrd command followed by that register address. Note no AXI transaction has been performed on slave, Is it possible to just read it from xsct console?

0 Kudos
1 Solution

Accepted Solutions
blindobs
Adventurer
Adventurer
321 Views
Registered: ‎09-13-2018

Hi, 

yes ofc it's possible to read through mrd. Doesn't matter if there were any transactions on AXI, you can always halt processors  and read peripherials via JTAG.

You can also use custom procedures in tcl like Xilinxs to parse data:

  proc mask_rd { addr mask } {
    set readval [format 0x%08x [mrd -force -value $addr]]
    set maskread [expr {$readval & $mask}]
    return [format 0x%08x $maskread]
  }

 

View solution in original post

0 Kudos
2 Replies
blindobs
Adventurer
Adventurer
322 Views
Registered: ‎09-13-2018

Hi, 

yes ofc it's possible to read through mrd. Doesn't matter if there were any transactions on AXI, you can always halt processors  and read peripherials via JTAG.

You can also use custom procedures in tcl like Xilinxs to parse data:

  proc mask_rd { addr mask } {
    set readval [format 0x%08x [mrd -force -value $addr]]
    set maskread [expr {$readval & $mask}]
    return [format 0x%08x $maskread]
  }

 

View solution in original post

0 Kudos
MuzamilFarid
Adventurer
Adventurer
280 Views
Registered: ‎04-12-2020

@blindobs 

 

Thanks alot for response

0 Kudos