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

Opencore CAN 2.0 Avalon Interface

Altera_Forum
Honored Contributor II
1,081 Views

Hi, 

 

Please I intend to add a custom component (opencore CAN 2.0B) but I am concerned with the type of Avalon Bus I should use for that: 

Avalon Memory Mapped Interface (Avalon-MM) 

or 

Avalon Memory Mapped Tristate Interface 

 

I would appreciated any advices. 

 

Regards,
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
424 Views

You can do either. 

The CAN component available on OpenCores website, can be configured for Wishbone bus or standard 8051 bus interface. 

Wishbone can be easily connected to Avalon MM with minimal glue logic. Same for 8051 bus to tristate bus.
0 Kudos
Altera_Forum
Honored Contributor II
424 Views

Ok Chris, 

 

I have seen what you means within the file can.defines: 

// Uncomment following line if you want to use WISHBONE interface. Otherwise // 8051 interface is used. // `define CAN_WISHBONE_IF  

 

As I intended to use Wishbone Interface:So I just have to use the Memory Mapped Slave Interface and the same Glue Logic formel as mentioned on the wiki site. 

Am I wrong? 

 

Regards,
0 Kudos
Altera_Forum
Honored Contributor II
424 Views

You are right. 

You must accomplish two steps : 

- write a simple wrapper code to convert Wishbone to Avalon 

- create the sopc builder component
0 Kudos
Altera_Forum
Honored Contributor II
424 Views

Please any design guideline to test my CAN interface(CPU+RAM+.......)? 

 

http://www.alteraforum.com/forum/L:\Internship\FPGA_Cyclone IV\Implementation\CAN\can_controller.png
0 Kudos
Reply