Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

Looking SPI master/slave in verilog sample

Hi there,

Does anybody has a very simple sample of SPI protocol in simulation about master/slave in verilog? Looking for sample how to connect SPI master to SPI slave and verify in modelsim.

Best regards,

Sean

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Hi there,

    Does anybody has a very simple sample of SPI protocol in simulation about master/slave in verilog? Looking for sample how to connect SPI master to SPI slave and verify in modelsim.

    Best regards,

    Sean

    --- Quote End ---

    I'll second the link below for building an SPI slave in Verilog. It's really well written and works quite well. Our SPI implementation is built on top of it with a bit of extra stuff added to deal with crosstalk we are seeing on the SPI bus.

    Mark
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thanks.

    I'm looking for a complete SPI master/slave verilog code.... A very simple one. I already looked at opencores.org couple of samples... it works, but it seems to complex design.