diff options
| author | Donggyu Kim | 2016-08-25 18:17:11 -0700 |
|---|---|---|
| committer | Donggyu Kim | 2016-09-08 13:30:20 -0700 |
| commit | 488aec3a35b6fa99a8150702128c9c1e87246644 (patch) | |
| tree | 5194cbfb75340990bc7ba0cb287b13151e73ee41 /src/main/scala/firrtl/Utils.scala | |
| parent | de32fe8128105413563a5fa746fcebf24c86d0a3 (diff) | |
remove Utils.{AND, OR, NOT, EQV}
hidden const props not desirable
Diffstat (limited to 'src/main/scala/firrtl/Utils.scala')
| -rw-r--r-- | src/main/scala/firrtl/Utils.scala | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/main/scala/firrtl/Utils.scala b/src/main/scala/firrtl/Utils.scala index 29c37294..572d1ccc 100644 --- a/src/main/scala/firrtl/Utils.scala +++ b/src/main/scala/firrtl/Utils.scala @@ -98,28 +98,6 @@ object Utils extends LazyLogging { val ix = if (i < 0) ((-1 * i) - 1) else i ceil_log2(ix + 1) + 1 } - def EQV (e1:Expression,e2:Expression) : Expression = - DoPrim(Eq, Seq(e1, e2), Nil, e1.tpe) - // TODO: these should be fixed - def AND (e1:WrappedExpression,e2:WrappedExpression) : Expression = { - if (e1 == e2) e1.e1 - else if ((e1 == we(zero)) | (e2 == we(zero))) zero - else if (e1 == we(one)) e2.e1 - else if (e2 == we(one)) e1.e1 - else DoPrim(And,Seq(e1.e1,e2.e1),Seq(),UIntType(IntWidth(1))) - } - def OR (e1:WrappedExpression,e2:WrappedExpression) : Expression = { - if (e1 == e2) e1.e1 - else if ((e1 == we(one)) | (e2 == we(one))) one - else if (e1 == we(zero)) e2.e1 - else if (e2 == we(zero)) e1.e1 - else DoPrim(Or,Seq(e1.e1,e2.e1),Seq(),UIntType(IntWidth(1))) - } - def NOT (e1:WrappedExpression) : Expression = { - if (e1 == we(one)) zero - else if (e1 == we(zero)) one - else DoPrim(Eq,Seq(e1.e1,zero),Seq(),UIntType(IntWidth(1))) - } def create_mask(dt: Type): Type = dt match { case t: VectorType => VectorType(create_mask(t.tpe),t.size) |
