Skip to content

Commit 165b9f7

Browse files
committed
Fixes freechipsproject#151: assert ready for arbiter inputs
1 parent e2602d3 commit 165b9f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

3.2_interlude.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,13 @@
171171
" }) { c =>\n",
172172
" c.io.in(0).valid.poke(false.B)\n",
173173
" c.io.in(1).valid.poke(false.B)\n",
174+
" c.io.out.ready.poke(false.B)\n",
174175
" println(s\"Start:\")\n",
175176
" println(s\"\\tin(0).ready=${c.io.in(0).ready.peek().litValue}, in(1).ready=${c.io.in(1).ready.peek().litValue}\")\n",
176177
" println(s\"\\tout.valid=${c.io.out.valid.peek().litValue}, out.bits=${c.io.out.bits.peek().litValue}\")\n",
177178
" c.io.in(1).valid.poke(true.B) // Valid input 1\n",
178179
" c.io.in(1).bits.poke(42.U)\n",
180+
" c.io.out.ready.poke(true.B)\n",
179181
" // What do you think the output will be?\n",
180182
" println(s\"valid input 1:\")\n",
181183
" println(s\"\\tin(0).ready=${c.io.in(0).ready.peek().litValue}, in(1).ready=${c.io.in(1).ready.peek().litValue}\")\n",
@@ -509,4 +511,4 @@
509511
},
510512
"nbformat": 4,
511513
"nbformat_minor": 1
512-
}
514+
}

0 commit comments

Comments
 (0)