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

Subversion Repositories apb2spi

[/] [apb2spi/] [trunk/] [tb/] [env/] [spi_agent/] [spi_if.sv] - Blame information for rev 15

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 15 vlnaran
interface spi_if;
2
 
3
 logic                         SCLK;
4
 logic                         MISO;
5
 logic                         MOSI;
6
 logic                         SS;
7
 
8
 // SPI INTERFACE
9
 //if Master/Slave Mode
10
/*modport master_slave_mode(
11
 inout                         SCLK,
12
 inout                         MISO,
13
 inout                         MOSI,
14
 output                        SS
15
);*/
16
 
17
 //if only Master Mode
18
modport master_mode(
19
 output                        SCLK,
20
 input                         MISO,
21
 output                        MOSI,
22
 output                        SS
23
);
24
 
25
 //if only Slave Mode
26
modport slave_mode(
27
 input                         SCLK,
28
 output                        MISO,
29
 input                         MOSI,
30
 input                         SS
31
);
32
 
33
endinterface

powered by: WebSVN 2.1.0

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