-
Notifications
You must be signed in to change notification settings - Fork 1
/
bridgetop.v
55 lines (51 loc) · 1.19 KB
/
bridgetop.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
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
module bridgetop (
input hclk, hresetn, hwrite, hreadyin,
input [1:0] htrans,
input [31:0] hwdata, haddr, prdata,
output penable, pwrite, hreadyout,
output [31:0] paddr, pwdata, hrdata,
output [2:0] pselx,
output [1:0] hres
);
wire [31:0] haddr1, haddr2, hwdata1, hwdata2;
wire [2:0] temp_selx;
wire valid, hwrite_reg, hwrite_reg1;
ahb_slave_interface k1(
.hclk(hclk),
.hresetn(hresetn),
.hwrite(hwrite),
.hreadyin(hreadyin),
.haddr(haddr),
.hwdata(hwdata),
.prdata(prdata),
.htrans(htrans),
.hrdata(hrdata),
.hres(hres),
.hwrite_reg(hwrite_reg),
.hwrite_reg1(hwrite_reg1),
.valid(valid),
.hwdata1(hwdata1),
.hwdata2(hwdata2),
.haddr1(haddr1),
.haddr2(haddr2),
.temp_selx(temp_selx)
);
APBController k2(
.valid(valid),
.hwrite(hwrite),
.hwrite_reg(hwrite_reg),
.hresetn(hresetn),
.hclk(hclk),
.haddr(haddr),
.hwdata(hwdata),
.haddr1(haddr1),
.haddr2(haddr2),
.temp_selx(temp_selx),
.pwdata(pwdata),
.paddr(paddr),
.pselx(pselx),
.penable(penable),
.pwrite(pwrite),
.hreadyout(hreadyout)
);
endmodule