|
210 | 210 | "metadata": {}, |
211 | 211 | "outputs": [], |
212 | 212 | "source": [ |
213 | | - "case class QueueModule[T <: Data](ioType: T, entries: Int) extends MultiIOModule {\n", |
| 213 | + "class QueueModule[T <: Data](ioType: T, entries: Int) extends MultiIOModule {\n", |
214 | 214 | " val in = IO(Flipped(Decoupled(ioType)))\n", |
215 | 215 | " val out = IO(Decoupled(ioType))\n", |
216 | 216 | " out <> Queue(in, entries)\n", |
217 | 217 | "}" |
218 | 218 | ] |
219 | 219 | }, |
220 | | - { |
221 | | - "cell_type": "markdown", |
222 | | - "metadata": {}, |
223 | | - "source": [ |
224 | | - "> Note the `case` class modifer is not generally required but seems to be in order for\n", |
225 | | - "this example to be re-used in multiple cells in Jupyter" |
226 | | - ] |
227 | | - }, |
228 | 220 | { |
229 | 221 | "cell_type": "markdown", |
230 | 222 | "metadata": {}, |
|
249 | 241 | "metadata": {}, |
250 | 242 | "outputs": [], |
251 | 243 | "source": [ |
252 | | - "test(QueueModule(UInt(9.W), entries = 200)) { c =>\n", |
| 244 | + "test(new QueueModule(UInt(9.W), entries = 200)) { c =>\n", |
253 | 245 | " // Example testsequence showing the use and behavior of Queue\n", |
254 | 246 | " c.in.initSource()\n", |
255 | 247 | " c.in.setSourceClock(c.clock)\n", |
|
286 | 278 | "metadata": {}, |
287 | 279 | "outputs": [], |
288 | 280 | "source": [ |
289 | | - "test(QueueModule(UInt(9.W), entries = 200)) { c =>\n", |
| 281 | + "test(new QueueModule(UInt(9.W), entries = 200)) { c =>\n", |
290 | 282 | " // Example testsequence showing the use and behavior of Queue\n", |
291 | 283 | " c.in.initSource()\n", |
292 | 284 | " c.in.setSourceClock(c.clock)\n", |
|
339 | 331 | "metadata": {}, |
340 | 332 | "outputs": [], |
341 | 333 | "source": [ |
342 | | - "test(QueueModule(UInt(9.W), entries = 200)) { c =>\n", |
| 334 | + "test(new QueueModule(UInt(9.W), entries = 200)) { c =>\n", |
343 | 335 | " // Example testsequence showing the use and behavior of Queue\n", |
344 | 336 | " c.in.initSource()\n", |
345 | 337 | " c.in.setSourceClock(c.clock)\n", |
|
0 commit comments