UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Newbie fumikon
Newbie
5,873 Views
Registered: ‎09-28-2015

Writing data to slv_regs (AXI) from PL

Jump to solution

I have a custom AXI peripheral, and accessing AXI registers (slv_regX) through software can be as easy as reading/writing memory addresses, no problems here.

 

Reading them from PL is also a direct operation (myport <= slv_reg0 for example), but... what about writing data to them? Doing something like "slv_reg0 <= myport" seems totally inadequate, and, in fact, triggers a lot of critical warning because of multi-driven  nets. So, what I'm asking is... what is the proper way to write data to these registers?

 

Thanks

0 Kudos
1 Solution

Accepted Solutions
Visitor wittlage
Visitor
11,426 Views
Registered: ‎02-27-2009

Re: Writing data to slv_regs (AXI) from PL

Jump to solution

Some ideas:

 

1.

You could make some of the registers read-only for the AXI interface by editing the process that is writing to the slv_regX signals.

 

2.

If you really need write access from PL and from the AXI interface, you will need some logic to resolve concurrent accesses from PL and AXI. You could add set_signalX and reset_signalX ports to the user ports section.

0 Kudos
2 Replies
Visitor wittlage
Visitor
11,427 Views
Registered: ‎02-27-2009

Re: Writing data to slv_regs (AXI) from PL

Jump to solution

Some ideas:

 

1.

You could make some of the registers read-only for the AXI interface by editing the process that is writing to the slv_regX signals.

 

2.

If you really need write access from PL and from the AXI interface, you will need some logic to resolve concurrent accesses from PL and AXI. You could add set_signalX and reset_signalX ports to the user ports section.

0 Kudos
Newbie fumikon
Newbie
5,849 Views
Registered: ‎09-28-2015

Re: Writing data to slv_regs (AXI) from PL

Jump to solution
The first idea is simple and effective.

Thanks a lot.
0 Kudos