diff options
| author | Chick Markley | 2016-02-08 22:32:07 -0800 |
|---|---|---|
| committer | Chick Markley | 2016-02-08 22:32:07 -0800 |
| commit | c2db03d0a752e084c1ca452ee477c88d930d0bc6 (patch) | |
| tree | 797721dd0054bd5accb1e695398e950d51c3e873 /src/main/scala/Chisel/util | |
| parent | 271bc0c5cf17d86203347e17c2082a495cd5d530 (diff) | |
| parent | cd269f1ebb9a0626d47ecd53b133174bc3a4cd38 (diff) | |
Merge pull request #95 from ucb-bar/flipped
Add Flipped trait; fix DeqIO, this fix looks good to go
Diffstat (limited to 'src/main/scala/Chisel/util')
| -rw-r--r-- | src/main/scala/Chisel/util/Decoupled.scala | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/scala/Chisel/util/Decoupled.scala b/src/main/scala/Chisel/util/Decoupled.scala index ca000af9..23a08d52 100644 --- a/src/main/scala/Chisel/util/Decoupled.scala +++ b/src/main/scala/Chisel/util/Decoupled.scala @@ -33,9 +33,8 @@ class EnqIO[T <: Data](gen: T) extends DecoupledIO(gen) } /** An I/O bundle for dequeuing data with valid/ready handshaking */ -class DeqIO[T <: Data](gen: T) extends DecoupledIO(gen) +class DeqIO[T <: Data](gen: T) extends DecoupledIO(gen) with Flipped { - flip() ready := Bool(false) def deq(b: Boolean = false): T = { ready := Bool(true); bits } override def cloneType: this.type = { new DeqIO(gen).asInstanceOf[this.type]; } |
