Skip to content

Commit 2c1fa62

Browse files
author
Andrew Waterman
committed
Undo doCloneType/init
1 parent 2ee1b54 commit 2c1fa62

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/Router.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Packet extends Bundle {
1717
}
1818

1919
class RouterIO(n: Int) extends Bundle {
20-
override def doCloneType = new RouterIO(n).asInstanceOf[this.type]
20+
override def cloneType = new RouterIO(n).asInstanceOf[this.type]
2121
val reads = new DeqIO(new ReadCmd())
2222
val replies = new EnqIO(UInt(width = 8))
2323
val writes = new DeqIO(new WriteCmd())
@@ -30,7 +30,6 @@ class Router extends Module {
3030
val n = 4
3131
val io = new RouterIO(n)
3232
val tbl = Mem(UInt(width = sizeof(n)), depth)
33-
io.init()
3433
when(io.reads.valid && io.replies.ready) {
3534
val cmd = io.reads.deq(); io.replies.enq(tbl(cmd.addr))
3635
} .elsewhen(io.writes.valid) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy