-
Notifications
You must be signed in to change notification settings - Fork 22
/
cv32e40s_if_c_obi.sv
52 lines (44 loc) · 1.63 KB
/
cv32e40s_if_c_obi.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
/*
Copyright 2020 Silicon Labs, Inc.
This file, and derivatives thereof are licensed under the
Solderpad License, Version 2.0 (the "License");
Use of this file means you agree to the terms and conditions
of the license and are in full compliance with the License.
You may obtain a copy of the License at
https://solderpad.org/licenses/SHL-2.0/
Unless required by applicable law or agreed to in writing, software
and hardware implementations thereof
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESSED OR IMPLIED.
See the License for the specific language governing permissions and
limitations under the License.
*/
// OBI interface definition for instruction and data
// The two parameters set the types for payload
// as these are different for instruction and data
//
// The 'c' in the interface names means 'Compressed'
// since this interface is a subset of the full OBI spec.
interface cv32e40s_if_c_obi import cv32e40s_pkg::*;
#(
parameter type REQ_TYPE = obi_inst_req_t,
parameter type RESP_TYPE = obi_inst_resp_t
);
// A channel signals
obi_req_t s_req;
obi_gnt_t s_gnt;
REQ_TYPE req_payload;
// R channel signals
obi_rvalid_t s_rvalid;
RESP_TYPE resp_payload;
modport master
(
output s_req, req_payload,
input s_gnt, s_rvalid, resp_payload
);
modport monitor
(
input s_req, req_payload,
s_gnt, s_rvalid, resp_payload
);
endinterface : cv32e40s_if_c_obi