-
Notifications
You must be signed in to change notification settings - Fork 0
/
apb_interface.v
29 lines (25 loc) · 1.02 KB
/
apb_interface.v
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
// Include definitions
`include "definitions.v"
module apb(
// APB MASTER MODULE INPUT SIGNALS - These are inputs either from FSM module or AHB SLAVE module
input [`WIDTH-1:0] Paddr_in,
input Penable_in,
input Pwrite_in,
input [`WIDTH-1:0] Pwdata_in,
input [`SLAVES-1:0] Pselx_in,
input [`WIDTH-1:0] Prdata,
// APB MASTER MODULE OUTPUT SIGNALS - These are DUT outputs
output [`WIDTH-1:0] Paddr,
output Pwrite,
output Penable,
output [`WIDTH-1:0] Pwdata,
output [`SLAVES-1:0] Pselx,
output [`WIDTH-1:0] Prdata_in
);
assign Paddr = Paddr_in;
assign Pwrite = Pwrite_in;
assign Penable = Penable_in;
assign Pwdata = Pwdata_in;
assign Pselx = Pselx_in;
assign Prdata_in = Prdata;
endmodule