Skip to content

Commit 369de9b

Browse files
authored
Update 3.2_interlude.ipynb (freechipsproject#178)
- Added .litValue to all println statements in the Queue example (.litValue was only present on the first two groups of statements before) - Fixed typo
1 parent 70a307e commit 369de9b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

3.2_interlude.ipynb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,22 +117,22 @@
117117
" c.io.out.ready.poke(true.B)\n",
118118
" // What do you think io.in.ready will be, and will this enqueue succeed, and what will be read?\n",
119119
" println(s\"On first read:\")\n",
120-
" println(s\"\\tio.in: ready=${c.io.in.ready.peek()}\")\n",
121-
" println(s\"\\tio.out: valid=${c.io.out.valid.peek()}, bits=${c.io.out.bits.peek()}\")\n",
120+
" println(s\"\\tio.in: ready=${c.io.in.ready.peek().litValue}\")\n",
121+
" println(s\"\\tio.out: valid=${c.io.out.valid.peek().litValue}, bits=${c.io.out.bits.peek().litValue}\")\n",
122122
" c.clock.step(1)\n",
123123
"\n",
124124
" c.io.in.valid.poke(false.B) // Read elements out\n",
125125
" c.io.out.ready.poke(true.B)\n",
126126
" // What do you think will be read here?\n",
127127
" println(s\"On second read:\")\n",
128-
" println(s\"\\tio.in: ready=${c.io.in.ready.peek()}\")\n",
129-
" println(s\"\\tio.out: valid=${c.io.out.valid.peek()}, bits=${c.io.out.bits.peek()}\")\n",
128+
" println(s\"\\tio.in: ready=${c.io.in.ready.peek().litValue}\")\n",
129+
" println(s\"\\tio.out: valid=${c.io.out.valid.peek().litValue}, bits=${c.io.out.bits.peek().litValue}\")\n",
130130
" c.clock.step(1)\n",
131131
"\n",
132132
" // Will a third read produce anything?\n",
133133
" println(s\"On third read:\")\n",
134-
" println(s\"\\tio.in: ready=${c.io.in.ready.peek()}\")\n",
135-
" println(s\"\\tio.out: valid=${c.io.out.valid.peek()}, bits=${c.io.out.bits.peek()}\")\n",
134+
" println(s\"\\tio.in: ready=${c.io.in.ready.peek().litValue}\")\n",
135+
" println(s\"\\tio.out: valid=${c.io.out.valid.peek().litValue}, bits=${c.io.out.bits.peek().litValue}\")\n",
136136
" c.clock.step(1)\n",
137137
"}"
138138
]
@@ -142,7 +142,7 @@
142142
"metadata": {},
143143
"source": [
144144
"## Arbiters\n",
145-
"Arbiters routes data from _n_ `DecoupledIO` sources to one `DecoupledIO` sink, given a prioritization.\n",
145+
"Arbiters route data from _n_ `DecoupledIO` sources to one `DecoupledIO` sink, given a prioritization.\n",
146146
"There are two types included in Chisel:\n",
147147
"- `Arbiter`: prioritizes lower-index producers\n",
148148
"- `RRArbiter`: runs in round-robin order\n",
@@ -511,4 +511,4 @@
511511
},
512512
"nbformat": 4,
513513
"nbformat_minor": 1
514-
}
514+
}

0 commit comments

Comments
 (0)