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?
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.
This is a thread of my Project and Doc. pdf ect. with pictures for the Machxo2 Hardened Core to the EFB and the i2c Bus ... Beitrag "Probleme bei Lattice I2C EFB mit Wishbone Interface" Greetings Holger.
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.
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.
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
Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
Log in with Google account
No account? Register here.