Forum Discussion
6 Replies
- Altera_Forum
Honored Contributor
giok,
It turns out that Avalon and Wishbone are exrtremely similar. Each has some higher level features that the other doesn't, but the ethernet mac did not utilize these. If I remember correctly we had to do some endiantiy conversion - data bus swapping - and dealing with the wishbone 'ack' signal, which converted to avalon waitrequest. The verilog HDL at the top level with Avalon ports on one side and wishbone on the other should illustrate these. - Altera_Forum
Honored Contributor
Hi, Jesse
Can you talk much in detail?? Because now I want to write a bridge between avalon and wishbone to attach my IP to NiosII. But I can't understand the timing of avalon very well. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/wink.gif - Altera_Forum
Honored Contributor
Jesse,
is possible to integrate it using "Create new component" in SOPC ? Thank Giok - Altera_Forum
Honored Contributor
Giok,
I think so, but you may have to do some VHDL or Verilog work first, to get the signals in a state where they will talk to each other. Once your HDL files have avalon-compliant signals, then yes, use the component editor to bring in all files for that IP core, assign the avalon signals & top-level 'export' signals, and you are good to go. Sorry, I cannot give a long explanation of how to hook up every wishbone IP core to Avalon. However, I really do reccomend that anyone interested study the various examples that people have provided -- There is the opencores ethernet MAC, which shows both master and slave ports, and the I2C core, posted in the 'post your own IP' section of this forum. When I worked with the MAC core I documented the verilog where ever a change was required to explain the conversion between wishbone and avalon. I have not studied the I2C peripheral but perhaps it is the same (actually a few years ago I hooked up the i2c core to avalon with -no- exrta logic required.. however they may have changed things since then). Edit: to Giok and wdzwdx -- I just had a look at the 'post your ip' section and the I2C example should illustrate simple avalon master --> wishbone slaves well. There is also the CAN controller which is a bit more complex. - Altera_Forum
Honored Contributor
Thanks Jesse,
I will try to follow your suggestions. Giok - Altera_Forum
Honored Contributor
look at http://www.maco-engineering.de/ (http://www.maco-engineering.de/) - this guy took the opencores code and built a -ready to use- SOPC-builder package with it. Ask him and he mails it to you ...