Multi-source error

Moderator (Company: Titel)
Javier PA wrote:
> I have two processes, driven by chip-enable signals, that they use this
> inout signal,
That is a very, very ancient coding style...

Maybe the synthesizer cannot resolve the chip-enables in a way that this 
bus can be rolled out to the necessary MUX structure. Where do those 
chip-enables come from? Can you show the relevant code?
OP
I'm going to try to explain that haha. If you don't understand anything 
tell me please because I'm spanish and it's hard to me write what i'm 
thinking exactly.

I'm developing an I2C slave, so I don't show my code because it's too 
big for my error I think. But i tried to do a scheme (attached file).

i'm working with an I2C bus. firstly process1 is an i2c slave, it gets 5 
bytes and ends transmision,  and then ,process2 works with user logic. 
they never work together (I use a state machine). Both proccesses have 
to read and write SDA line and here it is my mystake.
Attached files:
Moderator (Company: Titel)
Javier PA wrote:
> But i tried to do a scheme (attached file).
You cannot do this inside a real FPGA. Only for simulation you can 
"connect" the signals in a testbench top level.
Apart from that technical possibility: it makes no sense to use an I2C 
bus inside an FPGA.

Reply

A question of your own? This thread is over 11 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.