Skip to content

Commit

Permalink
add clone method to Bool (fixes Reg.getWidth)
Browse files Browse the repository at this point in the history
  • Loading branch information
aswaterman committed Nov 20, 2012
1 parent 72e469a commit 1f29014
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/scala/Bool.scala
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,6 @@ class Bool extends Bits {
case any => false;
}
}

override def clone = Bool(dir).asInstanceOf[this.type]
}

0 comments on commit 1f29014

Please sign in to comment.