How ammar-bin-amir/spi works
Main Components
• SPI_Master Module – Representing the master device that initiates communication, generates the clock pulses, and drives the MOSI data line.
• SPI_Slave Module – Representing the slave device that receives commands from the master and returns data via the MISO line.
• SPI Top-Level Module (RIF) – Acting as an interface to coordinate the master and slave modules; this may also serve as the register interface for configuration and control.
• Signal Lines – Clearly annotate the four key SPI signals: MOSI, MISO, SCK (clock), and CS (chip select).
Relationships and Interactions
• That the top-level SPI module sits above or integrates both the Master and Slave modules – receiving inputs, managing register configurations, and handling overall coordination.
• How the testbench connects to the top-level module for simulation and verification purposes.
• How data flows during a typical SPI transaction (i.e., 8-bit command, 24-bit address, and 32-bit data), with annotations or notes on each segment of the transaction.