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 ]
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 " ,
511511 },
512512 "nbformat" : 4 ,
513513 "nbformat_minor" : 1
514- }
514+ }
0 commit comments