oscc-ip / spi

An APB4-based SPI Controller

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SPI

Features

  • Compatible with Motorola SPI standard
  • Half duplex serial data transmission
  • SPI master mode only
  • Standard, dual and quad SPI mode support
  • Max 4 slave device select
  • Programmable prescaler
    • max division factor is up to 2^16
  • MSB or LSB bit transmission order
  • Hardware or Software NSS configuration
  • 8, 16, 24 or 32 bits data transmission size
  • 1~65536 transmission length with hardware NSS
  • All CPOL and CPHA mode support
  • Programmable dummay and delay cycles configuration
  • Independent send and receive FIFO
    • 16~64 data depth
    • empty or no-emtpy status flag
  • Maskable send or receive interrupt and programmable threshold
  • Static synchronous design
  • Full synthesizable

Build and Test

make comp    # compile code with vcs
make run     # compile and run test with vcs
make wave    # open fsdb format waveform with verdi

About

An APB4-based SPI Controller

License:Mulan Permissive Software License, Version 2


Languages

Language:SystemVerilog 99.0%Language:Makefile 1.0%