-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdma_apb_config_if.sv
59 lines (57 loc) · 1.16 KB
/
dma_apb_config_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
55
56
57
58
59
`ifndef DMA_APB_CONFIG_IF_SV
`define DMA_APB_CONFIG_IF_SV
interface dma_apb_config_if(input clk, input rst);
bit scan_en;
bit idle;
bit INT;
bit [31:1] periph_tx_req;
bit [31:1] periph_tx_clr;
bit [31:1] periph_rx_req;
bit [31:1] periph_rx_clr;
bit pclken;
bit psel;
bit penable;
bit [12:0] paddr;
bit pwrite;
bit [31:0] pwdata;
bit [31:0] prdata;
bit pslverr;
bit pready;
clocking config_cb @(posedge clk);
input scan_en;
output idle;
output INT;
input periph_tx_req;
output periph_tx_clr;
input periph_rx_req;
output periph_rx_clr;
input pclken;
input psel;
input penable;
input paddr;
input pwrite;
input pwdata;
output prdata;
output pslverr;
output pready;
endclocking
clocking monitor @(posedge clk);
input scan_en;
input idle;
input INT;
input periph_tx_req;
input periph_tx_clr;
input periph_rx_req;
input periph_rx_clr;
input pclken;
input psel;
input penable;
input paddr;
input pwrite;
input pwdata;
input prdata;
input pslverr;
input pready;
endclocking
endinterface : dma_apb_config_if
`endif