-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrggen_apb_if.sv
54 lines (51 loc) · 1.09 KB
/
rggen_apb_if.sv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
interface rggen_apb_if #(
parameter int ADDRESS_WIDTH = 16,
parameter int BUS_WIDTH = 32
);
logic psel;
logic penable;
logic [ADDRESS_WIDTH-1:0] paddr;
logic [2:0] pprot;
logic pwrite;
logic [BUS_WIDTH/8-1:0] pstrb;
logic [BUS_WIDTH-1:0] pwdata;
logic pready;
logic [BUS_WIDTH-1:0] prdata;
logic pslverr;
modport master (
output psel,
output penable,
output paddr,
output pprot,
output pwrite,
output pstrb,
output pwdata,
input pready,
input prdata,
input pslverr
);
modport slave (
input psel,
input penable,
input paddr,
input pprot,
input pwrite,
input pstrb,
input pwdata,
output pready,
output prdata,
output pslverr
);
modport monitor (
input psel,
input penable,
input paddr,
input pprot,
input pwrite,
input pstrb,
input pwdata,
input pready,
input prdata,
input pslverr
);
endinterface