MACHXO2 - accessing Wishbone EFB i2c from Verilog?

OP #3849050
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
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
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
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

A question of your own? This thread is over 12 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.