Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20704 Discussions

Cyclone V SOC: access HPS CAN controller from NIOS in FPGA

Astrolad
Beginner
836 Views

I'm trying to access CAN0 in a Cyclone V SOC from a NIOS in the FPGA. I've added an address extender to the NIOS data bus, and an Avalon-MM Pipeline Bridge between the extender master port and the HPS f2h_axi_slave. My problem is that no combination of parameters

I've tried for the the extender and the bridge work. Platform Designer rejects the values that make the most sense to me. What it accept does not work.

 

The description of the extender in Platfor Designer System Design Components does not help (some of the text is just wrong). The online video for the extender is an incomprehensible rehash of the document.

 

Does anyone have an idea how to get this to work?

 

0 Kudos
3 Replies
Ahmed_H_Intel1
Employee
709 Views

Hi,

Can you show me any error message you are facing? and How you knew that the bridge is working fine can you please elaborate more?

Regards,

 

0 Kudos
Astrolad
Beginner
709 Views

I found a solution. I don't have time to explain fully. The key is setting the appropriate bit(s) in the l4sp register (part of the l3regs group) that allow the f2h_axi_bridge access to the desired HPS device(s), such as CAN0. I cannot see any way to have Platform Designer/Quartus set the l4sp register as part preloader or FPGA image. The ARM processor has to do it (in Linux open /dev/mem and use mmap() to write the register).

 

0 Kudos
Ahmed_H_Intel1
Employee
709 Views

Thanks, Larry for these clarifications.

 

0 Kudos
Reply