Livt packages

Livt.IO

Version 1.8.1

Memory, UART, I2C, SPI, and Ethernet input/output components for Livt hardware designs.

Published files (126)

src/spi/SPIBus.lvt

namespace Livt.IO

/**
 * Push-pull, single-data-lane SPI bus contract.
 *
 * The bus provider exposes MISO to the controller and accepts SCLK, MOSI, and
 * the active-low chip-select signal from the controller. At controller reset,
 * providers observe SCLK low, MOSI low, and chip select high.
 */
interface SPIBus
{
	// Controller-driven clock, data, and active-low device selection.
	sclk: in logic
	mosi: in logic
	chip_select_n: in logic

	// Peripheral data sampled by the controller.
	miso: out logic
}