-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathf_interface.sv
More file actions
37 lines (33 loc) · 827 Bytes
/
Copy pathf_interface.sv
File metadata and controls
37 lines (33 loc) · 827 Bytes
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
interface f_interface(input clk, reset);
bit i_wren;
bit i_rden;
bit [127:0] i_wdata;
bit o_full;
bit o_empty;
bit o_alm_full;
bit o_alm_empty;
bit [127:0] o_rdata;
clocking d_cb @(posedge clk);
default input #1 output #1;
output i_wren;
output i_rden;
output i_wdata;
endclocking
clocking m_cb_in @(posedge clk);
default input #1 output #1;
input i_wren;
input i_rden;
input i_wdata;
endclocking
clocking m_cb_out @(posedge clk);
default input #1 output #1;
input o_full;
input o_empty;
input o_alm_full;
input o_alm_empty;
input o_rdata;
endclocking
modport d_mp (input clk, reset, clocking d_cb);
modport m_mp_in (input clk, reset, clocking m_cb_in);
modport m_mp_out (input clk, reset, clocking m_cb_out);
endinterface