-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtry.html
218 lines (213 loc) · 13.5 KB
/
try.html
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>rtl连接图</title>
</head>
<script src="/js/elk.bundled.js"></script>
<script src="/js/svg.min.js"></script>
<script src="/js/hdelk.js"></script>
<h4>选择你想看的图像</h4>
<a href="#Toplevel_Simple"><button>Toplevel_Simple</button></a>
<a href="#Toplevel_All"><button>Toplevel_All</button></a>
<a href="#din_decoder"><button>din_decoder</button></a>
<a href="#apb3Router_1"><button>apb3Router_1</button></a>
<br><br><br><br><div id="Toplevel_Simple"></div>
<h3>Toplevel_Simple</h3><br><br>
<script type="text/javascript">
var mygraph = {
children:[
{id:"toplevel",
inPorts: ["input1","input2",],
outPorts: ["output1","output2",],
children: [
{id:"apb3Router_1",
inPorts: ["datain2","datain1",],
outPorts: ["dataout1","dataout2",],
},
{id:"din_decoder",
inPorts: ["datain2","datain1",],
outPorts: ["dataout1","dataout2",],
},
],
edges:[
{ source:"apb3Router_1.dataout1", target:"din_decoder.datain2",bus: 1 },
{ source:"toplevel.input1", target:"din_decoder.datain1",bus: 1 },
{ source:"toplevel.input2", target:"apb3Router_1.datain1",bus: 1 },
{ source:"apb3Router_1.dataout2", target:"toplevel.output2",bus: 1 },
{ source:"din_decoder.dataout1", target:"toplevel.output1",bus: 1 },
{ source:"din_decoder.dataout2", target:"apb3Router_1.datain2",bus: 1 },
]
},
],
}
hdelk.layout( mygraph, "Toplevel_Simple" );
</script><div id="Toplevel_All"></div>
<h3>Toplevel_All</h3><br><br>
<script type="text/javascript">
var mygraph = {
children:[
{id:"toplevel",
inPorts: ["do3_PREADY","do3_PRDATA","din_PSEL","do4_PSLVERROR","do4_PREADY","do1_PSLVERROR","do4_PRDATA","do1_PREADY","din_PWRITE","do2_PSLVERROR","clk","reset","din_PWDATA","do1_PRDATA","din_PENABLE","do2_PREADY","din_PADDR","do2_PRDATA","do3_PSLVERROR",],
outPorts: ["do1_PWDATA","do1_PSEL","do2_PWRITE","do3_PADDR","do2_PENABLE","do1_PADDR","din_PREADY","do2_PWDATA","do4_PENABLE","do3_PWRITE","din_PRDATA","do4_PADDR","do4_PWRITE","do1_PENABLE","din_PSLVERROR","do3_PWDATA","do4_PSEL","do3_PSEL","do2_PADDR","do1_PWRITE","do3_PENABLE","do4_PWDATA","do2_PSEL",],
children: [
{id:"din_decoder",
inPorts: ["io_input_PENABLE","io_input_PADDR","io_input_PWDATA","io_input_PSEL","io_output_PREADY","io_input_PWRITE","io_output_PSLVERROR","io_output_PRDATA",],
outPorts: ["io_output_PSEL","io_output_PADDR","io_input_PREADY","io_output_PWRITE","io_input_PRDATA","io_input_PSLVERROR","io_output_PENABLE","io_output_PWDATA",],
},
{id:"apb3Router_1",
inPorts: ["io_input_PENABLE","io_outputs_2_PSLVERROR","io_input_PADDR","io_input_PSEL","io_outputs_3_PRDATA","io_outputs_0_PREADY","io_outputs_3_PSLVERROR","io_input_PWRITE","io_outputs_0_PRDATA","io_outputs_0_PSLVERROR","io_outputs_1_PREADY","io_input_PWDATA","io_outputs_1_PSLVERROR","io_outputs_1_PRDATA","clk","reset","io_outputs_2_PREADY","io_outputs_2_PRDATA","io_outputs_3_PREADY",],
outPorts: ["io_outputs_1_PWDATA","io_input_PREADY","io_input_PRDATA","io_outputs_2_PENABLE","io_outputs_0_PENABLE","io_outputs_3_PADDR","io_outputs_3_PWRITE","io_outputs_1_PADDR","io_outputs_2_PWDATA","io_outputs_3_PWDATA","io_outputs_0_PWRITE","io_outputs_2_PADDR","io_input_PSLVERROR","io_outputs_0_PWDATA","io_outputs_3_PENABLE","io_outputs_3_PSEL","io_outputs_0_PADDR","io_outputs_1_PENABLE","io_outputs_1_PWRITE","io_outputs_2_PSEL","io_outputs_1_PSEL","io_outputs_0_PSEL","io_outputs_2_PWRITE",],
},
],
edges:[
{ source:"toplevel.din_PADDR", target:"din_decoder.io_input_PADDR" },
{ source:"din_decoder.io_output_PWDATA", target:"apb3Router_1.io_input_PWDATA" },
{ source:"apb3Router_1.io_input_PRDATA", target:"din_decoder.io_output_PRDATA" },
{ source:"din_decoder.io_input_PRDATA", target:"toplevel.din_PRDATA" },
{ source:"toplevel.do1_PSLVERROR", target:"apb3Router_1.io_outputs_0_PSLVERROR" },
{ source:"toplevel.do2_PREADY", target:"apb3Router_1.io_outputs_1_PREADY" },
{ source:"toplevel.do4_PRDATA", target:"apb3Router_1.io_outputs_3_PRDATA" },
{ source:"toplevel.clk", target:"apb3Router_1.clk" },
{ source:"apb3Router_1.io_outputs_1_PSEL", target:"toplevel.do2_PSEL" },
{ source:"apb3Router_1.io_outputs_3_PENABLE", target:"toplevel.do4_PENABLE" },
{ source:"toplevel.do3_PRDATA", target:"apb3Router_1.io_outputs_2_PRDATA" },
{ source:"toplevel.do1_PREADY", target:"apb3Router_1.io_outputs_0_PREADY" },
{ source:"apb3Router_1.io_outputs_0_PWDATA", target:"toplevel.do1_PWDATA" },
{ source:"din_decoder.io_output_PADDR", target:"apb3Router_1.io_input_PADDR" },
{ source:"apb3Router_1.io_outputs_1_PWRITE", target:"toplevel.do2_PWRITE" },
{ source:"din_decoder.io_input_PREADY", target:"toplevel.din_PREADY" },
{ source:"apb3Router_1.io_outputs_3_PWRITE", target:"toplevel.do4_PWRITE" },
{ source:"apb3Router_1.io_outputs_2_PWDATA", target:"toplevel.do3_PWDATA" },
{ source:"apb3Router_1.io_outputs_0_PENABLE", target:"toplevel.do1_PENABLE" },
{ source:"toplevel.din_PWRITE", target:"din_decoder.io_input_PWRITE" },
{ source:"toplevel.do3_PSLVERROR", target:"apb3Router_1.io_outputs_2_PSLVERROR" },
{ source:"toplevel.do4_PREADY", target:"apb3Router_1.io_outputs_3_PREADY" },
{ source:"din_decoder.io_input_PSLVERROR", target:"toplevel.din_PSLVERROR" },
{ source:"toplevel.do1_PRDATA", target:"apb3Router_1.io_outputs_0_PRDATA" },
{ source:"toplevel.do4_PSLVERROR", target:"apb3Router_1.io_outputs_3_PSLVERROR" },
{ source:"apb3Router_1.io_outputs_0_PADDR", target:"toplevel.do1_PADDR" },
{ source:"apb3Router_1.io_outputs_1_PWDATA", target:"toplevel.do2_PWDATA" },
{ source:"toplevel.do3_PREADY", target:"apb3Router_1.io_outputs_2_PREADY" },
{ source:"apb3Router_1.io_input_PREADY", target:"din_decoder.io_output_PREADY" },
{ source:"toplevel.din_PWDATA", target:"din_decoder.io_input_PWDATA" },
{ source:"apb3Router_1.io_outputs_2_PADDR", target:"toplevel.do3_PADDR" },
{ source:"toplevel.reset", target:"apb3Router_1.reset" },
{ source:"apb3Router_1.io_outputs_2_PENABLE", target:"toplevel.do3_PENABLE" },
{ source:"din_decoder.io_output_PSEL", target:"apb3Router_1.io_input_PSEL" },
{ source:"apb3Router_1.io_outputs_2_PWRITE", target:"toplevel.do3_PWRITE" },
{ source:"apb3Router_1.io_outputs_0_PWRITE", target:"toplevel.do1_PWRITE" },
{ source:"apb3Router_1.io_outputs_0_PSEL", target:"toplevel.do1_PSEL" },
{ source:"toplevel.do2_PRDATA", target:"apb3Router_1.io_outputs_1_PRDATA" },
{ source:"apb3Router_1.io_outputs_1_PADDR", target:"toplevel.do2_PADDR" },
{ source:"apb3Router_1.io_outputs_2_PSEL", target:"toplevel.do3_PSEL" },
{ source:"toplevel.din_PSEL", target:"din_decoder.io_input_PSEL" },
{ source:"din_decoder.io_output_PWRITE", target:"apb3Router_1.io_input_PWRITE" },
{ source:"apb3Router_1.io_outputs_3_PWDATA", target:"toplevel.do4_PWDATA" },
{ source:"apb3Router_1.io_outputs_3_PADDR", target:"toplevel.do4_PADDR" },
{ source:"din_decoder.io_output_PENABLE", target:"apb3Router_1.io_input_PENABLE" },
{ source:"toplevel.do2_PSLVERROR", target:"apb3Router_1.io_outputs_1_PSLVERROR" },
{ source:"apb3Router_1.io_outputs_1_PENABLE", target:"toplevel.do2_PENABLE" },
{ source:"apb3Router_1.io_outputs_3_PSEL", target:"toplevel.do4_PSEL" },
{ source:"toplevel.din_PENABLE", target:"din_decoder.io_input_PENABLE" },
{ source:"apb3Router_1.io_input_PSLVERROR", target:"din_decoder.io_output_PSLVERROR" },
]
},
],
}
hdelk.layout( mygraph, "Toplevel_All" );
</script><div id="din_decoder"></div>
<h3>din_decoder</h3><br><br>
<script type="text/javascript">
var mygraph = {
children:[
{id:"din_decoder",
inPorts: ["io_input_PENABLE","io_input_PADDR","io_input_PWDATA","io_input_PSEL","io_output_PREADY","io_input_PWRITE","io_output_PSLVERROR","io_output_PRDATA",],
outPorts: ["io_output_PSEL","io_output_PADDR","io_input_PREADY","io_output_PWRITE","io_input_PRDATA","io_input_PSLVERROR","io_output_PENABLE","io_output_PWDATA",],
children: [
{id:"when_Apb3Decoder_l88"},
],
edges:[
{ source:"din_decoder.io_input_PADDR", target:"din_decoder.io_output_PSEL",bus: 0 },
{ source:"din_decoder.io_input_PENABLE", target:"din_decoder.io_output_PENABLE",bus: 0 },
{ source:"din_decoder.io_input_PWDATA", target:"din_decoder.io_output_PWDATA",bus: 0 },
{ source:"din_decoder.io_input_PADDR", target:"din_decoder.io_output_PADDR",bus: 0 },
{ source:"din_decoder.io_input_PWRITE", target:"din_decoder.io_output_PWRITE",bus: 0 },
{ source:"din_decoder.io_output_PSEL", target:"when_Apb3Decoder_l88",bus: 0 },
{ source:"when_Apb3Decoder_l88", target:"din_decoder.io_input_PSLVERROR",bus: 0 },
{ source:"din_decoder.io_input_PSEL", target:"din_decoder.io_output_PSEL",bus: 0 },
{ source:"din_decoder.io_input_PSEL", target:"when_Apb3Decoder_l88",bus: 0 },
{ source:"din_decoder.io_output_PRDATA", target:"din_decoder.io_input_PRDATA",bus: 0 },
{ source:"din_decoder.io_output_PSLVERROR", target:"din_decoder.io_input_PSLVERROR",bus: 0 },
{ source:"when_Apb3Decoder_l88", target:"din_decoder.io_input_PREADY",bus: 0 },
{ source:"din_decoder.io_output_PREADY", target:"din_decoder.io_input_PREADY",bus: 0 },
]
}
],
}
hdelk.layout( mygraph, "din_decoder" );
</script>
<div id="apb3Router_1"></div>
<h3>apb3Router_1</h3><br><br>
<script type="text/javascript">
var mygraph = {
children:[
{id:"apb3Router_1",
inPorts: ["io_input_PENABLE","io_outputs_2_PSLVERROR","io_input_PADDR","io_input_PSEL","io_outputs_3_PRDATA","io_outputs_0_PREADY","io_outputs_3_PSLVERROR","io_input_PWRITE","io_outputs_0_PRDATA","io_outputs_0_PSLVERROR","io_outputs_1_PREADY","io_input_PWDATA","io_outputs_1_PSLVERROR","io_outputs_1_PRDATA","clk","reset","io_outputs_2_PREADY","io_outputs_2_PRDATA","io_outputs_3_PREADY",],
outPorts: ["io_outputs_1_PWDATA","io_input_PREADY","io_input_PRDATA","io_outputs_2_PENABLE","io_outputs_0_PENABLE","io_outputs_3_PADDR","io_outputs_3_PWRITE","io_outputs_1_PADDR","io_outputs_2_PWDATA","io_outputs_3_PWDATA","io_outputs_0_PWRITE","io_outputs_2_PADDR","io_input_PSLVERROR","io_outputs_0_PWDATA","io_outputs_3_PENABLE","io_outputs_3_PSEL","io_outputs_0_PADDR","io_outputs_1_PENABLE","io_outputs_1_PWRITE","io_outputs_2_PSEL","io_outputs_1_PSEL","io_outputs_0_PSEL","io_outputs_2_PWRITE",],
children: [
{id:"_zz_selIndex_1"},
{id:"_zz_selIndex"},
{id:"_zz_selIndex_2"},
{id:"selIndex"},
],
edges:[
{ source:"apb3Router_1.io_outputs_3_PRDATA", target:"apb3Router_1.io_input_PRDATA",bus: 0 },
{ source:"apb3Router_1.io_input_PENABLE", target:"apb3Router_1.io_outputs_3_PENABLE",bus: 0 },
{ source:"apb3Router_1.io_outputs_2_PRDATA", target:"apb3Router_1.io_input_PRDATA",bus: 0 },
{ source:"apb3Router_1.io_input_PADDR", target:"apb3Router_1.io_outputs_2_PADDR",bus: 0 },
{ source:"apb3Router_1.io_outputs_0_PSLVERROR", target:"apb3Router_1.io_input_PSLVERROR",bus: 0 },
{ source:"apb3Router_1.io_outputs_1_PRDATA", target:"apb3Router_1.io_input_PRDATA",bus: 0 },
{ source:"apb3Router_1.io_input_PWRITE", target:"apb3Router_1.io_outputs_2_PWRITE",bus: 0 },
{ source:"apb3Router_1.io_input_PSEL", target:"apb3Router_1.io_outputs_0_PSEL",bus: 0 },
{ source:"selIndex", target:"apb3Router_1.io_input_PREADY",bus: 0 },
{ source:"apb3Router_1.io_input_PSEL", target:"_zz_selIndex_1",bus: 0 },
{ source:"apb3Router_1.io_input_PADDR", target:"apb3Router_1.io_outputs_0_PADDR",bus: 0 },
{ source:"apb3Router_1.io_input_PSEL", target:"_zz_selIndex",bus: 0 },
{ source:"apb3Router_1.io_input_PSEL", target:"apb3Router_1.io_outputs_2_PSEL",bus: 0 },
{ source:"apb3Router_1.io_outputs_1_PSLVERROR", target:"apb3Router_1.io_input_PSLVERROR",bus: 0 },
{ source:"apb3Router_1.io_outputs_3_PSLVERROR", target:"apb3Router_1.io_input_PSLVERROR",bus: 0 },
{ source:"apb3Router_1.io_input_PENABLE", target:"apb3Router_1.io_outputs_0_PENABLE",bus: 0 },
{ source:"apb3Router_1.io_outputs_2_PSLVERROR", target:"apb3Router_1.io_input_PSLVERROR",bus: 0 },
{ source:"apb3Router_1.io_input_PWDATA", target:"apb3Router_1.io_outputs_3_PWDATA",bus: 0 },
{ source:"apb3Router_1.io_outputs_0_PREADY", target:"apb3Router_1.io_input_PREADY",bus: 0 },
{ source:"apb3Router_1.io_outputs_3_PREADY", target:"apb3Router_1.io_input_PREADY",bus: 0 },
{ source:"apb3Router_1.io_input_PWRITE", target:"apb3Router_1.io_outputs_3_PWRITE",bus: 0 },
{ source:"apb3Router_1.io_input_PADDR", target:"apb3Router_1.io_outputs_3_PADDR",bus: 0 },
{ source:"apb3Router_1.io_input_PSEL", target:"apb3Router_1.io_outputs_1_PSEL",bus: 0 },
{ source:"apb3Router_1.io_input_PENABLE", target:"apb3Router_1.io_outputs_2_PENABLE",bus: 0 },
{ source:"apb3Router_1.io_input_PWRITE", target:"apb3Router_1.io_outputs_1_PWRITE",bus: 0 },
{ source:"apb3Router_1.io_input_PSEL", target:"_zz_selIndex_2",bus: 0 },
{ source:"apb3Router_1.io_input_PWDATA", target:"apb3Router_1.io_outputs_2_PWDATA",bus: 0 },
{ source:"_zz_selIndex_1", target:"selIndex",bus: 0 },
{ source:"_zz_selIndex_2", target:"selIndex",bus: 0 },
{ source:"selIndex", target:"apb3Router_1.io_input_PSLVERROR",bus: 0 },
{ source:"apb3Router_1.io_input_PADDR", target:"apb3Router_1.io_outputs_1_PADDR",bus: 0 },
{ source:"apb3Router_1.io_input_PENABLE", target:"apb3Router_1.io_outputs_1_PENABLE",bus: 0 },
{ source:"apb3Router_1.io_input_PWDATA", target:"apb3Router_1.io_outputs_0_PWDATA",bus: 0 },
{ source:"selIndex", target:"apb3Router_1.io_input_PRDATA",bus: 0 },
{ source:"apb3Router_1.io_input_PSEL", target:"apb3Router_1.io_outputs_3_PSEL",bus: 0 },
{ source:"apb3Router_1.io_input_PWRITE", target:"apb3Router_1.io_outputs_0_PWRITE",bus: 0 },
{ source:"apb3Router_1.io_input_PWDATA", target:"apb3Router_1.io_outputs_1_PWDATA",bus: 0 },
{ source:"apb3Router_1.io_outputs_0_PRDATA", target:"apb3Router_1.io_input_PRDATA",bus: 0 },
{ source:"_zz_selIndex", target:"_zz_selIndex_2",bus: 0 },
{ source:"_zz_selIndex", target:"_zz_selIndex_1",bus: 0 },
{ source:"apb3Router_1.io_outputs_1_PREADY", target:"apb3Router_1.io_input_PREADY",bus: 0 },
{ source:"apb3Router_1.io_outputs_2_PREADY", target:"apb3Router_1.io_input_PREADY",bus: 0 },
]
}
],
}
hdelk.layout( mygraph, "apb3Router_1" );
</script>
</html>