FPGA-I2C-Minion icon indicating copy to clipboard operation
FPGA-I2C-Minion copied to clipboard

respond to multiple address question

Open mhanuel26 opened this issue 2 years ago • 3 comments

Hi,

Just wondering if this slave can respond to different addresses?

Also, have you tried this on any hardware?

Thanks,

mhanuel26 avatar Sep 20 '22 06:09 mhanuel26

To set the slave address use the generic when instantiating:

generic map (
     MINION_ADDR          => "0000011",
     ...

The module was tested on a Spartan3-Board talking to a µC some time ago.

oetr avatar Sep 22 '22 08:09 oetr

Hi @oetr ,

Just to confirm, can I have more than one MINION_ADDR ?

If so, how can I specify different address space for the slaves?

Thanks,

mhanuel26 avatar Sep 22 '22 08:09 mhanuel26

Each slave has its own unique address on the bus. If you want a slave to answer to a range of addresses, you will have to modify the code.

oetr avatar Sep 22 '22 14:09 oetr