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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
module smp_ctrl
(
input logic clk,
rst_n,
input logic avl_read,
avl_write,
input logic[31:0] avl_writedata,
output logic[31:0] avl_readdata,
input logic cpu_halted_0,
cpu_halted_1,
cpu_halted_2,
cpu_halted_3,
input logic breakpoint_0,
breakpoint_1,
breakpoint_2,
breakpoint_3,
output logic halt_0,
halt_1,
halt_2,
halt_3,
step_0,
step_1,
step_2,
step_3
);
logic write;
logic[7:0] readdata_3, readdata_2, readdata_1, readdata_0,
writedata_3, writedata_2, writedata_1, writedata_0;
assign avl_readdata = {readdata_3, readdata_2, readdata_1, readdata_0};
assign {writedata_3, writedata_2, writedata_1, writedata_0} = avl_writedata;
// No hay addresses
assign write = avl_write;
smp_pe #(.IS_BSP(1)) pe_0
(
.step(step_0),
.halt(halt_0),
.cpu_halted(cpu_halted_0),
.breakpoint(breakpoint_0),
.readdata(readdata_0),
.writedata(writedata_0),
.*
);
smp_pe pe_1
(
.step(step_1),
.halt(halt_1),
.cpu_halted(cpu_halted_1),
.breakpoint(breakpoint_1),
.readdata(readdata_1),
.writedata(writedata_1),
.*
);
smp_pe pe_2
(
.step(step_2),
.halt(halt_2),
.cpu_halted(cpu_halted_2),
.breakpoint(breakpoint_2),
.readdata(readdata_2),
.writedata(writedata_2),
.*
);
smp_pe pe_3
(
.step(step_3),
.halt(halt_3),
.cpu_halted(cpu_halted_3),
.breakpoint(breakpoint_3),
.readdata(readdata_3),
.writedata(writedata_3),
.*
);
endmodule
|