-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrggen_bus_if.sv
49 lines (45 loc) · 1.01 KB
/
rggen_bus_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
interface rggen_bus_if #(
parameter int ADDRESS_WIDTH = 16,
parameter int BUS_WIDTH = 32,
parameter int STROBE_WIDTH = BUS_WIDTH / 8
);
import rggen_rtl_pkg::*;
logic valid;
rggen_access access;
logic [ADDRESS_WIDTH-1:0] address;
logic [BUS_WIDTH-1:0] write_data;
logic [STROBE_WIDTH-1:0] strobe;
logic ready;
rggen_status status;
logic [BUS_WIDTH-1:0] read_data;
modport master (
output valid,
output access,
output address,
output write_data,
output strobe,
input ready,
input status,
input read_data
);
modport slave (
input valid,
input access,
input address,
input write_data,
input strobe,
output ready,
output status,
output read_data
);
modport monitor (
input valid,
input access,
input address,
input write_data,
input strobe,
input ready,
input status,
input read_data
);
endinterface