cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Newbie
Newbie
165 Views
Registered: ‎01-16-2020

Reading Logicore JESD204B AXI4-Lite registers with JTAG to AXI IP Core. Reading always the same.

Jump to solution

Hello you all,

I'm trying to read and write the AXI4-Lite Registers. I'm using TCL commands to do that. These are the commands I use to read a register and show results:

 

create_hw_axi_txn read_txn [get_hw_axis hw_axi_1] -type READ -address $bits -len 1 -force
run_hw_axi [get_hw_axi_txns read_txn]
report_hw_axi_txn [get_hw_axi_txns read_txn]

$bits is the binary value of the register, so for example when I read the register 0x000, I've got the following result:

 

INFO: [Labtoolstcl 44-481] READ DATA is: 07020700
0 07020700

This seems fine this register should be the version of the JESD204IP (7.2v) si it seems correct. But my problem is that when I try to read other registers I'm always receiving the same value, if I read the next register (0x004) I will read 00000000, but after that the two values intercalate. So for register (0x008) I read 07020700 again, for register (0x00C) 00000000, then for (0x010) 07020700 again, etc...

What am I missing? I've tried to reset the axi with "reset_hw_axi [get_hw_axis hw_axi_1]" after each read, but It doesn't solve the problem, it also doesn't matter which register I start reading, I always get the 07020700/00000000 intercalate results.

Thank you,

Gerard.

 

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Newbie
Newbie
161 Views
Registered: ‎01-16-2020

Well, I just solved it. For a weird reason I was inputing the register addresses in binary, I've tried to do it with hex and everything works as expected.

View solution in original post

0 Kudos
1 Reply
Highlighted
Newbie
Newbie
162 Views
Registered: ‎01-16-2020

Well, I just solved it. For a weird reason I was inputing the register addresses in binary, I've tried to do it with hex and everything works as expected.

View solution in original post

0 Kudos