2023-11-07 09:57:13 +08:00
2024-09-18 14:15:41 +08:00
2024-10-13 21:24:24 +08:00
2024-01-09 19:21:31 +08:00
2023-11-07 09:57:13 +08:00
2023-11-07 09:57:13 +08:00
2023-11-07 09:57:13 +08:00
2023-11-07 09:57:13 +08:00
2023-11-07 09:57:13 +08:00
2024-09-18 14:15:41 +08:00
2023-11-07 09:57:13 +08:00

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

FULL vision of datatsheet can be found in datasheet.md.

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
S
Description
An APB4-based SPI Controller
Readme MulanPSL-2.0
322 KiB
0 Stars 1 Watchers 0 Forks
Languages
SystemVerilog 90.9%
C 8.4%
Makefile 0.7%