MACHXO2 - accessing Wishbone EFB i2c from Verilog?

OP #3849050
Rate this post
useful
not useful
I am quite new to FPGA and I'm using MachXO2 and the Lattice MachXO2 
breakout board.

I am trying to get my head around interfacing the the MachXO2's i2c EFB 
using Wishbone.

I've done a bit of searching around on the Lattice website and with 
google, and can find lots of documentation about the EFB registers and 
so on, and even some examples - but they use the Lattice Mico soft 
processor.

I have used IPExpress to generate the ipx file for an I2C "Primary 
User", but I'm not sure how to use it.

I see someone on here has done a very similar thing using VHDL, but I 
would like to use verilog as far as possible.

Can anyone point me to an example of accessing the Wishbone I2C efb from 
verilog, without using the Mico soft processor?
OP #3851655
Rate this post
useful
not useful
Ale wrote:
> Did you try the example in this link ?
>
> http://latticesemi.com/view_document?document_id=45881
>
> It is an example for i2c master and slave, it doesn't use the Mico uP.
> I think that you have problems using a wishbone interface, there are
> some docs about it, I think that I have seen something around opencores.

Thank you, I had not found that project on the lattice website. It is 
helpful.
Guest #3851890
Rate this post
useful
not useful
Kenny Millar wrote:
> Thank you, I had not found that project on the lattice website. It is
> helpful.
Hint:
Google for Lattice IP Catalog, and google for Machxo2 Pico Developer 
Kit.

First i build a state-engine,
for a I2C Master with a (Machxo2-Hardended Core via WBONE-Bus).
Hint:
You can Simulate the I2C-Bus via the ALDEC simulator.
Greetings Holger.
Attached files:
OP #3851896
Rate this post
useful
not useful
Holger wrote:
> Kenny Millar wrote:
>> Thank you, I had not found that project on the lattice website. It is
>> helpful.
> Hint:
> Google for Lattice IP Catalog, and google for Machxo2 Pico Developer
> Kit.
>
> First i build a state-engine,
> for a I2C Master with a (Machxo2-Hardended Core via WBONE-Bus).
> Hint:
> You can Simulate the I2C-Bus via the ALDEC simulator.
> Greetings Holger.

Thank you - this is all very helpful.

-Kenny

Reply

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now