FPGA Intellectual Property
PCI Express*, Networking and Connectivity, Memory Interfaces, DSP IP, and Video IP
6359 Discussions

Avalon - Wishbone Interface

Altera_Forum
Honored Contributor II
1,629 Views

Well, I get that IP-Module from opencores.org: http://opencores.org/?do=project&who=a_vhdl_can_controller 

 

So far so good. My problem is, that this IP uses a Wishbone Interface and I need an Avalon Interface.  

I tried to do convert it with comb. logic(can_top_vhdl.vhd) but it doesnt work. The old top level entity was can_top.v. Can somebody tell me what I am doing wrong? 

 

PS: I get a warning in the SOPC-Builder: 

"byteenable[4] width must be one eighth of data width(8)" I dont have any glue why I get this warning. I got a Nios II CPU with 32 Bits and my byteenable signal is 4 Bits wide.
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
569 Views

You are better off looking at www.niosforum.com. I believe that there is an avalon version of this core already. If not, there are walk throughs. wishbone and avalon are very similar. 

 

--dalon
0 Kudos
Altera_Forum
Honored Contributor II
569 Views

from your file can_top_vhdl 

 

your data port is 8 bit wide to avalon, so no need for byteenable. 

if you add a 4 bit byteenable then your data port is 32bit wide. 

byteenable[3] is data[31:24] 

byteenable[2] is data[23:16] 

byteenable[1]is data[15:8] 

byteenable[0] is data[7:0] 

 

so you have 2 possabilities 

remove byteenable 

extend data port
0 Kudos
Altera_Forum
Honored Contributor II
569 Views

Well thx, I found some finished core(avalon) on niosforums. 

It also doesnt work without byteenable. I just know now, that the wishbone interface is very bad documented.
0 Kudos
Altera_Forum
Honored Contributor II
569 Views

Hi Walther, 

I also had to connect Altera avalon bus to whisbone! I found this document on Wikipedia (below the link) 

 

http://en.wikipedia.org/wiki/wishbone_(computer_bus) (http://en.wikipedia.org/wiki/wishbone_%28computer_bus%29

 

There is a section named "Comparison", it helped me a lot!
0 Kudos
Altera_Forum
Honored Contributor II
569 Views

Thanks for your help. I found some clue now .

0 Kudos
Reply