summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorAditya Naik2023-12-24 13:13:20 -0800
committerAditya Naik2023-12-24 13:13:20 -0800
commit7fc39a02a806bfb74c78147203815f2e2b85b765 (patch)
treed702c968f02064eaa122f9135e639568101a2eca /core/src
parent5b39780a564bb46fecda1be0302ec496b6595ef1 (diff)
Add the type aggregation problem
Diffstat (limited to 'core/src')
-rw-r--r--core/src/main/scala/chisel3/MetaConnect.scala19
1 files changed, 2 insertions, 17 deletions
diff --git a/core/src/main/scala/chisel3/MetaConnect.scala b/core/src/main/scala/chisel3/MetaConnect.scala
index ebdff5f8..0f338e6c 100644
--- a/core/src/main/scala/chisel3/MetaConnect.scala
+++ b/core/src/main/scala/chisel3/MetaConnect.scala
@@ -2,23 +2,8 @@ package chisel3
object MetaConnect {
implicit class Connection[A](that: A) {
- def makeConnection[B](me: B)(implicit f: A => B => A): Unit = {
- println(me, that)
- (me, that) match {
- case (a: Data, b: Data) => {
- if (a == b) {
- a.connect(b)
- }
- else {
-
- }
- }
- case (_, _) =>
- }
+ def makeConnection[B, C](me: B)(implicit f: A => B => C): C = {
+ f(that)(me)
}
- // def makeConnection[B](me: B): Unit = {
-
- // }
- // def :=(a: Data, b: Data) = a.connect(b)
}
}