Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20777 Discussions

i2c in sopc builder

Altera_Forum
Honored Contributor II
2,381 Views

Hello all; 

 

I downloaded I2opencores, How do I use? 

How can I add it in SOPC builder? 

 

thank you very much.
0 Kudos
15 Replies
Altera_Forum
Honored Contributor II
1,129 Views

Either copy it to altera\11.1\ip\opencores\ (I've created opencores dir by myself) or copy anywhere and add a new search path in sopc builder.

0 Kudos
Altera_Forum
Honored Contributor II
1,129 Views

Hello, I created a folder inside altera/10.1/ip but is seen by SOPC. Why? 

 

thanks
0 Kudos
Altera_Forum
Honored Contributor II
1,129 Views

Because. 

 

You're welcome. 

 

P.S. Please ask properly and fix Your english.
0 Kudos
Altera_Forum
Honored Contributor II
1,129 Views

heh heh, 

you're right, but my English is from google translator! 

I do not know what the reputation button! I'm new, if you explain it to me, surely I'll use it. 

 

In the meantime, why not work opencores? I copied the entire folder in the path: 

C/altera/10.1/ip/opencores 

 

Thank you, 

Best Regards.
0 Kudos
Altera_Forum
Honored Contributor II
1,129 Views

What's the full path to opencores_i2c_hw.tcl? 

Mine is: c:\altera\11.0\ip\opencores\opencores_i2c\opencores_i2c_hw.tcl
0 Kudos
Altera_Forum
Honored Contributor II
1,129 Views

Hi, 

I did as you said and it worked. 

but now I have these errors: 

 

Error: opencores_i2c_0: opencores_i2c_0.avalon_slave_0 must be connected to an Avalon-MM master 

 

Warning: opencores_i2c: set_interface_property: export_0 Interface (conduit) can not have associatedClock 

 

Warning: opencores_i2c_0: Interrupt opencores_i2c_0.interrupt_sender sender is not connected to an interrupt receiver 

 

how can I fix this? 

thanks a lot.
0 Kudos
Altera_Forum
Honored Contributor II
1,129 Views

Now You need to connect the core to the interconnect. I suggest You reading the SOPC Builder manual and do some example projects. 

 

Check www.alterawiki.com
0 Kudos
Altera_Forum
Honored Contributor II
1,129 Views

Hi, 

I have solved almost all problems. remains just that: 

 

Warning: opencores_i2c: set_interface_property: export_0 Interface (conduit) can not have associatedClock 

 

can you tell me what that means? 

and how do I take? 

 

Once instantiated, the block can be slaves? Or is it just the master? 

 

thanks, thanks and thanks again
0 Kudos
Altera_Forum
Honored Contributor II
1,129 Views

 

--- Quote Start ---  

Hi, 

I have solved almost all problems. remains just that: 

 

Warning: opencores_i2c: set_interface_property: export_0 Interface (conduit) can not have associatedClock 

 

--- Quote End ---  

 

You did not assign clock to the component. 

 

 

 

--- Quote Start ---  

 

Once instantiated, the block can be slaves? Or is it just the master? 

 

--- Quote End ---  

 

 

As far as I remember it is only master.
0 Kudos
Altera_Forum
Honored Contributor II
1,129 Views

 

--- Quote Start ---  

Warning: opencores_i2c: set_interface_property: export_0 Interface (conduit) can not have associatedClock 

--- Quote End ---  

It is a warning coming from a recent SOPC builder on a component that was created with an older version. You can either delete the line defining the associated clock in the tcl file or just ignore the warning.
0 Kudos
Altera_Forum
Honored Contributor II
1,129 Views

first of all thank you, 

how do I get a component i2c slave? 

I downloaded opencores_12c_slave, but there is no tcl.
0 Kudos
Altera_Forum
Honored Contributor II
1,129 Views

Two solutions: 

1) Do Your own component. 

2) Use bitbang method using PIO.
0 Kudos
Altera_Forum
Honored Contributor II
1,129 Views

I have tried to make a component, but it creates a lot of mistakes. 

 

What is BitBang? 

 

Where can I study?
0 Kudos
Altera_Forum
Honored Contributor II
1,129 Views

 

--- Quote Start ---  

I have tried to make a component, but it creates a lot of mistakes. 

 

What is BitBang? 

 

Where can I study? 

--- Quote End ---  

 

Use PIO and bitbang means you use PIO and drive the sda/scl pin up and down by software.
0 Kudos
Altera_Forum
Honored Contributor II
1,129 Views

 

--- Quote Start ---  

I have tried to make a component, but it creates a lot of mistakes. 

 

What is BitBang? 

 

Where can I study? 

--- Quote End ---  

 

 

This is a very good resource for beginners and experienced developers: http://bit.ly/zu7kgq 

 

You should really use it :rolleyes:
0 Kudos
Reply