diff options
| author | Jack Koenig | 2017-02-14 13:22:26 -0800 |
|---|---|---|
| committer | GitHub | 2017-02-14 13:22:26 -0800 |
| commit | 088b72a2d5c2c467ac6851339d0a3263e6c06bed (patch) | |
| tree | 3a742e83c650d9d8e47f92cae678cd605f30b2c6 /src/main/scala/firrtl/passes/InferWidths.scala | |
| parent | 208176767a8b93172e02b55fe5e5cc19891e5921 (diff) | |
Add support for Analog types in partial connect (#435)
Also add support for width inference
Diffstat (limited to 'src/main/scala/firrtl/passes/InferWidths.scala')
| -rw-r--r-- | src/main/scala/firrtl/passes/InferWidths.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/scala/firrtl/passes/InferWidths.scala b/src/main/scala/firrtl/passes/InferWidths.scala index f3f1e945..f3b77ec5 100644 --- a/src/main/scala/firrtl/passes/InferWidths.scala +++ b/src/main/scala/firrtl/passes/InferWidths.scala @@ -229,6 +229,7 @@ object InferWidths extends Pass { case (t1: SIntType, t2: SIntType) => Seq(WGeq(t1.width, t2.width)) case (ClockType, ClockType) => Nil case (FixedType(w1, p1), FixedType(w2, p2)) => Seq(WGeq(w1,w2), WGeq(p1,p2)) + case (AnalogType(w1), AnalogType(w2)) => Seq(WGeq(w1,w2), WGeq(w2,w1)) case (t1: BundleType, t2: BundleType) => (t1.fields zip t2.fields foldLeft Seq[WGeq]()){case (res, (f1, f2)) => res ++ (f1.flip match { |
