i2c-core from opencores.org


M

Manfred Balik

I'm trying to use the i2c-core from opencores.org.
I made a project in Altera Quartus II and added the 3 files.
Compiling is no problem, but I have problems with the simulation. I'm doing:
1) reseting the core
2) write clock prescaler (Addr 0 and 1)
3) enable core in control register (10000000 to Addr 2)
4) write data for writing to slave to transmit register (Addr 3)
5) start and write to command register (10010000 to Addr 4)
and nothing happens on the output-lines !!!???
Reading the status register (Addr 4) shows 'Transfer in Progress' every
time!
What i am doing wrong ???
Can someone help ?
Thanks, Manfred
 
Ad

Advertisements

M

Martin Thompson

Manfred Balik said:
I'm trying to use the i2c-core from opencores.org.
I made a project in Altera Quartus II and added the 3 files.
Compiling is no problem, but I have problems with the simulation. I'm doing:
1) reseting the core
2) write clock prescaler (Addr 0 and 1)
3) enable core in control register (10000000 to Addr 2)
4) write data for writing to slave to transmit register (Addr 3)
5) start and write to command register (10010000 to Addr 4)
and nothing happens on the output-lines !!!???

Absolutely nothing at all?
Reading the status register (Addr 4) shows 'Transfer in Progress' every
time!
What i am doing wrong ???

Have you wired up the open-drain drivers and a pull-up resistor?

Just my quick thoughts - post more detail for a more detailed answer -
maybe post your testbench code?

Cheers,
Martin
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top