From d715bba3e7addc65dd55374f1dcbaad2d96f7097 Mon Sep 17 00:00:00 2001 From: Sanjay Gandham <105885031+sanjaygandham2@users.noreply.github.com> Date: Thu, 16 Jun 2022 18:39:22 -0400 Subject: [PATCH] Removed usage of case class to maintain consistency (#168) --- 2.6_chiseltest.ipynb | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/2.6_chiseltest.ipynb b/2.6_chiseltest.ipynb index b95ac81..c467f38 100644 --- a/2.6_chiseltest.ipynb +++ b/2.6_chiseltest.ipynb @@ -210,21 +210,13 @@ "metadata": {}, "outputs": [], "source": [ - "case class QueueModule[T <: Data](ioType: T, entries: Int) extends MultiIOModule {\n", + "class QueueModule[T <: Data](ioType: T, entries: Int) extends MultiIOModule {\n", " val in = IO(Flipped(Decoupled(ioType)))\n", " val out = IO(Decoupled(ioType))\n", " out <> Queue(in, entries)\n", "}" ] }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "> Note the `case` class modifer is not generally required but seems to be in order for\n", - "this example to be re-used in multiple cells in Jupyter" - ] - }, { "cell_type": "markdown", "metadata": {}, @@ -249,7 +241,7 @@ "metadata": {}, "outputs": [], "source": [ - "test(QueueModule(UInt(9.W), entries = 200)) { c =>\n", + "test(new QueueModule(UInt(9.W), entries = 200)) { c =>\n", " // Example testsequence showing the use and behavior of Queue\n", " c.in.initSource()\n", " c.in.setSourceClock(c.clock)\n", @@ -286,7 +278,7 @@ "metadata": {}, "outputs": [], "source": [ - "test(QueueModule(UInt(9.W), entries = 200)) { c =>\n", + "test(new QueueModule(UInt(9.W), entries = 200)) { c =>\n", " // Example testsequence showing the use and behavior of Queue\n", " c.in.initSource()\n", " c.in.setSourceClock(c.clock)\n", @@ -339,7 +331,7 @@ "metadata": {}, "outputs": [], "source": [ - "test(QueueModule(UInt(9.W), entries = 200)) { c =>\n", + "test(new QueueModule(UInt(9.W), entries = 200)) { c =>\n", " // Example testsequence showing the use and behavior of Queue\n", " c.in.initSource()\n", " c.in.setSourceClock(c.clock)\n",