forked from wavedrom/wavedrom.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
impress.html
187 lines (163 loc) · 5.21 KB
/
impress.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=1024" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>WaveDrom inside impress.js</title>
<meta name="description" content="WaveDrom + impress.js" />
<meta name="author" content="alex.drom" />
<link href="http://fonts.googleapis.com/css?family=Open+Sans:regular,semibold,italic,italicsemibold|PT+Sans:400,700,400italic,700italic|PT+Serif:400,700,400italic,700italic" rel="stylesheet" />
<link href="impress/impress.css" rel="stylesheet" />
<!--link rel="shortcut icon" href="favicon.png" /-->
<link rel="apple-touch-icon" href="apple-touch-icon.png" />
<script type="text/javascript" src="skins/default.js"></script>
<script type="text/javascript" src="wavedrom.min.js"></script>
</head>
<body class="impress-not-supported" onload="WaveDrom.ProcessAll()">
<div class="fallback-message">
<p>Your browser <b>doesn't support the features required</b> by impress.js, so you are presented with a simplified version of this presentation.</p>
<p>For the best experience please use the latest <b>Chrome</b>, <b>Safari</b> or <b>Firefox</b> browser.</p>
</div>
<div id="impress">
<div id="s1" class="step slide" data-x="0" data-rotate-y="-180">
<q>WaveDrom timing diagrams</q>
inside your impress.js presentation
</div>
<div id="s2" class="step slide" data-x="-1000" data-rotate-y="-90">
<q>WaveDrom</q>
Digital timing diagram rendering engine.
<q>impress.js</q>
A presentation tool.
<q>Why not to use them together?</q>
Both tools use JavaScript + HTML5 + CSS3
</div>
<div id="s3a" class="step slide" data-x="0">
<h1>Timing diagram</h1>
<br>
<script type="WaveDrom">
{ signal: [
{ name: 'clk', wave: 'P....' },
[ 'Address',
{ name: 'a_val →', wave: 'x4x..', data: ['A1'] },
{ name: 'a_req →', wave: '010..' },
{ name: 'a_ack ←', wave: 'x1x..' },
],
{},
{},
{},
{},
]
}
</script>
It all begins with the simple address phase
</div>
<div id="s3b" class="step slide" data-x="0">
<h1>Timing diagram</h1>
<br>
<script type="WaveDrom">
{ signal: [
{ name: 'clk', wave: 'P....' },
[ 'Address',
{ name: 'a_val →', wave: 'x4.x.', data: ['A1'] },
{ name: 'a_req →', wave: '01.0.', node: '...C' },
{ name: 'a_ack ←', wave: 'x01x.', node: '.AB.' },
],
{},
{},
{},
{},
], edge: ['A->B delay', 'B~>C']
}
</script>
The <i>Target</i> can delay the address phase using `a_ack` signal for several cycles
</div>
<div id="s3c" class="step slide" data-x="0">
<h1>Timing diagram</h1>
<br>
<script type="WaveDrom">
{ signal: [
{ name: 'clk', wave: 'P.......' },
[ 'Address',
{ name: 'a_val →', wave: 'x4.x.', data: ['A1'] },
{ name: 'a_req →', wave: '01.0.', node: '...A' },
{ name: 'a_ack ←', wave: 'x01x.' },
],{},
[ 'Read',
{ name: 'q_val ←', wave: 'x....4x.', data: ['D1'] },
{ name: 'q_req ←', wave: '0....10.', node: '.....B'},
{ name: 'q_ack →', wave: 'x....1x.'},
],
], edge: ['A~>B latency']
}
</script>
Data will come with some latency
</div>
<div id="s3d" class="step slide" data-x="0">
<h1>Timing diagram</h1>
<br>
<script type="WaveDrom">
{ signal: [
{ name: 'clk', wave: 'P..........' },
[ 'Address',
{ name: 'a_val →', wave: 'x4.x.', data: ['A1'] },
{ name: 'a_req →', wave: '01.0.' },
{ name: 'a_ack ←', wave: 'x01x.' },
],{},
[ 'Read',
{ name: 'q_val ←', wave: 'x....4...x.', data: ['D1'] },
{ name: 'q_req ←', wave: '0....1...0.', node: '.........E'},
{ name: 'q_ack →', wave: 'x....1..x..', node: '.....C..D'},
],
], edge: ['C->D delay', 'D~>E']
}
</script>
And now <i>Initiator</i> can delay the data acceptance for as many cycles as it wants
</div>
<div id="s3e" class="step slide" data-x="0">
<h1>Timing diagram</h1>
<br>
<script type="WaveDrom">
{ signal: [
{ name: 'clk', wave: 'P..........' },
[ 'Address',
{ name: 'a_val →', wave: 'x4.x.', data: ['A1'] },
{ name: 'a_req →', wave: '01.0.', node: '.A' },
{ name: 'a_ack ←', wave: 'x01x.' },
],{ node: '.B.......C'
},
[ 'Read',
{ name: 'q_val ←', wave: 'x....4...x.', data: ['D1'] },
{ name: 'q_req ←', wave: '0....1...0.'},
{ name: 'q_ack →', wave: 'x....0..1x.', node: '.........D'},
],
], edge: ['A-B', 'B->C read latency', 'C-D']
}
</script>
That is how we end up with such long read latencies
</div>
<div id="s4" class="step slide" data-y="1000" data-rotate-x="90">
<q>want to know more?</q>
<a href="http://github.com/bartaz/impress.js">impress.js</a> <br>
<a href="http://wavedrom.com">WaveDrom</a>
</div>
</div>
<div class="hint">
<p>Use a spacebar or arrow keys to navigate</p>
</div>
<script>
if ("ontouchstart" in document.documentElement) {
document.querySelector(".hint").innerHTML = "<p>Tap on the left or right to navigate</p>";
}
</script>
<script src="impress/impress.js"></script>
<script>impress().init();</script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-21660728-3"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-21660728-3');
</script>
</body>
</html>