diff options
| author | Jim Lawson | 2018-07-19 10:23:03 -0700 |
|---|---|---|
| committer | edwardcwang | 2018-07-19 21:06:50 -0400 |
| commit | 8f96e509215e092799cddd992dc2e42bedd4e2ad (patch) | |
| tree | f981fad2f5328a730f24cd9d37f55fd4e2b3781d /src/main/scala/chisel3/compatibility.scala | |
| parent | 1fd9957b077a2c5e02886ba85dd7a82e5de27876 (diff) | |
Add support for Input() and Output() (available in Chisel2 since ucb-bar/chisel2-deprecated#734) and test for same.
Diffstat (limited to 'src/main/scala/chisel3/compatibility.scala')
| -rw-r--r-- | src/main/scala/chisel3/compatibility.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/scala/chisel3/compatibility.scala b/src/main/scala/chisel3/compatibility.scala index a1af6236..7eebcee0 100644 --- a/src/main/scala/chisel3/compatibility.scala +++ b/src/main/scala/chisel3/compatibility.scala @@ -19,6 +19,9 @@ package object Chisel { // scalastyle:ignore package.object.name case object OUTPUT extends Direction case object NODIR extends Direction + val Input = chisel3.core.Input + val Output = chisel3.core.Output + object Flipped { def apply[T<:Data](target: T): T = chisel3.core.Flipped[T](target) } |
