OpenCores
URL https://opencores.org/ocsvn/apb2spi/apb2spi/trunk

Subversion Repositories apb2spi

[/] [apb2spi/] [trunk/] [tb/] [env/] [spi_agent/] [spi_if.sv] - Rev 17

Go to most recent revision | Compare with Previous | Blame | View Log

interface spi_if;

 logic                         SCLK;
 logic                         MISO;
 logic                         MOSI;
 logic                         SS;

 // SPI INTERFACE
 //if Master/Slave Mode
/*modport master_slave_mode(
 inout                         SCLK,
 inout                         MISO,
 inout                         MOSI,
 output                        SS
);*/

 //if only Master Mode
modport master_mode(
 output                        SCLK,
 input                         MISO,
 output                        MOSI,
 output                        SS
);

 //if only Slave Mode
modport slave_mode(
 input                         SCLK,
 output                        MISO,
 input                         MOSI,
 input                         SS
);
 
endinterface

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.